/* MarketBashi — Original checkout styling, migrated from old page-id-1432.
   WooCommerce classic checkout only; independent of changing page IDs.
   No WooCommerce calculations or form fields are changed. */
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields input.input-text,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields textarea {
  font-family:'IRANSansWeb','IRANSans',sans-serif;
  font-size:14px;color:#333;background:#fff;border:1px solid #DCD8DF;
  border-radius:10px;box-shadow:none;box-sizing:border-box;
  transition:border-color .2s ease,box-shadow .2s ease;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields input.input-text{min-height:44px;padding:10px 13px}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields input.input-text:focus,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields select:focus,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields textarea:focus{
  border-color:#812A4C;box-shadow:0 0 0 3px rgba(129,42,76,.10);outline:none;
}
body.woocommerce-checkout .woocommerce-checkout .woocommerce-billing-fields label,
body.woocommerce-checkout .woocommerce-checkout .woocommerce-additional-fields label{
  font-family:'IRANSansWeb','IRANSans',sans-serif;color:#444;font-size:13px;font-weight:600;
}
/* First name and last name on one row (as in the original). */
body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field{
  width:48%!important;display:inline-block!important;vertical-align:top;
  float:none!important;clear:none!important;box-sizing:border-box;margin-bottom:18px;
}
body.woocommerce-checkout #billing_first_name_field{margin-left:3%!important}
body.woocommerce-checkout #billing_last_name_field{margin-left:0!important}
body.woocommerce-checkout #billing_first_name_field input,
body.woocommerce-checkout #billing_last_name_field input{width:100%!important;box-sizing:border-box}
/* Checkout payment button. */
body.woocommerce-checkout .woocommerce-checkout #place_order{
  display:block!important;width:100%!important;min-height:52px!important;padding:13px 20px!important;
  background:#812A4C!important;color:#fff!important;border:none!important;border-radius:12px!important;
  font-family:'IRANSansWeb','IRANSans',sans-serif!important;font-size:15px!important;
  font-weight:700!important;text-align:center!important;line-height:1.8!important;
  box-sizing:border-box!important;box-shadow:0 4px 12px rgba(129,42,76,.16)!important;
  transition:background .2s ease,box-shadow .2s ease!important;
}
body.woocommerce-checkout .woocommerce-checkout #place_order:hover{
  background:#68213D!important;box-shadow:0 5px 15px rgba(129,42,76,.22)!important;
}
body.woocommerce-checkout .woocommerce-checkout #place_order:focus-visible{
  outline:3px solid #D9A6BC!important;outline-offset:3px!important;
}
body.woocommerce-checkout .woocommerce-checkout #place_order:disabled{
  opacity:.65!important;cursor:not-allowed!important;
}
/* Classic Woo order review table. */
body.woocommerce-checkout #order_review table.shop_table{
  width:100%!important;max-width:100%!important;border:1px solid #EAE4E8!important;
  border-radius:12px!important;border-collapse:separate!important;border-spacing:0!important;
  background:#fff!important;overflow:hidden;box-sizing:border-box;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td{
  padding:13px 10px!important;border:0!important;border-bottom:1px solid #F0ECF0!important;
  line-height:1.9;vertical-align:middle;overflow-wrap:anywhere;box-sizing:border-box;
}
body.woocommerce-checkout #order_review table.shop_table thead th{
  background:#F9F4F6!important;color:#812A4C!important;font-weight:700!important;
}
body.woocommerce-checkout #order_review .shop_table .cart_item .product-name{
  color:#333!important;font-weight:500!important;
}
body.woocommerce-checkout #order_review .shop_table .woocommerce-Price-amount{
  color:#333;font-weight:600;
}
body.woocommerce-checkout #order_review .woocommerce-shipping-methods{
  margin:0!important;padding:0!important;list-style:none!important;
}
body.woocommerce-checkout #order_review .woocommerce-shipping-methods li{margin-bottom:8px;line-height:1.9}
body.woocommerce-checkout #order_review .shop_table .order-total th,
body.woocommerce-checkout #order_review .shop_table .order-total td{
  background:#FBF4F7!important;color:#812A4C!important;font-weight:700!important;border-bottom:0!important;
}
body.woocommerce-checkout #order_review .shop_table .order-total .woocommerce-Price-amount{
  color:#812A4C!important;font-size:16px!important;font-weight:800!important;
}
body.woocommerce-checkout #order_review .shop_table .product-name,
body.woocommerce-checkout #order_review .shop_table .product-total{
  min-width:0;overflow-wrap:anywhere;
}
@media(max-width:767px){
  body.woocommerce-checkout #order_review .shop_table td.product-total,
  body.woocommerce-checkout #order_review .shop_table td.product-total .amount,
  body.woocommerce-checkout #order_review .shop_table td.product-total bdi{
    white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
  }
  body.woocommerce-checkout #order_review .shop_table th.product-total,
  body.woocommerce-checkout #order_review .shop_table td.product-total{
    width:40%!important;min-width:0!important;box-sizing:border-box;
  }
  body.woocommerce-checkout #order_review .shop_table th.product-name,
  body.woocommerce-checkout #order_review .shop_table td.product-name{width:60%!important}
}
/* Payment gateway design. */
body.woocommerce-checkout #payment{
  background:#fff!important;border:1px solid #EAE4E8!important;border-radius:14px!important;
  padding:14px!important;box-sizing:border-box!important;
}
body.woocommerce-checkout #payment ul.payment_methods{
  margin:0!important;padding:0 0 12px!important;border-bottom:1px solid #F0ECF0!important;list-style:none!important;
}
body.woocommerce-checkout #payment ul.payment_methods>li{
  background:#FCF9FB!important;border:1px solid #EBDDE4!important;border-radius:11px!important;
  padding:12px!important;margin:0 0 8px!important;box-sizing:border-box!important;
}
body.woocommerce-checkout #payment .payment_methods li>label{
  color:#51263A!important;font-weight:600!important;line-height:1.9!important;cursor:pointer;
}
body.woocommerce-checkout #payment .payment_methods input[type="radio"]{accent-color:#812A4C;vertical-align:middle}
body.woocommerce-checkout #payment .payment_box{
  background:#F8F1F5!important;color:#555!important;border:0!important;border-radius:9px!important;
  padding:12px!important;margin:12px 0 0!important;box-shadow:none!important;
}
body.woocommerce-checkout #payment .payment_box::before{display:none!important}
body.woocommerce-checkout #payment .payment_methods label img{
  max-height:30px!important;max-width:90px!important;width:auto!important;height:auto!important;
  vertical-align:middle;object-fit:contain;
}
body.woocommerce-checkout #payment .place-order{
  background:transparent!important;border:0!important;padding:15px 0 0!important;margin:0!important;
}
/* Old Cart Page ID 1431: hide only the text logo. */
body.woocommerce-cart .textlogo{display:none!important}


