.customer-carousel {
    position: relative;
    min-width: 0;
    padding-inline: 2.75rem;
}

.customer-logos {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    overflow-x: auto;
    scroll-margin-top: 8rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0.75rem 0.5rem;
}

.customer-logos::-webkit-scrollbar { display: none; }

.customer-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    border-radius: 0.25rem;
}

.customer-logo:first-child { margin-left: auto; }
.customer-logo:last-child { margin-right: auto; }

.customer-logo img {
    display: block;
    width: auto;
    height: 4.5rem;
    max-width: min(17.5rem, calc(100vw - 9rem));
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 220ms ease;
}

.customer-logo:hover img,
.customer-logo:focus-visible img { filter: grayscale(0); }

.customer-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.customer-controls[hidden] { display: none; }

.customer-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #ebecea;
    border-radius: 999px;
    background: #fff;
    color: #6c7367;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.customer-scroll[data-scroll="previous"] { left: 0; }
.customer-scroll[data-scroll="next"] { right: 0; }
.customer-scroll:hover:not(:disabled) { background: #f0f8f0; color: #274026; }
.customer-scroll:disabled { opacity: 0.25; cursor: default; }

.customer-logo:focus-visible,
.customer-logos:focus-visible,
.customer-scroll:focus-visible {
    outline: 2px solid #4f814c;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .customer-logo img,
    .customer-scroll { transition: none; }
}
