button.cocos-photo-swatch.wc-block-product-filter-chips__item {
    box-sizing: border-box !important;
    flex: 0 0 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 84px !important;
    padding: 2px !important;
    border: 1px solid #c7c7c7 !important;
    border-radius: 4px !important;
    background: #fff !important;
    position: relative;
    overflow: hidden;
}
button.cocos-photo-swatch > .cocos-swatch-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    pointer-events: none;
}
button.cocos-photo-swatch > .wc-block-product-filter-chips__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
button.cocos-photo-swatch[aria-checked="true"] {
    border: 3px solid #77529b !important;
    padding: 0 !important;
}
button.cocos-photo-swatch:focus-visible {
    outline: 2px solid #77529b !important;
    outline-offset: 3px;
}
button.cocos-photo-swatch:disabled {
    opacity: .4;
    cursor: not-allowed;
}
button.cocos-photo-swatch[hidden] { display: none !important; }
.cocos-swatch-photo[hidden] { display: none !important; }
@media (max-width: 380px) {
    button.cocos-photo-swatch.wc-block-product-filter-chips__item {
        flex-basis: 54px !important;
        width: 54px !important;
        min-width: 54px !important;
        height: 70px !important;
    }
}

.cocos-gallery-replaced { display:none !important; }
.cocos-color-gallery { width:100%; min-width:0; }
.cocos-color-gallery > a, .cocos-color-gallery > a img { display:block; width:100%; height:auto; }
.cocos-gallery-thumbs { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.cocos-gallery-thumbs button { padding:2px; background:white; border:2px solid transparent; cursor:pointer; }
.cocos-gallery-thumbs button[aria-pressed=true] { border-color:currentColor; }
.cocos-gallery-thumbs img { display:block; width:64px; height:80px; object-fit:cover; }
