
/* BARIK LAB — Product Variations 1.0.6 */

.barik-variation-ui{
    margin: 0 0 24px;
}

.barik-option-group{
    margin-bottom: 20px;
}

.barik-option-label{
    margin-bottom: 10px;
    font-size: 16px;
}

.barik-color-list,
.barik-size-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.barik-color{
    appearance:none;
    width:38px;
    height:38px;
    border:1px solid #b9b9b9;
    background:var(--barik-color);
    padding:3px;
    position:relative;
    cursor:pointer;
}

.barik-color:before{
    content:"";
    display:block;
    width:100%;
    height:100%;
    background:var(--barik-color);
    border:1px solid rgba(0,0,0,.08);
}


.barik-color.is-disabled,
.barik-color:disabled{
    opacity:.32;
    cursor:not-allowed;
}
.barik-color.is-disabled:after{
    content:"";
    position:absolute;
    left:2px;
    right:2px;
    top:50%;
    height:1px;
    background:#111;
    transform:rotate(-45deg);
    z-index:3;
}
.barik-color.is-selected{
    outline:3px solid #111;
    outline-offset:2px;
}

.barik-clear{
    appearance:none;
    border:0;
    background:none;
    padding:8px 0 0;
    cursor:pointer;
    text-decoration:none;
    opacity:.75;
}

.barik-size{
    appearance:none;
    min-width:56px;
    height:44px;
    padding:0 14px;
    border:1px solid #bdbdbd;
    background:#fff;
    cursor:pointer;
    position:relative;
}

.barik-size.is-selected{
    outline:3px solid #111;
    outline-offset:-3px;
}

.barik-size.is-disabled,
.barik-size:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.barik-size.is-disabled:after{
    content:"";
    position:absolute;
    left:8px;
    right:8px;
    top:50%;
    height:1px;
    background:#111;
    transform:rotate(-35deg);
}

.woocommerce-product-gallery.barik-gallery-active .woocommerce-product-gallery__wrapper{
    width:100%!important;
    display:block!important;
    transform:none!important;
}

.woocommerce-product-gallery.barik-gallery-active .barik-slide{
    display:none!important;
    width:100%!important;
    float:none!important;
    margin:0!important;
}

.woocommerce-product-gallery.barik-gallery-active .barik-slide.is-active{
    display:block!important;
}

.woocommerce-product-gallery.barik-gallery-active .barik-slide img{
    width:100%;
    height:auto;
    display:block;
}

.barik-thumbs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.barik-thumb{
    appearance:none;
    width:82px;
    height:82px;
    padding:2px;
    border:1px solid #d3d3d3;
    background:#fff;
    cursor:pointer;
}

.barik-thumb.is-active{
    border-color:#111;
}

.barik-thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

@media (max-width: 768px){
    .barik-color{
        width:34px;
        height:34px;
    }

    .barik-size{
        min-width:52px;
    }

    .barik-thumb{
        width:68px;
        height:68px;
    }
}

/* 1.0.3 — Shopwell Quick View */
.quick-view-panel .barik-variation-ui,
.quick-view-modal .barik-variation-ui{
    margin-top: 8px;
    margin-bottom: 18px;
}
.quick-view-panel .barik-option-group,
.quick-view-modal .barik-option-group{
    margin-bottom: 16px;
}
.quick-view-panel .barik-color,
.quick-view-modal .barik-color{
    width: 36px;
    height: 36px;
}
.quick-view-panel .barik-size,
.quick-view-modal .barik-size{
    min-width: 58px;
    height: 38px;
}
