.kb-chat{--kb-violet:#3d1e6e;--kb-violet-dim:#2e1654;--kb-violet-light:#c9a9ff;--kb-tint:#f8f4fd;--kb-text:#15131c;--kb-text-2:#5c5a68;--kb-line:#e6e5ea;position:fixed;right:clamp(16px,2vw,28px);bottom:calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));z-index:190;display:flex;flex-direction:column;align-items:flex-end;gap:14px;font-family:General Sans,system-ui,sans-serif}.kb-chat__btn{position:relative;width:64px;height:64px;border-radius:50%;border:0;cursor:pointer;background:var(--kb-violet);color:#fff;display:grid;place-items:center;box-shadow:0 6px 16px rgba(61,30,110,.22),0 1px 4px rgba(21,19,28,.12);transition:transform .18s cubic-bezier(.16,1,.3,1),background .16s}.kb-chat__btn:hover{background:var(--kb-violet-dim);transform:scale(1.05)}.kb-chat__btn:focus-visible{outline:2px solid var(--kb-violet);outline-offset:4px}.kb-chat__ic{position:absolute;width:28px;height:28px;transition:opacity .16s,transform .22s cubic-bezier(.16,1,.3,1)}.kb-chat__ic--chat{fill:#fff}.kb-chat__ic--close{opacity:0;transform:rotate(-90deg) scale(.6)}.kb-chat.is-open .kb-chat__ic--chat{opacity:0;transform:rotate(90deg) scale(.6)}.kb-chat.is-open .kb-chat__ic--close{opacity:1;transform:none}.kb-chat__panel{width:min(360px,calc(100vw - 32px));background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(21,19,28,.22),0 2px 8px rgba(21,19,28,.08);transform-origin:bottom right;animation:kbchat-in .22s cubic-bezier(.16,1,.3,1) both}.kb-chat__panel[hidden]{display:none}@keyframes kbchat-in{0%{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}.kb-chat__head{background:var(--kb-violet);color:#fff;padding:22px 22px 26px}.kb-chat__hi{margin:0;font-size:15px;color:var(--kb-violet-light)}.kb-chat__q{margin:4px 0 0;font-size:22px;font-weight:500;letter-spacing:-.015em;line-height:1.2}.kb-chat__list{list-style:none;margin:0;padding:8px}.kb-chat__list a,.kb-chat__live{display:flex;width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:12px;color:var(--kb-text);text-decoration:none;transition:background .14s}.kb-chat__list a:hover,.kb-chat__live:hover{background:var(--kb-tint)}.kb-chat__list a:focus-visible,.kb-chat__live:focus-visible{outline:2px solid var(--kb-violet);outline-offset:-2px}.kb-chat__list span{display:flex;flex-direction:column;gap:2px}.kb-chat__list b{font-size:16px;font-weight:500}.kb-chat__list small{font-size:13.5px;color:var(--kb-text-2)}.kb-chat__list svg{flex:none;width:18px;height:18px;color:var(--kb-violet)}.kb-chat__live{background:var(--kb-tint)!important}.kb-chat__live:hover{background:#efe7fa!important}.kb-chat__dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--kb-violet)}.kb-chat__badge{position:absolute;top:4px;right:4px;width:14px;height:14px;border-radius:50%;background:#c92638;border:2px solid #fff}.kb-chat__panel.is-chat{display:flex;flex-direction:column;height:min(560px,calc(100vh - 140px));height:min(560px,calc(100dvh - 140px))}.kb-chat__panel.is-chat[hidden]{display:none}.kb-chat__bar{display:flex;align-items:center;gap:10px;padding:14px 16px;background:var(--kb-violet);color:#fff}.kb-chat__back{width:36px;height:36px;border-radius:50%;border:0;background:hsla(0,0%,100%,.12);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}.kb-chat__back:hover{background:hsla(0,0%,100%,.2)}.kb-chat__back:focus-visible{outline:2px solid #fff;outline-offset:2px}.kb-chat__back svg{width:18px;height:18px}.kb-chat__who{margin:0;font-size:16px;font-weight:500}.kb-chat__when{margin:2px 0 0;font-size:12.5px;color:var(--kb-violet-light)}.kb-chat__thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#fff}.kb-chat__intro{margin:0;font-size:14px;line-height:1.5;color:var(--kb-text-2);background:var(--kb-tint);padding:12px 14px;border-radius:12px}.kb-msg{max-width:84%;display:flex;flex-direction:column;gap:3px}.kb-msg--visitor{align-self:flex-end;align-items:flex-end}.kb-msg--staff{align-self:flex-start}.kb-msg__b{padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.kb-msg--visitor .kb-msg__b{background:var(--kb-violet);color:#fff;border-bottom-right-radius:4px}.kb-msg--staff .kb-msg__b{background:var(--kb-tint);color:var(--kb-text);border-bottom-left-radius:4px}.kb-msg.is-pending{opacity:.6}.kb-msg__t{font-size:11.5px;color:var(--kb-text-2)}.kb-chat__ask{border:1px solid var(--kb-line);border-radius:12px;padding:10px 12px;display:grid;gap:8px}.kb-chat__ask label{font-size:13px;color:var(--kb-text-2)}.kb-chat__ask div{display:flex;gap:8px}.kb-chat__ask input,.kb-chat__who-fields input{flex:1;min-width:0;height:40px;padding:0 12px;border:1px solid var(--kb-line);border-radius:8px;font:inherit;font-size:14px;color:var(--kb-text);background:#fff}.kb-chat__ask button{height:40px;padding:0 14px;border:0;border-radius:9999px;background:var(--kb-violet);color:#fff;font:inherit;font-size:13.5px;cursor:pointer}.kb-chat__ask button:disabled{opacity:.5;cursor:default}.kb-chat__compose{border-top:1px solid var(--kb-line);padding:10px 14px 8px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;background:#fff}.kb-chat__row,.kb-chat__who-fields{display:flex;gap:8px}.kb-chat__row{align-items:flex-end}.kb-chat__row textarea{flex:1;min-width:0;width:100%;min-height:44px;max-height:120px;resize:none;padding:11px 12px;border:1px solid var(--kb-line);border-radius:8px;font:inherit;font-size:14.5px;line-height:1.4;color:var(--kb-text);background:#fff;field-sizing:content}.kb-chat__ask input:focus-visible,.kb-chat__row textarea:focus-visible,.kb-chat__who-fields input:focus-visible{outline:2px solid var(--kb-violet);outline-offset:0;border-color:transparent}.kb-chat__send{width:44px;height:44px;flex:none;border-radius:50%;border:0;background:var(--kb-violet);color:#fff;display:grid;place-items:center;cursor:pointer}.kb-chat__send:disabled{opacity:.45;cursor:default}.kb-chat__send svg{width:18px;height:18px}.kb-chat__send:focus-visible{outline:2px solid var(--kb-violet);outline-offset:3px}.kb-chat__err{margin:0;font-size:13px;color:#c92638}.kb-chat__legal{margin:0;font-size:11.5px;color:var(--kb-text-2)}.kb-chat__legal a{color:var(--kb-violet);text-decoration:underline}@media (max-width:640px){.kb-chat__who-fields{flex-direction:column}.kb-chat__btn{width:56px;height:56px}.kb-chat__ic{width:24px;height:24px}}@media (prefers-reduced-motion:reduce){.kb-chat__panel{animation:none}.kb-chat__btn,.kb-chat__ic{transition:none}}