.ehc-commerce,.ehc-commerce *{box-sizing:border-box}
.ehc-commerce{--ehc-commerce-card-bg:#fff;--ehc-commerce-border:#e1e9f1;--ehc-commerce-button:#4c69b1;--ehc-commerce-button-hover:#345697;--ehc-commerce-radius:17px;--ehc-commerce-gap:20px;--ehc-commerce-pad-top:22px;--ehc-commerce-pad-right:22px;--ehc-commerce-pad-bottom:22px;--ehc-commerce-pad-left:22px;color:#142956;font-family:YekanBakh,'Yekan Bakh',sans-serif;direction:rtl;width:100%;max-width:100%;background:transparent}
.ehc-commerce h2,.ehc-commerce h3,.ehc-commerce p{margin-top:0}.ehc-commerce h2{font-size:19px;font-weight:850;line-height:1.5}.ehc-commerce h3{font-size:16px;font-weight:800;line-height:1.5}.ehc-commerce a{text-decoration:none}.ehc-commerce-muted{color:#7785a0;font-size:13px}.ehc-commerce-primary,.ehc-commerce-checkout #place_order{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:47px;margin:16px 0 0!important;padding:10px 16px!important;border:0!important;border-radius:10px!important;background:var(--ehc-commerce-button)!important;color:#fff!important;font:inherit!important;font-weight:800!important;line-height:1.5!important;text-align:center!important;box-shadow:none!important;cursor:pointer}.ehc-commerce-primary:hover,.ehc-commerce-checkout #place_order:hover{background:var(--ehc-commerce-button-hover)!important;color:#fff!important}
.ehc-cart-layout{display:grid;grid-template-columns:minmax(0,2.12fr) minmax(270px,1fr);gap:var(--ehc-commerce-gap);align-items:start;width:100%;margin:0}.ehc-cart-items,.ehc-order-summary,.ehc-commerce-empty{min-width:0;padding:var(--ehc-commerce-pad-top) var(--ehc-commerce-pad-right) var(--ehc-commerce-pad-bottom) var(--ehc-commerce-pad-left);background:var(--ehc-commerce-card-bg);border:1px solid var(--ehc-commerce-border);border-radius:var(--ehc-commerce-radius)}.ehc-cart-items{position:relative;min-height:190px}.ehc-cart-items::before,.ehc-commerce-checkout #customer_details::before{content:"";position:absolute;z-index:-1;top:-12px;right:-14px;width:160px;height:85px;border-radius:20px 20px 0 0;background:#5476ba}.ehc-cart-items-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.ehc-cart-items-heading h2,.ehc-order-summary h2{margin:0 0 15px}.ehc-cart-count{font-size:17px;font-weight:850;direction:ltr}.ehc-cart-item{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(120px,auto) 24px;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--ehc-commerce-border)}.ehc-cart-item:last-of-type{border-bottom:0}.ehc-cart-image,.ehc-cart-image img{display:block;width:90px;height:70px;object-fit:contain}.ehc-cart-item-details{min-width:0}.ehc-cart-item-details h3{margin:0 0 4px}.ehc-cart-item-details h3 a{color:inherit}.ehc-cart-item-details p{margin:0 0 4px}.ehc-cart-item-price{font-size:14px;font-weight:800;white-space:nowrap;direction:rtl;text-align:left}.ehc-cart-item-price del{display:block;color:#9aa8b9;font-size:11px}.ehc-cart-item-price ins{text-decoration:none}.ehc-cart-item-price .woocommerce-Price-amount bdi,.ehc-summary-line .woocommerce-Price-amount bdi{display:inline-flex;direction:rtl;gap:3px}.ehc-cart-item-price .woocommerce-Price-currencySymbol,.ehc-summary-line .woocommerce-Price-currencySymbol{order:2;font-size:.8em}.ehc-cart-remove{display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:6px!important;background:transparent!important;color:#ed3a47!important;font:24px/1 sans-serif!important}.ehc-cart-remove:hover{background:#fff1f2!important;color:#cb2134!important}.ehc-cart-quantity{display:inline-flex;align-items:center;gap:8px;margin-top:5px;color:#7785a0;font-size:12px}.ehc-cart-quantity input{width:60px!important;height:30px;padding:2px 6px;text-align:center}.ehc-cart-update{display:inline-block;margin:12px 0 0;padding:7px 14px;border:1px solid var(--ehc-commerce-border)!important;border-radius:8px!important;background:#f4f8fd!important;color:#142956!important;cursor:pointer}
.ehc-cart-side{min-width:0}.ehc-order-summary h2{text-align:right}.ehc-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0 0 15px;color:#6d7c98;font-size:13px}.ehc-summary-line>span:last-child{text-align:left;white-space:nowrap;direction:rtl;font-weight:700}.ehc-summary-discount{color:#16b26e}.ehc-summary-total{margin:8px 0 0;padding-top:16px;border-top:1px solid var(--ehc-commerce-border);font-weight:800}.ehc-commerce-terms{margin:8px 0 0;text-align:center;font-size:10px;line-height:1.7;color:#7b89a1}.ehc-commerce-terms a{color:#4c69b1}.ehc-cart-coupon{margin-top:14px;border-radius:11px;background:#e9f4fa}.ehc-coupon-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 17px;border:0!important;background:transparent!important;color:#4c69b1!important;font:inherit;font-weight:800;cursor:pointer}.ehc-coupon-content{padding:0 15px 15px}.ehc-coupon-content[hidden]{display:none!important}.ehc-coupon-content label{display:block;margin-bottom:5px;font-size:12px}.ehc-coupon-content input{width:100%;min-height:39px;margin-bottom:8px;border:1px solid var(--ehc-commerce-border);border-radius:8px;background:#fff}.ehc-coupon-content button{padding:8px 16px;border:0;border-radius:8px;background:#4c69b1;color:#fff;cursor:pointer}.ehc-commerce-empty{text-align:center}.ehc-commerce-empty p{margin-bottom:12px}
/* The native WooCommerce checkout keeps its payment gateways, terms and order validation. */
.ehc-commerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,2.12fr) minmax(270px,1fr);gap:0 var(--ehc-commerce-gap);align-items:start}.ehc-commerce-checkout #customer_details{grid-column:1;grid-row:1/3;position:relative;z-index:0;float:none!important;width:100%!important;min-width:0;padding:var(--ehc-commerce-pad-top) var(--ehc-commerce-pad-right) var(--ehc-commerce-pad-bottom) var(--ehc-commerce-pad-left);border:1px solid var(--ehc-commerce-border);border-radius:var(--ehc-commerce-radius);background:var(--ehc-commerce-card-bg)}.ehc-commerce-checkout #customer_details .col-1{float:none!important;width:100%!important;max-width:none!important}.ehc-commerce-checkout #customer_details .col-2{display:none!important}.ehc-commerce-checkout .woocommerce-billing-fields>h3{display:none}.ehc-checkout-intro h2{margin:0 0 2px}.ehc-checkout-intro p{margin:0 0 15px}.ehc-commerce-checkout #order_review_heading{display:none!important}.ehc-commerce-checkout #order_review{grid-column:2;grid-row:1/3;float:none!important;width:100%!important;min-width:0;padding:var(--ehc-commerce-pad-top) var(--ehc-commerce-pad-right) var(--ehc-commerce-pad-bottom) var(--ehc-commerce-pad-left);border:1px solid var(--ehc-commerce-border);border-radius:var(--ehc-commerce-radius);background:var(--ehc-commerce-card-bg)}.ehc-commerce-checkout #order_review::before{content:"خلاصه سفارش";display:block;margin:0 0 15px;color:#142956;font-size:19px;font-weight:850;line-height:1.5}.ehc-commerce-checkout .woocommerce-form-coupon-toggle{display:none}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper{display:flex;flex-direction:column;gap:12px}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper .form-row{float:none!important;display:block!important;width:100%!important;margin:0!important;padding:0!important}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper label{display:block;margin:0 0 6px;text-align:right;color:#142956;font-weight:800;font-size:13px}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper label .required{color:#d4304a}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper .input-text{width:100%!important;min-height:46px;margin:0!important;padding:9px 14px!important;border:1px solid var(--ehc-commerce-border)!important;border-radius:9px!important;background:#fff!important;color:#142956;font:inherit;box-shadow:none!important}.ehc-commerce-checkout .woocommerce-billing-fields__field-wrapper .input-text:focus{border-color:#4c69b1!important;outline:2px solid #4c69b122}.ehc-commerce-checkout #billing_phone{text-align:right}.ehc-commerce-checkout #billing_email{direction:ltr;text-align:left}.ehc-commerce-checkout .woocommerce-checkout-review-order-table{width:100%;margin:0!important;border:0!important;border-collapse:collapse!important;background:transparent}.ehc-commerce-checkout .woocommerce-checkout-review-order-table thead,.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody{display:none}.ehc-commerce-checkout .woocommerce-checkout-review-order-table tfoot{display:table-row-group}.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr{display:table-row;border:0!important}.ehc-commerce-checkout .woocommerce-checkout-review-order-table th,.ehc-commerce-checkout .woocommerce-checkout-review-order-table td{padding:9px 0!important;border:0!important;background:transparent!important;font-size:13px;color:#697996;vertical-align:middle}.ehc-commerce-checkout .woocommerce-checkout-review-order-table th{text-align:right;font-weight:500}.ehc-commerce-checkout .woocommerce-checkout-review-order-table td{text-align:left;font-weight:800;white-space:nowrap}.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr.cart-discount th,.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr.cart-discount td{color:#15ae68}.ehc-commerce-checkout .woocommerce-checkout-review-order-table .order-total th,.ehc-commerce-checkout .woocommerce-checkout-review-order-table .order-total td{padding-top:17px!important;border-top:1px solid var(--ehc-commerce-border)!important;font-weight:800}.ehc-commerce-checkout #payment{margin:12px 0 0!important;background:transparent!important}.ehc-commerce-checkout #payment ul.payment_methods{padding:10px 0!important;border-top:1px solid var(--ehc-commerce-border);background:transparent}.ehc-commerce-checkout #payment .place-order{padding:0!important;margin:0!important;background:transparent!important}.ehc-commerce-checkout #payment .woocommerce-terms-and-conditions-wrapper{font-size:11px;text-align:center}.ehc-commerce-checkout .woocommerce-error,.ehc-commerce-cart .woocommerce-error{border-color:#d94859}
@media(max-width:767px){.ehc-cart-layout,.ehc-commerce-checkout form.checkout{grid-template-columns:minmax(0,1fr);gap:15px}.ehc-commerce-checkout #customer_details,.ehc-commerce-checkout #order_review{grid-column:1;grid-row:auto}.ehc-cart-item{grid-template-columns:70px minmax(0,1fr) auto 22px;gap:9px}.ehc-cart-image,.ehc-cart-image img{width:70px;height:60px}}
@media(max-width:520px){.ehc-commerce{--ehc-commerce-pad-top:17px;--ehc-commerce-pad-right:15px;--ehc-commerce-pad-bottom:17px;--ehc-commerce-pad-left:15px}.ehc-cart-item{grid-template-columns:64px minmax(0,1fr) 22px;align-items:start}.ehc-cart-image,.ehc-cart-image img{width:64px;height:55px}.ehc-cart-item-price{grid-column:2;grid-row:2;text-align:right}.ehc-cart-remove{grid-column:3;grid-row:1}.ehc-cart-item-details h3{font-size:13px}.ehc-commerce h2{font-size:17px}}
.ehc-cart-remove img{display:block;width:17px;height:17px;object-fit:contain}
/* Cart artwork, sale badge, quantity stepper, coupon icons and AJAX state. */
.ehc-cart-layout{position:relative;isolation:isolate;overflow:visible}
.ehc-cart-layout::before{content:"";position:absolute;z-index:0;top:-16px;right:-17px;width:206px;height:120px;border-radius:24px;background:url('../images/cart-accent.png') center/contain no-repeat;pointer-events:none}
.ehc-cart-items{z-index:1}
.ehc-cart-items::before{content:none}
.ehc-cart-item-price{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;font-size:17px;line-height:1.5}
.ehc-cart-item-price .ehc-cart-item-amount{display:block;min-width:0}
.ehc-cart-item-price del{font-size:12px}
.ehc-cart-discount-badge{display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:2px 6px;border-radius:6px;background:#4862aa;color:#fff;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}
.ehc-summary-line>span:last-child{font-size:15px}
.ehc-summary-total>span:last-child{font-size:18px}
.ehc-cart-quantity{gap:7px}
.ehc-cart-qty-controls{display:inline-flex;align-items:center;direction:rtl;overflow:hidden;height:35px;border:1px solid var(--ehc-commerce-border);border-radius:9px;background:#fff}
.ehc-cart-qty-controls .ehc-qty-step{display:grid;place-items:center;flex:none;width:33px;height:33px;min-height:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#4862aa!important;font:700 20px/1 sans-serif!important;box-shadow:none!important;cursor:pointer}
.ehc-cart-qty-controls .ehc-qty-step:hover{background:#eaf3fd!important;color:#143c7a!important}
.ehc-cart-qty-controls input[type=number]{display:block;width:36px!important;height:33px!important;min-height:0;margin:0!important;padding:0 3px!important;border:0!important;border-left:1px solid var(--ehc-commerce-border)!important;border-right:1px solid var(--ehc-commerce-border)!important;border-radius:0!important;background:#fff;box-shadow:none!important;appearance:textfield;-moz-appearance:textfield;text-align:center!important;font-size:13px;direction:ltr}
.ehc-cart-qty-controls input::-webkit-outer-spin-button,.ehc-cart-qty-controls input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ehc-cart-update{transition:background-color .2s,color .2s,border-color .2s}
.ehc-cart-update:hover,.ehc-cart-update:focus-visible{background:#4862aa!important;border-color:#4862aa!important;color:#fff!important}
.ehc-commerce-cart.is-updating{opacity:.6;pointer-events:none}
.ehc-cart-update-error{margin:10px 0 0;color:#bb2638;font-size:13px}
.ehc-coupon-label{display:inline-flex;align-items:center;gap:9px}
.ehc-coupon-label img{display:block;width:21px;height:21px}
.ehc-coupon-toggle .ehc-coupon-arrow{display:block;width:6px;height:10px;transition:transform .2s}
.ehc-coupon-toggle[aria-expanded=true] .ehc-coupon-arrow{transform:rotate(-90deg)}
@media(max-width:520px){.ehc-cart-item-price{font-size:15px}.ehc-cart-layout::before{width:150px;height:88px;top:-12px;right:-10px}}
/* Checkout decoration belongs behind the white billing card, not over its heading. */
.ehc-commerce-checkout form.checkout{position:relative;isolation:isolate;overflow:visible}
.ehc-commerce-checkout form.checkout::before{content:"";display:block;position:absolute;z-index:0;top:-16px;right:-17px;width:206px;height:120px;border-radius:24px;background:url('../images/cart-accent.png') center/contain no-repeat;pointer-events:none}
.ehc-commerce-checkout #customer_details{z-index:1}
.ehc-commerce-checkout #customer_details::before{content:none}
.ehc-commerce-checkout #payment div.payment_box{margin:12px 0 10px!important;padding:var(--ehc-gateway-padding,13px 15px)!important;border:1px solid var(--ehc-gateway-border,#dce9f5)!important;border-radius:var(--ehc-gateway-radius,10px)!important;background:var(--ehc-gateway-bg,#f1f7fc)!important;color:var(--ehc-gateway-color,#61728e)!important;box-shadow:none!important;text-align:right!important}
.ehc-commerce-checkout #payment div.payment_box::before{display:none!important}
.ehc-commerce-checkout #payment div.payment_box,.ehc-commerce-checkout #payment div.payment_box p{font-size:var(--ehc-gateway-font-size,12px)!important;line-height:1.85!important}
.ehc-commerce-checkout #payment div.payment_box p{margin:0!important;color:inherit!important}
@media(max-width:520px){.ehc-commerce-checkout form.checkout::before{width:150px;height:88px;top:-12px;right:-10px}}
/* Item names and one aggregate discount row are visible in both summaries. */
.ehc-commerce{--ehc-commerce-discount:#13a766}
.ehc-order-summary .ehc-summary-discount,.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr.ehc-summary-discount th,.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr.ehc-summary-discount td{color:var(--ehc-commerce-discount)!important}
.ehc-summary-products{margin:14px 0 4px;padding:13px 0 2px;border-top:1px solid var(--ehc-commerce-border)}
.ehc-summary-products h3{margin:0 0 7px;color:#142956;font-size:13px;font-weight:800}
.ehc-summary-product{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:4px 0;color:#6d7c98;font-size:12px;line-height:1.6}
.ehc-summary-product span:first-child{min-width:0;overflow-wrap:anywhere}
.ehc-summary-product span:last-child{flex:none;direction:ltr}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody{display:table-row-group}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tr.cart-discount{display:none!important}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody tr.ehc-order-items-heading th{padding:12px 0 6px!important;border-top:1px solid var(--ehc-commerce-border)!important;color:#142956!important;font-size:13px!important;font-weight:800!important}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td{padding:5px 0!important;color:#6d7c98;line-height:1.6;vertical-align:top}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name{white-space:normal;overflow-wrap:anywhere;text-align:right}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total{white-space:nowrap;text-align:left}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item .product-quantity{color:#8090a9;font-weight:500}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,.ehc-commerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td{padding-top:13px!important;border-top:1px solid var(--ehc-commerce-border)!important}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table td .woocommerce-Price-amount bdi{display:inline-flex;direction:rtl;gap:3px}
.ehc-commerce-checkout .woocommerce-checkout-review-order-table td .woocommerce-Price-currencySymbol{order:2;font-size:.8em}
/* Explicit currency and number nodes keep toman on the visual left in RTL layouts. */
.ehc-commerce .woocommerce-Price-amount bdi.ehc-price-fixed{display:inline-flex!important;flex-direction:row!important;align-items:baseline;direction:ltr!important;gap:4px;white-space:nowrap}
.ehc-commerce .woocommerce-Price-amount bdi.ehc-price-fixed>.woocommerce-Price-currencySymbol{order:0!important;flex:none}
.ehc-commerce .woocommerce-Price-amount bdi.ehc-price-fixed>.ehc-price-number{order:1!important;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
