.hw-bc{position:fixed;right:16px;bottom:96px;z-index:9989;width:min(300px,calc(100vw - 32px));background:#fff;color:#1a1c1e;border-radius:16px 16px 4px 16px;box-shadow:0 14px 40px rgba(0,0,0,.22);padding:14px 14px 12px;font-size:14px;line-height:1.4;opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .25s,transform .25s}
.hw-bc.is-on{opacity:1;transform:none;pointer-events:auto}
.hw-bc__x{position:absolute;right:6px;top:4px;width:28px;height:28px;border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#6b7280}
.hw-bc__t{margin:0 24px 2px 0;font-weight:700}
.hw-bc__p{margin:0 0 8px;color:#4b5563;font-size:13px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hw-bc__chips{display:flex;flex-wrap:wrap;gap:6px}
.hw-bc__chip,.hw-bc__go{border:1px solid #1a1c1e;background:#fff;color:#1a1c1e;border-radius:999px;padding:6px 10px;font-size:13px;cursor:pointer;min-height:32px}
.hw-bc__chip:hover,.hw-bc__go{background:#1a1c1e;color:#fff}
.hw-bc__chip--lead{border-color:#b8860b;color:#8a6400}
.hw-bc__chip:focus-visible,.hw-bc__go:focus-visible,.hw-bc__x:focus-visible{outline:2px solid #1a1c1e;outline-offset:2px}
@keyframes hwBcBounce{0%,100%{transform:translateY(0)}20%{transform:translateY(-12px)}40%{transform:translateY(0)}60%{transform:translateY(-6px)}80%{transform:translateY(0)}}
#mtscb-b.hw-bc-bounce,#mtsc-b.hw-bc-bounce{animation:hwBcBounce 1.2s ease 2}
@media (max-width:767px){.hw-bc{right:12px;width:min(280px,calc(100vw - 24px))}.hw-bc__chips{max-height:120px;overflow:auto}}
@media (prefers-reduced-motion:reduce){.hw-bc{transition:none;transform:none}#mtscb-b.hw-bc-bounce,#mtsc-b.hw-bc-bounce{animation:none}}

/* Phong to khung chat tren desktop (nut .hw-chat-maxbtn do hw-bot-companion.js chen vao header widget). */
.hw-chat-maxbtn{background:none;border:0;color:#fff;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;opacity:.85;padding:0}
.hw-chat-maxbtn:hover{opacity:1;background:rgba(255,255,255,.14)}
.hw-chat-maxbtn:focus-visible{outline:2px solid #fff;outline-offset:1px;opacity:1}
@media (min-width:768px){
  #mtscb-w{transition:width .22s ease,height .22s ease}
  #mtscb-w.hw-chat-max{width:min(920px,calc(100vw - 48px))!important;height:calc(100vh - 120px)!important;max-height:calc(100vh - 120px)}
  #mtscb-w.hw-chat-max #mtscb-l{padding:18px 24px;gap:12px;font-size:16px}
  #mtscb-w.hw-chat-max .mtscb-m{max-width:70%}
}
@media (max-width:767px){.hw-chat-maxbtn{display:none}}
@media (prefers-reduced-motion:reduce){#mtscb-w{transition:none}}