/* ═══════════════════════════════════════════
   MediSupply Canada Header  v1.7
═══════════════════════════════════════════ */
:root {
    --sbh-primary:   #2D9CDB;
    --sbh-secondary: #3F444A;
    --sbh-accent:    #00A6A6;
    --sbh-text:      #6B7280;
    --sbh-topbar-h:  36px;
    --sbh-mainbar-h: 68px;
    --sbh-navbar-h:  44px;
    --sbh-ease:      0.22s ease;
    --sbh-radius:    6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sbh-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ── WRAPPER ── */
#sbh-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 99990; width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px; line-height: 1.4;
    transition: box-shadow var(--sbh-ease), transform var(--sbh-ease);
}
#sbh-header.sbh-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.12); }
#sbh-header.sbh-has-adminbar { top: 32px; }
@media screen and (max-width:782px) { #sbh-header.sbh-has-adminbar { top: 46px; } }

#sbh-spacer { height: calc(var(--sbh-topbar-h) + var(--sbh-mainbar-h) + var(--sbh-navbar-h)); }

/* ── TOP BAR ── */
.sbh-topbar {
    background: var(--sbh-secondary);
    height: var(--sbh-topbar-h); font-size: 12px;
    overflow: hidden;
    transition: height var(--sbh-ease), opacity var(--sbh-ease);
}
.sbh-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
.sbh-topbar-left  { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.8); }
.sbh-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sbh-promo { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sbh-phone { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.8); text-decoration: none; white-space: nowrap; }
.sbh-phone:hover { color: #fff; }
.sbh-topbar-right a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 12px; white-space: nowrap; transition: color var(--sbh-ease); }
.sbh-topbar-right a:hover { color: #fff; }
.sbh-sep    { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,.22); }
.sbh-social { display: flex; gap: 8px; align-items: center; }
.sbh-social a { color: rgba(255,255,255,.55); display: flex; align-items: center; transition: color var(--sbh-ease); }
.sbh-social a:hover { color: #fff; }
#sbh-header.sbh-shrink .sbh-topbar { height: 0; opacity: 0; pointer-events: none; }

/* ── MAIN BAR ── */
.sbh-mainbar { background: #fff; border-bottom: 1px solid rgba(0,0,0,.07); height: var(--sbh-mainbar-h); transition: height var(--sbh-ease); }
.sbh-mainbar-inner { display: flex; align-items: center; gap: 14px; height: 100%; }
#sbh-header.sbh-shrink .sbh-mainbar { height: 56px; }

.sbh-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.sbh-logo-mark { width: 34px; height: 34px; background: var(--sbh-primary); border-radius: var(--sbh-radius); display: flex; align-items: center; justify-content: center; color: #fff; }
.sbh-logo-text { font-size: 18px; font-weight: 700; color: var(--sbh-secondary); letter-spacing: -.3px; }
.sbh-logo-img  { max-height: 48px; width: auto; display: block; }

.sbh-search { flex: 1; max-width: 420px; display: flex; align-items: center; border: 1.5px solid var(--sbh-primary); border-radius: var(--sbh-radius); overflow: hidden; height: 40px; transition: box-shadow var(--sbh-ease); }
.sbh-search:focus-within { box-shadow: 0 0 0 3px rgba(45,156,219,.15); }
.sbh-search-input { border: none; outline: none; padding: 0 12px; font-size: 13px; flex: 1; color: #333; background: #f5f8fc; height: 100%; }
.sbh-search-btn   { background: var(--sbh-primary); border: none; color: #fff; padding: 0 16px; height: 100%; cursor: pointer; display: flex; align-items: center; flex-shrink: 0; transition: background var(--sbh-ease); }
.sbh-search-btn:hover { background: #1a87c7; }

.sbh-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.sbh-action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--sbh-radius); text-decoration: none; color: var(--sbh-text); font-size: 10px; transition: color var(--sbh-ease), background var(--sbh-ease); white-space: nowrap; position: relative; border: none; background: transparent; cursor: pointer; }
.sbh-action-btn:hover { color: var(--sbh-primary); background: rgba(45,156,219,.07); }
.sbh-cart-count { position: absolute; top: 2px; right: 4px; background: var(--sbh-accent); color: #fff; font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; font-weight: 700; line-height: 1; }

/* Hamburger — desktop hidden */
.sbh-menu-toggle { display: none; }

/* ══════════════════════════════
   DESKTOP NAV BAR
══════════════════════════════ */
.sbh-navbar { background: var(--sbh-primary); height: var(--sbh-navbar-h); position: relative; z-index: 200; overflow: visible; }

/* Hide drawer-only pieces on desktop */
.sbh-drawer-top,
.sbh-drawer-search,
.sbh-drawer-ctas { display: none; }

.sbh-drawer-nav { height: 100%; }
.sbh-drawer-nav > .sbh-nav-list {
    display: flex; align-items: center; height: 100%;
    list-style: none; padding: 0 24px; margin: 0 auto;
    max-width: 1320px;
}

/* Nav item */
.sbh-nav-item { position: relative; height: 100%; display: flex; align-items: center; }

/* Nav link — desktop */
.sbh-nav-link {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.93); text-decoration: none; font-size: 13.5px;
    padding: 0 15px; height: 100%;
    transition: background var(--sbh-ease), color var(--sbh-ease);
    white-space: nowrap;
}
.sbh-nav-link:hover,
.sbh-nav-item.sbh-active > .sbh-nav-link { background: rgba(255,255,255,.18); color: #fff; }

/* Desktop chevron inside link */
.sbh-chevron { display: inline-flex; align-items: center; opacity: .7; transition: transform var(--sbh-ease); }
.sbh-has-dropdown:hover > .sbh-nav-link .sbh-chevron { transform: rotate(180deg); }

/* ══════════════════════════════
   DESKTOP DROPDOWN
══════════════════════════════ */
.sbh-dropdown {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-top: 3px solid var(--sbh-primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
    z-index: 99999; padding: 6px 0;
    list-style: none; margin: 0;
}
@media (min-width: 1025px) {
    .sbh-has-dropdown:hover > .sbh-dropdown { display: block; }
}
/* Dropdown items — dark text always */
.sbh-dropdown .sbh-nav-item { height: auto; display: block; width: 100%; position: static; }
.sbh-dropdown .sbh-nav-link {
    color: #3F444A !important;
    background: transparent !important;
    padding: 10px 18px !important;
    height: auto !important; font-size: 14px !important;
    border-left: 3px solid transparent !important;
    white-space: normal !important;
}
.sbh-dropdown .sbh-nav-link:hover { background: #eef6fd !important; color: var(--sbh-primary) !important; border-left-color: var(--sbh-primary) !important; }
.sbh-dropdown .sbh-nav-item.sbh-active > .sbh-nav-link { color: var(--sbh-primary) !important; border-left-color: var(--sbh-primary) !important; background: #eef6fd !important; }
/* Hide chevron inside dropdown items */
.sbh-dropdown .sbh-chevron { display: none; }

/* Sticky slide */
#sbh-header.sbh-slide-hidden  { transform: translateY(-100%); }
#sbh-header.sbh-slide-visible { transform: translateY(0); }

/* Overlay */
.sbh-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 99985; }
.sbh-overlay.sbh-open { display: block; }

/* ══════════════════════════════════════════
   MOBILE DRAWER  ≤ 1024px
   Structure: Top | Search | Nav | CTAs
══════════════════════════════════════════ */
@media (max-width: 1024px) {

    #sbh-spacer { height: calc(var(--sbh-topbar-h) + var(--sbh-mainbar-h)); }

    /* Hamburger */
    .sbh-menu-toggle {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        gap: 5px; width: 42px; height: 42px;
        background: transparent; border: 1.5px solid rgba(0,0,0,.13);
        border-radius: var(--sbh-radius); cursor: pointer; padding: 10px; margin-left: 8px; flex-shrink: 0;
    }
    .sbh-menu-toggle span { display: block; width: 100%; height: 2px; background: var(--sbh-secondary); border-radius: 2px; transition: transform .28s ease, opacity .2s, width .2s; transform-origin: center; }
    .sbh-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .sbh-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
    .sbh-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Drawer shell */
    .sbh-navbar {
        position: fixed !important;
        top: 0 !important; right: -110vw !important; bottom: 0 !important; left: auto !important;
        width: 100vw !important; max-width: 340px !important; height: 100dvh !important;
        background: #fff !important; z-index: 99992 !important;
        display: flex !important; flex-direction: column !important;
        overflow: hidden !important;
        transition: right .3s cubic-bezier(.4,0,.2,1) !important;
        box-shadow: none !important;
    }
    .sbh-navbar.sbh-open { right: 0 !important; box-shadow: -8px 0 48px rgba(0,0,0,.22) !important; }

    /* 1 — Top: brand + X */
    .sbh-drawer-top {
        display: flex !important; align-items: center; justify-content: space-between;
        padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
    }
    .sbh-drawer-brand { display: flex; align-items: center; text-decoration: none; }
    .sbh-drawer-brand-name { font-size: 16px; font-weight: 800; color: var(--sbh-primary); letter-spacing: -.3px; }
    .sbh-drawer-logo-img   { max-height: 34px; width: auto; }
    .sbh-drawer-close {
        display: flex !important; align-items: center; justify-content: center;
        width: 30px; height: 30px;
        background: #f2f2f2; border: none; border-radius: 50%;
        color: #444; cursor: pointer; padding: 0; flex-shrink: 0;
        transition: background var(--sbh-ease);
        font: inherit; line-height: 1;
    }
    .sbh-drawer-close:hover { background: #e5e5e5; }
    .sbh-drawer-close svg { display: block; }

    /* 2 — Search */
    .sbh-drawer-search {
        display: block !important;
        padding: 10px 14px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
    }
    .sbh-drawer-search-wrap {
        display: flex; align-items: center; gap: 8px;
        background: #f5f7fa; border: 1px solid #e8e8e8;
        border-radius: 24px; padding: 9px 14px;
    }
    .sbh-drawer-search-wrap svg { flex-shrink: 0; color: #999; }
    .sbh-drawer-search-wrap input { border: none; outline: none; background: transparent; font-size: 14px; color: #333; flex: 1; width: 100%; }
    .sbh-drawer-search-wrap input::placeholder { color: #aaa; }

    /* 3 — Nav (scrollable) */
    .sbh-drawer-nav { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; height: auto !important; }
    .sbh-drawer-nav > .sbh-nav-list {
        display: flex !important; flex-direction: column !important;
        align-items: stretch !important; height: auto !important;
        padding: 0 !important; margin: 0 !important;
        max-width: none !important; list-style: none !important;
    }

    /* Nav items */
    .sbh-nav-item { height: auto !important; display: block !important; width: 100% !important; position: static !important; }
    .sbh-nav-item + .sbh-nav-item { border-top: 1px solid #f3f3f3 !important; }

    /* Nav link — mobile: ALWAYS dark text */
    .sbh-nav-link {
        color: #3F444A !important;
        background: transparent !important;
        padding: 14px 16px !important;
        height: auto !important; font-size: 15px !important; font-weight: 500 !important;
        display: flex !important; align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        text-decoration: none !important;
        border: none !important;
        transition: background var(--sbh-ease), color var(--sbh-ease) !important;
    }
    .sbh-nav-link:hover { background: #f5f8fc !important; color: var(--sbh-primary) !important; }

    /* Active nav item */
    .sbh-nav-item.sbh-active > .sbh-nav-link { color: var(--sbh-primary) !important; font-weight: 700 !important; }

    /* Chevron inside link — rotate when sub is open */
    .sbh-chevron { display: inline-flex !important; align-items: center; color: #bbb; flex-shrink: 0; transition: transform .25s ease; }
    .sbh-has-dropdown.sbh-sub-open > .sbh-nav-link .sbh-chevron { transform: rotate(180deg); color: var(--sbh-primary); }

    /* Mobile accordion dropdown */
    .sbh-dropdown {
        display: none !important;
        position: static !important; border: none !important; border-top: none !important;
        border-radius: 0 !important; box-shadow: none !important;
        background: #f7f9fc !important; padding: 0 !important; margin: 0 !important;
    }
    .sbh-has-dropdown.sbh-sub-open > .sbh-dropdown { display: block !important; }
    .sbh-dropdown .sbh-nav-item + .sbh-nav-item { border-top: 1px solid #eee !important; }
    /* Dropdown item text — always visible dark */
    .sbh-dropdown .sbh-nav-link {
        color: #555 !important;
        background: transparent !important;
        padding: 12px 16px 12px 32px !important;
        font-size: 14px !important; font-weight: 400 !important;
        justify-content: flex-start !important;
        border-left: none !important; border-top: none !important;
    }
    .sbh-dropdown .sbh-nav-link:hover { color: var(--sbh-primary) !important; background: #edf4fc !important; }
    .sbh-dropdown .sbh-nav-item.sbh-active > .sbh-nav-link { color: var(--sbh-primary) !important; font-weight: 600 !important; }
    /* Hide chevron inside dropdown sub-items */
    .sbh-dropdown .sbh-nav-link .sbh-chevron { display: none !important; }

    /* 4 — CTA strip */
    .sbh-drawer-ctas {
        display: flex !important; flex-direction: column; gap: 10px;
        padding: 14px 16px 18px; border-top: 1px solid #f0f0f0; flex-shrink: 0; background: #fff;
    }
    .sbh-drawer-cta {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 13px 20px; border-radius: 50px;
        font-size: 14px; font-weight: 600; text-decoration: none;
        transition: opacity var(--sbh-ease), transform var(--sbh-ease);
        cursor: pointer; border: none; font-family: inherit;
    }
    .sbh-drawer-cta:hover { opacity: .88; transform: translateY(-1px); }
    .sbh-drawer-cta--outline { border: 2px solid var(--sbh-primary) !important; color: var(--sbh-primary); background: #fff; }
    .sbh-drawer-cta--solid   { background: var(--sbh-primary); color: #fff; }
    .sbh-drawer-social-row { display: flex; justify-content: center; gap: 12px; }
    .sbh-drawer-social-icon { width: 34px; height: 34px; border-radius: 50%; background: #f0f0f0; color: #555; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background var(--sbh-ease), color var(--sbh-ease); }
    .sbh-drawer-social-icon:hover { background: var(--sbh-primary); color: #fff; }
}

/* ── TABLET ≤ 768px ── */
@media (max-width: 768px) {
    :root { --sbh-mainbar-h: 62px; --sbh-topbar-h: 32px; }
    /* Top bar: only promo text */
    .sbh-desk-only     { display: none !important; }
    .sbh-topbar-inner  { justify-content: center; }
    .sbh-topbar-left   { justify-content: center; width: 100%; }
    /* Action labels hidden */
    .sbh-action-btn > span:not(.sbh-cart-count) { display: none; }
    .sbh-action-btn { padding: 6px 8px; }
}
@media (max-width: 480px) { .sbh-search { max-width: 100%; } }
@media (max-width: 360px) { .sbh-search { display: none; } }

/* ══════════════════════════════════════════
   v1.7 FINAL OVERRIDE BLOCK
   Fixes white-on-white in dropdown (desktop + mobile)
   and scopes nav-link white only to desktop top-level
══════════════════════════════════════════ */

/* ── DESKTOP: only top-level items get white text ── */
@media (min-width: 1025px) {
    #sbh-header .sbh-navbar > .sbh-drawer-nav > .sbh-nav-list > .sbh-nav-item > .sbh-nav-link {
        color: rgba(255,255,255,.93) !important;
    }
    #sbh-header .sbh-navbar > .sbh-drawer-nav > .sbh-nav-list > .sbh-nav-item > .sbh-nav-link:hover,
    #sbh-header .sbh-navbar > .sbh-drawer-nav > .sbh-nav-list > .sbh-nav-item.sbh-active > .sbh-nav-link {
        color: #fff !important;
        background: rgba(255,255,255,.18) !important;
    }

    /* Desktop dropdown panel */
    #sbh-header .sbh-dropdown {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 220px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0,0,0,.09) !important;
        border-top: 3px solid var(--sbh-primary) !important;
        border-radius: 0 0 8px 8px !important;
        box-shadow: 0 12px 36px rgba(0,0,0,.14) !important;
        z-index: 99999 !important;
        padding: 6px 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }
    #sbh-header .sbh-has-dropdown:hover > .sbh-dropdown { display: block !important; }

    /* Desktop dropdown item links — dark text, always visible */
    #sbh-header .sbh-dropdown .sbh-nav-link {
        color: #3F444A !important;
        background: transparent !important;
        padding: 10px 18px !important;
        height: auto !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        border-left: 3px solid transparent !important;
        white-space: normal !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    #sbh-header .sbh-dropdown .sbh-nav-link:hover {
        color: var(--sbh-primary) !important;
        background: #eef6fd !important;
        border-left-color: var(--sbh-primary) !important;
    }
    #sbh-header .sbh-dropdown .sbh-nav-item.sbh-active > .sbh-nav-link {
        color: var(--sbh-primary) !important;
        background: #eef6fd !important;
        border-left-color: var(--sbh-primary) !important;
    }
    /* No chevron in dropdown on desktop */
    #sbh-header .sbh-dropdown .sbh-chevron { display: none !important; }
}

/* ── MOBILE: all nav links dark, dropdown children darker ── */
@media (max-width: 1024px) {
    /* Every link in the mobile drawer — dark text */
    #sbh-header .sbh-navbar .sbh-nav-link {
        color: #3F444A !important;
        background: transparent !important;
    }
    #sbh-header .sbh-navbar .sbh-nav-link:hover {
        color: var(--sbh-primary) !important;
        background: #f5f8fc !important;
    }
    /* Active top-level item */
    #sbh-header .sbh-navbar .sbh-nav-item.sbh-active > .sbh-nav-link {
        color: var(--sbh-primary) !important;
        font-weight: 700 !important;
        background: transparent !important;
    }
    /* Dropdown child links */
    #sbh-header .sbh-navbar .sbh-dropdown .sbh-nav-link {
        color: #555 !important;
        background: transparent !important;
        padding: 12px 16px 12px 32px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        border-left: none !important;
    }
    #sbh-header .sbh-navbar .sbh-dropdown .sbh-nav-link:hover {
        color: var(--sbh-primary) !important;
        background: #edf4fc !important;
    }
    #sbh-header .sbh-navbar .sbh-dropdown .sbh-nav-item.sbh-active > .sbh-nav-link {
        color: var(--sbh-primary) !important;
        font-weight: 600 !important;
    }
    /* Dropdown panel on mobile — static, accordion */
    #sbh-header .sbh-dropdown {
        display: none !important;
        position: static !important;
        background: #f7f9fc !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid #eee !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    #sbh-header .sbh-has-dropdown.sbh-sub-open > .sbh-dropdown { display: block !important; }
}

/* ══════════════════════════════════════════
   FLYOUT SUBMENUS (submenu → submenu)
   Desktop only — opens to right, flips left
   if too close to viewport edge
══════════════════════════════════════════ */
@media (min-width: 1025px) {

    /* Parent item inside a dropdown that has children */
    #sbh-header .sbh-dropdown .sbh-has-dropdown {
        position: relative;
    }

    /* Flyout panel — right side by default */
    #sbh-header .sbh-dropdown .sbh-flyout {
        display: none !important;
        position: absolute !important;
        top: -7px !important;          /* align with parent item */
        left: 100% !important;         /* open to the right */
        right: auto !important;
        min-width: 200px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0,0,0,.09) !important;
        border-top: 3px solid var(--sbh-primary) !important;
        border-radius: 0 8px 8px 8px !important;
        box-shadow: 8px 8px 32px rgba(0,0,0,.13) !important;
        z-index: 99999 !important;
        padding: 6px 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    /* Show flyout on hover of parent dropdown item */
    #sbh-header .sbh-dropdown .sbh-has-dropdown:hover > .sbh-flyout {
        display: block !important;
    }

    /* Flip to LEFT when the item is in the right half of the screen */
    #sbh-header .sbh-dropdown .sbh-has-dropdown.sbh-flyout-left > .sbh-flyout {
        left: auto !important;
        right: 100% !important;
        border-radius: 8px 0 8px 8px !important;
        box-shadow: -8px 8px 32px rgba(0,0,0,.13) !important;
    }

    /* Flyout link styles — same as regular dropdown */
    #sbh-header .sbh-flyout .sbh-nav-link {
        color: #3F444A !important;
        background: transparent !important;
        padding: 10px 18px !important;
        height: auto !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        border-left: 3px solid transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        white-space: nowrap !important;
        width: 100% !important;
    }
    #sbh-header .sbh-flyout .sbh-nav-link:hover {
        color: var(--sbh-primary) !important;
        background: #eef6fd !important;
        border-left-color: var(--sbh-primary) !important;
    }
    #sbh-header .sbh-flyout .sbh-nav-item.sbh-active > .sbh-nav-link {
        color: var(--sbh-primary) !important;
        background: #eef6fd !important;
        border-left-color: var(--sbh-primary) !important;
    }

    /* Right chevron visible inside dropdown items that have children */
    #sbh-header .sbh-dropdown .sbh-has-dropdown > .sbh-nav-link .sbh-chevron--right {
        display: inline-flex !important;
        color: #aaa;
        transition: color var(--sbh-ease);
    }
    #sbh-header .sbh-dropdown .sbh-has-dropdown:hover > .sbh-nav-link .sbh-chevron--right {
        color: var(--sbh-primary);
    }
    /* Hide down-chevron inside dropdown items (they use right-chevron) */
    #sbh-header .sbh-dropdown .sbh-nav-link .sbh-chevron:not(.sbh-chevron--right) {
        display: none !important;
    }
}

/* ══════════════════════════════════════════
   MOBILE: flyout becomes nested accordion
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    /* On mobile, flyout behaves identically to regular dropdown */
    #sbh-header .sbh-flyout {
        display: none !important;
        position: static !important;
        background: #eff3f8 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid #e4e8ee !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    #sbh-header .sbh-has-dropdown.sbh-sub-open > .sbh-flyout { display: block !important; }

    /* Deeper indent for level-2 items */
    #sbh-header .sbh-flyout .sbh-nav-link {
        padding-left: 48px !important;
        font-size: 13.5px !important;
        color: #555 !important;
    }

    /* Right chevron on mobile points DOWN (it will toggle accordion) */
    #sbh-header .sbh-dropdown .sbh-has-dropdown > .sbh-nav-link .sbh-chevron--right svg {
        transform: rotate(90deg);
        transition: transform .25s ease;
    }
    #sbh-header .sbh-dropdown .sbh-has-dropdown.sbh-sub-open > .sbh-nav-link .sbh-chevron--right svg {
        transform: rotate(270deg);
    }
}
