.home-category-rail,
[data-home-category-spacer] {
    display: none;
}

@media (min-width: 901px) {
    body:has(.new-heads_js-main) [data-home-category-spacer] {
        display: block;
        height: 48px;
    }

    /* The fixed header may compact its top row; the carousel and spacer stay put. */
    body.has-home-category-rail:has(.new-heads_js-main) {
        padding-top: 140px;
    }

    .has-home-category-rail .new-heads__search-category-btn {
        display: none;
    }

    .home-category-rail {
        display: block;
        background: #fff;
    }

    .home-category-rail__inner {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 1170px;
        min-height: 56px;
        margin-inline: auto;
        padding-inline: 16px;
    }

    .home-category-rail__chips {
        display: flex;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding-block: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 40px;
    }

    .home-category-rail__chips::-webkit-scrollbar {
        display: none;
    }

    .home-category-rail__chip {
        display: inline-flex;
        align-items: center;
        flex: none;
        gap: 8px;
        min-height: 40px;
        padding: 0 16px;
        border: 0;
        border-radius: 30px;
        background: #f2f4f8;
        color: #282828;
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        transition: background-color 150ms ease, color 150ms ease;
    }

    .home-category-rail__chip[aria-pressed="true"] {
        background: var(--header-color-primary, #90278e);
        color: #fff;
    }

    .home-category-rail__chip > svg {
        flex: none;
        width: 18px;
        height: 18px;
    }

    .home-category-rail__chip svg,
    .home-category-rail__chip svg * {
        color: inherit;
    }

    .home-category-rail__arrow.arrowInCircle {
        position: absolute;
        z-index: 1;
        inset-block: 0;
        width: 32px;
        height: 32px;
        margin-block: auto;
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: 0 2px 12px rgb(32 32 44 / 14%);
    }

    .home-category-rail__arrow.previous {
        inset-inline-start: 24px;
    }

    .home-category-rail__arrow.next {
        inset-inline-end: 24px;
    }

    .home-category-rail__arrow:disabled {
        visibility: hidden;
        pointer-events: none;
    }

    .home-category-rail__chip:not([aria-pressed="true"]):hover,
    .home-category-rail__arrow:enabled:hover {
        background: #e9e9ef;
    }

    .home-category-rail__chip:focus-visible,
    .home-category-rail__arrow:focus-visible {
        outline: 2px solid var(--header-color-primary, #90278e);
        outline-offset: 2px;
    }

    .home-category-rail__chips > .home-category-rail__chip:first-child:focus-visible {
        outline-offset: -3px;
        outline-color: currentColor;
    }

    .has-home-category-rail #partnerOffersSearchable {
        scroll-margin-top: 168px;
    }

    @media (prefers-reduced-motion: reduce) {
        .home-category-rail__chip {
            transition: none;
        }
    }
}
