/* Thanh liên hệ đáy mobile (inc/mbar.php). Desktop: ẩn hoàn toàn, không đổi gì. */
.hw-mbar{display:none}
@media (max-width:768px){
  .hw-mbar{display:flex;align-items:stretch;position:fixed;left:0;right:0;bottom:0;z-index:70;height:calc(56px + env(safe-area-inset-bottom,0px));padding:0 0 env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid var(--line2,#E4E6E8);box-shadow:0 -4px 16px rgba(26,28,30,.06);font-family:'Be Vietnam Pro',system-ui,sans-serif}
  .hw-mbar__left{display:flex;align-items:center;background:#fff;padding:0 4px}
  .hw-mbar__right{flex:1 1 auto;display:flex;align-items:stretch;background:var(--ink,#1A1C1E)}
  .hw-mbar__i{width:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:56px;padding:0;border:0;background:#fff;color:var(--ink,#1A1C1E);font:inherit;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
  .hw-mbar__i:active{background:var(--soft,#EEF0F1)}
  .hw-mbar__i:focus-visible,.hw-mbar__buy:focus-visible{outline:2px solid var(--gold-deep,#A8864A);outline-offset:-3px}
  .hw-mbar__ic{display:block;width:20px;height:20px}
  .hw-mbar__zl{width:auto;height:20px;line-height:20px;font-size:11px;font-weight:700;letter-spacing:-.02em}
  .hw-mbar__l{font-size:11px;font-weight:500;line-height:1.2;color:var(--text2,#4A4F55)}
  .hw-mbar__buy{width:100%;height:100%;border:0;background:var(--ink,#1A1C1E);color:#fff;font:inherit;font-size:15px;font-weight:700;letter-spacing:.06em;cursor:pointer;display:flex;align-items:center;justify-content:center}
  .hw-mbar:not(.hw-mbar--buy) .hw-mbar__left{width:100%;justify-content:space-around}
  .hw-mbar:not(.hw-mbar--buy) .hw-mbar__i{flex:1 1 0;width:auto}
  body.hw-mbar-on{padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
  /* Chat AI (#mtscb-b, #mtsc-b) là nút tròn nổi riêng phía trên bottom bar, KHÔNG ẩn */
  body.hw-mbar-on #hwStickyBuy,body.hw-mbar-on .hw-float{display:none!important}
  body.hw-mbar-on #mtscb-b,body.hw-mbar-on #mtsc-b{
    display:flex!important;
    position:fixed!important;
    right:16px!important;
    bottom:calc(56px + env(safe-area-inset-bottom,0px) + 16px)!important;
    z-index:75!important;
  }
  /* Bong bóng nhắc chat neo phía trên nút chat nổi */
  body.hw-mbar-on .hw-bc{bottom:calc(56px + env(safe-area-inset-bottom,0px) + 84px)!important}
  /* Ẩn thanh khi menu mobile, quick-view, khung chat mở. */
  body.hw-lock .hw-mbar,html.hw-qv-lock .hw-mbar,body:has(#mtscb-w.on) .hw-mbar,body:has(#mtsc-w.on) .hw-mbar{display:none}
  body.hw-lock.hw-mbar-on,html.hw-qv-lock body.hw-mbar-on{padding-bottom:0}
}
@media (prefers-reduced-motion:reduce){.hw-mbar *{transition:none}}

/* 1.6.51: bong bong chat gon sat mep phai o trang SP, khong che bang thong so. */
@media (max-width:768px){body.single-product .hw-bc{right:8px;width:min(232px,calc(100vw - 24px));padding:10px 10px 8px;font-size:13px;border-radius:14px 14px 4px 14px}body.single-product .hw-bc__p{display:none}body.single-product .hw-bc__chip,body.single-product .hw-bc__go{padding:4px 8px;font-size:12px;min-height:28px}}

@media (max-width:1023px){.hw-mbar__ic--zalo{width:24px;height:24px;border-radius:6px}.hw-mbar__i{min-height:44px}}

