/* ======================================================================
   SHIMA STOREFRONT UI 2.8.0 — Premium checkout / completion step
   - Stable RTL two-column checkout layout
   - Cleaner WooCommerce Blocks + Classic Checkout
   - Permanent Vazirmatn typography lock for checkout controls
   - Better field rhythm, summary proportions, mobile/tablet responsiveness
   ====================================================================== */

.shima-checkout-page {
  --shima-checkout-green: #087b43;
  --shima-checkout-green-deep: #075f36;
  --shima-checkout-soft: #f3faf6;
  --shima-checkout-line: #dce8e1;
  --shima-checkout-line-2: #e9f0ec;
  --shima-checkout-text: #142219;
  --shima-checkout-muted: #65746b;
  --shima-checkout-shadow: 0 14px 38px rgba(14, 46, 28, .055);
  --shima-checkout-shadow-soft: 0 8px 24px rgba(14, 46, 28, .035);
}

/* Permanent Vazirmatn lock for all checkout UI, including Woo Blocks. */
.shima-checkout-page,
.shima-checkout-page .shima-transaction-content,
.shima-checkout-page .shima-transaction-content *,
.shima-checkout-page input,
.shima-checkout-page select,
.shima-checkout-page textarea,
.shima-checkout-page button,
.shima-checkout-page label,
.shima-checkout-page .select2-container,
.shima-checkout-page .select2-results,
.shima-checkout-page .select2-search__field {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.shima-checkout-page input::placeholder,
.shima-checkout-page textarea::placeholder {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

/* ---------- Page header + progress ---------- */
.shima-checkout-page .shima-transaction-head {
  min-height: 148px;
  padding: 28px 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 9% 22%, rgba(8,123,67,.085), transparent 18rem),
    linear-gradient(135deg, #eff9f3 0%, #ffffff 70%);
}
.shima-checkout-page .shima-transaction-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 2.15vw, 36px);
  line-height: 1.35;
  font-weight: 950;
}
.shima-checkout-page .shima-transaction-head p {
  max-width: 760px;
  color: #526158;
  font-size: 13px;
  line-height: 1.95;
  font-weight: 750;
}
.shima-checkout-page .shima-transaction-badges > span {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 11px;
  font-weight: 900;
}
.shima-checkout-page .shima-checkout-progress {
  min-height: 88px;
  margin-top: 14px;
  padding: 8px;
  border-radius: 20px;
}
.shima-checkout-page .shima-checkout-progress > div {
  min-height: 70px;
  padding: 8px 15px;
  border-radius: 14px;
}
.shima-checkout-page .shima-checkout-progress strong {
  font-size: 12.5px;
  line-height: 1.55;
}
.shima-checkout-page .shima-checkout-progress small {
  font-size: 10px;
  line-height: 1.5;
}
.shima-checkout-page .shima-transaction-content {
  margin-top: 18px;
}

/* ======================================================================
   WooCommerce Checkout Blocks — desktop
   Physical layout: summary on the LEFT, form on the RIGHT.
   We force LTR on the outer grid only so track placement is deterministic,
   then restore RTL inside both columns.
   ====================================================================== */
@media (min-width: 981px) {
  .shima-checkout-page .shima-transaction-content .wp-block-woocommerce-checkout,
  .shima-checkout-page .shima-transaction-content .wc-block-checkout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .shima-checkout-page .shima-transaction-content .wc-block-components-sidebar-layout {
    display: grid !important;
    direction: ltr !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    grid-template-areas: "sidebar main" !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
  }

  .shima-checkout-page .shima-transaction-content .wc-block-checkout__main {
    grid-area: main !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .shima-checkout-page .shima-transaction-content .wc-block-checkout__sidebar {
    grid-area: sidebar !important;
    direction: rtl !important;
    position: sticky !important;
    top: 96px !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    padding: 20px !important;
    border: 1px solid var(--shima-checkout-line) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%) !important;
    box-shadow: var(--shima-checkout-shadow) !important;
    box-sizing: border-box !important;
  }
}

