

/* ==========================================
   UNIVERSAL ADD TO CART DESIGN SETTINGS
   Edit these values for BOTH product types.
   ========================================== */

body.single-product {
    --ml-cart-green:#0b8a00;
    --ml-cart-hover:#087300;
    --ml-cart-height:52px;
    --ml-cart-radius:50px;
    --ml-cart-font:17px;
    --ml-cart-price-font:18px;
    --ml-cart-icon-size:20px;
    --ml-cart-qty-width:94px;
    --ml-cart-gap:8px;
    --ml-cart-content-gap:8px;
}

/* Shared purchase row */

body.single-product form.cart.mlpv-universal-row,
body.single-product form.cart
.mlpv-universal-row {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:var(--ml-cart-gap)!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
}

/* Shared quantity selector */

body.single-product form.cart.mlpv-universal
.mlpv-universal-row .quantity,
body.single-product form.cart.mlpv-universal-row
.quantity {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 var(--ml-cart-qty-width)!important;
    width:var(--ml-cart-qty-width)!important;
    min-width:var(--ml-cart-qty-width)!important;
    max-width:var(--ml-cart-qty-width)!important;
    height:var(--ml-cart-height)!important;
    border:1px solid #333!important;
    border-radius:var(--ml-cart-radius)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    margin:0!important;
    padding:0!important;
}

body.single-product form.cart.mlpv-universal
.quantity .qty,
body.single-product form.cart.mlpv-universal
.quantity .plus,
body.single-product form.cart.mlpv-universal
.quantity .minus {
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
    height:calc(var(--ml-cart-height) - 2px)!important;
    min-height:0!important;
    font-size:15px!important;
    color:#222!important;
    text-align:center!important;
}

body.single-product form.cart.mlpv-universal
.quantity .qty {
    flex:1 1 32px!important;
    width:32px!important;
    min-width:0!important;
    appearance:textfield;
}

body.single-product form.cart.mlpv-universal
.quantity .qty::-webkit-inner-spin-button,
body.single-product form.cart.mlpv-universal
.quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance:none;
    margin:0;
}

body.single-product form.cart.mlpv-universal
.quantity .plus,
body.single-product form.cart.mlpv-universal
.quantity .minus {
    flex:0 0 29px!important;
    width:29px!important;
    min-width:29px!important;
}

/* Shared purchase button */

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:1 1 210px!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:var(--ml-cart-height)!important;
    height:auto!important;
    margin:0!important;
    padding:10px 12px!important;
    border-radius:var(--ml-cart-radius)!important;
    font-size:var(--ml-cart-font)!important;
    font-weight:650!important;
    letter-spacing:0!important;
    line-height:1.3!important;
    text-align:center!important;
    white-space:normal!important;
    box-sizing:border-box!important;
    transition:background-color .15s ease!important;
}

/* Shared ready state */

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="ready"]
:not(.unused-selector) {
    color:inherit;
}

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="ready"]
:not(.unused-selector) {
    box-sizing:border-box;
}

body.single-product form.cart.mlpv-universal
button.single_add_to_cart_button[data-mlpv-state="ready"]:not(.disabled):not(:disabled) {
    background:var(--ml-cart-green)!important;
    border:1px solid var(--ml-cart-green)!important;
    color:#fff!important;
    opacity:1!important;
}

body.single-product form.cart.mlpv-universal
button.single_add_to_cart_button[data-mlpv-state="ready"]:not(.disabled):not(:disabled):hover {
    background:var(--ml-cart-hover)!important;
    border-color:var(--ml-cart-hover)!important;
}

/* Shared icon, label and price */

body.single-product form.cart.mlpv-universal
.mlpv-cart-content {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:var(--ml-cart-content-gap)!important;
    font-size:var(--ml-cart-font)!important;
    line-height:1.3!important;
    color:inherit!important;
    max-width:100%!important;
}

