.chatbot-widget{--o:#f26a1b;--o-d:#d9560c;--o-l:#fff1e7;--ink:#2b2320;--line:#f3d9c7;
  position:fixed;right:20px;bottom:20px;z-index:99999;font-family:"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}
.chatbot-widget *{box-sizing:border-box}
.chatbot-toggle{display:flex;align-items:center;gap:10px;border:0;cursor:pointer;background:var(--o);color:#fff;
  padding:6px 18px 6px 6px;border-radius:40px;box-shadow:0 8px 24px rgba(242,106,27,.4);font:600 15px inherit;font-family:inherit}
.chatbot-toggle:hover{background:var(--o-d)}
.chatbot-toggle-avatar,.chatbot-header-avatar{position:relative;display:block;width:44px;height:44px;border-radius:50%;background:#fff;flex:none}
.chatbot-toggle-avatar img,.chatbot-header-avatar img{width:100%;height:100%;object-fit:contain;padding:6px;border-radius:50%}
.chatbot-fallback{display:grid;place-items:center;width:100%;height:100%;font:700 13px Arial,sans-serif;color:var(--o)}
.chatbot-online-dot{position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#2ecc71;border:2px solid #fff}
.chatbot-bubble{position:absolute;right:6px;bottom:72px;background:#fff;border:1px solid var(--line);border-radius:14px 14px 4px 14px;
  padding:9px 12px;font-size:14px;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.12);display:flex;gap:8px;align-items:center;white-space:nowrap}
.chatbot-bubble button{border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:#999}
.chatbot-panel{position:absolute;right:0;bottom:70px;width:360px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 110px);
  background:#fff;border-radius:16px;overflow:hidden;display:none;flex-direction:column;box-shadow:0 16px 48px rgba(0,0,0,.22);border:1px solid var(--line)}
.chatbot-panel.open{display:flex;animation:cbIn .22s ease-out}
@keyframes cbIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.chatbot-panel-header{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--o);color:#fff}
.chatbot-header-id{flex:1;min-width:0}
.chatbot-header-id h4{margin:0;font-size:16px;color:#fff}
.chatbot-header-id p{margin:2px 0 0;font-size:12px;opacity:.92}
.chatbot-close{border:0;background:rgba(255,255,255,.2);color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.chatbot-close:hover{background:rgba(255,255,255,.35)}
.chatbot-body{flex:1;overflow-y:auto;padding:16px;background:#fffaf6;display:flex;flex-direction:column;gap:10px}
.cb-msg{max-width:84%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.45;animation:cbIn .2s ease-out;word-wrap:break-word}
.cb-bot{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;align-self:flex-start}
.cb-user{background:var(--o);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.cb-opts{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.cb-opts button,.cb-opts a{border:1.5px solid var(--o);background:#fff;color:var(--o-d);padding:8px 14px;border-radius:20px;font:600 13px inherit;font-family:inherit;cursor:pointer;text-decoration:none;display:inline-block}
.cb-opts button:hover,.cb-opts a:hover{background:var(--o);color:#fff}
.cb-opts a.cb-call{background:var(--o);color:#fff}
.cb-opts a.cb-call:hover{background:var(--o-d)}
.cb-typing{display:flex;gap:4px;padding:12px 14px}
.cb-typing i{width:7px;height:7px;border-radius:50%;background:var(--o);opacity:.4;animation:cbDot 1s infinite}
.cb-typing i:nth-child(2){animation-delay:.15s}.cb-typing i:nth-child(3){animation-delay:.3s}
@keyframes cbDot{50%{opacity:1;transform:translateY(-3px)}}
.chatbot-footer{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:#fff}
.chatbot-footer input{flex:1;border:1.5px solid var(--line);border-radius:22px;padding:10px 14px;font:14px inherit;font-family:inherit;outline:none}
.chatbot-footer input:focus{border-color:var(--o)}
.chatbot-footer input:disabled{background:#faf5f1}
.chatbot-footer button{width:42px;height:42px;border:0;border-radius:50%;background:var(--o);color:#fff;cursor:pointer;display:grid;place-items:center}
.chatbot-footer button:disabled{background:#e9cdb9;cursor:not-allowed}
.chatbot-widget button:focus-visible,.chatbot-widget a:focus-visible,.chatbot-footer input:focus-visible{outline:3px solid #ffb98a;outline-offset:2px}
@media(max-width:480px){.chatbot-widget{right:12px;bottom:12px}.chatbot-toggle-name{display:none}.chatbot-toggle{padding:6px}}
@media(prefers-reduced-motion:reduce){.chatbot-widget *{animation:none!important}}
