
/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


.wg-custom-view-stock{
    width: 100%;
    position: relative;
}
.wg-custom-view-stock .button{
    position: absolute;
    left: 275px;
    top: -52px;
}
.wg-custom-view-stock .variations-btns{
    display: none;
    justify-content: flex-start;
    gap: 10px;
}
.wg-custom-view-stock:has(.info.active) .variations-btns{
    display: flex;
}
.wg-custom-view-stock .variations-btns .btn.active{
    box-shadow: inset 0 0 200px rgba(0,0,0,0.1);
}
.wg-custom-view-stock .info{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.wg-custom-view-stock .info.variations > .variation:not(.active){
    display: none;
}
.wg-custom-view-stock .info:not(.active){
    display: none;
}
.wg-custom-view-stock .item{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--wd-form-brd-color);
}
.wg-custom-view-stock .item > *{
    width: calc(100% / 3);
}
.wg-custom-view-stock .item:last-child{
    border-bottom: none;
}
.wg-custom-view-stock .item .name{
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    color: #242424;
    text-align: left;
}
.wg-custom-view-stock .item .count{
    text-align: center;
}
.wg-custom-view-stock .item .name > .times{
    font-size: 12px;
}
.wg-custom-view-stock .item .isstock{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.wg-custom-view-stock .item .isstock > span{
    display: inline-flex;
    background-color: #F1F7EB;
    color: #85B951;
    padding: 8px 12px;
}

@media screen and (max-width: 1080px) {
    .wg-custom-view-stock{
        text-align: left!important;
    }
    .wg-custom-view-stock .button{
        position: static;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 767px){
    .wg-custom-view-stock .button{
        position: absolute;
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 550px) {
    .wg-custom-view-stock .button{
        position: static;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 400px) {
    .wg-custom-view-stock .item{
        flex-direction: column;
        row-gap: 10px;
        justify-content: flex-start;
    }
    .wg-custom-view-stock .item .count{
        text-align: left;
    }
    .wg-custom-view-stock .item .isstock{
        justify-content: flex-start;
    }
    .wg-custom-view-stock .item > *{
        width: 100%;
    }
}