/* Green Edition: customer-to-owner private messaging */
.chat-launcher{position:fixed;right:18px;bottom:max(20px,env(safe-area-inset-bottom));z-index:220;border:0;border-radius:50px;padding:14px 21px;background:#145b3c;color:#fff;font:700 14px 'DM Sans',Arial,sans-serif;display:flex;align-items:center;gap:9px;box-shadow:0 12px 34px #0d3e2766;cursor:pointer}
.chat-launcher:hover{background:#0d4930}.chat-launcher b{width:8px;height:8px;border-radius:50%;background:#ffe5a2}.chat-launcher b.hidden{display:none}
.chat-widget{position:fixed;right:18px;bottom:85px;z-index:221;display:flex;flex-direction:column;width:min(390px,calc(100vw - 24px));height:min(590px,calc(100dvh - 110px));overflow:hidden;border-radius:21px;border:1px solid #cbded0;background:#fff;box-shadow:0 18px 60px #113d2555;color:#1b3025;font-family:'DM Sans',Arial,sans-serif}.chat-widget.hidden{display:none!important}
.chat-widget-header{display:flex;align-items:start;justify-content:space-between;gap:12px;background:linear-gradient(120deg,#144e36,#23814e);padding:18px;color:white}.chat-widget-header small{display:block;color:#c1eacc;letter-spacing:1px;font-size:10px;font-weight:800}.chat-widget-header strong{display:block;margin:5px 0 4px;font-size:16px;line-height:1.3}.chat-widget-header span{display:block;font-size:11px;color:#def5df}.chat-widget-header button{border:none;background:#ffffff22;color:white;font-size:25px;width:31px;height:31px;border-radius:9px;cursor:pointer}
.chat-customer-intro{padding:18px;overflow:auto;flex:1}.chat-customer-intro p{line-height:1.5;font-size:13px;color:#486953;margin:0 0 15px}.chat-customer-intro form{display:grid;gap:13px}.chat-customer-intro label{font-size:12px;font-weight:750;display:grid;gap:6px}.chat-customer-intro input,.chat-customer-intro textarea,.chat-compose textarea{border:1px solid #c9ddd0;padding:11px 12px;border-radius:12px;background:white;color:#193c29;font:inherit;font-size:14px;width:100%;box-sizing:border-box;resize:vertical;outline:none}.chat-customer-intro input:focus,.chat-customer-intro textarea:focus,.chat-compose textarea:focus{border-color:#4da879;box-shadow:0 0 0 3px #4da87922}.chat-send-btn{background:#17603d;color:white;border:none;padding:12px;border-radius:12px;font-weight:800;cursor:pointer}.chat-send-btn:disabled{opacity:.5}
.chat-conversation{min-height:0;flex:1;display:flex;flex-direction:column}.chat-disclaimer{font-size:11px;color:#577361;background:#f1f7f1;border-bottom:1px solid #e5ede6;padding:9px 12px}.chat-messages{flex:1;min-height:120px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;background:#f8fbf8}.chat-bubble{max-width:88%;border-radius:15px;padding:10px 12px;line-height:1.4;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 8px #225a2510}.chat-bubble.from-customer{align-self:flex-end;background:#155b3c;color:#fff;border-bottom-right-radius:5px}.chat-bubble.from-owner{align-self:flex-start;background:white;border:1px solid #e2ebe2;border-bottom-left-radius:5px}.chat-bubble-label{display:block;font-size:10px;opacity:.7;margin-bottom:5px;font-weight:800}.chat-bubble time{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:6px}.chat-compose{display:flex;align-items:end;padding:12px;gap:9px;background:white;border-top:1px solid #e0ede4}.chat-compose textarea{resize:none;min-height:44px;max-height:90px;flex:1}.chat-compose button{width:45px;height:45px;flex-shrink:0;border:none;border-radius:12px;background:#1c794b;color:white;font-size:18px;cursor:pointer}.chat-compose button:disabled{opacity:.5}.chat-closed{margin:8px 14px;font-size:12px;color:#855e2e}.chat-new{border:1px solid #2f8953;color:#15673c;background:#fff;border-radius:10px;padding:10px;margin:8px 14px;font-weight:750;cursor:pointer}.chat-notice{margin:0;padding:0 14px 9px;color:#9a3a38;font-size:12px;min-height:4px;line-height:1.3}.chat-widget .hidden{display:none!important}
.inbox-badge{display:inline-block;background:#1a8b52;color:white;border-radius:20px;padding:2px 6px;font-size:10px;margin-left:5px}.inbox-badge.hidden{display:none}.inbox-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.65fr);border:1px solid #d8e7dc;border-radius:15px;min-height:475px;overflow:hidden;background:#fff}.inbox-threads{height:475px;overflow:auto;border-right:1px solid #e3eee6}.inbox-thread{display:block;width:100%;text-align:left;cursor:pointer;padding:13px;border:0;border-bottom:1px solid #e4eee7;background:white;color:#21402c;font:inherit}.inbox-thread.selected,.inbox-thread:hover{background:#edf8ef}.inbox-thread-top,.inbox-thread-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.inbox-thread-top strong{overflow-wrap:anywhere;font-size:13px}.inbox-thread-top time{font-size:10px;color:#67806f;white-space:nowrap}.inbox-thread-last{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#617968;margin:7px 0}.inbox-thread-foot{font-size:11px;color:#679077}.inbox-thread-foot b{color:#117a3f}.inbox-empty{padding:24px;color:#67806f;font-size:13px}.inbox-conversation{display:flex;flex-direction:column;min-height:0;height:475px}.inbox-conversation-header{padding:15px;border-bottom:1px solid #e3eee7;font-size:13px;color:#2b5037;min-height:58px}.inbox-conversation-header strong{display:block;font-size:15px}.inbox-conversation-header small{color:#67806f;font-size:11px}.inbox-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:15px;background:#f7fbf8}.inbox-message{border-radius:12px;max-width:88%;padding:11px 13px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}.inbox-message small{font-size:10px;display:block;opacity:.75;margin-bottom:5px}.inbox-message.customer{align-self:flex-start;background:white;border:1px solid #dce9dd}.inbox-message.owner{align-self:flex-end;background:#155b3c;color:white}.inbox-reply{display:flex;gap:9px;padding:11px;border-top:1px solid #e4eee7}.inbox-reply textarea{resize:vertical;min-width:0;flex:1;min-height:58px;border:1px solid #cbdccf;border-radius:10px;font:inherit;padding:9px}.inbox-reply button{flex-shrink:0;align-self:end;white-space:nowrap}.inbox-actions{padding:8px 11px;border-top:1px solid #edf1ed}.inbox-reply.hidden,.inbox-actions.hidden{display:none!important}
@media(max-width:720px){.chat-launcher{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:13px 15px}.chat-widget{right:12px;bottom:72px;height:min(565px,calc(100dvh - 90px));width:calc(100vw - 24px);border-radius:16px}.inbox-layout{grid-template-columns:1fr;grid-template-rows:145px 440px}.inbox-threads{height:145px;border-right:0;border-bottom:1px solid #dce9df}.inbox-conversation{height:440px}.inbox-reply{flex-wrap:wrap}.inbox-reply button{width:100%}}
