/* ============================================================
 RISTOVA SMART TRADE LLC — WooCommerce Cart / Checkout / Order Received
 Scoped: no theme core edits, no WooCommerce template overrides.
 Supports classic shortcodes and WooCommerce Blocks.
 ============================================================ */
body.mk-commerce-styler{--mkcs-soft:#EEE8DF;--mkcs-focus:rgba(121,85,54,.16)}
body.mk-commerce-styler :is(.site-content,.site-main,.entry-content,.woocommerce){box-sizing:border-box}
body.mk-commerce-styler :is(.entry-content>.woocommerce,.woocommerce-cart .entry-content,.woocommerce-checkout .entry-content){max-width:var(--mkcs-width);margin-left:auto;margin-right:auto}
body.mk-commerce-styler :is(.woocommerce,.wc-block-cart,.wc-block-checkout){color:var(--mkcs-text);font-size:15px;line-height:1.6}
body.mk-commerce-styler :is(.woocommerce,.wc-block-cart,.wc-block-checkout) :is(h1,h2,h3,h4){color:var(--mkcs-secondary);letter-spacing:-.025em;line-height:1.25}
body.mk-commerce-styler .woocommerce :is(a:not(.button)),body.mk-commerce-styler :is(.wc-block-cart,.wc-block-checkout) a{color:var(--mkcs-primary);text-decoration:none}
body.mk-commerce-styler .woocommerce a:hover{color:var(--mkcs-secondary)}
body.mk-commerce-styler :is(.woocommerce,.wc-block-cart,.wc-block-checkout) :is(button,input,select,textarea){font-family:inherit}
/* Header strip: inserted only on classic cart/checkout */
body.mk-commerce-styler .mkcs-intro{background:linear-gradient(120deg,var(--mkcs-secondary),var(--mkcs-primary));color:#fff;padding:29px 34px;margin:5px 0 28px;border-radius:calc(var(--mkcs-radius) + 4px);box-shadow:0 12px 28px rgba(35,41,43,.12);position:relative;overflow:hidden}
body.mk-commerce-styler .mkcs-intro:after{content:"";position:absolute;right:-38px;top:-95px;width:220px;height:220px;border:1px solid rgba(199,167,122,.5);border-radius:50%;pointer-events:none}
body.mk-commerce-styler .mkcs-intro .mkcs-eyebrow{display:block;color:#C7A77A;letter-spacing:.16em;font-size:11px;font-weight:700;margin-bottom:6px}
body.mk-commerce-styler .mkcs-intro h1{color:#fff!important;font-size:clamp(24px,3.2vw,35px);font-weight:750;margin:0 0 5px!important}
body.mk-commerce-styler .mkcs-intro p{color:#EEE8DF;margin:0;font-size:14px}
/* Classic WooCommerce tables */
body.mk-commerce-styler .woocommerce :is(table.shop_table,.woocommerce-cart-form table,.woocommerce-checkout-review-order-table){border:1px solid var(--mkcs-border)!important;border-radius:var(--mkcs-radius)!important;border-collapse:separate!important;border-spacing:0!important;background:var(--mkcs-card);box-shadow:0 8px 28px rgba(35,41,43,.045);overflow:hidden;width:100%}
body.mk-commerce-styler .woocommerce :is(table.shop_table,.woocommerce-cart-form table) thead{background:var(--mkcs-soft)}
body.mk-commerce-styler .woocommerce :is(table.shop_table,.woocommerce-cart-form table) th{color:var(--mkcs-secondary);font-size:13px;font-weight:700;border-color:var(--mkcs-border)!important;padding:16px!important}
body.mk-commerce-styler .woocommerce :is(table.shop_table,.woocommerce-cart-form table) td{border-color:var(--mkcs-border)!important;padding:16px!important;vertical-align:middle}
body.mk-commerce-styler .woocommerce table.shop_table tbody tr:last-child td{border-bottom:none}
body.mk-commerce-styler .woocommerce table.cart img{width:68px;max-width:68px;border-radius:10px;background:var(--mkcs-background);object-fit:contain}
body.mk-commerce-styler .woocommerce table.cart .product-name a{font-weight:650;color:var(--mkcs-secondary);line-height:1.55}
body.mk-commerce-styler .woocommerce table.cart .product-name a:hover{color:var(--mkcs-primary)}
body.mk-commerce-styler .woocommerce a.remove{color:#9D2F38!important;display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #F0DFE1;background:#fff!important;font-size:18px!important;width:28px;height:28px;line-height:1!important;border-radius:50%}
body.mk-commerce-styler .woocommerce a.remove:hover{background:#9D2F38!important;color:#fff!important}
body.mk-commerce-styler .woocommerce .quantity .qty{width:72px;min-height:42px;text-align:center;border:1px solid var(--mkcs-border);border-radius:9px;background:#fff;color:var(--mkcs-secondary);padding:8px}
/* Form controls */
body.mk-commerce-styler .woocommerce :is(input.input-text,input[type=email],input[type=tel],input[type=text],input[type=number],select,textarea),body.mk-commerce-styler :is(.wc-block-components-text-input input,.wc-block-components-combobox input,.wc-block-components-textarea,.wc-block-components-select select){border:1px solid var(--mkcs-border)!important;border-radius:10px!important;background:#fff!important;min-height:44px;color:var(--mkcs-text)!important;box-shadow:none!important;outline:none;transition:border-color .2s,box-shadow .2s}
body.mk-commerce-styler .woocommerce :is(input.input-text,input[type=email],input[type=tel],input[type=text],input[type=number],select,textarea):focus,body.mk-commerce-styler :is(.wc-block-components-text-input input,.wc-block-components-combobox input,.wc-block-components-textarea):focus{border-color:var(--mkcs-primary)!important;box-shadow:0 0 0 3px var(--mkcs-focus)!important}
body.mk-commerce-styler .woocommerce form .form-row label{color:var(--mkcs-secondary);font-weight:650;font-size:13px;margin-bottom:5px}
body.mk-commerce-styler .woocommerce form .form-row{margin-bottom:15px}
body.mk-commerce-styler .woocommerce span.select2-selection{min-height:44px!important;display:flex;align-items:center;border-color:var(--mkcs-border);border-radius:10px}
body.mk-commerce-styler .woocommerce span.select2-selection__rendered{line-height:40px!important}
/* Consistent high-contrast buttons */
body.mk-commerce-styler .woocommerce :is(a.button,button.button,input.button,#respond input#submit,.checkout-button,#place_order),body.mk-commerce-styler :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.wc-block-components-button:not(.is-link)){background:var(--mkcs-primary)!important;border:1px solid var(--mkcs-primary)!important;border-radius:11px!important;color:var(--mkcs-button-text)!important;min-height:46px;font-weight:700!important;box-shadow:0 6px 16px rgba(121,85,54,.15);padding:12px 20px!important;line-height:1.3!important;text-align:center;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}
body.mk-commerce-styler .woocommerce :is(a.button,button.button,input.button,.checkout-button,#place_order):hover,body.mk-commerce-styler :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.wc-block-components-button:not(.is-link)):hover{background:#5D412A!important;border-color:#5D412A!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 10px 20px rgba(35,41,43,.18)}
body.mk-commerce-styler :is(.woocommerce,.wc-block-cart,.wc-block-checkout) :is(button,a,input):focus-visible{outline:3px solid var(--mkcs-accent)!important;outline-offset:3px}
body.mk-commerce-styler .woocommerce button.button:disabled,body.mk-commerce-styler .woocommerce button.button:disabled[disabled]{opacity:.5!important;cursor:not-allowed;transform:none}
/* Cart totals */
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals{width:min(100%,460px);border:1px solid var(--mkcs-border);border-radius:var(--mkcs-radius);background:var(--mkcs-card);padding:0 24px 24px;box-shadow:0 12px 30px rgba(35,41,43,.06);overflow:hidden}
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals h2{background:var(--mkcs-soft);color:var(--mkcs-secondary);margin:0 -24px 18px;padding:20px 24px;font-size:24px;font-weight:750}
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals table{margin:0 0 22px!important;box-shadow:none;border:0!important}
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals table :is(td,th){border:0!important;border-bottom:1px solid var(--mkcs-border)!important;padding:13px 5px!important}
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals .order-total .amount{color:var(--mkcs-primary);font-size:20px}
body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals .checkout-button{width:100%;display:block}
body.mk-commerce-styler .woocommerce table.cart td.actions .coupon{display:flex;align-items:center;flex-wrap:wrap;gap:10px;float:left}
body.mk-commerce-styler .woocommerce table.cart td.actions .coupon .input-text{width:175px!important;margin:0!important}
body.mk-commerce-styler .woocommerce table.cart td.actions{padding:16px!important}
/* Checkout: classic */
body.mk-commerce-styler .woocommerce :is(.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields){margin-bottom:24px}
body.mk-commerce-styler .woocommerce :is(.woocommerce-billing-fields h3,.woocommerce-additional-fields h3,#order_review_heading){font-size:23px;border-left:4px solid var(--mkcs-accent);padding-left:13px;margin:0 0 20px;color:var(--mkcs-secondary)}
body.mk-commerce-styler .woocommerce #order_review{padding:22px;border:1px solid var(--mkcs-border);background:var(--mkcs-card);border-radius:var(--mkcs-radius);box-shadow:0 10px 25px rgba(35,41,43,.05)}
body.mk-commerce-styler .woocommerce #payment{background:var(--mkcs-background);border:1px solid var(--mkcs-border);border-radius:var(--mkcs-radius);overflow:hidden}
body.mk-commerce-styler .woocommerce #payment ul.payment_methods{border-bottom:1px solid var(--mkcs-border)}
body.mk-commerce-styler .woocommerce #payment div.payment_box{background:var(--mkcs-soft);color:var(--mkcs-text);border-radius:10px}
body.mk-commerce-styler .woocommerce #payment div.payment_box:before{border-bottom-color:var(--mkcs-soft)}
body.mk-commerce-styler .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,body.mk-commerce-styler .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){border-top-color:var(--mkcs-primary);background:var(--mkcs-soft);color:var(--mkcs-secondary);border-radius:10px;padding:16px 20px 16px 45px;margin-bottom:24px}
body.mk-commerce-styler .woocommerce .woocommerce-info:before,body.mk-commerce-styler .woocommerce .woocommerce-message:before{color:var(--mkcs-primary)}
/* Order received / thank you */
body.mk-commerce-styler.mk-is-received .woocommerce-order{padding-bottom:25px}
body.mk-commerce-styler .woocommerce .woocommerce-thankyou-order-received{border:1px solid rgba(37,100,72,.22);border-radius:var(--mkcs-radius);background:#EDF5EE;color:#256448;font-size:18px;font-weight:750;padding:22px 24px;margin:0 0 22px}
body.mk-commerce-styler .woocommerce ul.order_details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 28px!important;padding:0!important;list-style:none}
body.mk-commerce-styler .woocommerce ul.order_details li{border:1px solid var(--mkcs-border)!important;border-radius:11px;background:var(--mkcs-card);padding:13px 15px!important;float:none!important;margin:0!important;min-width:0;font-size:11px;overflow-wrap:anywhere}
body.mk-commerce-styler .woocommerce ul.order_details li strong{display:block;color:var(--mkcs-secondary);font-size:15px;margin-top:7px;overflow-wrap:anywhere}
body.mk-commerce-styler .woocommerce :is(.woocommerce-order-details,.woocommerce-customer-details){border:1px solid var(--mkcs-border);border-radius:var(--mkcs-radius);padding:22px;margin:20px 0;background:var(--mkcs-card);box-shadow:0 6px 24px rgba(35,41,43,.04)}
body.mk-commerce-styler .woocommerce :is(.woocommerce-order-details__title,.woocommerce-column__title){color:var(--mkcs-secondary);font-weight:750;font-size:22px;margin:0 0 16px}
body.mk-commerce-styler .woocommerce .woocommerce-customer-details address{border:0!important;background:var(--mkcs-background);border-radius:10px;padding:18px!important;line-height:1.8}
/* Blocks cart */
body.mk-commerce-styler :is(.wc-block-cart,.wc-block-checkout){max-width:var(--mkcs-width);margin:0 auto}
body.mk-commerce-styler :is(.wc-block-cart-items,.wc-block-components-sidebar,.wc-block-components-order-summary,.wc-block-checkout__main,.wc-block-components-totals-wrapper){border-color:var(--mkcs-border)!important}
body.mk-commerce-styler :is(.wc-block-components-sidebar-layout .wc-block-components-main,.wc-block-components-sidebar-layout .wc-block-components-sidebar){min-width:0}
body.mk-commerce-styler .wc-block-components-sidebar .wc-block-components-totals-wrapper{background:var(--mkcs-card)}
body.mk-commerce-styler .wc-block-cart :is(.wc-block-cart-items__row,.wc-block-components-product-name){color:var(--mkcs-secondary)}
body.mk-commerce-styler :is(.wc-block-components-totals-footer-item,.wc-block-components-order-summary-item__total-price){color:var(--mkcs-secondary);font-weight:750}
body.mk-commerce-styler .wc-block-components-checkout-step__heading-title{color:var(--mkcs-secondary);font-weight:750}
body.mk-commerce-styler :is(.wc-block-components-radio-control__option,.wc-block-components-address-form,.wc-block-components-order-summary){border-color:var(--mkcs-border)}
/* Prevent theme inherited yellow buttons specifically in cart/checkout */
body.mk-commerce-styler .woocommerce :is(.wc-proceed-to-checkout a.checkout-button,button[name=apply_coupon],button[name=update_cart]){background:var(--mkcs-primary)!important;color:#fff!important}
@media(max-width:980px){body.mk-commerce-styler .woocommerce ul.order_details{grid-template-columns:repeat(2,minmax(0,1fr))}body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals{width:100%}body.mk-commerce-styler .mkcs-intro{padding:25px}}
@media(max-width:767px){body.mk-commerce-styler .mkcs-intro{padding:20px;margin-bottom:22px}body.mk-commerce-styler .woocommerce table.cart img{width:52px;max-width:52px}body.mk-commerce-styler .woocommerce :is(table.shop_table,.woocommerce-cart-form table) :is(td,th){padding:11px!important}body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals{padding:0 16px 16px}body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals h2{margin:0 -16px 16px;padding:18px 16px;font-size:21px}body.mk-commerce-styler .woocommerce #order_review{padding:14px}body.mk-commerce-styler .woocommerce :is(.woocommerce-order-details,.woocommerce-customer-details){padding:15px}body.mk-commerce-styler .woocommerce ul.order_details{grid-template-columns:repeat(2,minmax(0,1fr))}body.mk-commerce-styler .woocommerce table.cart td.actions .coupon{float:none;width:100%;justify-content:center}body.mk-commerce-styler .woocommerce table.cart td.actions .coupon .input-text{flex:1;min-width:125px}body.mk-commerce-styler .woocommerce table.cart td.actions button[name=update_cart]{width:100%;margin-top:10px}}
@media(max-width:420px){body.mk-commerce-styler .woocommerce ul.order_details{grid-template-columns:1fr}body.mk-commerce-styler .woocommerce .woocommerce-thankyou-order-received{font-size:16px;padding:17px}}
@media(prefers-reduced-motion:reduce){body.mk-commerce-styler :is(button,a,input){transition:none!important;animation:none!important}body.mk-commerce-styler :is(button,a):hover{transform:none!important}}

/* Ristova: keep classic cart contents within narrow viewports, including custom themes. */
@media(max-width:767px){
 body.mk-commerce-styler .woocommerce .woocommerce-cart-form{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
 body.mk-commerce-styler .woocommerce table.cart td.actions .coupon .input-text{max-width:100%;min-width:0;width:100%!important}
 body.mk-commerce-styler .woocommerce table.cart td.actions .coupon button{max-width:100%;white-space:normal}
 body.mk-commerce-styler .woocommerce .cart-collaterals .cart_totals{box-sizing:border-box;max-width:100%}
}
