/* Nooronek v556 — GajCommerce cart, adapted to Nooronek layout. */
body.woocommerce-cart{direction:rtl;background:#f7f8fb!important;overflow-x:hidden}
body.woocommerce-cart .woocommerce{width:100%;max-width:1180px;margin:0 auto;padding:18px 16px 50px;direction:rtl}
body.woocommerce-cart .woocommerce>.row{display:flex;flex-wrap:wrap;align-items:flex-start;margin:0 -10px!important}
body.woocommerce-cart .woocommerce>.row>.col-12{width:100%;padding:0 10px!important;box-sizing:border-box}
body.woocommerce-cart .woocommerce>.row>.col-lg-8{width:66.666667%}
body.woocommerce-cart .woocommerce>.row>.col-lg-4{width:33.333333%}
body.woocommerce-cart .gcsteps{margin:0 0 18px;background:#fff;border:1px solid #edf0f4;box-shadow:0 7px 24px rgba(24,40,65,.055);padding:16px;border-radius:14px;position:relative;color:#667085;z-index:0}
body.woocommerce-cart #progressbargc{margin:0 0 7px!important;padding:0!important;overflow:hidden;display:flex;direction:rtl}
body.woocommerce-cart #progressbargc li{list-style:none;font-size:12px;width:33.333%;float:none;flex:0 0 33.333%;position:relative;font-weight:500;text-align:center;box-sizing:border-box}
body.woocommerce-cart #progressbargc .step:before{font-family:"Font Awesome 5 Free";font-weight:900;content:"\f111";color:#f8f9fa;width:34px;height:34px;line-height:35px;display:block;font-size:15px;background:#e7eaf0;border-radius:50%;margin:auto;position:relative;z-index:2}
body.woocommerce-cart #progressbargc li.active:before{content:"\f058";background:#a44aff;color:#fff}
body.woocommerce-cart #progressbargc li:after{content:"";width:100%;height:8px;background:#e7eaf0;position:absolute;right:0;top:13px;z-index:1}
body.woocommerce-cart #progressbargc li.active:after{background:#a44aff}
body.woocommerce-cart #progressbargc li:first-child:after{right:50%;width:50%;border-radius:10px 0 0 10px}
body.woocommerce-cart #progressbargc li:last-child:after{width:50%;left:0;right:auto;border-radius:0 10px 10px 0}
body.woocommerce-cart .gcsteps .row{display:flex;flex-wrap:wrap;margin:0!important}
body.woocommerce-cart .gcsteps .col{flex:1 1 33.333%;padding:0 4px!important;text-align:center;font-size:12px;line-height:1.7;box-sizing:border-box}
body.woocommerce-cart .gcsteps a{color:#667085;text-decoration:none}
body.woocommerce-cart .gcsteps a:hover{color:#a44aff}
body.woocommerce-cart .woocommerce-cart-form{width:100%;background:#fff;border:1px solid #edf0f4;border-radius:14px;box-shadow:0 7px 24px rgba(24,40,65,.055);padding:10px 14px 14px;box-sizing:border-box}
body.woocommerce-cart .woocommerce-cart-form table.shop_table{width:100%!important;margin:0!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;table-layout:auto}
body.woocommerce-cart .woocommerce-cart-form table thead th{padding:13px 8px!important;border:0!important;border-bottom:1px solid #edf0f4!important;background:transparent!important;color:#667085;font-size:11px;font-weight:800;text-align:center;white-space:nowrap}
body.woocommerce-cart .woocommerce-cart-form table tbody td{padding:14px 8px!important;border:0!important;border-bottom:1px solid #f0f2f6!important;vertical-align:middle;color:#667085;font-size:12px;text-align:center;background:#fff}
body.woocommerce-cart .woocommerce-cart-form table tbody tr:last-child td{border-bottom:0!important}
body.woocommerce-cart .product-remove{width:34px}
body.woocommerce-cart .product-remove a.remove{display:inline-grid;place-items:center;width:28px;height:28px;padding:0!important;border-radius:8px;background:#fff0f0;color:#c43131!important;font-size:18px!important;line-height:1;text-decoration:none!important}
body.woocommerce-cart .product-thumbnail{width:92px}
body.woocommerce-cart .product-thumbnail img{display:block;width:72px!important;height:72px!important;max-width:72px!important;object-fit:contain!important;margin:auto;border:1px solid #edf0f4;border-radius:12px;box-shadow:0 3px 10px rgba(20,35,60,.05)}
body.woocommerce-cart .product-name{text-align:right!important;min-width:180px}
body.woocommerce-cart .product-name a{color:#18263d!important;font-weight:800;text-decoration:none!important;line-height:1.8}
body.woocommerce-cart .product-name dl.variation{font-size:10px;line-height:1.6;margin:4px 0 0}
body.woocommerce-cart .product-price,body.woocommerce-cart .product-subtotal{color:#18263d;font-weight:800;white-space:nowrap}
body.woocommerce-cart .woocommerce-Price-amount,body.woocommerce-cart .woocommerce-Price-amount bdi{direction:ltr!important;unicode-bidi:isolate!important;display:inline-flex!important;align-items:center;gap:5px;white-space:nowrap}
body.woocommerce-cart .product-quantity .quantity{display:inline-flex;align-items:center;justify-content:center;width:54px;height:38px;border:1px solid #dfe4ea;border-radius:10px;background:#fafbfd}
body.woocommerce-cart .product-quantity input.qty{display:block;width:100%!important;height:36px!important;margin:0!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:9px!important;text-align:center;font-size:12px!important;font-weight:800;color:#18263d}
body.woocommerce-cart .actions{display:flex;align-items:center;gap:10px;min-height:58px;padding:13px 4px 2px!important;border-top:1px solid #edf0f4!important}
body.woocommerce-cart .actions .coupon{display:flex;align-items:center;gap:8px;float:none!important;margin:0!important}
body.woocommerce-cart .actions .coupon label{display:none}
body.woocommerce-cart .actions .coupon input[type=text]{width:190px!important;height:40px!important;margin:0!important;padding:0 12px!important;border:1px solid #dfe4ea!important;border-radius:9px!important;background:#fafbfd!important;font-size:11px!important;box-sizing:border-box}
body.woocommerce-cart .actions .button{height:40px!important;margin:0!important;padding:8px 14px!important;border:0!important;border-radius:9px!important;background:#a44aff!important;color:#fff!important;font-size:11px!important;font-weight:800!important;line-height:24px!important}
body.woocommerce-cart .actions button[name=update_cart]{display:none!important}
body.woocommerce-cart .cart-collaterals{width:100%;margin:0!important}
body.woocommerce-cart .cart-collaterals .cart_totals{float:none!important;width:100%!important;background:#fff!important;border:1px solid #edf0f4!important;border-radius:14px!important;box-shadow:0 7px 24px rgba(24,40,65,.055);padding:14px!important;box-sizing:border-box}
body.woocommerce-cart .cart-collaterals .cart_totals h2{margin:0!important;padding:5px 0 13px!important;color:#18263d;font-size:17px!important;font-weight:900;text-align:center!important}
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table{width:100%!important;margin:0!important;border:0!important;background:#fff!important}
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td{padding:11px 7px!important;border:0!important;border-bottom:1px solid #eef1f5!important;font-size:12px!important;color:#667085}
body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td{text-align:left;color:#18263d;font-weight:800}
body.woocommerce-cart .cart-collaterals .cart_totals .shipping{display:none!important}
body.woocommerce-cart .cart-collaterals .cart_totals .order-total th,body.woocommerce-cart .cart-collaterals .cart_totals .order-total td{font-size:14px!important;font-weight:900!important;color:#18263d}
body.woocommerce-cart .wc-proceed-to-checkout{padding:14px 0 0!important}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:46px!important;margin:0!important;padding:11px 14px!important;border:0!important;border-radius:10px!important;background:#a44aff!important;color:#fff!important;font-size:12px!important;font-weight:900!important;text-decoration:none!important;box-sizing:border-box}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{background:#913bef!important}
body.woocommerce-cart .woocommerce-notices-wrapper{margin:0 0 12px!important}
body.woocommerce-cart .woocommerce-message,body.woocommerce-cart .woocommerce-info,body.woocommerce-cart .woocommerce-error{border-radius:11px!important;font-size:11px!important}
body.woocommerce-cart .cross-sells{display:flex;flex-wrap:wrap;width:100%;margin:18px 0 0;border:1px solid #edf0f4;border-radius:14px;padding-bottom:15px;background:#fff;box-sizing:border-box}
body.woocommerce-cart .cross-sells h2{flex:0 0 100%;margin:0;background:#f7f8fb;padding:14px;border-radius:14px 14px 0 0;color:#18263d;font-size:16px;text-align:center}

/* v558: keep the existing Gaj visual design, but normalize desktop geometry. */
@media(min-width:769px){
 body.woocommerce-cart .woocommerce>.row>.col-lg-8{width:68%!important}
 body.woocommerce-cart .woocommerce>.row>.col-lg-4{width:32%!important}
 body.woocommerce-cart .woocommerce-cart-form{padding:10px 12px 14px!important}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table{table-layout:fixed!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-remove,
 body.woocommerce-cart .woocommerce-cart-form table td.product-remove{width:38px!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-thumbnail,
 body.woocommerce-cart .woocommerce-cart-form table td.product-thumbnail{width:86px!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-name,
 body.woocommerce-cart .woocommerce-cart-form table td.product-name{width:34%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-price,
 body.woocommerce-cart .woocommerce-cart-form table td.product-price{width:15%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-quantity,
 body.woocommerce-cart .woocommerce-cart-form table td.product-quantity{width:13%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-subtotal,
 body.woocommerce-cart .woocommerce-cart-form table td.product-subtotal{width:17%!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody td{padding:13px 6px!important}
 body.woocommerce-cart .product-thumbnail img{width:68px!important;height:68px!important;max-width:68px!important}
 body.woocommerce-cart .product-name{min-width:0!important}
 body.woocommerce-cart .product-name a{font-size:12px!important}
 body.woocommerce-cart .product-price,body.woocommerce-cart .product-subtotal{font-size:11px!important}
 body.woocommerce-cart .product-quantity .quantity{width:52px!important;height:36px!important}
 body.woocommerce-cart .product-quantity input.qty{height:34px!important}
}

/* Mobile: do not inherit Gaj's fixed-width table. Recompose each product as a card. */
@media(max-width:768px){
 body.woocommerce-cart .woocommerce{max-width:none!important;width:100%!important;padding:10px 10px 70px!important;box-sizing:border-box!important}
 body.woocommerce-cart .woocommerce>.row{width:100%!important;display:block!important}
 body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals{display:block!important;visibility:visible!important;opacity:1!important}
 body.woocommerce-cart .woocommerce-cart-form table,body.woocommerce-cart .woocommerce-cart-form table.shop_table{display:block!important;width:100%!important;visibility:visible!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody,body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item{visibility:visible!important}

 body.woocommerce-cart .woocommerce>.row{display:block;margin:0!important}
 body.woocommerce-cart .woocommerce>.row>.col-12,body.woocommerce-cart .woocommerce>.row>.col-lg-8,body.woocommerce-cart .woocommerce>.row>.col-lg-4{width:100%!important;padding:0!important}
 body.woocommerce-cart .gcsteps{margin-bottom:12px;padding:11px 8px;border-radius:12px}
 body.woocommerce-cart .gcsteps .col{font-size:10px;padding:0 2px!important}
 body.woocommerce-cart #progressbargc li:before{width:30px;height:30px;line-height:31px;font-size:13px}
 body.woocommerce-cart #progressbargc li:after{top:11px;height:7px}
 body.woocommerce-cart .woocommerce-cart-form{padding:9px;border-radius:12px}
 body.woocommerce-cart .woocommerce-cart-form table.shop_table{display:block!important;width:100%!important;table-layout:auto!important}
 body.woocommerce-cart .woocommerce-cart-form table thead{display:none!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody{display:block!important;width:100%!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item{position:relative;display:grid!important;grid-template-columns:84px minmax(0,1fr);grid-template-areas:"thumb main" "thumb meta";gap:0 10px;width:100%!important;margin:0 0 9px!important;padding:12px!important;border:1px solid #edf0f4!important;border-radius:13px!important;background:#fff!important;box-sizing:border-box}
 body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item:last-of-type{margin-bottom:0!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item td{border:0!important;background:transparent!important;padding:0!important;box-sizing:border-box}
 body.woocommerce-cart .product-thumbnail{grid-area:thumb;display:flex!important;align-items:center;justify-content:center;width:84px!important;min-width:84px!important;height:100%!important}
 body.woocommerce-cart .product-thumbnail a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
 body.woocommerce-cart .product-thumbnail img{width:80px!important;height:94px!important;max-width:80px!important;max-height:94px!important;border:0!important;box-shadow:none!important;border-radius:10px!important}
 body.woocommerce-cart .product-name{grid-area:main;display:block!important;width:auto!important;min-width:0!important;padding:2px 30px 0 0!important;text-align:right!important}
 body.woocommerce-cart .product-name a{display:block;max-width:100%;font-size:12px;line-height:1.8;overflow-wrap:anywhere;word-break:break-word}
 body.woocommerce-cart .product-name dl.variation{font-size:9px;line-height:1.6}
 body.woocommerce-cart .product-price{display:none!important}
 body.woocommerce-cart .product-quantity{grid-area:meta;display:flex!important;align-items:center;justify-content:flex-start;width:auto!important;padding:8px 0 0!important}
 body.woocommerce-cart .product-quantity .quantity{width:46px!important;height:31px!important;min-width:46px!important;border-radius:8px}
 body.woocommerce-cart .product-quantity input.qty{height:29px!important;font-size:11px!important}
 body.woocommerce-cart .product-subtotal{position:absolute;left:12px;bottom:12px;width:auto!important;padding:0!important;border:0!important;font-size:11px!important;text-align:left!important;white-space:nowrap}
 body.woocommerce-cart .product-remove{position:absolute;right:8px;top:8px;width:28px!important;height:28px!important;padding:0!important;z-index:5}
 body.woocommerce-cart .product-remove a.remove{width:28px!important;height:28px!important;font-size:17px!important}
 body.woocommerce-cart .actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:10px 0 0!important;margin-top:8px;border-top:1px solid #edf0f4!important}
 body.woocommerce-cart .cart-collaterals{margin-top:10px!important}
 body.woocommerce-cart .cart-collaterals .cart_totals{padding:12px!important;border-radius:12px!important}
 body.woocommerce-cart .cart-collaterals .cart_totals h2{font-size:15px!important;padding:3px 0 9px!important}
 body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,body.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td{padding:9px 5px!important;font-size:11px!important}
 body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{min-height:44px!important;font-size:11px!important}
 body.woocommerce-cart .cross-sells{margin-top:12px}
}
@media(max-width:380px){
 body.woocommerce-cart .woocommerce{padding-left:8px;padding-right:8px}
 body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item{grid-template-columns:76px minmax(0,1fr);gap:0 9px;padding:10px!important}
 body.woocommerce-cart .product-thumbnail{width:76px!important;min-width:76px!important}
 body.woocommerce-cart .product-thumbnail img{width:72px!important;height:88px!important;max-width:72px!important;max-height:88px!important}
 body.woocommerce-cart .product-name{padding-right:28px!important}
}

/* v559 — final alignment + Persian quantity presentation. */
body.woocommerce-cart .woocommerce-cart-form table tbody td.product-name{vertical-align:middle!important}
body.woocommerce-cart .woocommerce-cart-form table tbody td.product-price,
body.woocommerce-cart .woocommerce-cart-form table tbody td.product-quantity,
body.woocommerce-cart .woocommerce-cart-form table tbody td.product-subtotal{vertical-align:middle!important}
body.woocommerce-cart .product-quantity .quantity{overflow:hidden!important}
body.woocommerce-cart .product-quantity input.qty{font-variant-numeric:normal!important;direction:ltr!important;unicode-bidi:isolate!important}
body.woocommerce-cart .product-price .woocommerce-Price-amount,
body.woocommerce-cart .product-subtotal .woocommerce-Price-amount{justify-content:center!important}
body.woocommerce-cart .mp-cart-updating .woocommerce-cart-form{opacity:.72;pointer-events:none}
body.woocommerce-cart .mp-cart-updating .product-quantity input.qty{cursor:wait}
@media(min-width:769px){
 body.woocommerce-cart .woocommerce-cart-form table.shop_table{min-width:0!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-name,
 body.woocommerce-cart .woocommerce-cart-form table td.product-name{width:31%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-price,
 body.woocommerce-cart .woocommerce-cart-form table td.product-price{width:16%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-quantity,
 body.woocommerce-cart .woocommerce-cart-form table td.product-quantity{width:14%!important}
 body.woocommerce-cart .woocommerce-cart-form table th.product-subtotal,
 body.woocommerce-cart .woocommerce-cart-form table td.product-subtotal{width:16%!important}
 body.woocommerce-cart .woocommerce-cart-form table tbody td{height:84px!important}
}
@media(max-width:768px){
 body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item{min-height:118px!important}
 body.woocommerce-cart .product-subtotal .woocommerce-Price-amount{justify-content:flex-start!important}
 body.woocommerce-cart .product-quantity{align-items:flex-end!important}
}

/* v560 — coupon button width + quantity typography refinement. */
body.woocommerce-cart .product-quantity .quantity input.qty,
body.woocommerce-cart .product-quantity input.qty{
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:0!important;
  font-variant-numeric:normal!important;
  -moz-appearance:textfield;
}
body.woocommerce-cart .product-quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .product-quantity input.qty::-webkit-inner-spin-button{
  margin:0;
}
@media(max-width:768px){
  body.woocommerce-cart .product-quantity input.qty{
    font-size:13px!important;
  }
}
}

/* v562 — Restore v560 quantity layout; refine checkout steps icons only. */
body.woocommerce-cart #progressbargc{position:relative!important;align-items:center!important}
body.woocommerce-cart #progressbargc li{z-index:2!important}
body.woocommerce-cart #progressbargc li:after{z-index:0!important}
body.woocommerce-cart #progressbargc .step:before{
  font-family:"Font Awesome 5 Free"!important;
  font-style:normal!important;
  font-weight:900!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#98a2b3!important;
  background:#eef1f5!important;
  border:2px solid #fff!important;
  box-shadow:0 2px 7px rgba(24,40,65,.08)!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart #progressbargc li:nth-child(1) .step:before,
body.woocommerce-cart #progressbargc li:nth-child(1):before{content:"\f07a"!important}
body.woocommerce-cart #progressbargc li:nth-child(2) .step:before,
body.woocommerce-cart #progressbargc li:nth-child(2):before{content:"\f09d"!important}
body.woocommerce-cart #progressbargc li:nth-child(3) .step:before,
body.woocommerce-cart #progressbargc li:nth-child(3):before{content:"\f058"!important}
body.woocommerce-cart #progressbargc li.active:before{color:#fff!important;background:#a44aff!important;border-color:#fff!important;box-shadow:0 3px 10px rgba(164,74,255,.25)!important}
body.woocommerce-cart .gcsteps .row.justify-content-between{position:relative!important;z-index:3!important;margin-top:1px!important}
body.woocommerce-cart .gcsteps .row.justify-content-between .col{position:relative!important;z-index:3!important}
body.woocommerce-cart .gcsteps .row.justify-content-between a,
body.woocommerce-cart .gcsteps .row.justify-content-between .col{font-weight:600!important;color:#667085!important;white-space:nowrap!important}
body.woocommerce-cart .gcsteps .row.justify-content-between .col:first-child a{color:#a44aff!important;font-weight:800!important}
@media(max-width:768px){
 body.woocommerce-cart #progressbargc .step:before{width:30px!important;height:30px!important;line-height:30px!important;font-size:12px!important}
 body.woocommerce-cart .gcsteps .row.justify-content-between .col{font-size:10px!important}
}


/* v563 — Unified, reliable SVG checkout steps on Cart / Checkout / Complete. */
.nooronek-checkout-steps{
  width:100%;
  margin:0 0 20px;
  padding:18px 20px 16px;
  background:#fff;
  border:1px solid #edf0f4;
  border-radius:14px;
  box-shadow:0 7px 24px rgba(24,40,65,.055);
  box-sizing:border-box;
  direction:rtl;
}
.nooronek-checkout-steps__list{
  list-style:none!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0!important;
  margin:0!important;
  padding:0!important;
  position:relative;
}
.nooronek-checkout-steps__list:before{
  content:"";
  position:absolute;
  top:20px;
  right:16.666%;
  left:16.666%;
  height:3px;
  border-radius:99px;
  background:#e8ebf0;
  z-index:0;
}
.nooronek-checkout-step{
  min-width:0;
  position:relative;
  z-index:1;
  text-align:center;
  padding:0 6px!important;
  margin:0!important;
}
.nooronek-checkout-step:before,.nooronek-checkout-step:after{content:none!important;display:none!important}
.nooronek-checkout-step>a,
.nooronek-checkout-step>span{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none!important;
}
.nooronek-checkout-step__icon{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#eef1f5;
  border:3px solid #fff;
  box-shadow:0 2px 8px rgba(24,40,65,.08);
  box-sizing:border-box;
}
.nooronek-checkout-step__icon svg{
  width:20px!important;
  height:20px!important;
  display:block!important;
  fill:none!important;
  stroke:#98a2b3!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.nooronek-checkout-step__label{
  margin-top:8px;
  color:#667085;
  font:600 12px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif;
  white-space:nowrap;
}
.nooronek-checkout-step.is-current .nooronek-checkout-step__icon,
.nooronek-checkout-step.is-done .nooronek-checkout-step__icon{
  background:#a44aff;
  box-shadow:0 3px 10px rgba(164,74,255,.22);
}
.nooronek-checkout-step.is-current .nooronek-checkout-step__icon svg,
.nooronek-checkout-step.is-done .nooronek-checkout-step__icon svg{stroke:#fff!important}
.nooronek-checkout-step.is-current .nooronek-checkout-step__label{color:#a44aff;font-weight:800}
.nooronek-checkout-step.is-done .nooronek-checkout-step__label{color:#667085}
.nooronek-checkout-step.is-done + .nooronek-checkout-step.is-current:before{content:""}
.nooronek-checkout-steps__list:after{
  content:"";
  position:absolute;
  top:20px;
  right:16.666%;
  height:3px;
  width:33.333%;
  border-radius:99px;
  background:#a44aff;
  z-index:0;
}
/* LTR width logic is intentionally avoided; RTL keeps the active connection from Cart toward Checkout. */
.woocommerce-checkout .nooronek-checkout-steps__list:after{width:66.666%}
.woocommerce-order-received .nooronek-checkout-steps__list:after{width:66.666%}
@media(max-width:768px){
  .nooronek-checkout-steps{margin-bottom:12px;padding:12px 8px 11px;border-radius:12px}
  .nooronek-checkout-steps__list:before{top:17px;right:16.666%;left:16.666%;height:2px}
  .nooronek-checkout-steps__list:after{top:17px;height:2px}
  .nooronek-checkout-step{padding:0 2px!important}
  .nooronek-checkout-step__icon{width:34px;height:34px;border-width:2px}
  .nooronek-checkout-step__icon svg{width:17px!important;height:17px!important}
  .nooronek-checkout-step__label{margin-top:6px;font-size:10px;line-height:1.5}
}

/* v564 — Final checkout-step line, coupon typography and mobile quantity alignment. */
.nooronek-checkout-steps__list:before{
  top:20px!important;
  right:16.666666%!important;
  left:16.666666%!important;
  width:auto!important;
  height:3px!important;
  background:#e8ebf0!important;
  border-radius:999px!important;
  z-index:0!important;
}
.nooronek-checkout-steps__list:after{
  top:20px!important;
  right:16.666666%!important;
  left:auto!important;
  width:33.333333%!important;
  height:3px!important;
  background:#a44aff!important;
  border-radius:999px!important;
  z-index:0!important;
}
.woocommerce-checkout .nooronek-checkout-steps__list:after,
.woocommerce-order-received .nooronek-checkout-steps__list:after{
  width:66.666666%!important;
}
.nooronek-checkout-step__icon,
.nooronek-checkout-step__label{position:relative;z-index:2}
.nooronek-checkout-step__icon{flex:0 0 auto}

/* Keep every coupon text in the Nooronek/Persian font. */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-collaterals .cart_totals th,
body.woocommerce-cart .cart-collaterals .cart_totals td{
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
}

@media(max-width:768px){
  .nooronek-checkout-steps__list:before{
    top:17px!important;
    right:16.666666%!important;
    left:16.666666%!important;
    height:2px!important;
  }
  .nooronek-checkout-steps__list:after{
    top:17px!important;
    right:16.666666%!important;
    left:auto!important;
    width:33.333333%!important;
    height:2px!important;
  }
  .woocommerce-checkout .nooronek-checkout-steps__list:after,
  .woocommerce-order-received .nooronek-checkout-steps__list:after{
    width:66.666666%!important;
  }

  /* Small, separated quantity control with an explicit Persian label. */
  body.woocommerce-cart .product-quantity{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:8px 0 0!important;
    white-space:nowrap!important;
  }
  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:";
    display:inline-block!important;
    margin:0!important;
    color:#667085!important;
    font:600 10px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif!important;
  }
  body.woocommerce-cart .product-quantity .quantity{
    width:40px!important;
    min-width:40px!important;
    height:28px!important;
    border-radius:7px!important;
    margin:0!important;
  }
  body.woocommerce-cart .product-quantity input.qty{
    width:100%!important;
    height:26px!important;
    font:700 12px/1 "Vazirmatn",Tahoma,Arial,sans-serif!important;
    padding:0 2px!important;
  }
}

@media(max-width:380px){
  body.woocommerce-cart .product-quantity{gap:7px!important}
  body.woocommerce-cart .product-quantity::before{font-size:9px!important}
  body.woocommerce-cart .product-quantity .quantity{width:38px!important;min-width:38px!important;height:27px!important}
  body.woocommerce-cart .product-quantity input.qty{height:25px!important;font-size:11px!important}
}

/* v565 — Mobile quantity/subtotal alignment + compact remove control + stable checkout progress. */
@media(max-width:768px){
  /* Keep quantity on the same baseline as the subtotal, near the bottom of the card. */
  body.woocommerce-cart .woocommerce-cart-form table tbody tr.cart_item{
    position:relative!important;
  }
  body.woocommerce-cart .product-quantity{
    position:absolute!important;
    right:12px!important;
    bottom:12px!important;
    width:auto!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    z-index:3!important;
  }
  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:"!important;
    display:inline-block!important;
    margin:0!important;
    color:#667085!important;
    font:600 10px/1.5 "Vazirmatn",Tahoma,Arial,sans-serif!important;
  }
  body.woocommerce-cart .product-quantity .quantity{
    width:38px!important;
    min-width:38px!important;
    height:27px!important;
    margin:0!important;
    border-radius:7px!important;
  }
  body.woocommerce-cart .product-quantity input.qty{
    width:100%!important;
    height:25px!important;
    padding:0 2px!important;
    font:700 11px/1 "Vazirmatn",Tahoma,Arial,sans-serif!important;
  }
  body.woocommerce-cart .product-subtotal{
    right:auto!important;
    left:12px!important;
    bottom:12px!important;
    display:flex!important;
    align-items:center!important;
    min-height:27px!important;
  }

  /* Smaller remove button, moved slightly upward/right. */
  body.woocommerce-cart .product-remove{
    right:6px!important;
    top:5px!important;
    width:22px!important;
    height:22px!important;
  }
  body.woocommerce-cart .product-remove a.remove{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    font-size:14px!important;
    line-height:22px!important;
    border-radius:50%!important;
  }

  /* Stable three-step progress: one clean neutral rail + one active rail. */
  .nooronek-checkout-steps{
    position:relative!important;
    overflow:hidden!important;
  }
  .nooronek-checkout-steps__list{
    position:relative!important;
    min-height:55px!important;
  }
  .nooronek-checkout-steps__list:before{
    top:17px!important;
    right:16.666666%!important;
    left:16.666666%!important;
    height:2px!important;
    width:auto!important;
    background:#e4e7ec!important;
    border-radius:999px!important;
    transform:none!important;
  }
  .nooronek-checkout-steps__list:after{
    top:17px!important;
    right:16.666666%!important;
    left:auto!important;
    width:33.333333%!important;
    height:2px!important;
    background:#a44aff!important;
    border-radius:999px!important;
    transform:none!important;
  }
  .woocommerce-checkout .nooronek-checkout-steps__list:after,
  .woocommerce-order-received .nooronek-checkout-steps__list:after{
    width:66.666666%!important;
  }
  .nooronek-checkout-step,
  .nooronek-checkout-step>a,
  .nooronek-checkout-step>span{
    position:relative!important;
  }
  .nooronek-checkout-step__icon{
    position:relative!important;
    z-index:5!important;
  }
}

@media(max-width:380px){
  body.woocommerce-cart .product-quantity{
    right:10px!important;
    bottom:10px!important;
    gap:7px!important;
  }
  body.woocommerce-cart .product-quantity::before{font-size:9px!important}
  body.woocommerce-cart .product-quantity .quantity{width:36px!important;min-width:36px!important;height:26px!important}
  body.woocommerce-cart .product-quantity input.qty{height:24px!important;font-size:10px!important}
  body.woocommerce-cart .product-subtotal{left:10px!important;bottom:10px!important}
  body.woocommerce-cart .product-remove{right:5px!important;top:4px!important}
}

/* v566 — final mobile alignment refinements */
@media (max-width:700px){
  /* Product bottom meta: quantity + subtotal on one clean baseline */
  body.woocommerce-cart table.shop_table tbody tr.cart_item{
    padding-bottom:48px!important;
  }
  body.woocommerce-cart .product-quantity{
    position:absolute!important;
    left:14px!important;
    bottom:13px!important;
    width:auto!important;
    height:32px!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    z-index:2;
  }
  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:"!important;
    display:inline-flex!important;
    align-items:center!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  body.woocommerce-cart .product-quantity .quantity{
    width:44px!important;
    min-width:44px!important;
    height:30px!important;
    margin:0!important;
    border-radius:8px!important;
  }
  body.woocommerce-cart .product-quantity input.qty{
    width:100%!important;
    height:28px!important;
    min-width:0!important;
    padding:0 3px!important;
    font-family:"Vazirmatn",sans-serif!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:28px!important;
  }
  body.woocommerce-cart .product-subtotal{
    position:absolute!important;
    right:14px!important;
    left:auto!important;
    bottom:13px!important;
    width:auto!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    color:#18263d!important;
    font-family:"Vazirmatn",sans-serif!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }
  body.woocommerce-cart .product-subtotal::before{
    content:"جمع: "!important;
    display:inline!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
  }
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    font-family:"Vazirmatn",sans-serif!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:32px!important;
  }

}

@media (max-width:380px){
  body.woocommerce-cart .product-quantity{
    left:12px!important;
  }
  body.woocommerce-cart .product-subtotal{
    right:12px!important;
  }
}

/* v569 — Mobile: quantity + subtotal aligned with product title */
@media (max-width:700px){
  body.woocommerce-cart .product-quantity{
    left:92px!important;
    right:auto!important;
    bottom:13px!important;
    gap:5px!important;
  }
  body.woocommerce-cart .product-subtotal{
    left:92px!important;
    right:auto!important;
    bottom:13px!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
}
@media (max-width:380px){
  body.woocommerce-cart .product-quantity{
    left:88px!important;
    gap:4px!important;
  }
  body.woocommerce-cart .product-subtotal{
    left:88px!important;
  }
}




/* v577 — CLEAN MOBILE CART META
 * Rebuild only the mobile quantity/subtotal row from scratch.
 * No inherited positioning, pseudo-labels, or desktop table-label styling.
 */
@media (max-width: 700px){
  /* Never show WooCommerce's automatic mobile "محصول:" / data-title labels. */
  body.woocommerce-cart table.shop_table tbody td::before,
  body.woocommerce-cart table.shop_table tbody td[data-title]::before,
  body.woocommerce-cart .product-name::before,
  body.woocommerce-cart .product-price::before,
  body.woocommerce-cart .product-quantity::before,
  body.woocommerce-cart .product-subtotal::before{
    content:none!important;
    display:none!important;
  }

  /* Product card: reserve a clean bottom row for quantity + subtotal. */
  body.woocommerce-cart table.shop_table tbody tr.cart_item{
    position:relative!important;
    padding-bottom:52px!important;
  }

  /* Product image: keep the existing lower placement. */
  body.woocommerce-cart .product-thumbnail{
    transform:translateY(20px)!important;
  }

  /* Reset BOTH cells before rebuilding them. */
  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    position:absolute!important;
    top:auto!important;
    bottom:12px!important;
    height:32px!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    overflow:visible!important;
    transform:none!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    line-height:32px!important;
    z-index:4!important;
  }

  /* Quantity group: starts exactly at the left edge of the product title area. */
  body.woocommerce-cart .product-quantity{
    right:12px!important;
    left:auto!important;
    width:108px!important;
    justify-content:flex-start!important;
    direction:rtl!important;
    gap:5px!important;
    font-size:11px!important;
    font-weight:700!important;
    color:#667085!important;
  }

  /* The quantity box is the only styled control in this row. */
  body.woocommerce-cart .product-quantity .quantity{
    order:2!important;
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:30px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #dfe4ea!important;
    border-radius:8px!important;
    background:#fafbfd!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  body.woocommerce-cart .product-quantity .quantity input.qty{
    width:100%!important;
    min-width:0!important;
    height:28px!important;
    margin:0!important;
    padding:0 2px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:7px!important;
    text-align:center!important;
    direction:rtl!important;
    unicode-bidi:plaintext!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:28px!important;
    font-variant-numeric:normal!important;
  }

  /* "تعداد:" is plain text immediately before its box. */
  body.woocommerce-cart .product-quantity::after{
    content:"تعداد:"!important;
    order:1!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }

  /* Subtotal group: immediately to the left of the quantity group. */
  body.woocommerce-cart .product-subtotal{
    right:132px!important;
    left:auto!important;
    width:120px!important;
    justify-content:flex-start!important;
    direction:rtl!important;
    gap:5px!important;
    color:#18263d!important;
    font-size:11px!important;
    font-weight:900!important;
  }

  body.woocommerce-cart .product-subtotal::after{
    content:"جمع:"!important;
    order:1!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    order:2!important;
    flex:0 0 auto!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    white-space:nowrap!important;
    direction:ltr!important;
    unicode-bidi:isolate!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:32px!important;
  }
}

/* Narrow phones: reduce widths/gap, but NEVER allow a second line. */
@media (max-width: 480px){
  body.woocommerce-cart .product-quantity{
    right:10px!important;
    left:auto!important;
    width:98px!important;
    gap:3px!important;
  }
  body.woocommerce-cart .product-quantity .quantity{
    flex-basis:40px!important;
    width:40px!important;
    min-width:40px!important;
  }
  body.woocommerce-cart .product-subtotal{
    right:112px!important;
    left:auto!important;
    width:105px!important;
    gap:3px!important;
  }
}

@media (max-width: 380px){
  body.woocommerce-cart .product-quantity{
    right:8px!important;
    left:auto!important;
    width:92px!important;
    gap:2px!important;
    font-size:10px!important;
  }
  body.woocommerce-cart .product-quantity::after,
  body.woocommerce-cart .product-subtotal::after{
    font-size:10px!important;
  }
  body.woocommerce-cart .product-quantity .quantity{
    flex-basis:38px!important;
    width:38px!important;
    min-width:38px!important;
    height:28px!important;
  }
  body.woocommerce-cart .product-quantity .quantity input.qty{
    height:26px!important;
    font-size:10px!important;
  }
  body.woocommerce-cart .product-subtotal{
    right:104px!important;
    left:auto!important;
    width:98px!important;
    gap:2px!important;
    font-size:10px!important;
  }
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    font-size:10px!important;
  }
}

@media (max-width: 340px){
  body.woocommerce-cart .product-quantity{
    right:8px!important;
    left:auto!important;
    width:84px!important;
  }
  body.woocommerce-cart .product-subtotal{
    right:94px!important;
    left:auto!important;
    width:90px!important;
  }
}


/* v576 — Mobile cart: quantity + subtotal in one clean, shared row */
@media (max-width:700px){
  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    position:absolute!important;
    top:auto!important;
    bottom:13px!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
    width:auto!important;
  }

  body.woocommerce-cart .product-quantity{
    left:96px!important;
    right:auto!important;
  }

  body.woocommerce-cart .product-subtotal{
    left:230px!important;
    right:auto!important;
  }

  body.woocommerce-cart .product-quantity > *,
  body.woocommerce-cart .product-subtotal > *{
    margin:0!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-quantity .quantity{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    margin:0!important;
  }
}

/* Smaller phones: keep both blocks in the same row and reduce the gap */
@media (max-width:480px){
  body.woocommerce-cart .product-quantity{
    left:86px!important;
  }

  body.woocommerce-cart .product-subtotal{
    left:205px!important;
  }
}

@media (max-width:380px){
  body.woocommerce-cart .product-quantity{
    left:78px!important;
    transform:scale(.94)!important;
    transform-origin:left center!important;
  }

  body.woocommerce-cart .product-subtotal{
    left:185px!important;
    transform:scale(.94)!important;
    transform-origin:left center!important;
  }
}

@media (max-width:340px){
  body.woocommerce-cart .product-quantity{
    left:70px!important;
    transform:scale(.88)!important;
    transform-origin:left center!important;
  }

  body.woocommerce-cart .product-subtotal{
    left:166px!important;
    transform:scale(.88)!important;
    transform-origin:left center!important;
  }
}


/* v578 — FINAL CLEAN MOBILE CART ROW
 * Quantity and subtotal are real grid columns on the same row.
 * This intentionally overrides all previous mobile positioning patches.
 */
@media (max-width:700px){

  /* Card: image + product content on first row; image + meta row underneath. */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{
    display:grid!important;
    grid-template-columns:84px minmax(0,1fr) auto!important;
    grid-template-areas:
      "thumb main main"
      "thumb quantity subtotal"!important;
    column-gap:10px!important;
    row-gap:0!important;
    position:relative!important;
    padding:12px!important;
    padding-bottom:12px!important;
    box-sizing:border-box!important;
  }

  /* Keep the image vertically centered in the card. */
  body.woocommerce-cart .product-thumbnail{
    grid-area:thumb!important;
    align-self:center!important;
    justify-self:center!important;
    width:84px!important;
    min-width:84px!important;
    height:auto!important;
    transform:translateY(20px)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  /* Product title stays in the main content column. */
  body.woocommerce-cart .product-name{
    grid-area:main!important;
    min-width:0!important;
  }

  /* Both meta cells are normal grid items — no absolute positioning. */
  body.woocommerce-cart .product-quantity{
    grid-area:quantity!important;
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:auto!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    direction:rtl!important;
    box-sizing:border-box!important;
    z-index:auto!important;
  }

  body.woocommerce-cart .product-subtotal{
    grid-area:subtotal!important;
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:auto!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    direction:rtl!important;
    box-sizing:border-box!important;
    z-index:auto!important;
  }

  /* Remove every automatic WooCommerce/mobile data-title label. */
  body.woocommerce-cart .product-quantity::before,
  body.woocommerce-cart .product-quantity::after,
  body.woocommerce-cart .product-subtotal::before,
  body.woocommerce-cart .product-subtotal::after,
  body.woocommerce-cart .product-name::before,
  body.woocommerce-cart .product-price::before,
  body.woocommerce-cart table.shop_table tbody td[data-title]::before{
    content:none!important;
    display:none!important;
  }

  /* Re-create only the two labels we actually want. */
  body.woocommerce-cart .product-quantity > .quantity{
    order:2!important;
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:30px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #dfe4ea!important;
    border-radius:8px!important;
    background:#fafbfd!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:"!important;
    order:1!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-subtotal::before{
    content:"جمع:"!important;
    order:1!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:32px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-quantity .quantity input.qty{
    width:100%!important;
    min-width:0!important;
    height:28px!important;
    margin:0!important;
    padding:0 2px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:7px!important;
    text-align:center!important;
    direction:rtl!important;
    unicode-bidi:plaintext!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:28px!important;
    font-variant-numeric:normal!important;
  }

  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    order:2!important;
    flex:0 1 auto!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
    direction:ltr!important;
    unicode-bidi:isolate!important;
    color:#18263d!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:32px!important;
  }
}

/* Narrow phones: shrink the image column and controls, not the row structure. */
@media (max-width:480px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{
    grid-template-columns:76px minmax(0,1fr) auto!important;
    column-gap:8px!important;
  }

  body.woocommerce-cart .product-thumbnail{
    width:76px!important;
    min-width:76px!important;
  }

  body.woocommerce-cart .product-thumbnail img{
    width:72px!important;
    max-width:72px!important;
    height:88px!important;
    max-height:88px!important;
  }

  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    gap:3px!important;
  }

  body.woocommerce-cart .product-quantity > .quantity{
    flex-basis:40px!important;
    width:40px!important;
    min-width:40px!important;
    height:29px!important;
  }

  body.woocommerce-cart .product-quantity .quantity input.qty{
    height:27px!important;
    font-size:10px!important;
  }

  body.woocommerce-cart .product-quantity::before,
  body.woocommerce-cart .product-subtotal::before,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    font-size:10px!important;
  }
}

@media (max-width:360px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{
    grid-template-columns:70px minmax(0,1fr) auto!important;
    column-gap:6px!important;
  }

  body.woocommerce-cart .product-thumbnail{
    width:70px!important;
    min-width:70px!important;
  }

  body.woocommerce-cart .product-thumbnail img{
    width:66px!important;
    max-width:66px!important;
    height:82px!important;
    max-height:82px!important;
  }

  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    gap:2px!important;
  }

  body.woocommerce-cart .product-quantity > .quantity{
    flex-basis:37px!important;
    width:37px!important;
    min-width:37px!important;
  }
}


/* v579 — Restore the quantity label directly before its box */
@media (max-width:700px){
  body.woocommerce-cart .product-quantity{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    direction:rtl!important;
    gap:5px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:"!important;
    display:inline-block!important;
    order:1!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:30px!important;
    white-space:nowrap!important;
    visibility:visible!important;
    opacity:1!important;
  }

  body.woocommerce-cart .product-quantity > .quantity{
    order:2!important;
    flex:0 0 42px!important;
  }
}

@media (max-width:480px){
  body.woocommerce-cart .product-quantity::before{
    font-size:10px!important;
  }
}

@media (max-width:360px){
  body.woocommerce-cart .product-quantity::before{
    font-size:9px!important;
  }
}


/* v580 — Mobile polish */

/* Raise the product image slightly from the bottom edge. */
@media (max-width:700px){
  body.woocommerce-cart .product-thumbnail{
    transform:translateY(12px)!important;
  }

  /*
   * Quantity label: put it in a dedicated inline flex wrapper-like flow
   * immediately before the quantity box. The label is intentionally
   * generated on the same cell so it cannot fall under the image.
   */
  body.woocommerce-cart .product-quantity{
    direction:rtl!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-quantity::before{
    content:"تعداد:"!important;
    position:static!important;
    display:inline-block!important;
    order:1!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:30px!important;
    white-space:nowrap!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
  }

  body.woocommerce-cart .product-quantity > .quantity{
    order:2!important;
  }

  /* Non-editable/sold-individually quantity: visually muted and non-selectable. */
  body.woocommerce-cart .product-quantity .quantity input.qty[readonly],
  body.woocommerce-cart .product-quantity .quantity input.qty:read-only{
    color:#aeb6c2!important;
    -webkit-text-fill-color:#aeb6c2!important;
    opacity:1!important;
    user-select:none!important;
    -webkit-user-select:none!important;
    cursor:default!important;
    caret-color:transparent!important;
  }

  body.woocommerce-cart .product-quantity .quantity input.qty[readonly]::selection,
  body.woocommerce-cart .product-quantity .quantity input.qty:read-only::selection{
    background:transparent!important;
    color:#aeb6c2!important;
  }
}

@media (max-width:480px){
  body.woocommerce-cart .product-thumbnail{
    transform:translateY(10px)!important;
  }

  body.woocommerce-cart .product-quantity::before{
    font-size:10px!important;
  }
}

@media (max-width:360px){
  body.woocommerce-cart .product-thumbnail{
    transform:translateY(8px)!important;
  }

  body.woocommerce-cart .product-quantity::before{
    font-size:9px!important;
  }
}


/* v581 — Final mobile/desktop quantity + discount polish */

/* The real label is hidden on desktop and shown only in the mobile row. */
body.woocommerce-cart .mp-mobile-quantity-label{
  display:none!important;
}

/* Read-only / sold-individually quantity is muted on BOTH desktop and mobile. */
body.woocommerce-cart .product-quantity .quantity input.qty[readonly],
body.woocommerce-cart .product-quantity .quantity input.qty:read-only{
  color:#aeb6c2!important;
  -webkit-text-fill-color:#aeb6c2!important;
  opacity:1!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  cursor:default!important;
  caret-color:transparent!important;
}

@media (max-width:700px){
  /* Use the actual HTML label, not a pseudo-element. */
  body.woocommerce-cart .product-quantity::before{
    content:none!important;
    display:none!important;
  }

  body.woocommerce-cart .mp-mobile-quantity-label{
    display:inline-block!important;
    position:static!important;
    order:1!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:30px!important;
    white-space:nowrap!important;
    visibility:visible!important;
    opacity:1!important;
  }

  body.woocommerce-cart .product-quantity{
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .product-quantity > .quantity{
    order:2!important;
  }

  /* Slightly larger subtotal amount in the product card. */
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    font-size:12px!important;
    font-weight:900!important;
  }

  /* Discount currency before the numeric amount. */
  body.woocommerce-cart .cart_totals .cart-discount td .woocommerce-Price-amount bdi{
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:4px!important;
    direction:ltr!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-currency{
    order:1!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-number{
    order:2!important;
  }
}

/* Desktop: also put تومان before the discount number. */
@media (min-width:701px){
  body.woocommerce-cart .cart_totals .cart-discount td .woocommerce-Price-amount bdi{
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
    direction:ltr!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-currency{
    order:1!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-number{
    order:2!important;
  }
}

@media (max-width:480px){
  body.woocommerce-cart .mp-mobile-quantity-label{
    font-size:10px!important;
  }

  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .product-subtotal .woocommerce-Price-amount bdi{
    font-size:12px!important;
  }
}


/* v582 — Cart discount only: amount first, تومان second */
body.woocommerce-cart .cart_totals .cart-discount td .woocommerce-Price-amount bdi{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  direction:ltr!important;
  white-space:nowrap!important;
}

body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-number{
  order:1!important;
}

body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-currency{
  order:2!important;
}


/* v583 — Only two requested mobile fixes */

/* 1) Move quantity + subtotal row slightly lower. */
@media (max-width:700px){
  body.woocommerce-cart .product-quantity,
  body.woocommerce-cart .product-subtotal{
    transform:translateY(7px)!important;
  }

  /* 2) Discount row: force amount first, تومان second. */
  body.woocommerce-cart .cart_totals .cart-discount td .woocommerce-Price-amount bdi{
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    direction:ltr!important;
    gap:4px!important;
    white-space:nowrap!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-number{
    order:1!important;
    direction:ltr!important;
  }

  body.woocommerce-cart .cart_totals .cart-discount td .mp-cart-discount-currency{
    order:2!important;
    direction:rtl!important;
  }
}

/* Desktop coupon sizing — intentionally isolated from the mobile coupon system. */
@media (min-width:769px){
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]{
    min-width:122px!important;
    width:122px!important;
    padding:8px 12px!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  }
}

/* v567 — Canonical mobile Coupon UI.
 * One self-contained system: input stays on the right, Apply stays on the left.
 * WooCommerce markup, submit behavior and cart calculations are unchanged.
 */
@media (max-width:700px){
  body.woocommerce-cart .actions .coupon{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 100px!important;
    grid-template-rows:40px!important;
    align-items:stretch!important;
    column-gap:7px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    direction:rtl!important;
    flex-wrap:nowrap!important;
  }

  body.woocommerce-cart .actions .coupon label{
    display:none!important;
  }

  body.woocommerce-cart .actions .coupon input.input-text,
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    align-self:stretch!important;
    border-radius:9px!important;
    font-family:"Vazirmatn",Tahoma,Arial,sans-serif!important;
  }

  body.woocommerce-cart .actions .coupon input.input-text{
    grid-column:1!important;
    grid-row:1!important;
    padding:0 12px!important;
    border:1px solid #dfe4ea!important;
    background:#fff!important;
    direction:rtl!important;
    text-align:right!important;
    font-size:11px!important;
    line-height:40px!important;
    outline:none!important;
  }

  body.woocommerce-cart .actions .coupon input.input-text::placeholder{
    color:#98a0ad!important;
    opacity:1!important;
    font-size:11px!important;
  }

  body.woocommerce-cart .actions .coupon input.input-text:focus{
    border-color:#A44AFF!important;
    box-shadow:0 0 0 1px #A44AFF!important;
  }

  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]{
    grid-column:2!important;
    grid-row:1!important;
    padding:0 10px!important;
    border:1px solid #A44AFF!important;
    background:#A44AFF!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:700!important;
    line-height:40px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    box-shadow:none!important;
    transform:none!important;
    transition:none!important;
  }

  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]:hover,
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]:focus,
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]:active{
    background:#A44AFF!important;
    border-color:#A44AFF!important;
    color:#fff!important;
  }
}

@media (max-width:480px){
  body.woocommerce-cart .actions .coupon{
    grid-template-columns:minmax(0,1fr) 92px!important;
  }
}

@media (max-width:360px){
  body.woocommerce-cart .actions .coupon{
    grid-template-columns:minmax(0,1fr) 84px!important;
    column-gap:6px!important;
  }
  body.woocommerce-cart .actions .coupon input.input-text,
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }
  body.woocommerce-cart .actions .coupon input.input-text{
    line-height:38px!important;
  }
  body.woocommerce-cart .actions .coupon button[name="apply_coupon"]{
    line-height:38px!important;
    padding:0 7px!important;
    font-size:10px!important;
  }
}
