.bs-chat-launch{position:fixed;left:24px;bottom:24px;z-index:2147483646;pointer-events:auto;border:0;border-radius:999px;padding:14px 20px;background:#21204b;color:#fff;box-shadow:0 12px 34px #18183c38;font:600 14px/1.2 Inter,Arial,sans-serif;cursor:pointer;display:flex;gap:10px;align-items:center}
.bs-chat-launch:hover,.bs-chat-launch:focus-visible{background:#39316e;outline:3px solid #af9ef9;outline-offset:3px}
.bs-chat-launch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.bs-chat-panel{position:fixed;left:24px;bottom:82px;z-index:2147483647;pointer-events:auto;box-sizing:border-box;width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 112px));height:min(600px,calc(100dvh - 112px));display:flex;flex-direction:column;background:#fff;color:#24243b;border:1px solid #e5e2f1;border-radius:18px;box-shadow:0 25px 70px #15133c40;font:14px/1.45 Inter,Arial,sans-serif;overflow:hidden}
.bs-chat-panel[hidden]{display:none}
.bs-chat-head{flex:none;padding:16px 18px;background:#29234f;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}
.bs-chat-head strong{font-size:16px;display:block}.bs-chat-head span{font-size:12px;color:#e1dcef}
.bs-chat-close{border:0;background:transparent;color:white;font-size:25px;line-height:1;cursor:pointer;padding:4px 8px;border-radius:6px}
.bs-chat-close:hover,.bs-chat-close:focus-visible{background:#ffffff25;outline:2px solid #fff}
.bs-chat-body{padding:18px;display:flex;flex-direction:column;gap:13px;overflow-y:auto;flex:1;min-height:0;overscroll-behavior:contain}
.bs-chat-bubble{max-width:91%;padding:11px 13px;border-radius:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.bs-chat-bubble.assistant{align-self:flex-start;background:#f1eff8;color:#282342;border-bottom-left-radius:4px}
.bs-chat-bubble.visitor{align-self:flex-end;background:#423874;color:#fff;border-bottom-right-radius:4px}
.bs-chat-sources{align-self:flex-start;display:flex;flex-wrap:wrap;gap:6px;margin-top:-7px}
.bs-chat-sources a{border:1px solid #d8d1ef;border-radius:999px;padding:4px 9px;color:#4c3c81;text-decoration:none;font-size:11px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bs-chat-sources a:hover{text-decoration:underline}
.bs-chat-typing{align-self:flex-start;display:flex;align-items:center;gap:5px;min-height:40px;padding:12px 15px;border-radius:13px 13px 13px 4px;background:#f1eff8}
.bs-chat-typing span{width:7px;height:7px;border-radius:50%;background:#6f5c9b;animation:bs-chat-dot 1.2s infinite ease-in-out}
.bs-chat-typing span:nth-child(2){animation-delay:.16s}.bs-chat-typing span:nth-child(3){animation-delay:.32s}
@keyframes bs-chat-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}
.bs-chat-foot{flex:none;border-top:1px solid #eeeaf4;padding:11px 14px 12px;background:#fff}
.bs-chat-privacy{display:block;width:max-content;margin:8px 0 0 auto;color:#6a5b88;text-decoration:underline;font-size:11px;line-height:1.4}
.bs-chat-privacy:hover{color:#3b296f}
.bs-chat-form{display:flex;gap:7px;align-items:flex-end}
.bs-chat-form textarea{box-sizing:border-box;resize:none;min-width:0;min-height:44px;max-height:105px;flex:1;border:1px solid #cfc9e2;border-radius:10px;padding:10px 11px;font:inherit;color:#25203c;background:white}
.bs-chat-form textarea:focus{outline:2px solid #8068bc;outline-offset:1px}
.bs-chat-send{min-width:44px;height:43px;border:0;border-radius:10px;background:#493387;color:#fff;font:700 18px Inter,Arial,sans-serif;cursor:pointer}
.bs-chat-send:hover{background:#352364}.bs-chat-send:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:600px){.bs-chat-launch{left:14px;bottom:calc(14px + env(safe-area-inset-bottom))}.bs-chat-panel{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0}.bs-chat-head{padding:calc(14px + env(safe-area-inset-top)) 16px 14px}.bs-chat-body{padding:16px}.bs-chat-foot{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.bs-chat-form textarea{font-size:16px}}
@media(max-height:500px) and (min-width:601px){.bs-chat-panel{bottom:10px;height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:no-preference){.bs-chat-panel{animation:bs-chat-in .2s ease-out}@keyframes bs-chat-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.bs-chat-typing span{animation:none;opacity:.75}}
