.chat-panel{width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}
.chat-header{flex-shrink:0;position:sticky;top:0;background:var(--bg);z-index:1}.chat-header button{min-width:40px;min-height:40px}.chat-intro{padding:24px 24px 0}.chat-intro h2{font-size:28px;line-height:1.12;margin:12px 0 14px}.chat-intro>p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.6}.native-chat-availability{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.native-chat-availability::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--muted);margin-right:8px;vertical-align:middle}.native-chat-availability.is-online::before{background:var(--text)}.chat-session-status{padding:0 24px;font-size:12px;line-height:1.6;color:var(--muted);flex-shrink:0}.chat-session-status:not(:empty){padding-top:14px;padding-bottom:4px}.chat-session-status.is-error{color:var(--text)}.chat-start-form,.chat-message-form{padding:18px 24px 0}.chat-start-form label,.chat-message-form label{display:block;font-size:12px;margin:0 0 7px}.chat-start-form input,.chat-start-form textarea,.chat-message-form textarea{width:100%;border:1px solid #62625c;background:var(--surface);color:var(--text);padding:11px 12px;line-height:1.5;border-radius:0;font-size:16px;resize:vertical;max-height:160px}.chat-start-form input{margin-bottom:15px}.chat-start-form textarea,.chat-message-form textarea{min-height:80px}.chat-start-form .button{width:100%;margin-top:14px;min-height:46px;font-size:14px}.chat-data-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:12px}.chat-conversation{min-height:0}.chat-messages{max-height:300px;min-height:100px;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 5px;scrollbar-color:#66665f transparent}.chat-message{max-width:94%;width:fit-content;margin:0 0 16px;padding:12px 14px;background:#33332f;border:1px solid #484844}.chat-message-visitor{margin-left:auto;background:var(--text);color:var(--bg);border-color:var(--text)}.chat-message-body{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-meta{display:block;font-size:10px;line-height:1.5;margin-top:7px;color:var(--muted)}.chat-message-visitor .chat-message-meta{color:#53534f}.chat-message-pending{opacity:.65}.chat-return-note{font-size:11px;line-height:1.6;color:var(--muted);padding:0 24px}.chat-compose-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:10px}.chat-compose-row .button{min-height:43px;padding:9px 20px;font-size:13px;gap:14px}.chat-count{font-size:10px;color:var(--muted)}.chat-email-fallback{border-top:1px solid var(--line);padding:15px 24px;margin-top:20px;flex-shrink:0}.chat-email-fallback a{font-size:12px;display:flex;justify-content:space-between;gap:14px}.chat-email-fallback a:hover{text-decoration:underline;text-underline-offset:4px}.chat-email-fallback>span{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.chat-inline-button{border:0;background:none;text-align:left;text-decoration:underline;text-underline-offset:4px;font-size:12px;margin:10px 24px 0;padding:7px 0;color:var(--text)}#chat-new{margin:15px 24px 0;width:calc(100% - 48px);font-size:13px;gap:10px;min-height:46px}.chat-panel input:read-only,.chat-panel textarea:read-only{opacity:.7}.chat-start-form[hidden],.chat-conversation[hidden],.chat-message-form[hidden]{display:none}
@media(max-width:767px){.chat-panel{bottom:62px;max-height:calc(100dvh - 98px)}.chat-messages{max-height:34dvh}.chat-header{padding:12px 20px}.chat-intro{padding-top:20px}}
@media(max-height:650px){.chat-intro h2{font-size:23px;margin:8px 0}.chat-intro>.eyebrow{display:none}.chat-intro>p:not(.native-chat-availability){display:none}.native-chat-availability{margin-top:8px;padding-top:8px}.chat-messages{max-height:26dvh}}