/* Main checkout sections become deliberate premium cards. */
.shima-checkout-page .wc-block-checkout__main .wc-block-components-checkout-step {
  margin: 0 0 14px !important;
  padding: 20px 22px !important;
  border: 1px solid var(--shima-checkout-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: var(--shima-checkout-shadow-soft) !important;
}
.shima-checkout-page .wc-block-checkout__main .wc-block-components-checkout-step:last-child {
  margin-bottom: 0 !important;
}
.shima-checkout-page .wc-block-components-checkout-step__heading {
  margin: 0 0 14px !important;
}
.shima-checkout-page .wc-block-components-checkout-step__heading-content,
.shima-checkout-page .wc-block-components-title {
  color: var(--shima-checkout-text) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 950 !important;
}
.shima-checkout-page .wc-block-components-checkout-step__description,
.shima-checkout-page .wc-block-components-checkout-step__container p,
.shima-checkout-page .wc-block-components-checkbox__label,
.shima-checkout-page .wc-block-components-radio-control__label {
  color: var(--shima-checkout-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.85 !important;
  font-weight: 700 !important;
}

/* Address forms: calm two-column field grid. */
.shima-checkout-page .wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
  align-items: start !important;
}
.shima-checkout-page .wc-block-components-address-form > * {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.shima-checkout-page .wc-block-components-address-form__address_1,
.shima-checkout-page .wc-block-components-address-form__address_2,
.shima-checkout-page .wc-block-components-address-form__company,
.shima-checkout-page .wc-block-components-address-form__country,
.shima-checkout-page .wc-block-components-address-form__phone,
.shima-checkout-page .wc-block-components-address-form__email {
  grid-column: 1 / -1 !important;
}

/* Inputs / selects / floating labels. */
.shima-checkout-page .wc-block-components-text-input,
.shima-checkout-page .wc-block-components-combobox,
.shima-checkout-page .wc-block-components-select,
.shima-checkout-page .wc-block-components-textarea {
  margin: 0 !important;
}
.shima-checkout-page .wc-block-components-text-input input,
.shima-checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.shima-checkout-page .wc-block-components-address-form input,
.shima-checkout-page .wc-block-components-address-form select,
.shima-checkout-page .wc-block-components-select .wc-block-components-select__select,
.shima-checkout-page .wc-block-components-textarea,
.shima-checkout-page .wc-block-components-textarea textarea {
  min-height: 50px !important;
  padding-inline: 13px !important;
  border: 1px solid #d7e4dc !important;
  border-radius: 12px !important;
  background: #fbfdfc !important;
  color: #26352c !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.shima-checkout-page .wc-block-components-textarea,
.shima-checkout-page .wc-block-components-textarea textarea {
  min-height: 92px !important;
}
.shima-checkout-page .wc-block-components-text-input label,
.shima-checkout-page .wc-block-components-combobox label,
.shima-checkout-page .wc-block-components-select label,
.shima-checkout-page .wc-block-components-address-form label {
  color: #46564d !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
}
.shima-checkout-page .wc-block-components-text-input input:focus,
.shima-checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.shima-checkout-page .wc-block-components-address-form input:focus,
.shima-checkout-page .wc-block-components-address-form select:focus,
.shima-checkout-page .wc-block-components-select .wc-block-components-select__select:focus,
.shima-checkout-page .wc-block-components-textarea:focus-within {
  border-color: #8cc8a5 !important;
  box-shadow: 0 0 0 4px rgba(8,123,67,.08) !important;
  outline: 0 !important;
}

/* Address card / same-address control. */
.shima-checkout-page .wc-block-components-address-card,
.shima-checkout-page .wc-block-components-radio-control-accordion-option,
.shima-checkout-page .wc-block-components-radio-control__option,
.shima-checkout-page .wc-block-components-panel {
  border: 1px solid #e0eae4 !important;
  border-radius: 14px !important;
  background: #fafdfb !important;
}
.shima-checkout-page .wc-block-components-address-card {
  padding: 14px 16px !important;
}

/* Order summary — compact, readable, not a second full page. */
.shima-checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary,
.shima-checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.shima-checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary-heading,
.shima-checkout-page .wc-block-checkout__sidebar .wc-block-components-title {
  margin: 0 0 12px !important;
  color: var(--shima-checkout-text) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 950 !important;
}
.shima-checkout-page .wc-block-components-order-summary-item {
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 11px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--shima-checkout-line-2) !important;
}
.shima-checkout-page .wc-block-components-order-summary-item__image img {
  width: 66px !important;
  height: 66px !important;
  object-fit: cover !important;
  border-radius: 13px !important;
}
.shima-checkout-page .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  color: var(--shima-checkout-text) !important;
  font-size: 11.5px !important;
  line-height: 1.8 !important;
  font-weight: 900 !important;
}
.shima-checkout-page .wc-block-components-order-summary-item__individual-prices,
.shima-checkout-page .wc-block-components-product-metadata,
.shima-checkout-page .wc-block-components-order-summary-item__quantity {
  color: #6f7e75 !important;
  font-size: 10px !important;
  line-height: 1.65 !important;
  font-weight: 750 !important;
}
.shima-checkout-page .wc-block-components-totals-wrapper {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--shima-checkout-line) !important;
}
.shima-checkout-page .wc-block-components-totals-item {
  min-height: 38px !important;
  padding: 6px 0 !important;
}
.shima-checkout-page .wc-block-components-totals-item__label {
  color: #4a5a51 !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
}
.shima-checkout-page .wc-block-components-totals-item__value,
.shima-checkout-page .wc-block-formatted-money-amount {
  color: var(--shima-checkout-green) !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
}
.shima-checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.shima-checkout-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.shima-checkout-page .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  color: var(--shima-checkout-text) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

