/* Chat do site */
.chat{position:fixed;right:18px;bottom:72px;z-index:1500;font-family:inherit}
.chat__btn{position:relative;width:56px;height:56px;border-radius:50%;border:0;background:var(--brand,#feca00);color:var(--brand-ink,#111);display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28);transition:transform .15s}
.chat__btn:hover{transform:scale(1.06)}.chat.is-open .chat__btn{display:none}
.chat__badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e11d48;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;line-height:1}
.chat__panel{position:absolute;right:0;bottom:0;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 100px);background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(15,23,42,.35);display:flex;flex-direction:column;overflow:hidden;animation:chat-in .18s ease-out}
.chat__panel[hidden]{display:none}
@keyframes chat-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.chat__head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--brand,#feca00);color:var(--brand-ink,#111)}
.chat__head b{display:block;font-size:16px}.chat__head small{display:block;font-size:12px;opacity:.85;margin-top:1px}
.chat__avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.35);flex:none}
.chat__dot{margin-left:auto;margin-right:26px;width:10px;height:10px;border-radius:50%;background:#9ca3af;flex:none;box-shadow:0 0 0 3px rgba(255,255,255,.4)}
.chat__dot.is-on{background:#16a34a}.chat__dot.is-bot{background:#f59e0b}
.chat__x{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.35);color:inherit;font-size:22px;line-height:1;cursor:pointer}
.chat__msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#f6f7f9;scroll-behavior:smooth}
.chat__hello{margin:0;padding:12px 16px;font-size:14px;line-height:1.5;color:#3e4c59;background:#fff;border-top:1px solid #eceef1}
.chat__hello[hidden]{display:none}
.cb{max-width:84%;padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.45;word-wrap:break-word}
.cb p{margin:0;white-space:pre-wrap}.cb small{display:block;margin-top:3px;font-size:11px;opacity:.65}
.cb--me{align-self:flex-end;background:var(--brand,#feca00);color:var(--brand-ink,#111);border-bottom-right-radius:4px}
.cb--team{align-self:flex-start;background:#fff;border:1px solid #e3e6ea;border-bottom-left-radius:4px}
.cb--bot{align-self:flex-start;background:#eef6ff;border:1px solid #cfe3fb;border-bottom-left-radius:4px}
.cb.is-sending{opacity:.55}
.chat__start{display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px;background:#fff;border-top:1px solid #eceef1}
.chat__start[hidden]{display:none}
.chat__known{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chat__start.is-known .chat__known{display:none}
.chat__start input,.chat__start textarea,.chat__form textarea{width:100%;border:1.5px solid #e3e6ea;border-radius:12px;padding:9px 12px;font:inherit;font-size:14px;resize:none;background:#fff;box-sizing:border-box}
.chat__start input:focus,.chat__start textarea:focus,.chat__form textarea:focus{outline:0;border-color:var(--brand,#feca00);box-shadow:0 0 0 3px var(--brand-soft,#fff3b8)}
.chat__send{border:0;border-radius:999px;padding:11px;background:var(--brand,#feca00);color:var(--brand-ink,#111);font-weight:700;font-size:14.5px;cursor:pointer}
.chat__send:disabled{opacity:.6}
.chat__form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid #eceef1}
.chat__form[hidden]{display:none}
.chat__form textarea{max-height:110px;min-height:40px}
.chat__go{flex:none;width:42px;height:42px;border-radius:50%;border:0;background:var(--brand,#feca00);color:var(--brand-ink,#111);display:grid;place-items:center;cursor:pointer}
.chat__closed{margin:0;padding:8px 14px;font-size:12.5px;color:#6b7686;background:#fff8e1;text-align:center}
.chat__closed[hidden]{display:none}
.chat__err{margin:0;padding:0 14px 8px;font-size:12.5px;color:#b91c1c;background:#fff}.chat__err:empty{display:none}
.hw-ghost{right:96px!important}
@media (max-width:560px){.chat{right:12px;bottom:66px}.chat__panel{position:fixed;right:0;left:0;bottom:0;width:100%;max-width:none;height:min(86vh,600px);border-radius:20px 20px 0 0}}