/* v0.2.0 — desktop checkout column layout: customer on physical right, notes on physical left. */
@media (min-width: 992px) {
  body.woocommerce-checkout .woocommerce form.checkout .col2-set,
  body.woocommerce-checkout .woocommerce-page form.checkout .col2-set {
    display: flow-root;
    width: 100%;
  }
  body.woocommerce-checkout .woocommerce form.checkout .col2-set .col-1,
  body.woocommerce-checkout .woocommerce-page form.checkout .col2-set .col-1 {
    float: right !important;
    clear: none !important;
    width: 48% !important;
  }
  body.woocommerce-checkout .woocommerce form.checkout .col2-set .col-2,
  body.woocommerce-checkout .woocommerce-page form.checkout .col2-set .col-2 {
    float: left !important;
    clear: none !important;
    width: 48% !important;
  }
}
/* Province must be shown before city; full width avoids narrow dropdowns. */
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_city_field {
  float: none !important;
  clear: both !important;
  width: 100% !important;
}
/* Compact the order/payment sections without changing shipping or totals. */
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  padding: 9px 11px !important;
  line-height: 1.65;
}
body.woocommerce-checkout #order_review table.shop_table .product-name,
body.woocommerce-checkout #order_review table.shop_table th:first-child {
  width: 70%;
}
body.woocommerce-checkout #order_review table.shop_table .product-total,
body.woocommerce-checkout #order_review table.shop_table th:last-child {
  width: 30%;
}
body.woocommerce-checkout #payment { padding: 10px !important; }
body.woocommerce-checkout #payment ul.payment_methods { padding-bottom: 8px !important; }
body.woocommerce-checkout #payment ul.payment_methods > li {
  padding: 9px 11px !important;
  margin-bottom: 6px !important;
}
body.woocommerce-checkout #payment .payment_box { padding: 10px !important; margin-top: 8px !important; }
body.woocommerce-checkout #payment .place-order { padding-top: 10px !important; }
/* Terms: obvious 22px checkbox, green checked state, comfortable touch target. */
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .validate-required,
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper .form-row {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}
body.woocommerce-checkout #payment input#terms,
body.woocommerce-checkout #payment input[name="terms"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin: 0 0 0 9px !important;
  accent-color: #198754 !important;
  vertical-align: middle !important;
  cursor: pointer;
}
body.woocommerce-checkout #payment label.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.9;
  cursor: pointer;
}
body.woocommerce-checkout #payment input#terms:focus-visible {
  outline: 3px solid rgba(25,135,84,.25);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  body.woocommerce-checkout #billing_first_name_field,
  body.woocommerce-checkout #billing_last_name_field {
    width: 100% !important;
    margin-left: 0 !important;
    display: block !important;
  }
  body.woocommerce-checkout #order_review table.shop_table .product-name,
  body.woocommerce-checkout #order_review table.shop_table th:first-child { width: 60%; }
  body.woocommerce-checkout #order_review table.shop_table .product-total,
  body.woocommerce-checkout #order_review table.shop_table th:last-child { width: 40%; }
}

