.chaps-logo-client-component {
    display: block;
}

/* ─── Wrapper ─────────────────────────── */
.chaps-logo-client-component__wrapper {
    padding-top: var(--clc-pt, 3rem);
    padding-bottom: var(--clc-pb, 3rem);
    overflow: hidden;
}

/* ─── Title ─────────────────────────── */
.chaps-logo-client-component__title {
    margin-bottom: 2rem;
}

.chaps-logo-client-component__title * {
    color: var(--clc-title-color, #18211E) !important;
    margin: 0;
}

/* ─── Carousel ─────────────────────────── */
.chaps-logo-client-component__carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Fade masks */
.chaps-logo-client-component__carousel::before,
.chaps-logo-client-component__carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.chaps-logo-client-component__carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.chaps-logo-client-component__carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* ─── Track ─────────────────────────── */
.chaps-logo-client-component__track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--clc-gap, 64px);
    width: max-content;
    will-change: transform;
}

/* ─── Item ─────────────────────────── */
.chaps-logo-client-component__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ─── Link ─────────────────────────── */
.chaps-logo-client-component__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: var(--clc-logo-opacity, 0.65);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.chaps-logo-client-component__link:hover,
.chaps-logo-client-component__link:focus-visible {
    opacity: var(--clc-logo-opacity-hover, 1);
    transform: scale(1.05);
    outline: none;
}

/* span version */
span.chaps-logo-client-component__link {
    cursor: default;
}

span.chaps-logo-client-component__link:hover {
    transform: none;
}

/* ─── Logo img ─────────────────────────── */
.chaps-logo-client-component__logo-img {
    height: var(--clc-logo-height, 48px);
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.25s ease;
}

.chaps-logo-client-component__link:hover .chaps-logo-client-component__logo-img,
.chaps-logo-client-component__link:focus-visible .chaps-logo-client-component__logo-img {
    filter: grayscale(0%);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 639px) {
    .chaps-logo-client-component__wrapper {
        padding-top: calc(var(--clc-pt, 3rem) * 0.65);
        padding-bottom: calc(var(--clc-pb, 3rem) * 0.65);
    }

    .chaps-logo-client-component__title {
        margin-bottom: 1.25rem;
    }

    .chaps-logo-client-component__carousel::before,
    .chaps-logo-client-component__carousel::after {
        width: 40px;
    }
}

/* ─── Keyframe ─────────────────────────── */
@keyframes clc-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--clc-scroll-distance, -50%));
    }
}