/* Native Woo forms with the current reference's basket and checkout geometry. */
.mg-woo-flow{max-width:1400px;padding-top:26px;color:#214f3e;--mg-flow-green:#38755b;--mg-flow-gold:#f3d137}
.mg-flow-heading h1{font-size:30px;line-height:1.8;margin:0 0 23px;color:#214f3e}.mg-flow-heading .checkout-steps{max-width:800px;margin:0 auto 25px}
.mg-flow-steps li{border:0;border-radius:0;padding:0;background:none;color:#798478;font-size:14px}.mg-flow-steps li:before{display:none}.mg-flow-steps li[aria-current]{background:none;color:#38755b;border:0}.mg-flow-steps a{color:inherit}
.mg-flow-content{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;line-height:1.9}
.mg-flow-content .woocommerce-cart-form{overflow:visible}.mg-flow-content .woocommerce-cart-form table.shop_table{display:block;padding:12px 20px;border:1px solid #d7e2d8;border-radius:22px;background:#fff;box-shadow:0 2px 12px #214f3e04}
.mg-flow-content .woocommerce-cart-form table.shop_table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.mg-flow-content .woocommerce-cart-form tbody{display:block}.mg-flow-content .woocommerce-cart-form tr.cart_item{display:grid;grid-template-columns:95px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:2px 18px;padding:20px 0;border-bottom:1px solid #e3e9df;position:relative;background:none}
.mg-flow-content .woocommerce-cart-form tr.cart_item:last-of-type{border:0}
.mg-flow-content .woocommerce-cart-form tr.cart_item td{display:block;min-width:0;padding:0;border:0;background:none;text-align:right}
.mg-flow-content .woocommerce-cart-form tr.cart_item td:before{display:none}
.mg-flow-content .woocommerce-cart-form .product-thumbnail{grid-column:1;grid-row:1/4}.mg-flow-content .woocommerce-cart-form table.shop_table img{width:95px;height:105px;object-fit:cover;border-radius:15px}
.mg-flow-content .woocommerce-cart-form .product-name{grid-column:2;grid-row:1;font-size:16px}.mg-flow-content .woocommerce-cart-form .product-name dl{font-size:12px;color:#788172;line-height:1.7;margin-block:3px}.mg-flow-content .woocommerce-cart-form .product-name dt,.mg-flow-content .woocommerce-cart-form .product-name dd{display:inline-block;float:none;margin:0 0 0 5px}
.mg-flow-content .woocommerce-cart-form .product-price{grid-column:2;grid-row:2;font-size:12px;color:#788172}.mg-flow-content .woocommerce-cart-form .product-price:before{display:inline!important;content:'قیمت واحد: ';float:none}
.mg-flow-content .woocommerce-cart-form .product-quantity{grid-column:2;grid-row:3}.mg-flow-content .woocommerce-cart-form .product-quantity:before{display:inline!important;content:'تعداد ';float:none;font-size:12px}
.mg-flow-content .woocommerce-cart-form .quantity{display:inline-block;margin-right:8px}.mg-flow-content .woocommerce-cart-form .quantity .qty{width:65px;min-height:34px;border-radius:20px;border-color:#d1d9cc;font-size:13px}
.mg-flow-content .woocommerce-cart-form .product-subtotal{grid-column:3;grid-row:1;font-size:14px;font-weight:700;align-self:center;white-space:nowrap}.mg-flow-content .woocommerce-cart-form .product-remove{grid-column:3;grid-row:2/4;align-self:center;justify-self:start}
.mg-flow-content .woocommerce-cart-form a.remove{width:auto;height:auto;color:#547a67!important;font-size:12px;font-weight:400;border:0;background:none;text-decoration:none}.mg-flow-content .woocommerce-cart-form a.remove:before{content:'حذف از سبد ';font-size:12px}.mg-flow-content .woocommerce-cart-form a.remove:hover{background:none;color:#a44a36!important}
.mg-flow-content .woocommerce-cart-form .actions{display:block!important;text-align:left!important;padding:10px 0!important;border:0!important}.mg-flow-content .woocommerce-cart-form tbody>tr:not(.cart_item){display:block;border:0;background:none}
.mg-flow-content .woocommerce :is(.cart-collaterals .cart_totals,.mg-customer-panel,.mg-checkout-review){padding:28px;border:1px solid #d7e2d8;outline:1px solid #fff;outline-offset:-5px;border-radius:28px 12px;background:linear-gradient(120deg,#fff,#f4f8f3);box-shadow:0 10px 20px #214f3e05;float:none;min-width:0}
.mg-flow-content .woocommerce .cart-collaterals .cart_totals h2{font-size:20px;margin-bottom:18px}
.mg-flow-content .cart_totals table.shop_table,.mg-flow-content #order_review table.shop_table{background:transparent;border:0;border-radius:0;overflow:visible}
.mg-flow-content .cart_totals table.shop_table :is(th,td){padding:12px 0;background:none;border-bottom:1px solid #dfe6d9;font-size:14px}.mg-flow-content .cart_totals table.shop_table td{text-align:left}.mg-flow-content .cart_totals .order-total :is(th,td){font-size:18px;color:#38755b}
.mg-flow-content .woocommerce :is(a.checkout-button,#place_order){width:100%;background:#f3d137!important;color:#214f3e!important;border:0;box-shadow:0 5px 16px #e4c84930;border-radius:26px;font-weight:700}.mg-flow-content .woocommerce :is(a.checkout-button,#place_order):hover{background:#ecd04b!important}
.mg-flow-content .woocommerce :is(.button,button.button){background:#38755b;color:#fff;box-shadow:none}.mg-flow-content .woocommerce .mg-cart-coupon label{font-size:13px}.mg-flow-content .woocommerce .mg-cart-coupon .inline-form input{width:0;min-width:0;flex:1;border-color:#cdd9c8}.mg-cart-coupon .button{flex:none}
.mg-flow-content .woocommerce :is(input.input-text,textarea,select,.select2-selection){border-color:#cdd9c8;background:#fff;border-radius:12px;color:#214f3e;font:inherit}
.mg-flow-content form.checkout.basket-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start;margin-top:25px}
.mg-flow-content .checkout #customer_details,.mg-flow-content .checkout #customer_details :is(.col-1,.col-2){width:100%;float:none;clear:none;padding:0;border:0;background:none;box-shadow:none}
.mg-flow-content .checkout #customer_details .col-2{margin-top:20px}.mg-flow-content .checkout #order_review{padding:0;background:none;border:0;box-shadow:none;float:none;width:100%}.mg-flow-content .checkout #order_review_heading{font-size:20px;margin-bottom:18px}
.mg-flow-content .checkout .woocommerce-billing-fields>h3{font-size:24px}.mg-flow-content .checkout #payment{background:#edf4ed;border:1px solid #d7e2d8}.mg-flow-content .checkout #payment :is(.payment_box,div.form-row){background:transparent}.mg-flow-content .checkout #payment .payment_box:before{border-bottom-color:#edf4ed}
.mg-flow-content #order_review .product-name{font-size:13px}.mg-flow-content .mg-review-thumb{display:block;margin-block:6px}.mg-flow-content .mg-review-thumb img{width:65px!important;height:75px!important;object-fit:cover;border-radius:12px!important}
.mg-flow-content .woocommerce :is(.woocommerce-info,.woocommerce-message){border-color:#ccdac8;border-right-color:#38755b;background:#f1f6ef}.mg-flow-content .mg-continue-shopping{font-size:13px;display:inline-block;margin-top:3px}
@media(min-width:901px){.mg-woo-flow-cart .mg-flow-content>.woocommerce:has(>.woocommerce-cart-form):has(>.cart-collaterals){display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start}.mg-woo-flow-cart .mg-flow-content>.woocommerce>:not(.woocommerce-cart-form,.cart-collaterals){grid-column:1/-1}.mg-flow-content .cart-collaterals .cart_totals{max-width:none!important}}
@media(max-width:900px){.mg-flow-content form.checkout.basket-layout{grid-template-columns:1fr}.mg-flow-content .woocommerce .cart-collaterals{margin-top:18px}.mg-flow-content .woocommerce .cart-collaterals .cart_totals{max-width:none}}
@media(max-width:700px){.mg-woo-flow{padding-top:20px;width:calc(100% - 24px)}.mg-flow-heading h1{font-size:25px}.mg-flow-content .woocommerce-cart-form tr.cart_item{grid-template-columns:70px minmax(0,1fr);gap:4px 13px}.mg-flow-content .woocommerce-cart-form .product-thumbnail{grid-row:1/4}.mg-flow-content .woocommerce-cart-form table.shop_table img{width:70px;height:80px}.mg-flow-content .woocommerce-cart-form .product-subtotal{grid-column:2;grid-row:4;font-size:13px}.mg-flow-content .woocommerce-cart-form .product-remove{grid-column:2;grid-row:5;justify-self:start}.mg-flow-content .woocommerce-cart-form .product-name{font-size:14px}.mg-flow-content .woocommerce-cart-form table.shop_table{padding:7px 14px}.mg-flow-content .woocommerce :is(.cart-collaterals .cart_totals,.mg-customer-panel,.mg-checkout-review){padding:24px 20px}.mg-flow-content .checkout .form-row-first,.mg-flow-content .checkout .form-row-last{float:none;width:100%}.mg-flow-steps{display:flex;gap:8px;justify-content:space-between}.mg-flow-steps li{font-size:11px}.mg-flow-content .woocommerce-cart-form .actions>button{width:100%}}
.mg-flow-heading{background:none;border:0;box-shadow:none}
.mg-flow-content .woocommerce .cart-collaterals .cart_totals{border-color:#d7e2d8;background:linear-gradient(120deg,#fff,#f4f8f3);border-radius:28px 12px}
.mg-flow-content .woocommerce .checkout :is(input.input-text,textarea,select,.select2-selection){border-color:#cdd9c8;background:#fff;border-radius:12px}
.mg-flow-content .woocommerce #order_review table.shop_table :is(th,td){background:transparent;border-bottom:1px solid #dfe6d9;padding:12px 0;font-size:13px}
.mg-flow-content .woocommerce #order_review table.shop_table td:last-child{text-align:left}
.mg-flow-content .woocommerce .woocommerce-message{border-width:1px;border-color:#cddbc8;border-right:4px solid #38755b}
.mg-cart-enhanced button[name=update_cart]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%)}
.mg-cart-enhanced button[name=update_cart]:focus-visible{position:static!important;width:auto!important;height:auto!important;padding:9px 21px!important;clip-path:none}
/* v1.38: match reference cart line hierarchy: image, details, unit/quantity, total, remove. */
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form tr.cart_item{grid-template-columns:95px minmax(0,1fr);grid-template-rows:auto auto auto auto auto;row-gap:7px;padding:26px 0}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-thumbnail{grid-column:1;grid-row:1/4;align-self:center}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-name{grid-column:2;grid-row:1}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-price{grid-column:2;grid-row:2}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-quantity{grid-column:2;grid-row:3}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-subtotal{grid-column:2;grid-row:4;justify-self:start;margin-top:5px;font-weight:700;color:#38755b}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form .product-remove{grid-column:2;grid-row:5;justify-self:start}
.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form table.shop_table{border-radius:28px;padding:12px 26px}
.mg-woo-flow-cart .mg-flow-content .woocommerce .cart-collaterals .cart_totals{border-radius:28px;padding:32px 28px;background:linear-gradient(120deg,#fff,#f4f8f3)}
.mg-woo-flow-cart .mg-flow-content .woocommerce .cart_totals h2{margin-bottom:25px}
.mg-woo-flow-cart .mg-cart-coupon{margin:22px 0 10px}.mg-woo-flow-cart .mg-cart-coupon .inline-form{margin-top:12px}
@media(min-width:901px){.mg-woo-flow-cart .mg-flow-content>.woocommerce:has(>.woocommerce-cart-form):has(>.cart-collaterals){grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr)}}
@media(max-width:700px){.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form tr.cart_item{grid-template-columns:70px minmax(0,1fr);padding:20px 0}.mg-woo-flow-cart .mg-flow-content .woocommerce-cart-form table.shop_table{padding:8px 16px}.mg-woo-flow-cart .mg-flow-content .woocommerce .cart-collaterals .cart_totals{padding:24px 20px}}
