/* Khung chat "Hỏi eBrand" (bot.js). Dùng tông màu xanh.css, độc lập để gắn được cả trang tĩnh ai-skills. */
.ebot-launcher,.ebot-panel{--eb-blue:#0B5CF0;--eb-navy:#061A3D;--eb-ink:#0B1B33;--eb-line:#DCE6F5;--eb-soft:#F3F7FD;font-family:"Be Vietnam Pro",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-sizing:border-box}
.ebot-panel *,.ebot-launcher *{box-sizing:border-box}
.ebot-panel[hidden]{display:none!important}
/* Trang tĩnh ai-skills có CSS chung section{padding:72px 0 24px}: ép về 0 để khung chat không bị khoảng trắng phía trên. */
.ebot-panel,.ebot-launcher{margin:0}
section.ebot-panel{padding:0}
.ebot-launcher{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;align-items:center;gap:8px;padding:6px 16px 6px 6px;border:0;border-radius:999px;background:var(--eb-navy);color:#fff;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 10px 30px rgba(6,26,61,.28);transition:transform .15s}
.ebot-launcher:hover{transform:translateY(-2px)}
.ebot-launcher:focus-visible{outline:3px solid #FF6A00;outline-offset:3px}
.ebot-launcher img{width:40px;height:40px;border-radius:50%;background:#fff;display:block}
.ebot-dot{position:absolute;left:38px;top:8px;width:10px;height:10px;border-radius:50%;background:#22C55E;border:2px solid var(--eb-navy)}
.ebot-launcher.is-open .ebot-dot{display:none}
/* Khung mở nằm trên thông báo cookie (z 9999) để khách gõ được ngay; nút tròn vẫn nằm dưới thông báo. */
.ebot-panel{position:fixed;right:20px;bottom:84px;z-index:10000;width:380px;max-width:calc(100vw - 32px);height:min(600px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;color:var(--eb-ink);border:1px solid var(--eb-line);border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(6,26,61,.25)}
.ebot-head{display:flex;align-items:center;gap:10px;padding:12px 10px 12px 14px;background:linear-gradient(135deg,#061A3D,#0A2A5E);color:#fff}
.ebot-head img{width:40px;height:40px;border-radius:50%;background:#fff;flex:none}
.ebot-id{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ebot-id strong{font-size:15px}
.ebot-id span{font-size:12px;opacity:.8}
.ebot-pill{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:6px;background:var(--eb-blue);font-size:11px;vertical-align:1px;opacity:1!important}
.ebot-x{flex:none;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.ebot-x:hover{background:rgba(255,255,255,.2)}
.ebot-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--eb-soft);overscroll-behavior:contain}
.ebot-b{max-width:88%;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.ebot-b.bot{align-self:flex-start;background:#fff;border:1px solid var(--eb-line);border-bottom-left-radius:4px}
.ebot-b.user{align-self:flex-end;background:var(--eb-blue);color:#fff;border-bottom-right-radius:4px}
.ebot-b.ebot-small{font-size:12px;color:#4A5B78;background:transparent;border:0;padding:0 4px}
.ebot-typing{letter-spacing:3px;color:#7A8AA6;animation:ebot-pulse 1.2s infinite}
@keyframes ebot-pulse{50%{opacity:.4}}
.ebot-b.ebot-err{background:#FFF4F2;border-color:#F5C9C0;color:#9A2A14}
.ebot-retry{align-self:flex-start;padding:6px 12px;border:1px solid var(--eb-blue);border-radius:999px;background:#fff;color:var(--eb-blue);font:inherit;font-size:13px;cursor:pointer}
.ebot-src{align-self:flex-start;max-width:88%;display:flex;flex-wrap:wrap;gap:6px;font-size:12px}
.ebot-src span{width:100%;color:#4A5B78}
.ebot-src a{padding:4px 10px;border-radius:999px;background:#fff;border:1px solid var(--eb-line);color:var(--eb-blue);text-decoration:none}
.ebot-src a:hover{border-color:var(--eb-blue)}
.ebot-sug{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;background:#fff;border-top:1px solid var(--eb-line);scrollbar-width:none}
.ebot-sug::-webkit-scrollbar{display:none}
.ebot-sug button{flex:none;padding:6px 12px;border:1px solid var(--eb-line);border-radius:999px;background:#fff;color:var(--eb-ink);font:inherit;font-size:13px;cursor:pointer}
.ebot-sug button:hover{border-color:var(--eb-blue);color:var(--eb-blue)}
.ebot-foot{padding:8px 12px 10px;background:#fff}
.ebot-zalo{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;margin-bottom:8px;border-radius:10px;background:#FFEBDC;color:#B44800;font-size:13px;font-weight:600;text-decoration:none}
.ebot-form{display:flex;gap:8px}
.ebot-form input{flex:1;min-width:0;height:42px;padding:0 12px;border:1px solid var(--eb-line);border-radius:12px;font:inherit;font-size:16px;color:var(--eb-ink);background:#fff}
.ebot-form input:focus{outline:2px solid var(--eb-blue);outline-offset:-1px;border-color:transparent}
.ebot-form button{flex:none;width:42px;height:42px;border:0;border-radius:12px;background:var(--eb-blue);color:#fff;cursor:pointer;display:grid;place-items:center}
.ebot-form button:disabled,.ebot-sug button:disabled{opacity:.5;cursor:default}
.ebot-form svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ebot-note{margin:6px 2px 0;font-size:11px;color:#6B7A93;line-height:1.4}
@media (max-width:760px){
  .ebot-launcher{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:5px;}
  .ebot-launcher .ebot-label{display:none}
  body:has(.mbar) .ebot-launcher{bottom:calc(80px + env(safe-area-inset-bottom))}
  .ebot-panel{right:8px;left:8px;width:auto;max-width:none;bottom:calc(8px + env(safe-area-inset-bottom));height:calc(100vh - 16px);height:calc(100dvh - 16px - env(safe-area-inset-bottom));border-radius:16px}
  .ebot-launcher.is-open{display:none}
}
@media (prefers-reduced-motion:reduce){.ebot-launcher,.ebot-typing{transition:none;animation:none}}
