/* Mahdafzar Commerce Layout 2.2.5 — root-cause layout and responsive hardening. */
body.mdz-commerce-cart-page{--mdz-commerce-page-gutter:clamp(14px,2.8vw,44px)}

/* WooCommerce pages do not need a theme sidebar. Remove the reserved column only on these routes. */
body.mdz-commerce-cart-page .main-page-wrapper .sidebar-container,
body.mdz-commerce-cart-page .main-page-wrapper aside.sidebar{display:none!important}

/* Release the actual Woodmart content wrappers, including nested rows and Elementor boxed/column layouts. */
body.mdz-commerce-cart-page .main-page-wrapper > .container:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  width:100%!important;max-width:none!important;margin-inline:0!important;
  padding-inline:0!important;box-sizing:border-box!important
}
body.mdz-commerce-cart-page .main-page-wrapper .row:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  width:100%!important;max-width:none!important;margin-inline:0!important;min-width:0!important
}
body.mdz-commerce-cart-page .main-page-wrapper .site-content:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  display:block!important;float:none!important;width:100%!important;max-width:100%!important;flex:0 0 100%!important;min-width:0!important;padding-inline:0!important
}
body.mdz-commerce-cart-page .main-page-wrapper .entry-content:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important
}
body.mdz-commerce-cart-page .main-page-wrapper :is(.elementor-section,.elementor-container,.elementor-column,.elementor-widget-wrap,.elementor-widget,.elementor-widget-shortcode,.elementor-widget-container,.e-con,.e-con-inner):has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important
}
body.mdz-commerce-cart-page .main-page-wrapper :is(.elementor-column,.e-con):has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){
  flex-basis:100%!important;align-self:stretch!important
}
body.mdz-commerce-cart-page .main-page-wrapper :is(.elementor-section,.e-con):has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){margin-inline:0!important}

