/* The scrollable rails and filter shelf are progressively enhanced. */
.mhb-final .mhb-rail-box {
    --mhb-arrow-top: 70px;
    position: relative;
    min-width: 0;
}
.mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > :is(.mhb-product-grid, .mhb-set-grid) {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * var(--mhb-rail-gap)) / 5);
    --mhb-rail-gap: 14px;
    --mhb-rail-mode: desktop;
    gap: var(--mhb-rail-gap);
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-block: 2px 6px;
}
.mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > .mhb-set-grid {
    grid-auto-columns: calc((100% - var(--mhb-rail-gap)) / 2);
}
.mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > :is(.mhb-product-grid, .mhb-set-grid)::-webkit-scrollbar {
    display: none;
}
.mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > :is(.mhb-product-grid, .mhb-set-grid) > :is(.mhb-product, .mhb-set) {
    min-width: 0;
    scroll-snap-align: start;
}
.mhb-final .mhb-rail-box :is(.mhb-product, .mhb-set):focus-visible {
    outline-offset: -3px;
}
.mhb-final .mhb-rail-box .mhb-product h3 {
    overflow-wrap: anywhere;
}
.mhb-final .mhb-rail-arrow {
    position: absolute;
    z-index: 2;
    top: var(--mhb-arrow-top);
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #253f4e;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mhb-final .mhb-rail-arrow-prev { left: 0; }
.mhb-final .mhb-rail-arrow-next { right: 0; }
.mhb-final .mhb-rail-glass {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, .54);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: none;
}
.mhb-final .mhb-rail-glass::after {
    content: '';
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-1.5px) scale(.86) rotate(-45deg);
}
.mhb-final .mhb-rail-arrow-prev .mhb-rail-glass::after {
    transform: translateX(1.5px) scale(.86) rotate(135deg);
}
@media (hover: hover) {
    .mhb-final .mhb-rail-arrow:hover .mhb-rail-glass {
        background: rgba(255, 255, 255, .84);
        border-color: #344d591c;
        color: #883d1e;
    }
}
.mhb-final .mhb-rail-arrow:focus-visible,
.mhb-final .mhb-filter-more:focus-visible {
    outline: 3px solid #b84d1d;
    outline-offset: -2px;
}
.mhb-final .mhb-rail-arrow:focus-visible .mhb-rail-glass {
    background: #fff;
    color: #873c1b;
}
.mhb-final .mhb-rail-arrow:active .mhb-rail-glass {
    background: #f9f2ee;
}
.mhb-final .mhb-shelf-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.mhb-final .mhb-shelf-empty {
    padding: 8px 0;
    color: #536773;
    font-size: 14px;
}
.mhb-final .mhb-filter-bar {
    position: relative;
    min-width: 0;
    margin: 0 0 9px;
}
.mhb-final .mhb-filter-bar .mhb-child-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    margin: 0;
}
.mhb-final .mhb-rail-ready .mhb-filter-bar :is(.mhb-child-links, .mhb-filter-popup) > .mhb-group,
.mhb-final .mhb-filter-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 35px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #465d6a;
    background: #fff;
    font: 550 13px/1.3 system-ui, sans-serif;
    text-transform: none;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.mhb-final .mhb-rail-ready .mhb-filter-bar :is(.mhb-child-links, .mhb-filter-popup) > .mhb-group:is(:hover, :focus-visible),
.mhb-final .mhb-filter-more:is(:hover, [aria-expanded='true']) {
    color: #873c1b;
    background: #faf5f1;
    border-color: #c7a28e;
}
.mhb-final .mhb-rail-ready .mhb-filter-bar :is(.mhb-child-links, .mhb-filter-popup) > .mhb-group[aria-pressed='true'] {
    color: #873c1b;
    background: #fbf2ec;
    border-color: #cfac9b;
}
.mhb-final .mhb-rail-ready .mhb-filter-bar :is(.mhb-child-links, .mhb-filter-popup) > .mhb-group:focus-visible {
    outline: 3px solid #b84d1d;
    outline-offset: -2px;
}
.mhb-final .mhb-filter-more {
    border-color: #cdd8db;
    font-variant-numeric: tabular-nums;
}
.mhb-final .mhb-filter-popup {
    position: absolute;
    z-index: 6;
    width: max-content;
    max-width: 100%;
    max-height: min(410px, 56vh);
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d6dfe1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 22px #20374824;
}
.mhb-final .mhb-rail-ready .mhb-filter-bar .mhb-filter-popup > .mhb-group {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-inline: 11px;
    text-align: left;
}
.mhb-final .mhb-filter-track {
    position: relative;
    height: 3px;
    margin: 4px 2px 1px;
    border-radius: 3px;
    background: #e2e7e9;
}
.mhb-final .mhb-filter-thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: #758994;
}
@container (max-width: 590px) {
    .mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > .mhb-product-grid {
        grid-auto-columns: calc((100% - 36px) / 2);
        --mhb-rail-gap: 10px;
        --mhb-rail-mode: mobile;
    }
    .mhb-final :is(.mhb-rail-box, .mhb-campaign, .mhb-shelf, .mhb-sets) > .mhb-set-grid {
        grid-auto-columns: calc(100% - 28px);
        --mhb-rail-gap: 10px;
        --mhb-rail-mode: mobile;
    }
    .mhb-final .mhb-rail-box .mhb-product h3 { font-size: 14px; }
    .mhb-final .mhb-rail-arrow { display:none; }
    .mhb-final .mhb-filter-bar .mhb-child-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        user-select: none;
    }
    .mhb-final .mhb-filter-bar .mhb-child-links::-webkit-scrollbar { display: none; }
    .mhb-final .mhb-rail-ready .mhb-filter-bar :is(.mhb-child-links, .mhb-filter-popup) > .mhb-group {
        max-width: none;
        min-width: 44px;
        min-height: 44px;
        padding-inline: 8px;
        white-space: nowrap;
    }
    .mhb-final .mhb-filter-bar .mhb-filter-more,
    .mhb-final .mhb-filter-bar .mhb-filter-popup { display: none; }
}
@media (forced-colors: active) {
    .mhb-final .mhb-rail-glass {
        background: ButtonFace;
        border-color: ButtonText;
        color: ButtonText;
    }
    .mhb-final .mhb-filter-track { border: 1px solid CanvasText; }
    .mhb-final .mhb-filter-thumb { background: Highlight; }
}

@media (pointer: coarse) and (hover: none) and (max-height: 600px) and (max-width: 1000px) {
    .mhb-final .mhb-rail-arrow { display:none; }
}
.mhb-final .mhb-filter-bar .mhb-group[data-loading] {
    color: #873c1b;
    text-decoration: underline;
    text-underline-offset: 3px;
}
