/* Mobile header, ticker and popups (Stage 4). Loaded on every page; every rule sits inside the max-width:767px query,
   so 768px and wider is untouched. No server-side device detection: the same HTML goes to every device. */
.hv-m-search-toggle{display:none}

@media (max-width:767px){
  /* ── header row: menu, logo, account, basket at 56px (was 44px) ── */
  #masthead .main-header{height:56px}
  #masthead .site-branding{height:56px;align-items:center}
  #masthead .menu-toggle{top:13px}
  #masthead .shoptimizer-myaccount{height:56px}
  #masthead .site-header-cart{top:14px}

  /* ── ticker: slimmer on home/category, gone on product pages ── */
  .header-widget-region .hv-el8k-strip,
  .header-widget-region .hv-el8k-strip .hv-track{height:32px!important}
  .header-widget-region .hv-el8k-strip .hv-item{line-height:32px!important;font-size:12px!important;padding:0 18px!important;gap:8px!important}
  .header-widget-region .hv-el8k-strip .hv-item strong{line-height:18px!important;font-size:12px!important}
  .header-widget-region .hv-el8k-strip .hv-item img{width:24px!important;height:24px!important}
  .single-product .header-widget-region{display:none!important}

  /* ── product pages: search bar collapses into an icon (only once the early inline script has marked <html>) ── */
  html.hv-m-hdr .single-product #masthead .main-header{margin-bottom:0}
  html.hv-m-hdr .single-product #masthead .site-search{display:none}
  html.hv-m-hdr .single-product #masthead .menu-toggle{width:34px}
  html.hv-m-hdr .single-product #masthead .hv-m-search-toggle{display:flex;align-items:center;justify-content:center;position:absolute;left:50px;top:6px;width:44px;height:44px;
    padding:0;margin:0;border:0;border-radius:50%;background:none;color:#111;cursor:pointer;box-shadow:none;min-height:0;-webkit-tap-highlight-color:transparent}
  html.hv-m-hdr .single-product #masthead .hv-m-search-toggle:focus{outline:0}
  html.hv-m-hdr .single-product #masthead .hv-m-search-toggle:focus-visible{outline:2px solid #098cde;outline-offset:-2px}

  /* search overlay: the theme's own search box, full width at the top, over a dimmed page */
  html.hv-m-search-open #masthead{z-index:30}
  html.hv-m-search-open .single-product #masthead .site-search{display:block;position:fixed;inset:0;z-index:20;height:auto;margin:0;padding:0;background:rgba(17,17,17,.5)}
  html.hv-m-search-open .single-product #masthead .site-search > .widget{background:#fff;margin:0;padding:8px 60px 8px 12px;box-shadow:0 2px 14px rgba(0,0,0,.14)}
  html.hv-m-search-open .single-product #masthead .site-search .hv-sr{max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .hv-m-search-close{display:none}
  html.hv-m-search-open .single-product #masthead .hv-m-search-close{display:flex;align-items:center;justify-content:center;position:absolute;top:6px;right:8px;width:44px;height:44px;
    padding:0;margin:0;border:0;border-radius:50%;background:none;color:#111;cursor:pointer;box-shadow:none;min-height:0;-webkit-tap-highlight-color:transparent}

  /* ── points popup (WPC Smart Points "floating status"): the plugin has no per-page setting, so hide it on product pages ── */
  html.hv-m-hdr .single-product .wpcpr-floating-status{display:none!important}
}
