/* PASS 084 — mobile sticky INNER layout vs historical .ir flex row.
   Does NOT change desktop sticky max-width / 0.38s animation (080–081).
   Does NOT change related-products 3-col rules (083). */

@media (max-width: 991.98px) {
    header.header nav.nav > .nav-container.bottom,
    header.header.inner nav.nav > .nav-container.bottom,
    header.header nav.nav.scrolled > .nav-container.bottom,
    header.header.inner nav.nav.scrolled > .nav-container.bottom {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start;
        column-gap: 0;
        row-gap: 0;
        min-height: 52px;
        height: 52px;
        max-height: 52px;
        overflow: hidden;
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    header.header nav.nav > .nav-container.bottom > .nav-mobile-phone,
    header.header.inner nav.nav > .nav-container.bottom > .nav-mobile-phone,
    header.header nav.nav > .nav-container.bottom > .navbar-brand,
    header.header.inner nav.nav > .nav-container.bottom > .navbar-brand,
    header.header nav.nav > .nav-container.bottom > .nav-toggler,
    header.header.inner nav.nav > .nav-container.bottom > .nav-toggler,
    header.header nav.nav > .nav-container.bottom > .nav-search,
    header.header.inner nav.nav > .nav-container.bottom > .nav-search {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        position: relative;
        z-index: 2;
        align-self: center;
        max-height: 52px;
    }
    header.header nav.nav > .nav-container.bottom > .nav-toggler,
    header.header.inner nav.nav > .nav-container.bottom > .nav-toggler {
        order: 0 !important;
    }
    header.header nav.nav > .nav-container.bottom > .navbar-brand,
    header.header.inner nav.nav > .nav-container.bottom > .navbar-brand {
        order: 1 !important;
    }
    header.header nav.nav > .nav-container.bottom > .nav-mobile-phone,
    header.header.inner nav.nav > .nav-container.bottom > .nav-mobile-phone {
        order: 2 !important;
    }
    header.header nav.nav > .nav-container.bottom > .nav-search,
    header.header.inner nav.nav > .nav-container.bottom > .nav-search {
        order: 10 !important;
    }
    header.header nav.nav > .nav-container.bottom > .nav-inner:not(.open),
    header.header.inner nav.nav > .nav-container.bottom > .nav-inner:not(.open) {
        order: 8;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none;
    }
    header.header nav.nav > .nav-container.bottom > .nav-search-container,
    header.header.inner nav.nav > .nav-container.bottom > .nav-search-container {
        order: 12;
    }

    header.header nav.nav > .nav-container.bottom > .nav-toggler,
    header.header.inner nav.nav > .nav-container.bottom > .nav-toggler {
        flex: 0 0 auto;
        overflow: hidden;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    header.header nav.nav > .nav-container.bottom > .nav-toggler > button,
    header.header.inner nav.nav > .nav-container.bottom > .nav-toggler > button {
        width: 40px;
        height: 40px;
        max-height: 40px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 0;
    }

    header.header nav.nav > .nav-container.bottom > .navbar-brand,
    header.header.inner nav.nav > .nav-container.bottom > .navbar-brand {
        flex: 0 0 auto;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 45px;
        min-height: 40px;
        overflow: visible;
    }
    header.header nav.nav > .nav-container.bottom > .navbar-brand img,
    header.header.inner nav.nav > .nav-container.bottom > .navbar-brand img {
        width: 45px !important;
        max-width: 45px !important;
        height: auto !important;
        max-height: 40px;
        display: block !important;
        opacity: 1 !important;
    }

    header.header nav.nav > .nav-container.bottom > .nav-mobile-phone,
    header.header.inner nav.nav > .nav-container.bottom > .nav-mobile-phone {
        flex: 0 1 auto;
        white-space: nowrap;
        overflow: hidden;
        pointer-events: auto;
    }

    header.header nav.nav > .nav-container.bottom > .nav-search:not(.dropdown),
    header.header.inner nav.nav > .nav-container.bottom > .nav-search:not(.dropdown) {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    header.header nav.nav > .nav-container.bottom > .nav-search.dropdown,
    header.header.inner nav.nav > .nav-container.bottom > .nav-search.dropdown {
        display: none !important;
    }

    header.header nav.nav > .nav-container.bottom > .nav-inner,
    header.header.inner nav.nav > .nav-container.bottom > .nav-inner {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Drawer: no rule line above the logo; keep list separators. */
    header.header .nav-inner .nav-mobile-close-row {
        border: 0 !important;
        box-shadow: none !important;
        min-height: 0;
        padding-bottom: 0.15rem !important;
    }
    header.header .nav-inner .nav-mobile-header {
        border-top: 0 !important;
        box-shadow: none !important;
    }

    header.header nav.nav .nav-mobile-meta {
        text-align: center;
    }
    header.header nav.nav .nav-mobile-meta-date {
        justify-content: center;
        width: 100%;
    }
    header.header nav.nav .nav-mobile-meta-email {
        display: block;
        text-align: center;
        width: 100%;
    }

    html[data-nav-accordion="0"] .nav-inner.open .has-dropdown > .dropdown-menu,
    html[data-nav-accordion="0"] .nav-inner.open .has-dropdown > ul {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    html[data-nav-accordion="0"] .nav-inner.open .nav-dropdown-toggle {
        display: none !important;
    }
}
