#snackys-tpl .to-home-manufacturers {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: var(--color-white);
    font-family: var(--font-family-base);
}

#snackys-tpl .to-home-manufacturers__inner {
    width: 100%;
    max-width: 1534px;
    margin: 0 auto;
    padding: 16px 64px;
}

#snackys-tpl .to-home-manufacturers__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

#snackys-tpl .to-home-manufacturers__item,
#snackys-tpl .to-home-manufacturers__item:visited {
    display: flex;
    min-width: 0;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--color-white);
    color: var(--color-primary-100);
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

#snackys-tpl a.to-home-manufacturers__item:hover,
#snackys-tpl a.to-home-manufacturers__item:focus-visible {
    transform: scale(1.04);
}

#snackys-tpl .to-home-manufacturers__item.is-static {
    cursor: default;
    pointer-events: none;
}

#snackys-tpl .to-home-manufacturers__item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--color-primary-100);
    outline-offset: -2px;
}

#snackys-tpl .to-home-manufacturers__item img {
    display: block;
    width: 100%;
    max-width: calc(110px * var(--brand-logo-scale, 1));
    height: auto !important;
    max-height: calc(77px * var(--brand-logo-scale, 1));
    object-fit: contain;
}

#snackys-tpl .to-home-manufacturers [data-brand-logo="hp"] {
    --brand-logo-scale: .5;
}

@media (max-width: 1199px) {
    #snackys-tpl .to-home-manufacturers__inner {
        padding: 10px 0;
    }

    #snackys-tpl .to-home-manufacturers__grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 0 16px;
        scroll-padding-inline: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #snackys-tpl .to-home-manufacturers__grid::-webkit-scrollbar {
        display: none;
    }

    #snackys-tpl .to-home-manufacturers__item {
        flex: 0 0 110px;
        min-height: 72px;
        padding: 8px;
        scroll-snap-align: start;
    }

    #snackys-tpl .to-home-manufacturers__item img {
        max-width: calc(96px * var(--brand-logo-scale, 1));
        max-height: calc(54px * var(--brand-logo-scale, 1));
    }
}

@media (max-width: 767px) {
    #snackys-tpl .to-home-manufacturers__grid {
        justify-content: flex-start;
        gap: 4px;
    }

    #snackys-tpl .to-home-manufacturers__item {
        flex: 0 0 88px;
        min-height: 56px;
    }

    #snackys-tpl .to-home-manufacturers__item img {
        max-width: calc(72px * var(--brand-logo-scale, 1));
        max-height: calc(40px * var(--brand-logo-scale, 1));
    }
}

/* Overflow marquee (enabled by JS when the row does not fit). */
#snackys-tpl .to-home-manufacturers.is-marquee .to-home-manufacturers__inner {
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
}

#snackys-tpl .to-home-manufacturers.is-marquee .to-home-manufacturers__grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0 16px;
    overflow: visible;
    scroll-snap-type: none;
    animation: to-home-manufacturers-marquee var(--to-home-manufacturers-duration, 40s) linear infinite;
    will-change: transform;
}

#snackys-tpl .to-home-manufacturers.is-marquee .to-home-manufacturers__item {
    scroll-snap-align: none;
}

#snackys-tpl .to-home-manufacturers.is-marquee:hover .to-home-manufacturers__grid,
#snackys-tpl .to-home-manufacturers.is-marquee:focus-within .to-home-manufacturers__grid {
    animation-play-state: paused;
}

@keyframes to-home-manufacturers-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-1 * var(--to-home-manufacturers-distance, 50%)), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #snackys-tpl .to-home-manufacturers.is-marquee .to-home-manufacturers__grid {
        animation: none;
        width: auto;
        max-width: 100%;
        overflow-x: auto;
    }
}