/* v0.3.0: explicit labels and address input; field order managed without recreating selects. */
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_city_field { display: block; width: 100% !important; }

/* v0.4.0 — right: customer information + notes, left: complete order/payment. */
@media (min-width: 992px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid !important;
    direction: rtl;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 44px);
    row-gap: 0;
    align-items: start;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > .col2-set {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > .col2-set > .col-1,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > .col2-set > .col-2 {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    min-width: 0;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > .col2-set > .col-2 { margin-top: 20px; }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    align-self: end;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    align-self: start;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review .woocommerce-checkout-review-order-table,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review #payment {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
  }
}
/* Compact review/payment card, including the user terms and submit button. */
body.woocommerce-checkout #order_review .shop_table { table-layout: auto; }
body.woocommerce-checkout #order_review #payment { margin-top: 10px !important; }
body.woocommerce-checkout #order_review .woocommerce-account-fields { margin: 10px 0; }
/* Status only for the explicitly validated fields; icon overlays never intercept clicks. */
body.woocommerce-checkout .woocommerce-billing-fields .form-row.mb-field-status {
  position: relative;
}
body.woocommerce-checkout .woocommerce-billing-fields .form-row.mb-field-status input.input-text {
  padding-left: 37px !important;
}
body.woocommerce-checkout .woocommerce-billing-fields .mb-field-status__icon {
  position: absolute;
  left: 11px;
  top: auto;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  line-height: 1;
  font-weight: bold;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
body.woocommerce-checkout .woocommerce-billing-fields .mb-field-status--valid .mb-field-status__icon { background: #198754; color: white; }
body.woocommerce-checkout .woocommerce-billing-fields .mb-field-status--invalid .mb-field-status__icon { background: #d32f2f; color: white; }
body.woocommerce-checkout .woocommerce-billing-fields .mb-field-status--invalid input.input-text { border-color: #d32f2f !important; }
body.woocommerce-checkout .woocommerce-billing-fields .mb-field-status--valid input.input-text { border-color: #198754 !important; }
@media (max-width: 991px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > .col2-set { width: 100% !important; float: none !important; }
}

/* v0.4.1 — compact typography only within the LEFT order/payment column (desktop). */
@media (min-width: 992px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review_heading,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review :is(th, td, p, label, span, a, strong, small, li, input, button, select, textarea),
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review #place_order {
    font-size: 12px !important;
  }
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review .woocommerce-Price-amount,
  body.woocommerce-checkout form.checkout.woocommerce-checkout > #order_review .order-total .woocommerce-Price-amount { font-size: 12px !important; }
}

/* v0.4.2 — Checkout-only chrome visibility and targeted type sizes.
   Do not hide header itself, account modal, shipping labels or checkout controls. */
body.woocommerce-checkout:not(.woocommerce-order-received) .mb-header-search,
body.woocommerce-checkout:not(.woocommerce-order-received) .mb-content__title,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header > .entry-title,
body.woocommerce-checkout:not(.woocommerce-order-received) .mb-site-footer,
body.woocommerce-checkout:not(.woocommerce-order-received) .mb-mobile-bottom-bar {
  display: none !important;
}
/* Avoid reserving whitespace for hidden checkout page heading. */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header:has(> .entry-title) {
  margin-bottom: 0 !important;
}
/* Desktop: terms link and actual submit-button label override generic 12px rules. */
@media (min-width: 992px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #payment .woocommerce-terms-and-conditions-checkbox-text,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #payment .woocommerce-terms-and-conditions-checkbox-text a,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #payment label[for="terms"],
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #payment label[for="terms"] a,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #place_order {
    font-size: 14px !important;
  }
}
/* Mobile: compact all order details, including the review table and payment card. */
@media (max-width: 767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review :is(th,td,p,label,span,a,strong,small,li,div,button,input,select),
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout #order_review #place_order {
    font-size: 12px !important;
  }
}


/* v0.4.3 — Checkout: hide coupon invitation only; retain checkout order logic. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-form-coupon-toggle { display: none !important; }

/* v0.4.3 — Cart: hide nonessential site chrome on all sizes. */
body.woocommerce-cart .mb-header-search,
body.woocommerce-cart .mb-content__title,
body.woocommerce-cart .entry-header > .entry-title,
body.woocommerce-cart .mb-site-footer,
body.woocommerce-cart .mb-mobile-bottom-bar { display: none !important; }
body.woocommerce-cart .entry-header:has(> .entry-title) { margin-bottom: 0 !important; }

/* Cart typography applies to the form's products and totals, not global page UI. */
body.woocommerce-cart form.woocommerce-cart-form,
body.woocommerce-cart form.woocommerce-cart-form :is(th,td,a,span,bdi,strong,small,label,button,input),
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-collaterals .cart_totals :is(th,td,a,span,bdi,strong,small,label,button,input,li,p) {
  font-size: 12px !important;
}
body.woocommerce-cart .cart-collaterals .cart_totals > h2,
body.woocommerce-cart .cart-collaterals .cross-sells > h2,
body.woocommerce-cart .cross-sells > h2 { font-size: 16px !important; line-height: 1.7; }

/* Classic WooCommerce cart columns: items at the RIGHT, totals at the LEFT. */
@media (min-width: 992px) {
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
    direction: rtl;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form {
    grid-column: 1;
    min-width: 0;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals {
    grid-column: 2;
    min-width: 0;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    min-width: 0;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > :not(form.woocommerce-cart-form):not(.cart-collaterals) {
    grid-column: 1 / -1;
  }
}
/* Tablet/mobile remains one column with readable touch targets. */
@media (max-width: 991px) {
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form,
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals,
  body.woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
}


/* v0.4.4 — Cart layout correction: cross-sells remain BELOW products on desktop.
   Woo classic cart renders both cart_totals and cross-sells inside .cart-collaterals. */
@media (min-width: 992px) {
 body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form { grid-column: 1 !important; grid-row: 1 !important; }
 body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals { display: contents !important; }
 body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals > .cart_totals {
   grid-column: 2 !important; grid-row: 1 !important;
   width: 100% !important; min-width: 0; float: none !important;
   margin: 0 !important; box-sizing: border-box;
 }
 body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals > .cross-sells {
   grid-column: 1 !important; grid-row: 2 !important;
   width: 100% !important; min-width: 0; float: none !important;
   margin: 0 !important;
 }
}
/* Mobile/tablet: stop inheriting floated/narrow WooCommerce totals widths. */
@media (max-width: 991px) {
 body.woocommerce-cart .cart-collaterals,
 body.woocommerce-cart .cart-collaterals > .cart_totals,
 body.woocommerce-cart .cart-collaterals > .cross-sells {
   display: block !important; width: 100% !important; max-width: 100% !important;
   min-width: 0 !important; float: none !important; clear: both !important;
   margin-left: 0 !important; margin-right: 0 !important;
   box-sizing: border-box !important;
 }
 body.woocommerce-cart .cart-collaterals .cart_totals table,
 body.woocommerce-cart .cart-collaterals .cart_totals .shop_table { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
}
/* Shipping caption on its own line, with radio choices below it (all sizes). */
body.woocommerce-cart .cart_totals tr.shipping > th,
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > th {
 display: block !important; width: 100% !important; box-sizing: border-box;
 text-align: right !important; padding-bottom: 3px !important;
}
body.woocommerce-cart .cart_totals tr.shipping > td,
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals > td {
 display: block !important; width: 100% !important; box-sizing: border-box;
 text-align: right !important; padding-top: 3px !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods { display: block !important; width: 100%; margin: 0 !important; padding: 0 !important; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods > li { display: block !important; width: 100%; margin: 0 0 8px !important; line-height: 1.8; }


/* v0.4.5 — Cart alignment, tablet columns, and roomy shipping section. */
@media (min-width: 768px) {
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) !important;
    column-gap: clamp(12px, 1.8vw, 24px) !important;
    row-gap: 18px !important;
    align-items: start !important;
    direction: rtl;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > form.woocommerce-cart-form {
    grid-column: 1 !important; grid-row: 1 !important;
    display: block !important; position: relative;
    margin: 0 !important; padding: 54px 0 0 !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    float: none !important; box-sizing: border-box;
  }
  body.woocommerce-cart form.woocommerce-cart-form::before {
    content: none;
    display: block; position: absolute;
    top: 7px; right: 0; left: 0;
    margin: 0; padding: 0;
    text-align: center; font-size: 14px !important;
    font-weight: 700; line-height: 1.7; color: var(--mb-text,#20202a);
    pointer-events: none;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals {
    display: contents !important;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals > .cart_totals {
    grid-column: 2 !important; grid-row: 1 !important;
    display: block !important; float: none !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    margin: 0 !important; box-sizing: border-box;
  }
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals > .cross-sells {
    grid-column: 1 !important; grid-row: 2 !important;
    display: block !important; float: none !important;
    width: 100% !important; min-width: 0 !important;
    margin: 0 !important; box-sizing: border-box;
  }
}
/* Mobile: avoid desktop column styles and preserve existing Cross-sell placement. */
@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) { display: block !important; }
  body.woocommerce-cart form.woocommerce-cart-form::before { content: none !important; }
}
/* Let the narrow totals card use its FULL available width. */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table,
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table tbody,
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table tr { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
body.woocommerce-cart .cart_totals .shop_table tr.shipping,
body.woocommerce-cart .cart_totals .shop_table tr.woocommerce-shipping-totals {
  display: block !important; width: 100% !important;
}
body.woocommerce-cart .cart_totals .shop_table tr.shipping > :is(th,td),
body.woocommerce-cart .cart_totals .shop_table tr.woocommerce-shipping-totals > :is(th,td) {
  display: block !important; width: 100% !important; max-width: 100% !important;
  text-align: right !important; clear: both !important;
  float: none !important; padding-inline: 10px !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
  display: flex !important; flex-direction: column !important;
  align-items: stretch !important; gap: 9px;
  width: 100% !important; max-width: 100% !important;
  margin: 0 !important; padding: 4px 0 !important;
  list-style: none !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods > li {
  display: flex !important; align-items: flex-start !important;
  justify-content: flex-start !important; gap: 6px;
  width: 100% !important; max-width: 100% !important;
  padding: 0 !important; margin: 0 !important;
  text-align: right !important; direction: rtl;
  white-space: normal !important; overflow-wrap: anywhere;
  box-sizing: border-box !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods input[type=radio] {
  flex: 0 0 auto; margin: 4px 0 0 4px !important;
}
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label {
  display: inline-block; flex: 1 1 auto;
  min-width: 0; max-width: 100%;
  margin: 0 !important; line-height: 1.9 !important;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) and (max-width: 991px) {
 body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) > .cart-collaterals > .cart_totals {
   display: block !important; clear: none !important;
 }
}

/* v0.4.6 — Desktop totals readability. Keep existing mobile/tablet layouts intact. */
@media (min-width: 992px) {
  body.woocommerce-cart .woocommerce:has(> form.woocommerce-cart-form) {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr) !important;
  }
}
/* Woo shipping is a two-column table by default. Give shipping choices the whole row. */
body.woocommerce-cart .cart_totals table.shop_table tr.shipping,
body.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .cart_totals table.shop_table tr.shipping > th,
body.woocommerce-cart .cart_totals table.shop_table tr.shipping > td,
body.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
body.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals > td {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  text-align: right !important;
  padding: 8px 12px !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method > li,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods > li {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  gap: 8px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method > li > label,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods > li > label {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
  text-align: right !important;
}
body.woocommerce-cart .cart_totals ul#shipping_method > li > input[type="radio"],
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods > li > input[type="radio"] {
  flex: 0 0 auto !important;
  margin: 4px 0 0 2px !important;
}

/* v0.4.6 desktop hotfix — confirmed against the live browser console.
   The shipping row was constrained to the first internal table column;
   making tbody a full-width block lets shipping methods use the totals card.
   Intentionally desktop-only: keep the approved tablet/mobile layout unchanged. */
@media (min-width: 992px) {
  body.woocommerce-cart .cart_totals table.shop_table > tbody {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.woocommerce-shipping-totals,
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.shipping {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.woocommerce-shipping-totals > th,
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.woocommerce-shipping-totals > td,
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.shipping > th,
  body.woocommerce-cart .cart_totals table.shop_table > tbody > tr.shipping > td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================
   MarketBashi Legacy Page Styles v0.4.8 — Cart visual polish
   Visual-only; no layout, order, shipping, or checkout changes.
   ========================================================== */
body.woocommerce-cart {
  --mb-cart-edge: #eae4f0;
  --mb-cart-wash: #faf7fd;
  --mb-cart-accent: var(--mb-primary, #8128d8);
}

/* Product list: clean card without touching responsive table mechanics. */
body.woocommerce-cart form.woocommerce-cart-form table.shop_table {
  background: #fff;
  border: 1px solid var(--mb-cart-edge) !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 22px rgba(42, 23, 58, .055);
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table thead th {
  background: var(--mb-cart-wash);
  color: #462a59;
  font-weight: 700;
  border-bottom: 1px solid var(--mb-cart-edge) !important;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table tbody tr.cart_item td {
  border-bottom-color: #f0ebf4;
  transition: background-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table tbody tr.cart_item:hover td {
    background: #fcfaff;
  }
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table td.product-name a {
  color: #34263d;
  font-weight: 650;
  text-decoration: none;
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table td.product-name a:hover {
  color: var(--mb-cart-accent);
}
body.woocommerce-cart form.woocommerce-cart-form table.shop_table td.product-thumbnail img {
  border-radius: 10px;
  border: 1px solid #f0ecf3;
  background: #fff;
}
body.woocommerce-cart form.woocommerce-cart-form .quantity input.qty:focus-visible,
body.woocommerce-cart form.woocommerce-cart-form :is(button, a, input):focus-visible,
body.woocommerce-cart .cart_totals :is(button, a, input):focus-visible {
  outline: 2px solid var(--mb-cart-accent);
  outline-offset: 2px;
}

/* Cart totals: only surface styling — do not alter table/row display or widths. */
body.woocommerce-cart .cart-collaterals .cart_totals {
  background: #fff;
  border: 1px solid var(--mb-cart-edge);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 5px 22px rgba(42, 23, 58, .065);
}
body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  color: #352240;
  border-bottom: 1px solid #efe8f3;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table {
  border: 0 !important;
  background: transparent;
}
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table tr.order-total {
  background: #f9f3fe;
}
body.woocommerce-cart .cart-collaterals .cart_totals .shop_table tr.order-total :is(th,td) {
  color: #552272;
  font-weight: 750;
}
body.woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(85, 33, 114, .13);
  transition: filter .18s ease, box-shadow .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  body.woocommerce-cart .cart-collaterals .cart_totals .checkout-button:hover {
    filter: brightness(.97);
    box-shadow: 0 6px 17px rgba(85, 33, 114, .17);
  }
}

/* Cross-sell area: distinction without changing its position or cards. */
body.woocommerce-cart .cart-collaterals .cross-sells > h2 {
  color: #352240;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee4f5;
}

@media (max-width: 767px) {
  body.woocommerce-cart .cart-collaterals .cart_totals { padding: 12px; border-radius: 14px; }
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table { border-radius: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart form.woocommerce-cart-form table.shop_table tbody tr.cart_item td,
  body.woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
    transition: none !important;
  }
}
/* MarketBashi — Final cart alignment fix */
@media (min-width: 768px) {
  body.woocommerce-cart
  .woocommerce:has(> form.woocommerce-cart-form)
  > form.woocommerce-cart-form {
    padding-top: 0 !important;
  }

  body.woocommerce-cart
  form.woocommerce-cart-form::before {
    content: none !important;
    display: none !important;
  }
}