.sf-chat-widget { --chat-blue:#168BFF; --chat-ink:#1b2430; --chat-line:#e4e8ee; position:fixed; z-index:1000; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); font-family:'Anek Telugu',sans-serif; }
.sf-chat-launcher { display:flex; width:64px; height:64px; align-items:center; justify-content:center; padding:0; border:2px solid var(--chat-blue); border-radius:50%; background:var(--chat-blue); box-shadow:0 8px 28px #0b315766; cursor:pointer; }
.sf-chat-launcher-icon { width:34px; height:34px; object-fit:contain; filter:brightness(0) invert(1); }
.sf-chat-avatar { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.sf-chat-launcher:focus-visible,.sf-chat-close:focus-visible,.sf-chat-send:focus-visible { outline:3px solid var(--chat-blue); outline-offset:3px; }
.sf-chat-panel { position:absolute; right:0; bottom:78px; display:flex; width:min(370px,calc(100vw - 28px)); height:min(540px,calc(100dvh - 120px)); min-height:360px; flex-direction:column; overflow:hidden; border:1px solid var(--chat-line); border-radius:20px; background:#fff; color:var(--chat-ink); box-shadow:0 22px 70px #14263d40,0 5px 18px #14263d1c; }
.sf-chat-panel[hidden],.sf-chat-launcher[hidden] { display:none; }
.sf-chat-header { display:flex; min-height:76px; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid var(--chat-line); background:#fff; }
.sf-chat-header .sf-chat-avatar { width:48px; height:48px; border:2px solid var(--chat-blue); }
.sf-chat-agent { min-width:0; flex:1; }
.sf-chat-name-row { display:flex; align-items:center; gap:10px; }
.sf-chat-agent strong { display:block; color:var(--chat-ink); font-size:17px; line-height:1.2; }
.sf-chat-agent span { display:block; margin-top:3px; color:#667085; font-size:12px; }
.sf-chat-agent .sf-chat-online { display:block; width:9px; height:9px; flex:0 0 9px; margin:0; border-radius:50%; background:#42c98a; box-shadow:0 0 9px #42c98a66; }
.sf-chat-close { display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center; padding:0; border:0; border-radius:50%; background:#f1f4f7; color:#344054; cursor:pointer; }
.sf-chat-close svg { display:block; width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; }
.sf-chat-messages { display:flex; flex:1; flex-direction:column; gap:12px; overflow-y:auto; padding:16px 14px; background:#fff; }
.sf-chat-message { max-width:86%; padding:10px 13px; border-radius:14px; color:var(--chat-ink); font-size:15px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.sf-chat-message.support { align-self:flex-start; border:1px solid #e8edf3; border-bottom-left-radius:4px; background:#f3f6f9; }
.sf-chat-message.user { align-self:flex-end; border-bottom-right-radius:4px; background:var(--chat-blue); color:#fff; }
.sf-invitation-retry { display:flex; width:min(100%,330px); align-self:center; flex-direction:column; gap:8px; padding:12px; border:1px solid var(--chat-line); border-radius:12px; background:#f7f9fb; }
.sf-invitation-retry input { min-height:42px; padding:9px 11px; border:1px solid var(--chat-blue); border-radius:9px; background:#fff; color:var(--chat-ink); font:15px 'Anek Telugu',sans-serif; }
.sf-invitation-retry button { min-height:40px; border:0; border-radius:9px; background:var(--chat-blue); color:#fff; font:700 15px 'Anek Telugu',sans-serif; cursor:pointer; }
.sf-invitation-retry button:disabled { opacity:.6; }
.sf-invitation-retry small { color:#667085; }
.sf-chat-compose { display:flex; gap:8px; padding:12px; border-top:1px solid var(--chat-line); background:#fff; }
.sf-chat-input { min-width:0; flex:1; min-height:44px; padding:10px 12px; border:1px solid #d8dee7; border-radius:12px; background:#fff; color:var(--chat-ink); font:15px 'Anek Telugu',sans-serif; }
.sf-chat-input:focus { border-color:var(--chat-blue); outline:2px solid #168bff2b; }
.sf-chat-send { display:grid; width:46px; min-width:46px; place-items:center; border:0; border-radius:12px; background:var(--chat-blue); color:#fff; cursor:pointer; }
.sf-chat-send svg { display:block; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.sf-chat-send:disabled { opacity:.55; cursor:wait; }
.sf-chat-error { min-height:0; margin:0; padding:0 12px; color:#b42318; font-size:12px; }
.sf-chat-error:not(:empty) { padding-bottom:10px; }
.sf-chat-badge { position:absolute; top:-4px; right:-4px; display:grid; width:20px; height:20px; place-items:center; border:2px solid #fff; border-radius:50%; background:var(--chat-blue); color:#fff; font-size:11px; font-weight:700; }
@media(max-width:480px) { .sf-chat-widget { right:12px; bottom:max(12px,env(safe-area-inset-bottom)); } .sf-chat-panel { right:-4px; bottom:74px; width:min(370px,calc(100vw - 24px)); height:min(540px,calc(100dvh - 105px)); } }
