/* SESSION 754 STOREFRONT CUSTOMER ACCOUNT ENTRY START */

.ep-account-menu {
    position: relative;
    flex: 0 0 auto;
}

.ep-account-menu__summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--shop-border, #d7e5e9);
    border-radius: 999px;
    background: #ffffff;
    color: var(--shop-ink, #13243a);
    box-shadow: 0 1px 2px rgba(14, 42, 58, 0.06);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.ep-account-menu__summary::-webkit-details-marker {
    display: none;
}

.ep-account-menu__summary:hover,
.ep-account-menu__summary:focus-visible,
.ep-account-menu[open] > .ep-account-menu__summary {
    border-color: rgba(21, 95, 159, 0.38);
    background: #eaf3fb;
    color: #0f4778;
    outline: none;
}

.ep-account-menu__summary:focus-visible {
    box-shadow:
        0 0 0 3px rgba(21, 95, 159, 0.18),
        0 1px 2px rgba(14, 42, 58, 0.06);
}

.ep-account-menu__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ep-account-menu.is-authenticated .ep-account-menu__summary {
    border-color: rgba(21, 95, 159, 0.34);
    background: #f4f9fd;
}

.ep-account-menu.is-authenticated .ep-account-menu__summary::after {
    width: 7px;
    height: 7px;
    margin-top: -15px;
    margin-left: -9px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #1769aa;
    content: "";
}

.ep-account-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 140;
    display: grid;
    min-width: 250px;
    padding: 10px;
    border: 1px solid var(--shop-border, #d7e5e9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(14, 42, 58, 0.18);
}

.ep-account-menu:not([open]) > .ep-account-menu__panel {
    display: none;
}

.ep-account-menu [data-customer-account-signed-out],
.ep-account-menu [data-customer-account-signed-in] {
    display: grid;
    gap: 8px;
}

.ep-account-menu [hidden] {
    display: none !important;
}

.ep-account-menu__eyebrow {
    margin: 2px 4px 3px;
    color: #62748c;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ep-account-menu__identity {
    display: block;
    margin: 0 4px 6px;
    overflow: hidden;
    color: var(--shop-ink, #13243a);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header nav .ep-account-menu__panel a,
.ep-account-menu__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    padding: 10px 13px;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.site-header nav .ep-account-menu__primary {
    border: 1px solid #155f9f;
    background: #155f9f;
    color: #ffffff;
}

.site-header nav .ep-account-menu__primary:hover,
.site-header nav .ep-account-menu__primary:focus-visible {
    background: #0f4778;
    color: #ffffff;
}

.site-header nav .ep-account-menu__secondary,
.ep-account-menu__logout {
    border: 1px solid var(--shop-border, #d7e5e9);
    background: #ffffff;
    color: var(--shop-ink, #13243a);
}

.site-header nav .ep-account-menu__secondary:hover,
.site-header nav .ep-account-menu__secondary:focus-visible,
.ep-account-menu__logout:hover,
.ep-account-menu__logout:focus-visible {
    border-color: rgba(21, 95, 159, 0.34);
    background: #eaf3fb;
    color: #0f4778;
}

.ep-account-menu__logout:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 980px) {
    .site-header nav .ep-account-menu__panel a {
        display: flex;
    }
}

@media (max-width: 640px) {
    .ep-account-menu__summary {
        width: 40px;
        min-height: 38px;
        padding: 0;
    }

    .ep-account-menu__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .ep-account-menu__panel {
        min-width: min(280px, calc(100vw - 24px));
    }
}

/* SESSION 754 STOREFRONT CUSTOMER ACCOUNT ENTRY END */

/* SESSION 755 DESKTOP HEADER HERO WIDTH ALIGNMENT START */
@media (min-width: 981px) {
    .site-header .header-inner {
        width: min(1040px, calc(100% - 48px)) !important;
        max-width: 1040px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* SESSION 755 DESKTOP HEADER HERO WIDTH ALIGNMENT END */

/* SESSION 775 STOREFRONT HEADER ACCOUNT CART ACCESS START */

.ep-cart-count[hidden] {
    display: none !important;
}

.mobile-menu-panel .ep-mobile-menu__cart,
.mobile-menu-panel .ep-mobile-menu__account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-menu-panel .ep-mobile-menu__cart .ep-cart-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: var(--ep-shop-teal, #155f9f);
    color: #ffffff;
}

.mobile-menu-panel a[aria-current="page"] {
    background: var(--ep-shop-blue-soft, #eaf3fb);
    color: var(--ep-shop-teal-dark, #0f4778);
}

.ep-account-menu__summary[aria-expanded="true"],
.mobile-menu > summary[aria-expanded="true"] {
    border-color: rgba(21, 95, 159, 0.38);
    background: #eaf3fb;
    color: #0f4778;
}

@media (max-width: 980px) {
    .mobile-menu-panel {
        max-height: min(420px, calc(100vh - 110px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 640px) {
    .mobile-menu-panel .ep-mobile-menu__cart,
    .mobile-menu-panel .ep-mobile-menu__account {
        min-height: 44px;
    }
}

/* SESSION 775 STOREFRONT HEADER ACCOUNT CART ACCESS END */

/* SESSION 776 ACCOUNT MENU VISUAL CLEANUP START */

/*
 * The shared public navigation applies underline and transparent-background
 * rules to every non-cart anchor inside .main-nav. Reset those rules inside
 * the account popover so its actions remain real buttons on hover/focus.
 */
.site-header .main-nav .ep-account-menu__panel {
    width: min(260px, calc(100vw - 24px));
    min-width: 0;
    padding: 14px;
    gap: 0;
    border-color: #d9e5ec;
    border-radius: 16px;
    box-shadow:
        0 18px 44px rgba(14, 42, 58, 0.16),
        0 4px 12px rgba(14, 42, 58, 0.08);
}

.site-header .main-nav .ep-account-menu__panel::before {
    position: absolute;
    top: -7px;
    right: 24px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #d9e5ec;
    border-left: 1px solid #d9e5ec;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.site-header .main-nav .ep-account-menu__panel
[data-customer-account-signed-out],
.site-header .main-nav .ep-account-menu__panel
[data-customer-account-signed-in] {
    gap: 9px;
}

.site-header .main-nav .ep-account-menu__eyebrow {
    margin: 0 2px;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.35;
}

.site-header .main-nav .ep-account-menu__identity {
    margin: 0 2px 2px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e5edf3;
    color: #13243a;
    font-size: 0.88rem;
    line-height: 1.4;
}

.site-header .main-nav .ep-account-menu__panel a,
.site-header .main-nav .ep-account-menu__panel button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 11px !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    transform: none !important;
}

.site-header .main-nav .ep-account-menu__panel a::before,
.site-header .main-nav .ep-account-menu__panel a::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    content: none !important;
    opacity: 0 !important;
    transform: none !important;
}

.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__primary {
    border: 1px solid #155f9f !important;
    background: #155f9f !important;
    color: #ffffff !important;
}

.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__primary:hover,
.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__primary:focus-visible {
    border-color: #0f4778 !important;
    background: #0f4778 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(21, 95, 159, 0.16) !important;
}

.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__secondary,
.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__logout {
    border: 1px solid #d7e5e9 !important;
    background: #ffffff !important;
    color: #13243a !important;
}

.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__secondary:hover,
.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__secondary:focus-visible,
.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__logout:hover,
.site-header .main-nav .ep-account-menu__panel
.ep-account-menu__logout:focus-visible {
    border-color: #b9d2e4 !important;
    background: #eef6fc !important;
    color: #0f4778 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(21, 95, 159, 0.12) !important;
}

.site-header .main-nav .ep-account-menu__summary:hover {
    border-color: #aac9df;
    background: #f7fbfe;
    box-shadow: 0 4px 12px rgba(14, 42, 58, 0.1);
}

.site-header .main-nav .ep-account-menu[open]
> .ep-account-menu__summary {
    border-color: #8eb8d5;
    background: #eef6fc;
    box-shadow: 0 0 0 3px rgba(21, 95, 159, 0.12);
}

@media (max-width: 640px) {
    .site-header .main-nav .ep-account-menu__panel {
        right: -2px;
        width: min(260px, calc(100vw - 16px));
    }
}

/* SESSION 776 ACCOUNT MENU VISUAL CLEANUP END */

/* SESSION 786 MOBILE HEADER ICON CONTROLS START */

.ep-cart-link__icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ep-cart-link__label {
    display: inline;
}

@media (max-width: 980px) {
    .site-header .main-nav {
        gap: 6px !important;
    }

    .site-header .ep-cart-link,
    .site-header .ep-account-menu__summary {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 999px !important;
        box-sizing: border-box !important;
    }

    .site-header .ep-cart-link__label,
    .site-header .ep-account-menu__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        border: 0 !important;
        white-space: nowrap !important;
    }

    .site-header .ep-cart-link__icon,
    .site-header .ep-account-menu__icon {
        width: 22px !important;
        height: 22px !important;
    }

    .site-header .ep-cart-link .ep-cart-count {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        min-width: 20px !important;
        width: auto !important;
        height: 20px !important;
        padding: 0 5px !important;
        border: 2px solid #ffffff !important;
        border-radius: 999px !important;
        background: #155f9f !important;
        color: #ffffff !important;
        box-shadow: 0 2px 7px rgba(14, 42, 58, 0.22) !important;
        font-size: 0.68rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    .site-header .ep-account-menu.is-authenticated
    .ep-account-menu__summary::after {
        position: absolute;
        top: 5px;
        right: 4px;
        margin: 0;
    }
}

@media (max-width: 460px) {
    .site-header .ep-cart-link,
    .site-header .ep-account-menu__summary {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    .site-header .ep-cart-link__icon,
    .site-header .ep-account-menu__icon {
        width: 21px !important;
        height: 21px !important;
    }
}

/* SESSION 786 MOBILE HEADER ICON CONTROLS END */

/* SESSION 787 MOBILE HEADER CART BADGE COLLISION FIX START */
@media (max-width: 980px) {
    /*
     * The canonical styles.css file contains older high-specificity,
     * !important cart-link rules. Match or exceed that specificity so the
     * Session 786 compact icon layout actually wins.
     */
    .site-header .main-nav > .ep-cart-link,
    .site-header nav > .ep-cart-link,
    .site-header a.ep-cart-link {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        flex: 0 0 46px !important;
        box-sizing: border-box !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /*
     * Keep the quantity badge inside the cart link's positioning context,
     * rather than allowing it to anchor near the following Account control.
     */
    .site-header .main-nav > .ep-cart-link > .ep-cart-count,
    .site-header nav > .ep-cart-link > .ep-cart-count,
    .site-header a.ep-cart-link > .ep-cart-count {
        position: absolute !important;
        top: -7px !important;
        right: -7px !important;
        z-index: 5 !important;
        width: auto !important;
        min-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        padding: 0 6px !important;
        border: 2px solid #ffffff !important;
        border-radius: 999px !important;
        background: #155f9f !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2) !important;
        font-size: 0.72rem !important;
        font-weight: 950 !important;
        line-height: 18px !important;
        text-align: center !important;
        transform: none !important;
        pointer-events: none !important;
    }

    /*
     * Recover the space taken by the oversized cart pill and keep the brand
     * word readable instead of clipping it after "Ap".
     */
    .site-header .brand-mark {
        min-width: 0 !important;
        overflow: visible !important;
    }

    .site-header .brand-mark strong {
        display: inline-block !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
}

@media (max-width: 460px) {
    .site-header .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        column-gap: 0.45rem !important;
    }

    .site-header .main-nav > .ep-cart-link,
    .site-header nav > .ep-cart-link,
    .site-header a.ep-cart-link {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        flex-basis: 44px !important;
    }

    .site-header .brand-mark {
        gap: 0.35rem !important;
    }

    .site-header .brand-logo {
        max-width: 120px !important;
        max-height: 38px !important;
    }

    .site-header .brand-mark strong {
        font-size: 0.76rem !important;
        line-height: 1 !important;
    }
}
/* SESSION 787 MOBILE HEADER CART BADGE COLLISION FIX END */
