.home-shop-notice
{
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    color: var(--public-muted-text);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.home-shop-notice__icon
{
    /* Align the drawing to the lowercase and capital letters of the current font. */
    position: relative;
    width: 16px;
    height: 0.72em;
    height: 1cap;
    flex: none;
    color: var(--public-primary);
}

.home-shop-notice__icon .flexicon
{
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    transform: translateY(-50%);
}

.flow-finder__panel:has(.giftfinder--accordion .home-finder-intro)
{
    padding-inline: 1rem;
}

.flow-finder .home-finder-intro
{
    --home-finder-intro-gap: 12px;
    margin-block-end: calc(var(--home-finder-intro-gap) - var(--gf-group-gap, 0px));
}

.home-finder-intro p
{
    position: relative;
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--public-muted-text);
}

.home-finder-intro__arrow
{
    position: absolute;
    inset-block-start: 0.5lh;
    inset-inline-end: 100%;
    width: 0.875rem;
    height: calc(100% - 0.5lh + var(--home-finder-intro-gap) + 1.5rem);
    color: color-mix(in srgb, var(--public-primary-strong) 65%, var(--public-surface));
    pointer-events: none;
    visibility: hidden;
}

.flow-finder:has(.sd-overview > [data-tag-type-key='relation']:first-child, .home-finder-intro + [data-tag-type-key='relation']):not(:has(.sd-cell--selected, .gf-group.has-selection, .sd-page--open)) .home-finder-intro__arrow
{
    visibility: visible;
}

.flow-finder .sd-cell[data-tag-type-key='relation']:not(.sd-cell--selected):not(:hover),
.flow-finder .gf-group[data-tag-type-key='relation']:not(.has-selection) .gf-toggle:not(:hover)
{
    background: #FBE8D9;
}

.flow-intro__action .home-shop-notice
{
    max-width: 16rem;
}

.gf-footer .home-shop-notice
{
    display: none;
}

.home-brands
{
    grid-column: 1 / -1;
    min-width: 0;
    padding-block-end: 1.5rem;
}

.home-brands__header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    margin-bottom: 0.75rem;
}

.home-brands__header h2
{
    margin: 0;
    color: var(--public-text);
    font-size: clamp(1.25rem, 2.2vw, 1.875rem);
    line-height: 1.2;
}

.home-brands__controls:not([hidden])
{
    display: flex;
    flex: none;
    gap: 0.375rem;
}

.home-brands__controls button
{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--public-border);
    border-radius: 50%;
    background: var(--public-surface);
    color: var(--public-text);
    cursor: pointer;
}

.home-brands__controls button[aria-disabled='true']
{
    opacity: 0.45;
    cursor: default;
}

.home-brands__controls button[aria-disabled='false']:hover
{
    border-color: var(--public-primary);
    color: var(--public-primary);
}

.home-brands :focus-visible
{
    outline: 3px solid var(--public-primary);
    outline-offset: 2px;
}

.home-brands__list
{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(6.75rem, 14vw, 9.5rem);
    grid-auto-rows: minmax(clamp(4.75rem, 9vw, 6.5rem), auto);
    gap: clamp(0.5rem, 1.2vw, 1rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    margin: 0;
    padding: 0;
    list-style: none;
    scrollbar-width: none;
}

.home-brands__list::-webkit-scrollbar
{
    display: none;
}

.home-brands__list.is-scrollable
{
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.home-brands__list.is-dragging
{
    cursor: grabbing;
    scroll-snap-type: none;
}

.home-brands__scroll-indicator
{
    position: relative;
    height: 3px;
    margin-top: 3px;
    opacity: 0;
    pointer-events: none;
}

.home-brands__list.is-dragging + .home-brands__scroll-indicator
{
    opacity: 1;
}

.home-brands__scroll-indicator span
{
    position: absolute;
    inset-block: 0;
    left: 0;
    border-radius: 2px;
    background: var(--public-muted-text);
}

.home-brands__list li
{
    display: grid;
    min-width: 0;
    scroll-snap-align: start;
}

.home-brands__tile
{
    display: grid;
    place-items: center;
    padding: 0.75rem;
    border: 1px solid var(--public-border);
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
}

.home-brands__tile[href]:hover,
.home-brands__tile[href]:focus-visible
{
    border-color: var(--public-primary);
    box-shadow: inset 0 0 0 1px var(--public-primary);
}

.home-brands__tile[href]:focus-visible
{
    outline-offset: -3px;
}

.home-brands__list.is-dragging .home-brands__tile[href]
{
    cursor: grabbing;
}

.home-brands__list img
{
    contain: size;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.home-brands__name
{
    color: var(--public-text);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 959.98px)
{
    .flow-finder .sd-page:has(.home-finder-intro):has(.sd-rail[hidden])
    {
        --sd-overview-inset: 10px;
    }

    .home-brands
    {
        padding-top: 2px;
    }

    .home-brands__header h2
    {
        font-size: 1.125rem;
        font-weight: 600;
    }
}

@media (min-width: 960px)
{
    .flow-intro__action .home-shop-notice
    {
        display: none;
    }

    .gf-footer .home-shop-notice
    {
        display: flex;
    }
}
