.wcds-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.wcds-viewport {
    flex: 1;
    overflow: hidden;
}

.wcds-track {
    display: flex;
    gap: 10px;
    transition: transform .3s ease;
    will-change: transform;
}

.wcds-swatch {
    flex: 0 0 calc((100% - 20px) / 3);
    aspect-ratio: 1 / 1;
    padding: 4px;
    border: 1px solid #dcdcdc;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition:
            border-color .2s ease,
            transform .2s ease,
            box-shadow .2s ease;
}

.wcds-swatch:hover {
    border-color: #666;
    transform: translateY(-2px);
}

.wcds-swatch.active {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}

.wcds-swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

.wcds-nav {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#111;
    transition:
            background .2s ease,
            border-color .2s ease,
            opacity .2s ease;
}

.wcds-nav:hover {
    background: #111;
    color:#fff;
    border-color: #999;
}

.wcds-nav:disabled {
    opacity: .35;
    cursor: default;
}

.wcds-nav.hidden {
    display: none;
}

@media (max-width: 767px) {

    .wcds-swatches {
        gap: 8px;
    }

    .wcds-track {
        gap: 10px;
    }

    .wcds-swatch {
        /*flex: 0 0 calc((100% - 8px) / 2);*/
        flex: 0 0 65%;
    }

    .wcds-nav {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 16px;
        border-radius: 4px;
    }

}

/*.wcds-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}


.wcds-swatch {
    width: 70px;
    height: 70px;
    padding: 3px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, transform .2s ease;
}


.wcds-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.wcds-swatch:hover {
    transform: scale(1.05);
}


.wcds-swatch.active {
    border: 3px solid #000;
}


.wcds-swatch:focus {
    outline: none;
}*/