/* Uyut34 — Количество в корзине v0.1.12
 * Product page: CSS v0.1.9 оставлен без изменения.
 * Catalog: штатный hidden quantity UniShop2 преобразуется на месте в qty-switch.
 */

/* ===== КАТАЛОГ ===== */
.product-thumb__cart > .qty-switch.uyut34-cart-qty-shell:not(.uyut34-cart-qty-active){
    display:none !important;
}
.product-thumb .product-thumb__cart.uyut34-cart-linked > .qty-switch{
    display:flex !important;
    float:none;
    order:2;
    flex:0 0 auto;
    height:38px;
    margin:0 0 0 7px;
}
.product-thumb__cart.uyut34-cart-linked > .product-thumb__add-to-cart{
    order:1;
    flex:1 1 auto;
    min-width:0;
    max-width:none;
}
.product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active > span{
    display:contents;
}
.product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__input{
    order:2;
    flex:0 0 38px;
    width:38px;
    min-width:38px;
    height:38px;
    padding:0 5px;
    text-align:center;
    font-weight:600;
    color:#333;
    background:#fff;
    border:1px solid #e3e3e3 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
    box-shadow:none;
}
.product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 34px;
    width:34px;
    min-width:34px;
    height:38px;
    line-height:38px;
    padding:0;
    font-size:.6em;
    color:#666;
    background:#f5f5f5;
    border:1px solid #e3e3e3 !important;
    cursor:pointer;
}
.product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa-minus{
    order:1;
    border-radius:var(--border-radius-1-0-0-1) !important;
}
.product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa-plus{
    order:3;
    border-radius:var(--border-radius-0-1-1-0) !important;
}

/* ===== КАРТОЧКА ТОВАРА — БЕЗ ИЗМЕНЕНИЙ ОТ v0.1.9 ===== */
.product-page__cart > .qty-switch.uyut34-cart-qty-active{
    position:relative;
    z-index:2;
}
.product-page__cart > .qty-switch.uyut34-cart-qty-active > span{
    display:contents;
}
.product-page__cart > .qty-switch.uyut34-cart-qty-active .qty-switch__input{
    order:2;
    flex:0 0 28px;
    width:28px;
    min-width:28px;
    height:38px;
    padding:0;
    text-align:center;
    font-weight:600;
    color:#333;
    background:#fff;
    border:1px solid #e3e3e3 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-radius:0 !important;
    box-shadow:none;
}
.product-page__cart > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 21px;
    width:21px;
    min-width:21px;
    height:38px;
    line-height:38px;
    padding:0;
    font-size:.6em;
    color:#666;
    background:#f5f5f5;
    border:1px solid #e3e3e3 !important;
    cursor:pointer;
}
.product-page__cart > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa-minus{
    order:1;
    border-radius:var(--border-radius-1-0-0-1) !important;
}
.product-page__cart > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa-plus{
    order:3;
    border-radius:var(--border-radius-0-1-1-0) !important;
}

@media (max-width:575px){
    .product-thumb .product-thumb__cart.uyut34-cart-linked > .qty-switch{
        margin-left:5px;
    }
    .product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__btn.fa{
        flex-basis:30px;
        width:30px;
        min-width:30px;
    }
    .product-thumb__cart.uyut34-cart-linked > .qty-switch.uyut34-cart-qty-active .qty-switch__input{
        flex-basis:32px;
        width:32px;
        min-width:32px;
        padding:0 3px;
    }
}
