.ninjamenus.ninjamenus-desktop .nav-item:hover > .item-submenu,
.ninjamenus.ninjamenus-desktop .nav-item.ninjamenus-hover > .item-submenu {
    display: block;
}

.ninjamenus.ninjamenus-desktop .nav-item-static > .item-submenu,
.navigation.nav-item-static .nav-item-static > .item-submenu,
.ninjamenus.nav-item-static .nav-item-static > .item-submenu {
    width: 100vw !important;
}

.mgz-element-categories-list li.active > ul {
    display: block;
}

.mgz-element-categories-list .opener {
    cursor: pointer;
}

.mgz-element-categories-list ul ul {
    margin-top: 10px;
}

#header img[src*="IPlogo25.png"] {
    width: 184px;
    height: auto;
}

.page-footer {
    background: var(--ip-footer-bg);
    color: #ffffff;
    font-size: 14px;
    margin-top: auto;
    padding: 0;
}

.page-footer .footer.content {
    border: 0;
}

.page-footer .footer.content a,
.page-footer .footer.content a:hover,
.page-footer .footer.content a:visited,
.page-footer .footer.content .alink,
.page-footer .footer.content .alink:hover,
.page-footer .footer.content .alink:visited,
.page-footer .footer.content .links a,
.page-footer .footer.content .links a:hover,
.page-footer .footer.content .links a:visited {
    color: #ffffff;
}

.page-footer .footer.content .block {
    float: none !important;
}

.page-footer .h4,
.page-footer .block .title strong {
    color: #ffffff;
    font-size: 1.6rem;
    margin-top: 0;
    text-transform: uppercase;
}

.page-footer .footer.content .links {
    box-sizing: border-box;
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.page-footer .footer.content .links > li {
    border: none;
    font-size: 14px;
    margin: 0 0 8px;
    padding: 0;
}

.page-footer .footer.content .links ul.links {
    list-style: none;
    margin: 0;
    padding-left: 20px;
}

.page-footer .footer.content .links li:last-child {
    margin-bottom: 0;
}

.page-footer .footer.content .footer-contacts {
    max-width: 330px;
}

.page-footer .footer.content .footer-contacts address {
    margin-bottom: 10px;
}

.page-footer .footer.content .social-icons a {
    display: inline-block;
    vertical-align: middle;
}

.page-footer .footer-toolbar-bottom {
    background: #fff;
    text-align: center;
}

.page-footer .footer-toolbar-bottom,
.page-footer .footer-toolbar-bottom a {
    color: #ffffff;
}

.page-footer .footer-toolbar-bottom p {
    margin: 0;
}

.ip-header__mobile-menu {
    display: none;
}

.ip-header__hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    gap: 5px;
}

.ip-header__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ip-header__navigation .nav-sections-item-title {
    display: none;
}

.ip-header__nav-tabs,
.ip-header__settings {
    display: none;
}

.ip-header__navigation .nav-sections-item-content[hidden] {
    display: none !important;
}

.ip-header__navigation .navigation {
    position: relative;
    width: 100%;
}

