.chat-widget{position:fixed;right:22px;bottom:22px;z-index:80;font-family:inherit}
.chat-fab{position:relative;width:54px;height:54px;border:0;border-radius:50%;background:var(--teal-500,#14b8a6);color:#04211f;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 30px rgba(15,23,42,.22)}
.chat-fab svg{width:24px;height:24px}.chat-fab-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;border:2px solid #fff;box-sizing:content-box}
.chat-panel{position:absolute;right:0;bottom:66px;width:380px;height:560px;max-height:calc(100vh - 100px);background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.25);display:flex;flex-direction:column;overflow:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--teal-800,#0a5b56);background:linear-gradient(135deg,var(--teal-700,#0c746d),var(--teal-800,#0a5b56));color:#fff}
.chat-head strong{display:block;font-size:14px}.chat-status{font-size:11px;color:rgba(255,255,255,.72)}.chat-close{background:transparent;border:0;color:rgba(255,255,255,.82);cursor:pointer;padding:4px}.chat-close svg{width:18px;height:18px}
.chat-body{flex:1;overflow:auto;padding:14px;background:#f8fafc}.chat-welcome{padding:20px 8px;text-align:center;color:#64748b;font-size:13px;line-height:1.7}.chat-start{margin-top:14px;border:0;border-radius:10px;background:#14b8a6;color:#04211f;font-weight:800;padding:10px 18px;cursor:pointer}
.chat-messages{display:flex;flex-direction:column;gap:8px}.chat-msg{max-width:82%;padding:9px 11px;border-radius:12px;font-size:13px;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.chat-msg.is-staff{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;color:#0b1220}.chat-msg.is-visitor{align-self:flex-end;background:#14b8a6;color:#04211f}.chat-msg.is-system{align-self:center;background:#e2e8f0;color:#64748b;font-size:11px}
.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e2e8f0;background:#fff;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.chat-form input{flex:1;height:38px;border:1px solid #e2e8f0;border-radius:10px;padding:0 10px;font-size:13px;outline:none}.chat-form button{width:38px;height:38px;border:0;border-radius:10px;background:#14b8a6;color:#04211f;display:grid;place-items:center;cursor:pointer}
@media(max-width:560px){.chat-widget{right:14px;bottom:14px}.chat-panel{position:fixed;inset:0;width:auto;height:auto;max-height:none;border-radius:0;bottom:0}.chat-fab{width:50px;height:50px}.chat-form input{font-size:16px;height:42px}.chat-form button{width:42px;height:42px}}