body.single-product form.cart.mlpv-universal
.mlpv-cart-icon {
    width:var(--ml-cart-icon-size)!important;
    height:var(--ml-cart-icon-size)!important;
    flex-shrink:0!important;
    color:inherit!important;
}

body.single-product form.cart.mlpv-universal
.mlpv-cart-label {
    font-size:var(--ml-cart-font)!important;
    font-weight:650!important;
    color:inherit!important;
    white-space:nowrap!important;
}

body.single-product form.cart.mlpv-universal
.mlpv-cart-total {
    font-size:var(--ml-cart-price-font)!important;
    font-weight:750!important;
    color:inherit!important;
    border-left:1px solid rgba(255,255,255,.5);
    padding-left:var(--ml-cart-content-gap)!important;
    white-space:nowrap!important;
}

/* Awaiting variation selection */

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="select"] {
    background:#faf4e6!important;
    color:#76591f!important;
    border:1px solid #b69755!important;
    opacity:1!important;
    flex:1 1 100%!important;
    width:100%!important;
    text-transform:none!important;
    cursor:default!important;
}

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="select"]::before {
    content:"\2191"!important;
    display:inline-block!important;
    font-size:20px!important;
    margin-right:8px!important;
}

/* Unavailable states */

body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="soldout"],
body.single-product form.cart.mlpv-universal
.single_add_to_cart_button[data-mlpv-state="unavailable"] {
    background:#292929!important;
    color:#fff!important;
    border-color:#292929!important;
    opacity:1!important;
    cursor:not-allowed!important;
}

/* Quantity visibility */

body.single-product form.cart.mlpv-universal
.mlpv-universal-row.mlpv-universal-fixed .quantity,
body.single-product form.cart.mlpv-universal-row.mlpv-universal-fixed
.quantity,
body.single-product form.cart.mlpv-universal.mlpv-awaiting-options
.mlpv-universal-row .quantity,
body.single-product form.cart.mlpv-universal
.mlpv-single-quantity .quantity {
    display:none!important;
}

body.single-product form.cart.mlpv-universal
.mlpv-universal-fixed .single_add_to_cart_button,
body.single-product form.cart.mlpv-universal-fixed
.single_add_to_cart_button {
    flex:1 1 100%!important;
    width:100%!important;
}

/* Tablet */

@media(max-width:1024px) {
    body.single-product {
        --ml-cart-font:16px;
        --ml-cart-price-font:17px;
        --ml-cart-icon-size:19px;
    }
}

/* Mobile */

@media(max-width:600px) {
    body.single-product {
        --ml-cart-font:clamp(14px,3.8vw,16px);
        --ml-cart-price-font:clamp(15px,4vw,17px);
        --ml-cart-icon-size:18px;
        --ml-cart-content-gap:6px;
    }

    body.single-product form.cart.mlpv-universal
    .single_add_to_cart_button {
        padding:10px 8px!important;
        flex-basis:200px!important;
    }
}

/* Very narrow purchase containers */

@media(max-width:350px) {
    body.single-product form.cart.mlpv-universal
    .single_add_to_cart_button {
        flex-basis:100%!important;
    }
}



/* ML CLEAN PRICING V126 START */

/* Hide duplicate main pricing whenever
   Premium Variations is successfully active. */

body.single-product:has(form.variations_form.mlpv-ready)
.ml-product-price,

body.single-product:has(form.variations_form.mlpv-ready)
.elementor-widget-wd_single_product_price,

body.single-product:has(form.variations_form.mlpv-ready)
.elementor-widget-woocommerce-product-price,

body.single-product:has(form.variations_form.mlpv-ready)
.summary-inner > p.price,

body.single-product:has(form.variations_form.mlpv-ready)
.summary > p.price {
    display:none!important;
}

/* Remove empty shortcode widget spacing. */

body.single-product:has(form.variations_form.mlpv-ready)
.elementor-widget-shortcode:has(.ml-product-price) {
    display:none!important;
}

/* ML CLEAN PRICING V126 END */