.ip-header__navigation .ninjamenus.ninjamenus-desktop .nav-item-static > .item-submenu,
.ip-header__navigation .navigation.nav-item-static .nav-item-static > .item-submenu,
.ip-header__navigation .ninjamenus.nav-item-static .nav-item-static > .item-submenu {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.ip-header__navigation .ninjamenus.ninjamenus-desktop .left_edge_menu_bar > .item-submenu {
    left: 0 !important;
}

@media (max-width: 1023px) {
    .ip-header__mobile-menu {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
    }

    html.nav-before-open,
    html.nav-before-open body {
        overflow: hidden;
    }

    html.nav-before-open body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 20;
        background: rgba(0, 0, 0, .38);
    }

    .ip-header__navigation {
        border-top: 0;
    }

    .ip-header__navigation .nav-sections {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        width: calc(100vw - 54px);
        max-width: 360px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 0 12px rgba(0, 0, 0, .25);
        transform: translateX(-110%);
        transition: transform .25s ease;
    }

    html.nav-open .ip-header__navigation .nav-sections {
        transform: translateX(0);
    }

    .ip-header__navigation .nav-sections-items {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .ip-header__navigation .nav-sections-item-title {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        border-bottom: 1px solid #d1d5db;
        background: #f5f5f5;
    }

    .ip-header__navigation .nav-sections-item-switch {
        display: block;
        padding: 14px 20px;
        color: #333;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        text-transform: uppercase;
    }

    .ip-header__navigation .nav-sections-item-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .ip-header__nav-tabs,
    .ip-header__nav-tablist {
        display: flex;
        align-items: stretch;
    }

    .ip-header__nav-tabs {
        flex: 0 0 auto;
        border-bottom: 1px solid #d1d5db;
        background: #f5f5f5;
    }

    .ip-header__nav-tablist {
        flex: 1 1 auto;
        min-width: 0;
    }

    .ip-header__nav-tablist .nav-sections-item-switch {
        flex: 1 1 auto;
        padding: 14px 8px;
        border: 0;
        background: transparent;
        font-size: 13px;
        overflow-wrap: anywhere;
        cursor: pointer;
    }

    .ip-header__nav-tablist [aria-selected="true"] {
        background: #fff;
        box-shadow: inset 0 -3px var(--ip-primary);
    }

    .ip-header__nav-close {
        flex: 0 0 44px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #333;
        font-size: 28px;
        cursor: pointer;
    }

    .ip-header__navigation .ip-header__settings {
        display: block;
        padding: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ip-header__navigation .navigation,
    .ip-header__navigation .ninjamenus,
    .ip-header__navigation .drilldown-root {
        height: 100%;
        min-height: 0;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile {
        display: block !important;
        overflow: hidden;
        background: #fff;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .drilldown-root,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile > .drilldown-root {
        position: relative;
        display: block !important;
        width: 100% !important;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        background: #fff;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item {
        position: relative !important;
        display: block;
        float: none !important;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #e5e5e5;
        background: #fff;
    }

    /* Page Builder uses 768/992px; the header switches modes at 1024px. */
    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item.level0.mgz-hidden-xs {
        display: none !important;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item.level0.mgz-hidden-lg.mgz-hidden-xl {
        display: block !important;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > a,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > .item-link {
        display: block;
        min-height: 50px;
        padding: 14px 54px 14px 20px;
        color: #333;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        text-decoration: none;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > a:hover,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > a:focus {
        color: var(--ip-primary);
        background: #f8f8f8;
        text-decoration: none;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > .opener {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        cursor: pointer;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .nav-item > .opener::before {
        content: '';
        position: static;
        width: 9px;
        height: 9px;
        border-top: 2px solid #777;
        border-right: 2px solid #777;
        transform: rotate(45deg);
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .item-submenu {
        position: relative !important;
        inset: auto !important;
        display: none !important;
        width: 100% !important;
        max-width: none !important;
        height: 100%;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: auto;
        background: #fff;
        box-shadow: none !important;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .item-submenu.is-active {
        display: block !important;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .drilldown-root.ip-drilldown-hidden,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile .item-submenu.ip-drilldown-hidden {
        display: none !important;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .drilldown-root,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile > .item-submenu {
        overscroll-behavior: contain;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .ninjamenus-drilldown-back {
        display: flex;
        align-items: center;
        min-height: 50px;
        margin: 0;
        border-bottom: 1px solid #d1d5db;
        background: #f5f5f5;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .drilldown-back {
        position: relative;
        flex: 0 0 50px;
        width: 50px;
        min-height: 50px;
        cursor: pointer;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .drilldown-back::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 22px;
        width: 9px;
        height: 9px;
        border-bottom: 2px solid #777;
        border-left: 2px solid #777;
        transform: rotate(45deg);
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile .ninjamenus-current-link {
        flex: 1 1 auto;
        min-width: 0;
        padding: 15px 16px 15px 0;
        color: #333;
        font-size: 14px;
        font-weight: 700;
        line-height: 20px;
        overflow-wrap: anywhere;
        text-decoration: none;
        text-transform: uppercase;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-mobile a.ninjamenus-current-link:hover,
    .ip-header__navigation .ninjamenus.ninjamenus-mobile a.ninjamenus-current-link:focus-visible {
        color: var(--ip-primary);
        text-decoration: underline;
    }
}

@media (min-width: 1024px) {
    .ip-header__navigation .navigation {
        text-align: left;
    }

    .ip-header__navigation .ninjamenus.ninjamenus-desktop {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Override the Page Builder category accent without changing CMS data. */
.mgz-element-categories .mgz-element-categories-list li.active > a,
.mgz-element-categories .mgz-element-categories-list li.active > .opener,
.mgz-element-categories .mgz-element-categories-list a:hover,
.mgz-element-categories .mgz-element-categories-list a:focus-visible {
    color: var(--ip-primary) !important;
}

/* Page Builder emits per-item !important hover colors in the page head. */
.ninjamenus .nav-item.level0:hover > a,
.ninjamenus .nav-item.level0 > a:focus-visible {
    color: var(--ip-primary) !important;
}
.ninjamenus .item-submenu .nav-item:hover > a,
.ninjamenus .item-submenu .nav-item > a:focus-visible {
    background: transparent !important;
    color: #ff5055 !important;
}
/* Highlight only the pointed nested entry, not all of its ancestors. */
.ninjamenus .item-submenu .nav-item:hover:has(.nav-item:hover) > a {
    color: #333 !important;
}

/* Match production labels; brand-specific medium weights still take precedence. */
.ninjamenus .item-submenu .title {
    font-weight: 400;
}