/* Payment / actions / legal copy. */
.shima-checkout-page .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
.shima-checkout-page .wc-block-components-payment-methods {
  overflow: hidden;
  border-radius: 14px !important;
}
.shima-checkout-page .wc-block-components-checkout-place-order-button,
.shima-checkout-page .wc-block-components-checkout-return-to-cart-button {
  min-height: 52px !important;
  border-radius: 13px !important;
  font-size: 12.5px !important;
  font-weight: 950 !important;
}
.shima-checkout-page .wc-block-components-checkout-place-order-button {
  width: 100% !important;
}
.shima-checkout-page .wc-block-components-checkout-step__container .wc-block-components-checkbox,
.shima-checkout-page .wc-block-components-checkout-step__container .wc-block-components-terms-and-conditions,
.shima-checkout-page .wc-block-components-checkout-step__container .wc-block-components-privacy-policy {
  color: #65746b !important;
  font-size: 10.5px !important;
  line-height: 1.9 !important;
}

/* ======================================================================
   Classic WooCommerce Checkout — same premium design language.
   ====================================================================== */
@media (min-width: 981px) {
  .shima-checkout-page form.woocommerce-checkout {
    display: grid !important;
    direction: ltr !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    grid-template-areas:
      "review-heading customer"
      "review customer" !important;
    gap: 0 22px !important;
    align-items: start !important;
  }
  .shima-checkout-page form.woocommerce-checkout #customer_details {
    grid-area: customer !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 22px !important;
    border-radius: 20px !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review_heading {
    grid-area: review-heading !important;
    direction: rtl !important;
    margin: 0 !important;
    padding: 20px 20px 10px !important;
    border: 1px solid var(--shima-checkout-line) !important;
    border-bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: #fff !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review {
    grid-area: review !important;
    direction: rtl !important;
    position: sticky !important;
    top: 96px !important;
    margin: 0 !important;
    padding: 0 20px 20px !important;
    border: 1px solid var(--shima-checkout-line) !important;
    border-top: 0 !important;
    border-radius: 0 0 20px 20px !important;
    background: linear-gradient(180deg, #fff, #f5faf7) !important;
    box-shadow: var(--shima-checkout-shadow) !important;
  }
}
.shima-checkout-page .woocommerce-billing-fields h3,
.shima-checkout-page .woocommerce-shipping-fields h3,
.shima-checkout-page .woocommerce-additional-fields h3,
.shima-checkout-page #order_review_heading {
  margin: 0 0 16px !important;
  color: var(--shima-checkout-text) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 950 !important;
}
.shima-checkout-page .woocommerce form .form-row {
  margin-bottom: 12px !important;
}
.shima-checkout-page .woocommerce form .form-row label {
  margin-bottom: 6px !important;
  color: #46564d !important;
  font-size: 11.5px !important;
  line-height: 1.6 !important;
  font-weight: 850 !important;
}
.shima-checkout-page .woocommerce form .form-row input.input-text,
.shima-checkout-page .woocommerce form .form-row textarea,
.shima-checkout-page .woocommerce form .form-row select,
.shima-checkout-page .select2-container--default .select2-selection--single {
  min-height: 50px !important;
  padding-inline: 13px !important;
  border: 1px solid #d7e4dc !important;
  border-radius: 12px !important;
  background: #fbfdfc !important;
  color: #26352c !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.shima-checkout-page .woocommerce form .form-row textarea {
  min-height: 96px !important;
  padding-block: 11px !important;
}
.shima-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
}
.shima-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
}
.shima-checkout-page .woocommerce-checkout-review-order-table {
  margin-bottom: 14px !important;
  border: 0 !important;
  background: transparent !important;
}
.shima-checkout-page .woocommerce-checkout-review-order-table th,
.shima-checkout-page .woocommerce-checkout-review-order-table td {
  padding: 11px 0 !important;
  border-color: var(--shima-checkout-line-2) !important;
  background: transparent !important;
  font-size: 11px !important;
  line-height: 1.8 !important;
}
.shima-checkout-page .woocommerce-checkout-payment {
  border: 1px solid var(--shima-checkout-line) !important;
  border-radius: 14px !important;
  background: #f7fbf8 !important;
}
.shima-checkout-page #place_order {
  width: 100% !important;
  min-height: 52px !important;
  margin-top: 12px !important;
  border-radius: 13px !important;
  font-size: 12.5px !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 1180px) and (min-width: 981px) {
  .shima-checkout-page .shima-transaction-content .wc-block-components-sidebar-layout {
    grid-template-columns: 330px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .shima-checkout-page .shima-transaction-content .wc-block-checkout__sidebar {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
  }
  .shima-checkout-page form.woocommerce-checkout {
    grid-template-columns: 330px minmax(0, 1fr) !important;
    gap: 0 18px !important;
  }
}

/* ---------- Mobile / narrow tablet ---------- */
@media (max-width: 980px) {
  .shima-checkout-page .shima-transaction-head {
    min-height: 0;
    padding: 22px 18px;
  }
  .shima-checkout-page .shima-transaction-head h1 {
    font-size: 24px;
  }
  .shima-checkout-page .shima-transaction-head p {
    font-size: 11.5px;
  }
  .shima-checkout-page .shima-checkout-progress {
    min-height: 0;
    padding: 8px;
  }
  .shima-checkout-page .shima-checkout-progress > div {
    min-height: 62px;
    padding: 7px 10px;
  }

  .shima-checkout-page .shima-transaction-content .wc-block-components-sidebar-layout {
    display: block !important;
    direction: rtl !important;
  }
  .shima-checkout-page .shima-transaction-content .wc-block-checkout__main,
  .shima-checkout-page .shima-transaction-content .wc-block-checkout__sidebar {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .shima-checkout-page .shima-transaction-content .wc-block-checkout__sidebar {
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }
  .shima-checkout-page .wc-block-checkout__main .wc-block-components-checkout-step {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  .shima-checkout-page .wc-block-components-address-form {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .shima-checkout-page .wc-block-components-address-form > * {
    grid-column: 1 !important;
  }

  .shima-checkout-page form.woocommerce-checkout {
    display: block !important;
    direction: rtl !important;
  }
  .shima-checkout-page form.woocommerce-checkout #customer_details,
  .shima-checkout-page form.woocommerce-checkout #order_review_heading,
  .shima-checkout-page form.woocommerce-checkout #order_review {
    position: static !important;
    width: 100% !important;
    margin: 0 0 14px !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review_heading {
    border-bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    margin-bottom: 0 !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review {
    border-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
  }
}

@media (max-width: 560px) {
  .shima-checkout-page .shima-checkout-progress strong {
    font-size: 9.5px;
  }
  .shima-checkout-page .shima-checkout-progress small {
    font-size: 7.8px;
  }
  .shima-checkout-page .wc-block-components-checkout-step__heading-content,
  .shima-checkout-page .wc-block-components-title {
    font-size: 14px !important;
  }
  .shima-checkout-page .wc-block-checkout__main .wc-block-components-checkout-step {
    padding: 14px 12px !important;
  }
  .shima-checkout-page .wc-block-components-text-input input,
  .shima-checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
  .shima-checkout-page .wc-block-components-address-form input,
  .shima-checkout-page .wc-block-components-address-form select,
  .shima-checkout-page .wc-block-components-select .wc-block-components-select__select,
  .shima-checkout-page .wc-block-components-textarea,
  .shima-checkout-page .wc-block-components-textarea textarea {
    min-height: 48px !important;
    font-size: 12px !important;
  }
}

/* ======================================================================
   SHIMA STOREFRONT UI 2.8.1 — Wholesale checkout summary + shipping choice
   - No per-product breakdown in "سفارش شما"
   - Two shipping modes: ماشینی (0) / باربری (per-carton)
   - Compact four-part summary: cart subtotal, shipping, carton total, final total
   ====================================================================== */

.shima-checkout-page .shima-wholesale-checkout-summary {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tbody:empty {
  display: none !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tfoot {
  display: table-row-group;
}
.shima-checkout-page .shima-wholesale-checkout-summary tfoot tr {
  display: table-row;
}
.shima-checkout-page .shima-wholesale-checkout-summary th,
.shima-checkout-page .shima-wholesale-checkout-summary td {
  padding: 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--shima-checkout-line-2) !important;
  vertical-align: middle !important;
  background: transparent !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary th {
  width: 46%;
  color: #26382e !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  font-weight: 900 !important;
  text-align: right !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary td {
  color: var(--shima-checkout-green) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  font-weight: 950 !important;
  text-align: left !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .woocommerce-Price-amount,
.shima-checkout-page .shima-wholesale-checkout-summary .woocommerce-Price-currencySymbol {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tr.shipping th,
.shima-checkout-page .shima-wholesale-checkout-summary tr.shipping td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tr.shipping td {
  text-align: right !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method li {
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method label {
  min-height: 72px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #dce8e1;
  border-radius: 14px;
  background: #fbfdfb;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"]:checked + label {
  border-color: #80c39e;
  background: #f0faf4;
  box-shadow: 0 0 0 3px rgba(8,123,67,.08);
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-label {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-label strong {
  color: #15251b;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 950;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-label small {
  color: #65756c;
  font-size: 10.5px;
  line-height: 1.7;
  font-weight: 800;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-cartons td strong {
  color: #15251b;
  font-size: 13px;
  font-weight: 950;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-total th,
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-total td {
  padding-top: 18px !important;
  border-bottom: 0 !important;
  color: #102019 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-total td {
  color: var(--shima-checkout-green) !important;
}

/* Classic checkout review card becomes deliberately compact. */
.shima-checkout-page form.woocommerce-checkout #order_review {
  padding-top: 20px !important;
}
.shima-checkout-page #order_review_heading {
  margin-bottom: 0 !important;
}

@media (max-width: 680px) {
  .shima-checkout-page .shima-wholesale-checkout-summary th,
  .shima-checkout-page .shima-wholesale-checkout-summary td {
    padding: 11px 0 !important;
    font-size: 11.5px !important;
  }
  .shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method {
    grid-template-columns: 1fr;
  }
  .shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method label {
    min-height: 62px;
  }
  .shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-total th,
  .shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-total td {
    font-size: 13.5px !important;
  }
}

/* ======================================================================
   SHIMA STOREFRONT UI 2.8.2 — Shipping choice + premium province picker
   - Force fresh wholesale rates so old Woo Free Shipping cache cannot persist
   - Keep email optional in Classic Checkout
   - Refine SelectWoo province/city dropdown UX
   ====================================================================== */

/* Shipping method cards: visible radio affordance + clearer selected state. */
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method li {
  position: relative;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"] {
  position: absolute !important;
  inset-inline-start: 12px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin: -9px 0 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  accent-color: var(--shima-checkout-green) !important;
  z-index: 2;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method label {
  min-height: 76px;
  padding: 12px 40px 12px 14px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"]:checked + label {
  border-color: #55ae7d !important;
  background: linear-gradient(180deg, #f2fbf5 0%, #eaf7ef 100%) !important;
  box-shadow: 0 0 0 3px rgba(8,123,67,.09), 0 8px 20px rgba(8,123,67,.06) !important;
}

/* Optional email: never visually implies required. */
.shima-checkout-page #billing_email_field .required {
  display: none !important;
}

/* Premium SelectWoo / Select2 province dropdown. */
body .select2-container--open {
  z-index: 999999 !important;
}
body .select2-dropdown {
  direction: rtl !important;
  overflow: hidden !important;
  margin-top: 6px !important;
  border: 1px solid #cfe0d6 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.995) !important;
  box-shadow: 0 20px 48px rgba(13,53,31,.16) !important;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}
body .select2-dropdown.select2-dropdown--above {
  margin-top: -6px !important;
  margin-bottom: 6px !important;
}
body .select2-search--dropdown {
  padding: 10px 10px 8px !important;
  background: #fff !important;
  border-bottom: 1px solid #edf3ef !important;
}
body .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  border: 1px solid #d4e2da !important;
  border-radius: 11px !important;
  outline: 0 !important;
  background: #f8fbf9 !important;
  color: #21342a !important;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: right !important;
  box-shadow: none !important;
}
body .select2-search--dropdown .select2-search__field:focus {
  border-color: #80c29d !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(8,123,67,.08) !important;
}
body .select2-results {
  padding: 6px !important;
  background: #fff !important;
}
body .select2-results__options {
  max-height: 270px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #b7cdbf #f2f6f3;
}
body .select2-results__option {
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  margin: 2px 0 !important;
  padding: 9px 12px !important;
  border-radius: 9px !important;
  color: #36483e !important;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
  text-align: right !important;
  transition: background .15s ease, color .15s ease !important;
}
body .select2-results__option[aria-selected="true"] {
  color: #087b43 !important;
  background: #edf8f1 !important;
  font-weight: 900 !important;
}
body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted[data-selected] {
  color: #075f36 !important;
  background: #e4f5eb !important;
}
body .select2-results__message {
  justify-content: center !important;
  color: #6b7a72 !important;
}

/* Improve the closed state selector too. */
.shima-checkout-page .select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  padding-inline: 12px 38px !important;
  cursor: pointer !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.shima-checkout-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #80c29d !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(8,123,67,.08) !important;
}
.shima-checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100% !important;
  padding: 0 !important;
  color: #26352c !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  text-align: right !important;
}
.shima-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto !important;
  left: 12px !important;
  width: 24px !important;
}


/* ======================================================================
   SHIMA STOREFRONT UI 2.8.3 — Vertical shipping methods + per-user vehicle access
   ====================================================================== */
.shima-checkout-page .shima-wholesale-checkout-summary tr.shipping th {
  vertical-align: top !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  grid-template-columns: none !important;
  width: 100% !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method li {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"] {
  position: static !important;
  inset: auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 3px 0 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  accent-color: var(--shima-checkout-green) !important;
  flex: 0 0 18px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method label {
  min-height: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"]:checked + label {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-label {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  text-align: right !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-label strong {
  font-size: 13px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"]:checked + label .shima-shipping-label strong {
  color: var(--shima-checkout-green) !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method input[type="radio"]:checked + label .shima-shipping-label small {
  color: #44574d !important;
}
@media (max-width: 680px) {
  .shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method {
    gap: 10px !important;
  }
}

/* ======================================================================
   SHIMA STOREFRONT UI 2.8.5 — Compact complete checkout summary
   - Removes split heading/review gap
   - Keeps shipping selector in a single contiguous summary card
   - Adds explicit shipping amount row
   ====================================================================== */
@media (min-width: 981px) {
  .shima-checkout-page form.woocommerce-checkout {
    grid-template-columns: 380px minmax(0, 1fr) !important;
    grid-template-areas: "review customer" !important;
    gap: 22px !important;
    align-items: start !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review_heading {
    display: none !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review {
    grid-area: review !important;
    position: sticky !important;
    top: 96px !important;
    margin: 0 !important;
    padding: 20px !important;
    border: 1px solid var(--shima-checkout-line) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%) !important;
    box-shadow: var(--shima-checkout-shadow) !important;
  }
  .shima-checkout-page form.woocommerce-checkout #customer_details {
    grid-area: customer !important;
  }
}

.shima-checkout-page .shima-wholesale-checkout-summary {
  table-layout: fixed !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-order-review-title {
  caption-side: top !important;
  padding: 0 0 16px !important;
  color: #13251b !important;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.7 !important;
  font-weight: 950 !important;
  text-align: right !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tfoot {
  display: table-row-group !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary tfoot tr {
  display: table-row !important;
  height: auto !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary th,
.shima-checkout-page .shima-wholesale-checkout-summary td {
  padding: 15px 0 !important;
  vertical-align: top !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary th {
  width: 52% !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary td {
  width: 48% !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-method th,
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-method td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-total th,
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-total td {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-total td {
  color: var(--shima-checkout-green) !important;
  font-weight: 950 !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary .shima-summary-shipping-total td strong {
  font: inherit !important;
  color: inherit !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method,
.shima-checkout-page .shima-wholesale-checkout-summary .shima-shipping-methods {
  margin: 0 !important;
  padding: 0 !important;
}
.shima-checkout-page .shima-wholesale-checkout-summary ul#shipping_method li {
  width: 100% !important;
}
.shima-checkout-page .woocommerce-checkout-payment {
  margin-top: 16px !important;
}

@media (max-width: 980px) {
  .shima-checkout-page form.woocommerce-checkout #order_review_heading {
    display: none !important;
  }
  .shima-checkout-page form.woocommerce-checkout #order_review {
    margin-top: 16px !important;
    padding: 18px !important;
    border: 1px solid var(--shima-checkout-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%) !important;
    box-shadow: var(--shima-checkout-shadow) !important;
  }
  .shima-checkout-page .shima-wholesale-checkout-summary .shima-order-review-title {
    font-size: 17px !important;
    padding-bottom: 12px !important;
  }
}
