.cww-chat-launcher{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;background:#10213b;color:#fff;padding:13px 18px;box-shadow:0 12px 32px rgba(16,33,59,.22);font:650 13px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}
.cww-chat-launcher:hover{background:#1d3c61}.cww-chat-launcher span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#4ba998;color:#fff;font:700 14px Georgia,serif}
.cww-chat-panel{--cww-panel-height:min(540px,calc(var(--cww-visual-height,100dvh) - 24px));box-sizing:border-box;position:fixed;right:22px;top:max(calc(var(--cww-visual-top,0px) + 12px),calc(var(--cww-visual-top,0px) + var(--cww-visual-height,100dvh) - var(--cww-panel-height) - 92px));bottom:auto;z-index:1001;display:flex;padding:0;margin:0;flex-direction:column;width:min(390px,calc(100vw - 32px));height:var(--cww-panel-height);max-height:calc(var(--cww-visual-height,100dvh) - 24px);border:1px solid #dce4e9;border-radius:9px;background:#fff;box-shadow:0 20px 60px rgba(16,33,59,.22);overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;font:14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;color:#18283e}.cww-chat-panel[hidden]{display:none}
.cww-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;background:#10213b;color:#fff}.cww-chat-head strong{display:block;font-size:15px}.cww-chat-head small{display:block;font-size:11px;color:#c4d1df;font-weight:400;margin-top:2px}.cww-chat-close{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:2px 5px}
.cww-chat-messages{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:18px;background:#f6f8f7;display:flex;flex-direction:column;gap:12px}.cww-chat-message{max-width:90%;padding:11px 13px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.cww-chat-message.bot{align-self:flex-start;background:#fff;border:1px solid #dce4e9}.cww-chat-message.user{align-self:flex-end;background:#e6f2f0;color:#173c3b}.cww-chat-message.error{border-color:#e5c8c6;color:#8b3834}
.cww-chat-quick{display:flex;gap:7px;flex-wrap:wrap;padding:11px 15px 0;background:#fff}.cww-chat-quick button{border:1px solid #dce4e9;border-radius:999px;background:#fff;color:#31516b;padding:5px 9px;font:600 11px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.cww-chat-quick button:hover{border-color:#4ba998}
.cww-chat-form{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid #dce4e9;background:#fff}.cww-chat-input{flex:1;min-width:0;min-height:40px;max-height:92px;resize:vertical;border:1px solid #cbd7df;border-radius:5px;padding:9px 10px;font:13px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;color:#18283e}.cww-chat-send{border:0;border-radius:5px;background:#10213b;color:#fff;min-height:40px;padding:0 12px;font:650 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}.cww-chat-send:disabled{opacity:.55;cursor:wait}.cww-chat-foot{padding:0 15px 11px;background:#fff;color:#788698;font-size:10px}.cww-chat-foot a{color:#1976a8;text-decoration:underline}
.cww-chat-launcher:focus-visible,.cww-chat-close:focus-visible,.cww-chat-quick button:focus-visible,.cww-chat-input:focus-visible,.cww-chat-send:focus-visible{outline:2px solid #1976a8;outline-offset:2px}
@media(max-width:600px){.cww-chat-launcher{right:14px;bottom:14px}.cww-chat-panel{--cww-panel-height:min(560px,calc(var(--cww-visual-height,100dvh) - 24px));right:10px;top:max(calc(var(--cww-visual-top,0px) + 12px),calc(var(--cww-visual-top,0px) + var(--cww-visual-height,100dvh) - var(--cww-panel-height) - 82px));bottom:auto;width:calc(100vw - 20px);height:var(--cww-panel-height);max-height:calc(var(--cww-visual-height,100dvh) - 24px)}}
html.cww-chat-scroll-locked{overflow:hidden!important;overscroll-behavior:none}
body.cww-chat-scroll-locked{position:fixed!important;top:var(--cww-scroll-lock-top,0);left:0;right:0;width:100%;overflow:hidden!important;overscroll-behavior:none}
body.cww-chat-scroll-locked .cww-chat-panel{touch-action:pan-y}
