.ccm-marquee {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #202020;
    --ccm-card-height: 62px;
    --ccm-gap: 8px;
    --ccm-loop-distance: -70px;
}

.ccm-marquee *,
.ccm-marquee *::before,
.ccm-marquee *::after {
    box-sizing: border-box;
}

.ccm-viewport {
    position: relative;
    width: 100%;
    height: 272px; /* 4 x 62px cards + 3 x 8px gaps; JS recalculates from actual Elementor values */
    overflow: hidden;
}

.ccm-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--ccm-gap);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ccm-card {
    position: relative;
    display: block;
    flex: 0 0 var(--ccm-card-height);
    width: 100%;
    height: var(--ccm-card-height);
    min-height: var(--ccm-card-height);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #020708;
    text-decoration: none;
    isolation: isolate;
}

.ccm-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.ccm-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .72) 0%,
        rgba(0, 0, 0, .36) 27%,
        rgba(0, 0, 0, .05) 62%,
        rgba(0, 0, 0, .02) 100%
    );
}

.ccm-label {
    position: absolute;
    z-index: 2;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 22px);
    min-height: 36px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #050809;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.ccm-mask .ccm-viewport::before,
.ccm-mask .ccm-viewport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 5;
    pointer-events: none;
}

.ccm-mask .ccm-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, #202020 0%, rgba(32,32,32,0) 100%);
}

.ccm-mask .ccm-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, #202020 0%, rgba(32,32,32,0) 100%);
}

@media (max-width: 767px) {
    .ccm-viewport {
        height: 272px;
    }

    .ccm-card {
        border-radius: 11px;
    }

    .ccm-label {
        left: 10px;
        min-height: 34px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccm-track {
        animation-play-state: paused !important;
    }
}
