dialog.cs-chat{position:fixed;inset:auto 26px 24px auto;width:410px;max-width:calc(100vw - 32px);height:min(670px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:0;padding:0;border:1px solid #e8e1dc;border-radius:20px;background:#fbfaf6;color:#302b29;box-shadow:0 24px 90px #302b2930;overflow:hidden}
.cs-chat::backdrop{background:#a6223230;backdrop-filter:none}
.cs-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.cs-header{display:flex;align-items:center;gap:12px;padding:20px 21px;background:#a62232;color:#fffdf6;flex-shrink:0}
.cs-avatar{width:43px;height:43px;background:white;border-radius:50%;overflow:hidden;padding:5px;flex-shrink:0}
.cs-avatar img{width:100%;height:100%;object-fit:contain}
.cs-header h2{font:600 17px/1.25 Arial,sans-serif;letter-spacing:.015em;margin:0 0 4px;color:inherit}
.cs-header p{font:11px/1.4 Arial,sans-serif;color:#eee0e2;margin:0}
.cs-close{display:grid;place-items:center;width:38px;height:38px;padding:0;margin-left:auto;border:1px solid #ffffff30;border-radius:50%;background:none;color:white;font-size:25px;cursor:pointer}
.cs-log{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;padding:24px 20px 15px;scrollbar-width:thin}
.cs-message{margin-bottom:20px;max-width:93%;font:13px/1.8 Arial,'Microsoft YaHei',sans-serif}
.cs-message>small{display:block;font-size:10px;line-height:1.5;margin:0 0 7px 3px;color:#928e82}
.cs-bubble{padding:13px 16px;background:white;border:1px solid #eee0e2;border-radius:3px 15px 15px;color:#79706c;overflow-wrap:anywhere}
.cs-bubble p{margin:0;white-space:pre-wrap}
.cs-user{margin-left:auto}
.cs-user>small{text-align:right;margin-right:4px}
.cs-user .cs-bubble{border-color:#eee0e2;background:#eee0e2;border-radius:15px 3px 15px 15px;color:#302b29}
.cs-bubble a{display:inline-block;color:#79706c;font-size:12px;text-decoration:underline;text-underline-offset:3px;margin-top:10px}
.cs-contact-links{display:flex;flex-wrap:wrap;gap:15px}
.cs-typing{font-size:11px;color:#c6bbb6;padding:0 5px}
.cs-suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:0 20px 15px;flex-shrink:0}
.cs-suggestions:empty{padding-bottom:0}
.cs-suggestions button{border:1px solid #d2b5b9;border-radius:20px;background:#faf4f3;padding:8px 12px;color:#79706c;font:11px/1.3 Arial,sans-serif;cursor:pointer;min-height:34px}
.cs-suggestions button:hover{background:#eee0e2}
.cs-composer{position:relative;display:flex;gap:9px;margin:0 16px;padding:10px 10px 10px 14px;border:1px solid #eee0e2;border-radius:13px;background:white;flex-shrink:0}
.cs-composer textarea{resize:none;flex:1;min-width:0;border:0;box-shadow:none;outline:none;background:none;padding:5px 0;min-height:42px;font:13px/1.6 Arial,sans-serif;color:#302b29}
.cs-composer textarea::placeholder{color:#c6bbb6}
.cs-composer button{align-self:flex-end;display:grid;place-items:center;width:39px;height:39px;border:0;border-radius:50%;background:#a62232;color:#fff;cursor:pointer;flex-shrink:0}
.cs-composer button:disabled{opacity:.45;cursor:wait}
.cs-composer:focus-within{border-color:#79706c}
.cs-footer{text-align:center;padding:13px 18px 16px;flex-shrink:0}
.cs-email{font:11px/1.5 Arial,sans-serif;color:#79706c;text-decoration:underline;text-underline-offset:3px}
.cs-footer p{font:9px/1.6 Arial,sans-serif;color:#9a9b8c;margin:6px auto 0;max-width:36ch}
.cs-chat button:focus-visible,.cs-chat a:focus-visible{outline:2px solid #a28d61;outline-offset:3px}
@media(max-width:600px){dialog.cs-chat{inset:auto 8px 8px;width:calc(100vw - 16px);max-width:none;height:min(690px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);border-radius:18px}.cs-header{padding:17px}.cs-log{padding:20px 16px 12px}.cs-composer textarea{font-size:16px}.cs-suggestions{padding-inline:16px}.cs-footer{padding-bottom:12px}}

.cs-composer:focus-within{border-color:#a62232}.cs-chat button:focus-visible,.cs-chat a:focus-visible{outline-color:#a62232}
.cs-chat::backdrop{background:#211b1b30}

/* Reserve the dock's entire lane to the outside of the conversation. */
dialog.cs-chat{inset:auto;inset-inline-end:calc(var(--contact-edge,24px) + var(--contact-size,52px) + 24px);bottom:var(--contact-base,24px);height:min(670px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}
@media(max-width:760px),(max-height:600px){dialog.cs-chat{inset:auto;inset-inline-end:max(8px,env(safe-area-inset-right));inset-inline-start:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:none;height:min(690px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}}
@media(max-height:600px){.cs-header{padding:12px 16px}.cs-log{min-height:0;padding:12px 16px}.cs-suggestions{padding-bottom:8px}.cs-footer{padding:8px 12px}.cs-footer p{display:none}.cs-composer textarea{min-height:32px}}

.cs-handoff{flex:1 1 100%;text-align:start}.cs-footer:has(.cs-handoff[open]){display:block;overflow:auto;max-height:54dvh}.cs-handoff summary{cursor:pointer;font-weight:600}.cs-handoff form{display:grid;gap:6px;margin:8px 0}.cs-handoff label{display:block;font-size:13px}.cs-handoff input:not([type=checkbox]),.cs-handoff textarea{width:100%;box-sizing:border-box;padding:7px}.cs-handoff output{overflow-wrap:anywhere}
