
/*
  One shared header include for both legacy Bootstrap 4 pages and
  Bootstrap 5 opt-in pages. The basket/login legacy render is the visual
  reference because that was the preferred logo-text height. Bootstrap 5
  pages start the same flex item about 10px higher in the current production render, so compensate here, in
  the shared include, instead of adding page-specific logo overrides.
*/
html body nav.header.sss-site-header .sss-header-row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body nav.header.sss-site-header .sss-header-brand {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body nav.header.sss-site-header .sss-header-logo-graphic {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

html body nav.header.sss-site-header .sss-header-logo-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
}

html body nav.header.sss-site-header .sss-header-logo-link,
html body nav.header.sss-site-header .sss-header-logo-inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    html body nav.header.sss-site-header .sss-header-logo-copy {
        /* Legacy/default pages (including basket/login) keep the exact
           preferred v2 position. */
        margin-top: 0 !important;
        transform: translateY(-7px) !important;
    }

    html body nav.header.sss-site-header.sss-header-bs5 .sss-header-logo-copy {
        /* Bootstrap 5 starts this flex item about 10px higher than the
           legacy render. Move only the BS5 render down to the basket's
           established position. */
        transform: translateY(3px) !important;
    }

    html body nav.header.sss-site-header .sss-header-logo-copy .header-logo.logo-text {
        font-size: 2rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        padding-left: 0 !important;
    }

    html body nav.header.sss-site-header .sss-header-logo-copy .headerLogoTxtLarger {
        font-size: 2.3rem !important;
        line-height: 1 !important;
    }

    html body nav.header.sss-site-header .sss-header-logo-copy .logo-tag-line {
        display: block !important;
        color: #666666;
        font-size: .83rem;
        font-weight: 400;
        line-height: 2;
        white-space: nowrap;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav.header .top-level-nav ul.nav > li.top-level-nav-item > a.nav-link:hover,
    nav.header .top-level-nav ul.nav > li.top-level-nav-item > a.nav-link:focus,
    nav.header .top-level-nav ul.nav > li.top-level-nav-item > a.nav-link.show,
    nav.header .top-level-nav ul.nav > li.top-level-nav-item.show > a.nav-link,
    nav.header .top-level-nav ul.nav > li.top-level-nav-item > a.nav-link[aria-expanded="true"] {
        color: #275EB7 !important;
        background-color: #ffffff;
        text-decoration: none;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    html body nav.header.sss-site-header .sss-header-logo-copy {
        margin-top: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 575.98px) {
    html body nav.header.sss-site-header .sss-header-logo-copy {
        margin-top: 0 !important;
        margin-left: 5px !important;
        transform: translateY(10px) !important;
    }
}

/* SSS_MOBILE_TABLET_HEADER_BALANCE_V2: aligned controls and larger search through tablet widths. */
@media (max-width: 991.98px) {
  html body nav.header.sss-site-header {
    padding: 0 8px 8px !important;
  }
  html body nav.header.sss-site-header .sss-header-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  html body nav.header.sss-site-header .navbar-toggler {
    flex: 0 0 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  html body nav.header.sss-site-header .navbar-toggler-icon {
    width: 22px !important;
    height: 22px !important;
  }
  html body nav.header.sss-site-header .sss-header-brand {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 48px !important;
    max-width: none !important;
  }
  html body nav.header.sss-site-header .logo-container.sss-header-brand .sss-header-logo-copy {
    margin: 0 !important;
    transform: none !important;
  }
  html body nav.header.sss-site-header .sss-header-brand .header-logo.logo-text {
    font-size: clamp(1rem, 4.4vw, 1.32rem) !important;
    padding-left: 0 !important;
    line-height: 1 !important;
  }
  html body nav.header.sss-site-header .sss-header-brand .headerLogoTxtLarger {
    font-size: 1.22em !important;
    line-height: 1 !important;
  }
  html body nav.header.sss-site-header .sss-header-mobile-actions {
    flex: 0 0 88px !important;
    width: 88px !important;
    max-width: 88px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 48px !important;
  }
  html body nav.header.sss-site-header .sss-header-mobile-actions > div {
    display: flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body nav.header.sss-site-header .sss-header-mobile-actions a {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #275eb7 !important;
  }
  html body nav.header.sss-site-header .sss-mobile-action-icon {
    display: block;
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0;
  }
  html body nav.header.sss-site-header .sss-header-site-meta {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  html body nav.header.sss-site-header .divsearch {
    margin: 0 !important;
  }
  html body nav.header.sss-site-header #searchBox {
    height: 48px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 0 12px 0 36px !important;
    border-radius: 6px !important;
    background-position: 12px center !important;
  }
}
/* /SSS_MOBILE_TABLET_HEADER_BALANCE_V2 */
@media (min-width: 576px) and (max-width: 991.98px) {
  html body nav.header.sss-site-header {
    padding: 0 12px 10px !important;
  }
  html body nav.header.sss-site-header .sss-header-brand,
  html body nav.header.sss-site-header .sss-header-mobile-actions {
    min-height: 52px !important;
  }
  html body nav.header.sss-site-header .navbar-toggler {
    height: 52px !important;
  }
  html body nav.header.sss-site-header .sss-header-brand .header-logo.logo-text {
    font-size: 1.45rem !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  html body nav.header.sss-site-header .sss-header-brand .header-logo.logo-text {
    font-size: 1.6rem !important;
  }
}

