/* The header spans the viewport and anchors the desktop Products panel. */
.main-header { position: relative; }
#megaMenu { display: none; }
.site-header .product-menu.active > #megaMenu {
    display: block;
    visibility: visible;
    opacity: 1;
}
#megaMenu [hidden],
.site-header .menu [hidden] { display: none !important; }
#megaMenu .mega-menu-panel:not([hidden]) { display: block; }
.site-header .menu-toggler,
.site-header button.arrow {
    border: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}
.site-header :is(button, a):focus-visible {
    outline: 2px solid #0152a0;
    outline-offset: 2px;
}
@media (min-width: 992px) {
    .main-menu .menu > .product-menu { position: static; padding-right: 0; }
    #megaMenu {
        left: 0;
        right: 0;
        width: auto;
        margin-inline: 0;
    }
    .site-header .product-menu > button.arrow {
        position: static;
        transform: none;
        width: 20px;
        height: 24px;
        vertical-align: middle;
    }
    .site-header .mega-menu-panel > button.arrow { display: none; }
    .site-header .menu-item-has-children.active > .sub-menu {
        visibility: visible;
        opacity: 1;
    }
}
@media (max-width: 991px) {
    .header-menu { transition-property: transform; }
    .header-menu a { transition-property: color, background-color, border-color; }
    body:not(.menu-open) .header-menu { visibility: hidden; }
    .site-header .menu-toggler {
        height: 44px;
        width: 44px;
        padding: 7px;
    }
    .site-header .menu :is(.product-menu, .mega-menu-panel, .menu-item-has-children) > button.arrow {
        width: 44px;
        height: 44px;
        top: 0;
        right: 0;
        transform: none;
    }
    .site-header .menu :is(.product-menu, .mega-menu-panel, .menu-item-has-children) > a {
        display: inline-block;
        max-width: calc(100% - 48px);
    }
    .site-header .mega-menu-panel { padding-right: 0; }
    .site-header .mega-menu-panel.active > .mega-menu-list,
    .site-header .menu-item-has-children.active > .sub-menu { display: block; }
}
