/* Legacy layout styles set overflow-x: hidden on body, trapping sticky descendants. */
body.hi-refresh {
    overflow-x: clip;
}

.hinav {
    font-family: "Nunito Sans", Arial, sans-serif;
    --nav-ink: #281728;
    position: sticky;
    z-index: 1000;
    top: 10px;
    box-sizing: border-box;
    width: min(1240px,calc(100% - 48px));
    height: 70px;
    margin: 10px auto;
    color: var(--nav-ink);
    border: 1px solid transparent;
    border-radius: 18px;
    background: #ed5064 url("/images_hi/hi-header-gradient.svg") center / 100% 100% no-repeat border-box;
    box-shadow: 0 5px 19px #70213f13;
    font-size: 15px;
    line-height: 1.4;
}

.hinav.white {
    background: #fff;
    border-color: #e9dce2;
    box-shadow: 0 5px 20px #4b1c2f14;
}

.hinav *,
.hinav *::before,
.hinav *::after {
    box-sizing: border-box;
}

.hinav .hirow {
    height: 100%;
    padding: 0 29px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hinav a,
.hinav button,
.hinav summary {
    font: inherit;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    color: var(--nav-ink);
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hinav .brandmark {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 151px;
    height: 46px;
    align-items: center;
}

.hinav .brandmark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    inset: 0;
}

.hinav .mark-color,
.hinav.white .mark-white {
    opacity: 0;
}

.hinav.white .mark-color {
    opacity: 1;
}

.hinav nav,
.hinav .utilities {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hinav .utilities {
    gap: 14px;
    margin-left: auto;
}

.hinav details {
    margin: 0;
    position: relative;
}

.hinav summary {
    display: flex;
    list-style: none;
    align-items: center;
}

.hinav summary::-webkit-details-marker {
    display: none;
}

.hinav .item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 12px 13px;
    font-weight: 600;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    white-space: nowrap;
    font-size: 15px;
}

.hinav .item:hover,
.hinav details[open] > .item {
    background: #fff0f3;
    color: #732440;
}

.hinav .chev {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border: solid currentColor;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
}

.hinav details[open] > summary .chev {
    margin-top: 2px;
    transform: rotate(225deg);
}

.hinav .toggle {
    min-height: 44px;
    border: 1px solid #3c203658;
    background: transparent;
    border-radius: 10px;
    gap: 9px;
}

.hinav .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    background: var(--hi-action);
    color: #fff;
    border-radius: 10px;
    padding: 12px 17px;
    min-height: 44px;
    white-space: nowrap;
    font-size: 15px;
}

.hinav .cta:is(:hover,:active) {
    background: var(--hi-action-hover);
    color: #fff;
}

.hinav:not(.white) .utilities > .cta {
    box-shadow: inset 0 0 0 1px #ffffff73;
}

.hinav .cta span {
    font-size: 19px;
    line-height: 1;
}

.hinav .panel {
    position: absolute;
    z-index: 3;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    max-width: min(590px,calc(100vw - 48px));
    padding: 10px;
    border: 1px solid #e9dce2;
    border-radius: 14px;
    box-shadow: 0 13px 35px #4b1c2f18;
    background: #fff;
}

.hinav .panel a {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 7px;
    font-size: 14px;
    color: #352838;
}

.hinav .panel a:hover {
    background: #f9edf1;
    color: #862548;
}

.hinav .panel a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hinav .panel .overview {
    border-top: 1px solid #eee4e7;
    margin-top: 5px;
    border-radius: 0;
    font-size: 13px;
    color: #862548;
    justify-content: space-between;
}

.hinav .panel a[aria-current="page"] {
    background: #fbf0f4;
}

.hinav .toggle,
.hinav .mobile-cta {
    display: none;
}

.hinav :is(a,summary,button):focus-visible {
    outline: 3px solid #411332;
    outline-offset: 2px;
}

.hinav .toggle {
    padding: 0;
    color: #281728;
    box-shadow: none;
    width: 44px;
    align-items: center;
    justify-content: center;
}

.hinav .toggle svg {
    width: 22px;
    height: 22px;
}

.hinav .toggle .cross,
.hinav .toggle[aria-expanded="true"] .bars {
    display: none;
}

.hinav .toggle[aria-expanded="true"] .cross {
    display: block;
}

.hinav .product-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.hinav .product-icon {
    display: none;
}

.hinav.white :is(.item, .hi-language-trigger),
.hinav.white .toggle {
    color: #5b2841;
}

.hinav:not(.white) .hi-language-trigger,
.hinav:not(.white) .toggle {
    color: #fff;
    border-color: #ffffffa8;
    background: rgba(62,18,44,.32);
}

.hinav:not(.white) .toggle:hover {
    background: rgba(62,18,44,.45);
}

