/* Fit All Categories and the six shopping links beside the wide Deals clock. */
@media (min-width: 1280px) and (max-width: 1535px) {
    #header .momo-desktop-bar--v15 {
        gap: 16px;
    }

    #header .momo-desktop-bar--v15 .momo-desktop-bar__link {
        padding-inline: 10px;
    }
}

@media (min-width: 1280px) and (max-width: 1399px) {
    #header .momo-desktop-bar--v15 {
        gap: 12px;
    }

    #header .momo-desktop-bar--v15 .momo-desktop-bar__links {
        gap: 2px;
    }

    #header .momo-desktop-bar--v15 .momo-desktop-bar__all {
        padding-inline: 12px;
        font-size: 13px;
    }

    #header .momo-desktop-bar--v15 .momo-desktop-bar__link {
        padding-inline: 8px;
        font-size: 13px;
    }
}

/*
 * Shared category drawer v1.5, following the supplied stacked-header reference.
 * Keep the heading outside the scrolling category panels at every breakpoint.
 * This stylesheet is already included by the v1.3 desktop navigation layout.
 */
#mobileMenu.momo-category-drawer--v15[open] {
    display: flex;
    flex-direction: column;
}

#mobileMenu.momo-category-drawer--v15 > .tal-tk-drawer-header,
#mobileMenu.momo-category-drawer--v15 > .tal-tk-sub-header {
    flex: 0 0 auto;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-drawer-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-subview {
    min-height: 100%;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    min-height: 72px;
    padding: 12px 8px;
    border-bottom: 8px solid #f3f3f4;
    background: #ffffff;
}

#mobileMenu.momo-category-drawer--v15 :is(.momo-category-header--root, .momo-category-header--nested) {
    gap: 2px;
    margin-bottom: 20px;
    padding: 12px 4px;
    border-bottom: 0;
    border-radius: 0 0 4px 4px;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-heading {
    min-width: 0;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-heading__eyebrow {
    display: block;
    margin: 0;
    color: #222222;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-header--nested .momo-category-heading__eyebrow {
    margin-bottom: 3px;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-heading__title {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    border-radius: 2px;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-heading__title:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-heading__title-name {
    white-space: normal;
    overflow-wrap: anywhere;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-back,
#mobileMenu.momo-category-drawer--v15 .tal-tk-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #4c4c4c;
    cursor: pointer;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-back:hover,
#mobileMenu.momo-category-drawer--v15 .tal-tk-close:hover {
    background: #f3f3f4;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-category-link {
    gap: 12px;
    min-height: 54px;
    padding: 10px 18px;
    border-bottom-color: #f0f0f2;
    line-height: 1.4;
}

/* Subcategories are plain rows; only main category branches have arrows. */
#mobileMenu.momo-category-drawer--v15 .momo-category-panel .tal-tk-category-link {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 14px;
}

#mobileMenu.momo-category-drawer--v15 .tal-tk-category-link > span:first-child {
    min-width: 0;
    margin-inline-start: 0;
    overflow-wrap: anywhere;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-panel {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

#mobileMenu.momo-category-drawer--v15 .momo-category-panel[data-momo-category-covered] {
    overflow: hidden;
}

#mobileMenu.momo-category-drawer--v15 :is(button, a):focus-visible {
    outline: 2px solid #2146cf;
    outline-offset: -3px;
}

@media (min-width: 1280px) {
    #mobileMenu.momo-category-drawer--v15 .momo-category-header--root {
        grid-template-columns: minmax(0, 1fr) 44px;
        padding-left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #mobileMenu.momo-category-drawer--v15,
    #mobileMenu.momo-category-drawer--v15 .momo-category-panel {
        transition-duration: 0s !important;
    }
}

/* Black Friday v1.6: a fixed-size badge with two short decorative shine passes. */
@media (min-width: 1280px) {
    #header .momo-desktop-bar .momo-black-friday-v16 {
        padding: 0 4px;
    }

    #header .momo-black-friday-v16 .momo-black-friday-v16__badge {
        box-sizing: border-box;
        position: relative;
        isolation: isolate;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 32px;
        padding: 6px 10px;
        overflow: hidden;
        border: 0;
        border-radius: 6px;
        background: #F00064;
        color: #050505;
        font-weight: 800;
        line-height: 20px;
        white-space: nowrap;
    }

    #header .momo-black-friday-v16 .momo-black-friday-v16__badge::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: -40% auto -40% 0;
        width: 38%;
        background: linear-gradient(90deg, transparent, rgb(255 255 255 / 46%), transparent);
        opacity: 0;
        transform: translateX(-160%) skewX(-18deg);
        pointer-events: none;
        animation: momo-black-friday-shine-v16 2.2s ease-in-out 2;
    }

    #header .momo-black-friday-v16 .momo-black-friday-v16__icon,
    #header .momo-black-friday-v16 .momo-black-friday-v16__label {
        position: relative;
        z-index: 1;
        color: #050505;
    }

    #header .momo-black-friday-v16 .momo-black-friday-v16__icon {
        display: block;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
    }

    #header .momo-black-friday-v16:is(:hover, :focus-visible) .momo-black-friday-v16__badge {
        background: #F00064;
        color: #050505;
        box-shadow: inset 0 0 0 1px #050505;
    }

    #header .momo-black-friday-v16:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -3px;
    }
}

@keyframes momo-black-friday-shine-v16 {
    0%, 12% {
        opacity: 0;
        transform: translateX(-160%) skewX(-18deg);
    }
    20% {
        opacity: 1;
    }
    52% {
        opacity: 1;
        transform: translateX(360%) skewX(-18deg);
    }
    60%, 100% {
        opacity: 0;
        transform: translateX(360%) skewX(-18deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #header .momo-black-friday-v16 .momo-black-friday-v16__badge::before {
        animation: none;
        opacity: 0;
    }
}