.mdz-commerce{
  container:mdz-commerce / inline-size;
  width:100%!important;max-width:1760px!important;margin:clamp(18px,2.4vw,34px) auto!important;
  padding:0 var(--mdz-commerce-page-gutter)!important;font-size:15px;line-height:1.85;letter-spacing:0;overflow-wrap:anywhere;min-width:0
}
.mdz-commerce--cart .mdz-cart-layout>*{min-width:0;max-width:100%}
.mdz-commerce :is(p,li,td,th,label,small,button,input,select,textarea){letter-spacing:0}
.mdz-commerce-hero{min-height:154px;gap:clamp(18px,2.5vw,38px);margin-bottom:26px;padding:clamp(24px,3vw,42px);border-radius:26px}
.mdz-commerce-hero__copy{max-width:860px}
.mdz-commerce-eyebrow{font-size:11px;letter-spacing:.13em;margin-bottom:8px}
.mdz-commerce-hero h1{font-size:clamp(29px,2.8vw,42px);line-height:1.4;letter-spacing:-.025em}
.mdz-commerce-hero p{max-width:800px;margin-top:10px;font-size:15px;line-height:1.95}
.mdz-commerce-hero__mark{flex-basis:96px;width:96px;height:96px;border-radius:27px}
.mdz-commerce-hero__mark svg{width:58px;height:58px}
.mdz-commerce-steps{gap:13px}
.mdz-commerce-step{gap:9px;font-size:13px}
.mdz-commerce-step b{flex-basis:32px;width:32px;height:32px;font-size:13px}
.mdz-commerce-step__line{width:clamp(18px,2vw,40px)}
.mdz-commerce-card{border-radius:23px;box-shadow:0 12px 32px rgba(26,25,49,.055)}
.mdz-commerce-card__heading h2{font-size:22px;line-height:1.55}
.mdz-commerce-section-kicker{font-size:10px;margin-bottom:5px;letter-spacing:.12em}
.mdz-commerce--cart .mdz-cart-layout{grid-template-columns:minmax(0,1.85fr) minmax(330px,.86fr);gap:clamp(18px,2vw,30px)}
.mdz-cart-items-card{padding:clamp(20px,2vw,30px)}
.mdz-cart-items-heading{padding-bottom:19px}
.mdz-cart-count{min-height:36px;padding:6px 14px;font-size:13px}
.mdz-cart-table thead th{padding:18px 12px;font-size:14px}
.mdz-cart-table th.product-remove,.mdz-cart-table td.product-remove{width:42px}
.mdz-cart-table th.product-thumbnail,.mdz-cart-table td.product-thumbnail{width:102px}
.mdz-cart-table th.product-price,.mdz-cart-table td.product-price{width:132px}
.mdz-cart-table th.product-quantity,.mdz-cart-table td.product-quantity{width:160px}
.mdz-cart-table th.product-subtotal,.mdz-cart-table td.product-subtotal{width:132px}
.mdz-cart-table :is(th,td).product-remove{padding-inline:3px!important;text-align:center}
.mdz-cart-table :is(th,td).product-thumbnail{padding-inline:8px!important}
.mdz-cart-table td{padding:21px 12px;font-size:14px;line-height:1.9;background:#fff!important}
.mdz-cart-table tbody tr.woocommerce-cart-form__cart-item{background:#fff!important}
.mdz-cart-table td.product-quantity{background:#fff!important}
.mdz-cart-table .quantity{background:#fff!important}
.mdz-cart-table td.product-thumbnail img{width:86px;height:86px;padding:5px;border-radius:15px}
.mdz-cart-table td.product-name{min-width:0;max-width:none;font-size:15px;font-weight:800}
.mdz-cart-table td.product-name a{font-size:15px;font-weight:850;line-height:1.9}
.mdz-cart-table td.product-name dl.variation{font-size:12px}
.mdz-cart-table td.product-price .amount{font-size:14px}
.mdz-cart-table td.product-subtotal .amount{font-size:15px}
.mdz-cart-table td.product-remove a.remove{width:36px;height:36px;border-radius:11px;font-size:24px}
.mdz-cart-table .quantity{min-width:136px;max-width:168px;min-height:48px;border-radius:13px}
.mdz-cart-table .quantity input.qty{width:52px!important;min-width:40px!important;max-width:64px;height:46px!important;min-height:46px!important;font-size:15px!important}
.mdz-cart-table .quantity :is(.plus,.minus,.mdz-qty-btn){flex-basis:40px;width:40px;min-width:40px;height:46px;min-height:46px;font-size:18px}
.mdz-cart-form-actions{gap:12px;padding-top:18px}
.mdz-cart-coupon input#coupon_code{min-height:48px;padding-inline:14px;font-size:14px}
.mdz-cart-coupon button,.mdz-cart-form-actions button[name=update_cart]{min-height:48px;padding:11px 18px;font-size:14px}
.mdz-cart-continue-row{padding-top:17px;font-size:13px}
.mdz-cart-assurances{gap:12px;margin-top:18px}
.mdz-cart-assurances>div{gap:11px;padding:16px;border-radius:17px}
.mdz-cart-assurances__icon{flex-basis:32px;width:32px;height:32px;border-radius:10px;font-size:15px}
.mdz-cart-assurances strong{font-size:13px;line-height:1.7}
.mdz-cart-assurances small{font-size:11px;line-height:1.85}
.mdz-cart-summary-shell{padding:clamp(20px,2vw,30px);border-radius:23px}
.mdz-cart-totals-heading h2{font-size:22px!important}
.mdz-cart-summary-bag{flex-basis:48px;width:48px;height:48px;border-radius:15px}
.mdz-cart-summary-bag svg{width:27px;height:27px}
.mdz-cart-totals-table th,.mdz-cart-totals-table td{padding:15px 0;font-size:14px;line-height:1.9}
.mdz-cart-totals-table .order-total th,.mdz-cart-totals-table .order-total td{padding-top:20px}
.mdz-cart-totals-table .order-total .amount{font-size:25px}
.mdz-cart-totals-table .shipping .shipping-calculator-button{font-size:13px}
.mdz-cart-summary-shell .woocommerce-shipping-methods>li,
.mdz-cart-summary-shell ul#shipping_method>li{padding:11px 12px!important;border:1px solid #eceaf3;border-radius:12px;background:#fff}
.mdz-cart-summary-shell .woocommerce-shipping-methods label,
.mdz-cart-summary-shell ul#shipping_method label{font-size:13px!important;line-height:1.8!important}
.mdz-cart-summary-shell .shipping_method_description{font-size:11px!important;line-height:1.8!important}
.mdz-cart-checkout-cta{padding-top:18px}
.mdz-cart-checkout-cta .checkout-button{min-height:58px;border-radius:16px;font-size:15px}
.mdz-cart-total-note{font-size:12px;line-height:1.9}
.mdz-cart-empty-card{max-width:900px;padding:clamp(34px,5vw,68px) 24px}
.mdz-cart-empty-art{width:120px;height:120px}
.mdz-cart-empty-art svg{width:72px;height:72px}
.mdz-cart-empty-card h2{font-size:28px}
.mdz-cart-empty-card .cart-empty{font-size:16px}
.mdz-commerce-primary-button{min-height:52px;padding:13px 25px;font-size:14px}

/* Checkout: two balanced columns only when the actual content area can support them. */












































.mdz-payment-methods{gap:10px;margin-bottom:16px!important}
.mdz-payment-methods>li{padding:15px!important;border-radius:14px!important;font-size:14px;line-height:1.9}
.mdz-payment-methods>li>input[type=radio]{width:17px;height:17px;accent-color:var(--mdz-cp-purple)}
.mdz-payment-methods .payment_box{padding:13px!important;border-radius:12px;font-size:13px;line-height:1.95}







.mdz-commerce .woocommerce-error,.mdz-commerce .woocommerce-info,.mdz-commerce .woocommerce-message{margin-bottom:18px;padding:15px 18px;border-radius:14px;font-size:14px;line-height:1.95}

@media(max-width:1200px){
 .mdz-commerce--cart .mdz-cart-layout{grid-template-columns:minmax(0,1.55fr) minmax(300px,.9fr);gap:18px}
 
 .mdz-cart-table th.product-thumbnail{width:84px}
 .mdz-cart-table td.product-thumbnail img{width:74px;height:74px}
}
@media(max-width:900px){
 .mdz-commerce{margin:18px auto 28px!important}
 .mdz-commerce--cart .mdz-cart-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .mdz-cart-summary-column{order:2}
 
 
 .mdz-cart-assurances{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
 body.mdz-commerce-cart-page .main-page-wrapper > .container:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){padding-inline:0!important}
 .mdz-commerce{margin:14px auto 24px!important;padding-inline:14px!important;font-size:14px;line-height:1.85}
 .mdz-commerce-hero{min-height:0;gap:13px;margin-bottom:17px;padding:21px 18px;border-radius:20px}
 .mdz-commerce-hero__copy{flex:1 1 calc(100% - 72px);max-width:none}
 .mdz-commerce-hero h1{font-size:clamp(24px,6vw,30px);line-height:1.45}
 .mdz-commerce-hero p{margin-top:8px;font-size:13px;line-height:1.9}
 .mdz-commerce-eyebrow{font-size:9px;margin-bottom:5px}
 .mdz-commerce-hero__mark{flex-basis:52px;width:52px;height:52px;border-radius:15px}
 .mdz-commerce-hero__mark svg{width:34px;height:34px}
 .mdz-commerce-steps{gap:5px;margin-top:10px;padding-top:13px}
 .mdz-commerce-step{gap:5px;font-size:10px;line-height:1.6}
 .mdz-commerce-step b{flex-basis:25px;width:25px;height:25px;font-size:10px}
 .mdz-commerce-step__line{flex:0 1 22px;min-width:7px}
 .mdz-commerce-card__heading h2,.mdz-cart-totals-heading h2{font-size:19px!important}
 .mdz-cart-items-card{padding:16px;border-radius:19px}
 .mdz-cart-items-heading{padding-bottom:15px}
 .mdz-cart-count{min-height:33px;padding:6px 10px;font-size:12px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item{grid-template-columns:82px minmax(0,1fr);gap:10px 13px;margin-bottom:13px;padding:15px!important;border-radius:17px}
 .mdz-cart-table td.product-thumbnail img{width:82px;height:82px;border-radius:13px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-name{font-size:14px;line-height:1.85;padding-inline-end:27px!important}
 .mdz-cart-table td.product-name a{font-size:14px;line-height:1.85}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-price{font-size:13px;line-height:1.8}
 .mdz-cart-table td.product-subtotal .amount{font-size:15px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-quantity::before,
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-subtotal::before{font-size:13px}
 .mdz-cart-table .quantity{min-width:130px;max-width:160px;min-height:46px}
 .mdz-cart-table .quantity input.qty{height:44px!important;min-height:44px!important;font-size:14px!important}
 .mdz-cart-table .quantity :is(.plus,.minus,.mdz-qty-btn){height:44px;min-height:44px}
 .mdz-cart-form-actions{padding-top:15px;gap:10px}
 .mdz-cart-coupon input#coupon_code{font-size:14px}
 .mdz-cart-coupon button,.mdz-cart-form-actions button[name=update_cart]{font-size:14px}
 .mdz-cart-continue-row{font-size:13px}
 .mdz-cart-assurances{grid-template-columns:minmax(0,1fr);gap:9px}
 .mdz-cart-assurances>div{padding:14px;border-radius:15px}
 .mdz-cart-assurances strong{font-size:13px}
 .mdz-cart-assurances small{font-size:12px}
 .mdz-cart-summary-shell{padding:18px;border-radius:19px}
 .mdz-cart-totals-table th,.mdz-cart-totals-table td{padding:13px 0;font-size:13px}
 .mdz-cart-totals-table .order-total .amount{font-size:23px}
 .mdz-cart-checkout-cta .checkout-button{min-height:56px;font-size:14px}
 .mdz-cart-total-note{font-size:11px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 .mdz-payment-methods>li{padding:13px!important;font-size:13px}
 .mdz-payment-methods .payment_box{font-size:12px}
 
 
 
 
}
@media(max-width:380px){
 body.mdz-commerce-cart-page .main-page-wrapper > .container:has(.mdz-commerce,.wp-block-woocommerce-cart,.wc-block-cart){padding-inline:0!important}
 .mdz-commerce{padding-inline:10px!important}
 .mdz-commerce-hero{padding:17px 13px}
 .mdz-commerce-hero h1{font-size:23px}
 .mdz-commerce-step{font-size:9px}
 .mdz-cart-items-card{padding:12px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item{grid-template-columns:66px minmax(0,1fr);gap:8px 10px;padding:12px!important}
 .mdz-cart-table td.product-thumbnail img{width:66px;height:66px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-name{font-size:13px}
 .mdz-cart-table td.product-name a{font-size:13px}
 .mdz-cart-summary-shell{padding:14px}
}
@media(prefers-reduced-motion:reduce){.mdz-commerce,.mdz-commerce *,.mdz-commerce *::before,.mdz-commerce *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Use the component's real width, not only viewport width: Elementor columns can be narrow on desktop. */
@container mdz-commerce (max-width:1080px){
 .mdz-commerce--cart .mdz-cart-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px}
 .mdz-cart-summary-column{order:2}
 
 
 .mdz-cart-assurances{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container mdz-commerce (max-width:760px){
 .mdz-commerce-hero{align-items:flex-start;gap:13px;flex-wrap:wrap;min-height:0;padding:20px 17px;border-radius:20px}
 .mdz-commerce-hero__copy{flex:1 1 calc(100% - 72px);max-width:none}
 .mdz-commerce-hero__mark{flex:0 0 52px;width:52px;height:52px}
 .mdz-commerce-hero__mark svg{width:34px;height:34px}
 .mdz-commerce-steps{flex:1 1 100%;width:100%;align-self:auto;justify-content:space-between;gap:5px;margin:8px 0 0;padding-top:13px;border-top:1px solid rgba(255,255,255,.14)}
 .mdz-commerce--cart .mdz-cart-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px}
 .mdz-cart-table,.mdz-cart-table tbody{display:block;width:100%;max-width:100%}
 .mdz-cart-table thead{display:none}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item{position:relative;display:grid!important;grid-template-columns:72px minmax(0,1fr);grid-template-areas:"thumb name" "thumb price" "quantity quantity" "subtotal subtotal";gap:8px 12px;width:100%;min-width:0;margin:0 0 11px;padding:13px!important;border:1px solid #ece8f2!important;border-radius:16px;background:#fff;box-shadow:0 6px 17px rgba(26,25,49,.035)}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td{display:block!important;float:none!important;position:static;min-width:0;width:auto!important;max-width:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;text-align:right!important;overflow-wrap:anywhere}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td::before{display:none!important}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-remove{position:absolute!important;top:8px!important;left:8px!important;z-index:3;width:30px!important;height:30px!important}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-thumbnail{grid-area:thumb;align-self:start;width:auto!important}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-thumbnail img{width:72px;height:72px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-name{grid-area:name;max-width:none;padding-inline-end:28px!important;font-size:12px;line-height:1.8}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-price{grid-area:price;color:var(--mdz-cp-muted);font-size:11px}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-quantity{grid-area:quantity;display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-top:4px!important;padding-top:10px!important;border-top:1px solid #f0eff5!important;width:100%!important}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-quantity::before{content:attr(data-title);display:inline!important;position:static!important;float:none!important;width:auto!important;height:auto!important;background:none!important;color:var(--mdz-cp-muted);font-size:11px;font-weight:850}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-subtotal{grid-area:subtotal;display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding-top:10px!important;border-top:1px solid #f0eff5!important;width:100%!important}
 .mdz-cart-table tbody tr.woocommerce-cart-form__cart-item>td.product-subtotal::before{content:attr(data-title);display:inline!important;position:static!important;float:none!important;width:auto!important;background:none!important;color:var(--mdz-cp-muted);font-size:11px;font-weight:850}
 .mdz-cart-table tr.mdz-cart-form-actions-row{display:block!important;width:100%}
 .mdz-cart-table tr.mdz-cart-form-actions-row>td.actions{display:block!important;width:100%;padding:12px 0 0!important}
 .mdz-cart-form-actions{align-items:stretch;flex-direction:column}
 .mdz-cart-coupon{display:grid;grid-template-columns:minmax(0,1fr);width:100%;flex:1 1 auto}
 .mdz-cart-coupon input#coupon_code,.mdz-cart-coupon button,.mdz-cart-form-actions button[name=update_cart]{width:100%!important;max-width:100%}
 .mdz-cart-assurances{grid-template-columns:minmax(0,1fr)}
 
 
 
 
}