.hinav .hi-language-trigger {
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #3c203658;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.3;
}

.hinav .hi-language-trigger:hover,
.hinav .hi-language-menu[open] > .hi-language-trigger {
    background: #fff0f3;
    border-color: #e9dce2;
    color: var(--hi-action-hover);
}

.hinav .hi-language-globe { width: 17px; height: 17px; }
.hinav .hi-language-chevron { width: 12px; height: 12px; }
.hinav .hi-language-menu[open] .hi-language-chevron { transform: rotate(180deg); }

.hinav .hi-language-options {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    z-index: 3;
    width: 180px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--hi-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px #2423331f;
}

.hinav .hi-language-options > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

.hinav .hi-language-options > a:is(:hover, [aria-current="page"]) {
    background: #fff8f3;
    color: var(--hi-action-hover);
}

.hinav .hi-language-options > a:focus-visible {
    outline: 2px solid var(--hi-action-hover);
    outline-offset: -2px;
}

.hinav .hi-language-flag {
    flex: 0 0 24px;
    font-size: 18px;
    line-height: 1;
}

@media (min-width:1101px) {
    .hinav:not(.white) nav .item {
        color: white;
        text-shadow: 0 0 1px #6f213f,0 1px 1px #6f213f;
    }
    .hinav:not(.white) nav .item:hover,
    .hinav:not(.white) nav details[open] > .item {
        background: rgba(62,18,44,.21);
    }
}

@media (max-width:1100px) {
    .hinav {
        top: 8px;
        width: calc(100% - 24px);
        height: 56px;
        margin: 8px auto;
        border-radius: 15px;
    }
    .hinav .hirow {
        padding: 0 10px 0 14px;
        gap: 10px;
    }
    .hinav .brandmark {
        width: 126px;
        height: 39px;
    }
    .hinav .utilities {
        gap: 6px;
    }
    .hinav .hi-language-trigger {
        padding: 6px 10px;
        gap: 7px;
    }
    .hinav nav {
        display: none;
    }
    /* If the script cannot load, focusing the header still exposes the links. */
    .hinav nav.expanded,
    .hinav:not(.nav-ready):focus-within nav {
        display: flex;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 87px);
        overflow-y: auto;
        background: #fff;
        border: 1px solid #e9dce2;
        box-shadow: 0 14px 35px #4b1c2f26;
        border-radius: 14px;
        padding: 12px;
        flex-direction: column;
        gap: 3px;
    }
    .hinav nav .item {
        font-size: 15px;
        min-height: 46px;
        color: #57273e;
    }
    .hinav .product-icon {
        display: block;
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
    }
    .hinav .product-label {
        font-weight: 700;
    }
    .hinav nav .panel {
        position: static;
        max-width: none;
        width: auto;
        box-shadow: none;
        border: 0;
        border-left: 2px solid #f2d3df;
        border-radius: 0;
        margin: 4px 4px 8px 13px;
        padding: 0 0 0 6px;
    }
    .hinav nav .panel a {
        font-size: 14px;
    }
    .hinav .utilities > .cta {
        display: none;
    }
    .hinav .mobile-cta {
        display: flex;
        margin: 8px 0 0;
    }
    .hinav .toggle {
        display: flex;
    }
    .hinav .hi-language-options {
        top: calc(100% + 12px);
    }
}

@media (prefers-reduced-motion:no-preference) {
    .hinav {
        transition: box-shadow .18s,border-color .18s;
    }
    .hinav .brandmark img {
        transition: opacity .18s;
    }
    .hinav .hi-language-trigger {
        transition: background .18s, color .18s, border-color .18s;
    }
    .hinav .hi-language-chevron {
        transition: transform .18s;
    }
}

@media (min-width:1101px) and (prefers-contrast:more) {
    .hinav:not(.white) nav .item {
        background: #792b44;
        text-shadow: none;
    }
    .hinav:not(.white) nav .item:hover,
    .hinav:not(.white) nav details[open] > .item {
        background: #582138;
    }
}

.hinav .toggle::after {
    display: none;
}


/* A static menu for visitors who disable scripting. */
@media (max-width: 1100px) and (scripting: none) {
    .hinav:not(.nav-ready) {
        position: relative;
        top: 0;
        height: auto;
    }
    .hinav:not(.nav-ready) .hirow {
        flex-wrap: wrap;
        padding: 8px;
    }
    .hinav:not(.nav-ready) nav,
    .hinav:not(.nav-ready):focus-within nav {
        display: flex;
        position: static;
        max-height: none;
        box-shadow: none;
        flex-direction: column;
        align-items: stretch;
        order: 1;
        width: 100%;
        padding: 8px;
        background: #fff;
        border-radius: 10px;
    }
    .hinav:not(.nav-ready) .toggle {
        display: none;
    }
}
