/* Yield Modern Checkout - AJAX quantity controls */
.ymc-qty-control,
.ymc-qty-control *{box-sizing:border-box!important}

.ymc-qty-control{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    min-height:38px;
    border:1px solid #dfe5dc!important;
    border-radius:10px!important;
    background:#fff!important;
    overflow:hidden!important;
    vertical-align:middle;
    transition:opacity .18s ease,border-color .18s ease;
}

.ymc-qty-control:focus-within{border-color:var(--ymc-sage,#5c8a63)!important}
.ymc-qty-control.is-updating{opacity:.55;pointer-events:none}

.ymc-qty-btn{
    width:34px!important;
    min-width:34px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--ymc-ink,#20291f)!important;
    font:600 18px/1 Arial,sans-serif!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    box-shadow:none!important;
}
.ymc-qty-btn:hover{background:var(--ymc-sage-soft,#e7efe3)!important;color:var(--ymc-sage,#5c8a63)!important}

.ymc-qty-input{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:36px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 3px!important;
    border:0!important;
    border-left:1px solid #edf0eb!important;
    border-right:1px solid #edf0eb!important;
    border-radius:0!important;
    background:#fff!important;
    color:var(--ymc-ink,#20291f)!important;
    text-align:center!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:36px!important;
    box-shadow:none!important;
    -moz-appearance:textfield!important;
}
.ymc-qty-input::-webkit-outer-spin-button,
.ymc-qty-input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
.ymc-qty-input:focus{outline:0!important;box-shadow:none!important}

.ymc-fixed-qty{font-size:12px;font-weight:600;color:#7a8377}
.ymc-mini-native-qty{display:none!important}

/* Checkout summary: keep product rows compact. */
.woocommerce-checkout-review-order-table .ymc-qty-checkout{
    margin-top:7px!important;
    min-height:32px!important;
    border-radius:8px!important;
}
.woocommerce-checkout-review-order-table .ymc-qty-checkout .ymc-qty-btn{
    width:29px!important;min-width:29px!important;height:30px!important;min-height:30px!important;font-size:15px!important;
}
.woocommerce-checkout-review-order-table .ymc-qty-checkout .ymc-qty-input{
    width:34px!important;min-width:34px!important;max-width:34px!important;height:30px!important;min-height:30px!important;line-height:30px!important;font-size:12px!important;
}

/* Default cart */
.woocommerce-cart-form .product-quantity .ymc-qty-control{margin:0!important}

/* Standard Woo mini cart */
.woocommerce-mini-cart-item .ymc-qty-mini{margin-top:8px!important}

/* Xootix Side Cart WooCommerce */
.xoo-wsc-product .ymc-qty-xootix{
    margin-top:9px!important;
    min-height:34px!important;
    width:max-content!important;
    max-width:120px!important;
}
.xoo-wsc-product .ymc-qty-xootix .ymc-qty-btn{
    width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important;font-size:16px!important;
}
.xoo-wsc-product .ymc-qty-xootix .ymc-qty-input{
    width:38px!important;min-width:38px!important;max-width:38px!important;height:32px!important;min-height:32px!important;line-height:32px!important;font-size:12px!important;
}

@media (max-width:767px){
    .ymc-qty-control{min-height:36px}
    .ymc-qty-btn{width:32px!important;min-width:32px!important;height:34px!important;min-height:34px!important}
    .ymc-qty-input{width:38px!important;min-width:38px!important;max-width:38px!important;height:34px!important;min-height:34px!important;line-height:34px!important}

    .woocommerce-cart-form .product-quantity .ymc-qty-control{margin-left:auto!important}
}
