body.woocommerce-cart #content .woocommerce { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; }
body.woocommerce-cart #content .woocommerce::before, body.woocommerce-cart #content .woocommerce::after,
body.woocommerce-cart #content .cart-collaterals::before, body.woocommerce-cart #content .cart-collaterals::after { display:none !important; }
body.woocommerce-cart #content .woocommerce .woocommerce-cart-form,
body.woocommerce-cart #content .woocommerce .cart-collaterals .cart_totals { box-sizing:border-box; width:100% !important; max-width:none !important; float:none !important; margin:0 !important; padding:24px !important; border:1px solid #e5e7eb !important; border-top:4px solid #e03131 !important; border-radius:16px !important; background:#fff !important; box-shadow:0 6px 20px rgba(31,41,55,.04) !important; min-width:0; }
body.woocommerce-cart #content .woocommerce .cart-collaterals { display:grid; grid-template-columns:minmax(0,1fr); gap:30px; width:100% !important; margin:0 !important; }
body.woocommerce-cart #content .woocommerce .cart_totals>h2,
body.woocommerce-cart #content .woocommerce .irantire-cart-items-title { margin:0 0 20px !important; padding:0 0 16px !important; border:0 !important; border-bottom:1px solid #eceef2 !important; font-size:22px; line-height:1.6; }
body.woocommerce-cart #content .woocommerce .cart_totals>h2::before, body.woocommerce-cart #content .woocommerce .cart_totals>h2::after { display:none !important; }
body.woocommerce-cart #content .woocommerce table.shop_table { width:100% !important; max-width:100%; margin:0 !important; border-collapse:collapse; }
body.woocommerce-cart #content .woocommerce table.shop_table :is(th,td) { padding:14px 16px !important; line-height:1.9; overflow-wrap:anywhere; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table th { width:170px; text-align:right; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0 !important; padding:0 !important; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li { display:grid !important; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:12px; padding:16px !important; margin:0 !important; border:1px solid #e2e5ea; border-radius:12px; background:#fafbfc; min-width:0; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:has(input:checked) { border-color:#e03131; background:#fff5f5; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:focus-within { outline:2px solid #98a2b3; outline-offset:2px; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li input[type=radio] { appearance:auto !important; position:static !important; opacity:1 !important; margin:5px 0 0 !important; width:20px; height:20px; accent-color:#e03131; transform:none !important; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li label { display:block !important; width:100%; margin:0 !important; cursor:pointer; text-align:right; }
.irantire-cart-method { display:grid; grid-template-columns:56px minmax(0,1fr); column-gap:14px; row-gap:0; align-items:start; }
.irantire-cart-method-image { display:flex; align-items:center; justify-content:center; min-height:56px; padding:5px; border:1px solid #edf0f4; border-radius:10px; background:#fff; }
.irantire-cart-method-image img { display:block; width:46px; height:46px; object-fit:contain; }
.irantire-cart-method-image:has(img[src$="/post.png"]) { padding:2px; background:#17366b; border-color:#17366b; }
.irantire-cart-method-image:has(img[src$="/tipax.svg"]) { background:#008449; border-color:#008449; }
.irantire-cart-method-image img[src$="/post.png"] { width:50px; height:40px; object-fit:cover; object-position:right; }
.irantire-cart-method-image { grid-column:1; grid-row:1; }
.irantire-cart-method-copy { display:contents; }
.irantire-cart-method-copy strong { grid-column:2; grid-row:1; align-self:center; display:block; color:#252a33; font-size:15px; line-height:1.8; }
.irantire-cart-method-description { grid-column:1/-1; display:block; margin-top:10px; font-size:12px; color:#667085; line-height:1.9; }
.irantire-cart-method-price { grid-column:1/-1; display:block; margin-top:10px; font-weight:700; font-size:14px; color:#b72b2b; }
.irantire-cart-method-price small { display:block; font-weight:400; }
.irantire-cart-method-test { grid-column:1/-1; display:block; margin-top:5px; font-size:11px; color:#8b6d30; }
body.woocommerce-cart #content .woocommerce .cart_totals .woocommerce-shipping-destination { margin:20px 0 14px !important; padding:14px 16px; border-radius:8px; background:#f4f6f9; color:#667085; text-align:right; }
body.woocommerce-cart #content .woocommerce .shipping-calculator-button { display:inline-flex !important; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 18px !important; margin:0 0 16px !important; border:1px solid #d8dde5 !important; border-radius:8px !important; background:#f8fafc !important; color:#344054 !important; font-size:14px; font-weight:600; text-decoration:none !important; }
body.woocommerce-cart #content .woocommerce .shipping-calculator-button:hover { background:#f8fafc !important; }
/* Keep inherited table word-breaking out of the flex label; gap alone spaces the icon. */
body.woocommerce-cart #content .woocommerce .shipping-calculator-button { width:max-content; max-width:100%; overflow-wrap:normal; word-break:normal; }
body.woocommerce-cart #content .woocommerce .shipping-calculator-button::after { margin:0; flex:0 0 auto; }
body.woocommerce-cart #content .woocommerce .shipping-calculator-button:focus-visible { outline:2px solid #98a2b3; outline-offset:3px; }
/* Keep the calculator trigger and its instruction aligned to the RTL content edge. */
body.woocommerce-cart #content .woocommerce .cart_totals .woocommerce-shipping-totals > td,
body.woocommerce-cart #content .woocommerce .cart_totals form.woocommerce-shipping-calculator,
body.woocommerce-cart #content .woocommerce .cart_totals form.woocommerce-shipping-calculator + p {
  direction:rtl !important; text-align:right !important;
}
body.woocommerce-cart #content .woocommerce .cart_totals form.woocommerce-shipping-calculator {
  display:block; box-sizing:border-box; width:100%; max-width:100%;
}
body.woocommerce-cart #content .woocommerce .cart_totals .shipping-calculator-button { float:none !important; }
/* Stack the calculator below its heading across the full totals width. */
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody { display:block; width:100%; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr { display:table; table-layout:fixed; width:100%; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr.shipping:has(form.woocommerce-shipping-calculator) { display:block; background:transparent !important; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr.shipping:has(form.woocommerce-shipping-calculator) > :is(th,td) {
  display:block !important; box-sizing:border-box; width:100% !important; max-width:100%; direction:rtl !important; text-align:right !important; background:transparent !important;
}
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr.shipping:has(form.woocommerce-shipping-calculator) > th { padding-bottom:8px !important; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr.shipping:has(form.woocommerce-shipping-calculator) > td { padding-top:16px !important; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table > tbody > tr.shipping:has(form.woocommerce-shipping-calculator) > td::before { display:none !important; }
/* Match checkout controls without the theme's extra mouse-focus frame. */
body.woocommerce-cart #content .woocommerce #shipping-calculator-form :is(input.input-text,.select2-selection--single) {
  box-sizing:border-box; width:100%; max-width:100%; height:48px !important; min-height:48px;
  border:1px solid #d8dde5 !important; border-radius:8px !important; background:#fff !important;
}
body.woocommerce-cart #content .woocommerce #shipping-calculator-form input.input-text { padding:10px 14px !important; font:inherit; text-align:right; }
body.woocommerce-cart #content .woocommerce #shipping-calculator-form input.input-text:focus {
  border-color:#d8dde5 !important; outline:none !important; box-shadow:none !important;
}
body.woocommerce-cart #content .woocommerce #shipping-calculator-form input.input-text:focus-visible {
  border-color:#98a2b3 !important; outline:none !important; box-shadow:none !important;
}
body.woocommerce-cart #content .woocommerce #shipping-calculator-form .select2-container { width:100% !important; max-width:100%; min-width:0; }
body.woocommerce-cart #content .woocommerce #shipping-calculator-form .select2-selection--single { outline:none !important; box-shadow:none !important; }
body.woocommerce-cart #content .woocommerce #shipping-calculator-form .select2-selection__rendered {
  padding:0 14px 0 44px !important; line-height:46px !important; text-align:right !important; color:#344054 !important;
}
body.woocommerce-cart #content .woocommerce #shipping-calculator-form .select2-selection__arrow {
  left:14px !important; right:auto !important; top:0 !important; height:46px !important; width:20px !important;
}
body.woocommerce-cart #content .woocommerce #shipping-calculator-form .select2-selection--single:focus-visible {
  outline:2px solid #e03131 !important; outline-offset:2px;
}
body.woocommerce-cart #content .woocommerce .wc-proceed-to-checkout { margin:30px 0 0 !important; padding:0 !important; }
body.woocommerce-cart #content .woocommerce .checkout-button { display:inline-flex !important; align-items:center; justify-content:center; width:auto !important; min-height:48px; margin:0 !important; padding:14px 28px !important; border-radius:8px; }
body.woocommerce-cart #content .woocommerce .irantire-cart-shipping-title { margin:0 0 20px !important; padding:0 0 14px !important; border-bottom:1px solid #e5e7eb; font-size:18px; text-align:right; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li { order:5; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:has(input[value="irantire_delivery:factory"]) { order:1; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:has(input[value^="irantire_delivery:branch_"]) { order:2; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:has(input[value="irantire_delivery:carrier_post"]) { order:3; grid-column:1; }
body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li:has(input[value="irantire_delivery:carrier_tipax"]) { order:4; }
body.woocommerce-cart #content .woocommerce .woocommerce-Price-amount bdi { display:inline-flex !important; direction:rtl; flex-wrap:wrap; gap:4px; }
body.woocommerce-cart #content .woocommerce .coupon { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
body.woocommerce-cart #content .woocommerce .coupon #coupon_code { float:none !important; min-height:44px; width:180px; margin:0 !important; padding:10px 14px !important; border-radius:8px; }
body.woocommerce-cart #content .woocommerce .coupon button { float:none !important; min-height:44px; margin:0 !important; border-radius:8px; }
@media(max-width:1023px) { body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method { grid-template-columns:minmax(0,1fr) !important; } }
@media(max-width:767px) {
  body.woocommerce-cart #content .woocommerce .woocommerce-cart-form, body.woocommerce-cart #content .woocommerce .cart-collaterals .cart_totals { padding:16px !important; }
  body.woocommerce-cart #content .woocommerce .cart_totals>h2, body.woocommerce-cart #content .woocommerce .irantire-cart-items-title { font-size:20px !important; }
  body.woocommerce-cart #content .woocommerce table.shop_table :is(th,td) { padding:12px 8px !important; font-size:13px; }
  body.woocommerce-cart #content .woocommerce .cart_totals .woocommerce-shipping-totals td { text-align:right !important; }
  body.woocommerce-cart #content .woocommerce .cart_totals .woocommerce-shipping-totals td::before { display:none !important; }
  body.woocommerce-cart #content .woocommerce .cart_totals #shipping_method li { padding:14px 12px !important; gap:10px; }
  .irantire-cart-method { grid-template-columns:44px minmax(0,1fr); column-gap:10px; row-gap:0; }
  .irantire-cart-method-image { min-height:44px; }
  .irantire-cart-method-image img { width:34px; height:34px; }
  .irantire-cart-method-image img[src$="/post.png"] { width:38px; height:30px; }
  .irantire-cart-method-copy strong { font-size:14px; }
  body.woocommerce-cart #content .woocommerce .coupon { width:100%; margin-bottom:16px; }
  body.woocommerce-cart #content .woocommerce .coupon #coupon_code { flex:1; min-width:0; }
}

/* Keep the shipment section stable under the theme's generic table-row hover. */
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table .woocommerce-shipping-totals > td,
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table .woocommerce-shipping-totals:hover > td { background-color:transparent !important; }

/* Distinguish the enabled cart update action and the separate VAT row. */
body.woocommerce-cart #content .woocommerce .woocommerce-cart-form .shop_table.cart button[name=update_cart]:not(:disabled),
body.woocommerce-cart #content .woocommerce .woocommerce-cart-form .shop_table.cart button[name=update_cart]:not(:disabled):hover { background:#e03131 !important; color:#fff !important; border-color:#e03131 !important; opacity:1 !important; }
body.woocommerce-cart #content .woocommerce .cart_totals table.shop_table :is(.tax-rate,.tax-total) > :is(th,td) { border-top:1px solid #e5e7eb !important; background:#fff !important; }

.irantire-delivery-summary small { display:block; margin-top:6px; color:#667085; font-weight:400; }

/* Address and delivery cost are chosen on checkout, including the native cart fallback. */
body.woocommerce-cart #content .woocommerce .cart_totals tr.shipping,
body.woocommerce-cart #content .woocommerce .cart_totals .woocommerce-shipping-totals,
body.woocommerce-cart #content .woocommerce .cart_totals form.woocommerce-shipping-calculator,
body.woocommerce-cart #content .woocommerce .cart_totals form.woocommerce-shipping-calculator + p,
body.woocommerce-cart #content .woocommerce .cart_totals .irantire-delivery-summary,
body.woocommerce-cart #content .woocommerce .cart_totals .irantire-postpaid-quote { display:none !important; }
