.ycw-brands,
.ycw-brands * {
    box-sizing: border-box;
}

.ycw-brands {
    --ycw-brands-section-bg: transparent;
    --ycw-brands-card-bg: #ffffff;
    --ycw-brands-border: #e7e7e7;
    --ycw-brands-heading: inherit;
    --ycw-brands-text: inherit;
    --ycw-brands-heading-font: inherit;
    --ycw-brands-body-font: inherit;
    --ycw-brands-card-radius: 11px;
    --ycw-brands-card-shadow: 0 5px 16px rgba(0,0,0,.025);
    --ycw-brands-card-width: 240px;
    --ycw-brands-card-height: 184px;
    --ycw-brands-gap: 30px;
    --ycw-brands-logo-height: 82px;
    --ycw-brands-section-spacing: 72px;

    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: var(--ycw-brands-section-spacing) 0;
    overflow: hidden;
    background: var(--ycw-brands-section-bg);
    color: inherit;
    font-family: inherit;
}

.ycw-brands__heading {
    width: 100%;
    max-width: 100%;
    margin: 0 auto clamp(52px, 6vw, 76px);
    padding: 0;
    text-align: center;
}

.ycw-brands__title {
    margin-top: 0;
    margin-bottom: 21px;
}

.ycw-brands__subtitle {
    max-width: 900px;
    margin: 0 auto;
}

.ycw-brands__viewport {
    width: 100%;
    overflow: hidden;
}

.ycw-brands__track,
.ycw-brands__set {
    display: flex;
    align-items: stretch;
    width: max-content;
}

.ycw-brands__track {
    will-change: transform;
    transform: translate3d(0,0,0);
}

.ycw-brands__set {
    gap: var(--ycw-brands-gap);
    padding-right: var(--ycw-brands-gap);
}

.ycw-brands__card {
    flex: 0 0 var(--ycw-brands-card-width);
    width: var(--ycw-brands-card-width);
    height: var(--ycw-brands-card-height);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    background: var(--ycw-brands-card-bg);
    border: 1px solid var(--ycw-brands-border);
    border-radius: var(--ycw-brands-card-radius);
    box-shadow: var(--ycw-brands-card-shadow);
}

.ycw-brands__link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 2.5vw, 38px);
    color: var(--ycw-brands-heading);
    text-decoration: none !important;
    outline: none;
}

.ycw-brands__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: var(--ycw-brands-logo-height);
    object-fit: contain;
    opacity: .72;
    transform: translateZ(0);
    transition: opacity .22s ease, filter .22s ease, transform .22s ease;
}

.ycw-brands--grayscale .ycw-brands__logo {
    filter: grayscale(1);
}

.ycw-brands__fallback {
    max-width: 100%;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: center;
}

.ycw-brands__link[href]:hover .ycw-brands__logo,
.ycw-brands__link[href]:focus-visible .ycw-brands__logo {
    opacity: 1;
    transform: scale(1.025);
}

.ycw-brands--grayscale .ycw-brands__link[href]:hover .ycw-brands__logo,
.ycw-brands--grayscale .ycw-brands__link[href]:focus-visible .ycw-brands__logo {
    filter: grayscale(.15);
}

.ycw-brands__link[href]:focus-visible {
    box-shadow: inset 0 0 0 3px currentColor;
}

.ycw-brands--static .ycw-brands__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ycw-brands--static .ycw-brands__viewport::-webkit-scrollbar {
    display: none;
}

.ycw-brands--static .ycw-brands__track {
    padding: 0;
}

.ycw-brands-empty {
    padding: 14px 18px;
    border: 1px dashed #c3c4c7;
    background: #fff;
    color: #50575e;
}

@media (max-width: 782px) {
    .ycw-brands {
        --ycw-brands-card-width: min(210px, 72vw) !important;
        --ycw-brands-card-height: 150px !important;
        --ycw-brands-gap: 16px !important;
        padding-top: clamp(46px, var(--ycw-brands-section-spacing), 72px);
        padding-bottom: clamp(46px, var(--ycw-brands-section-spacing), 72px);
    }

    .ycw-brands__heading {
        width: 100%;
        max-width: 100%;
        margin-bottom: 42px;
        padding-inline: 0;
    }

    .ycw-brands__title {
        margin-bottom: 16px;
    }

    .ycw-brands__link {
        padding: 26px;
    }

    .ycw-brands__logo {
        max-height: min(var(--ycw-brands-logo-height), 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ycw-brands--marquee .ycw-brands__viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ycw-brands--marquee .ycw-brands__viewport::-webkit-scrollbar {
        display: none;
    }

    .ycw-brands--marquee .ycw-brands__track {
        transform: none !important;
    }

    .ycw-brands__logo {
        transition: none;
    }
}
