/* ==========================================================================
   CSS صفحه سبد خرید
   --------------------------------------------------------------------------
   01. breadcrumb خرید
   02. جدول سبد
   03. اطلاعات کلی سبد
   04. موبایل
   05. کارت/کروسل محصول در product-card-component.css
   ========================================================================== */

/* ==========================================================================
   کامپوننت محصولات مرتبط در سبد خرید
   استایل کارت و کروسل محصول در فایل جدا کنترل می‌شود:
   assets/css/woocommerce/product-card-component.css
   این فایل فقط استایل‌های اختصاصی صفحه سبد خرید را نگه می‌دارد.
   ========================================================================== */

/* independent cart page styles */
/* Success notices are rendered as a toast by main.js. Keep the server-rendered
   copy out of the cart flow from first paint so it cannot shift the layout. */
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message {
  display: none !important;
}

body.woocommerce-cart .rp-main {
  direction: rtl !important;
  background: #fff !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart .cart .button,
body.woocommerce-cart .actions .button {
  background: #111820 !important;
  background-color: #111820 !important;
  border-color: #111820 !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.disabled,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:disabled,
body.woocommerce-cart .button[name="update_cart"]:disabled,
body.woocommerce-cart button[name="update_cart"]:disabled,
body.woocommerce-cart .cart .button:disabled,
body.woocommerce-cart .actions .button:disabled {
  background: #9aa1a9 !important;
  background-color: #9aa1a9 !important;
  border-color: #9aa1a9 !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.woocommerce-cart .cart_totals .amount,
body.woocommerce-cart .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-Price-amount bdi,
body.woocommerce-cart .order-total .amount,
body.woocommerce-cart .cart-subtotal .amount {
  color: #111820 !important;
}

/* cart page: independent desktop layout + related carousel copied from single product related cards */

/* Hide WooCommerce default cross-sells completely; theme renders #rp-cart-related-products. */
body.woocommerce-cart .cart-collaterals .cross-sells,
body.woocommerce-cart .cross-sells:not(#rp-cart-related-products),
body.woocommerce-cart .cross-sells > h2 {
  display: none !important;
}

/* Main cart page layout cleanup so we do not fall back to raw WooCommerce styling. */
body.woocommerce-cart .woocommerce {
  width: min(100%, 1140px) !important;
  margin: 0 auto !important;
  direction: rtl !important;
}

body.woocommerce-cart .woocommerce > .woocommerce-cart-form {
  width: 68% !important;
  float: right !important;
  margin: 0 !important;
}

body.woocommerce-cart .woocommerce > .cart-collaterals {
  width: 28% !important;
  float: left !important;
  margin: 0 !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f6f7f8 !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid #dfe3e7 !important;
  background: transparent !important;
  color: #111820 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table th {
  padding: 16px 12px !important;
  color: #111820 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.8 !important;
}

body.woocommerce-cart table.shop_table td {
  padding: 14px 12px !important;
  font-size: 13px !important;
  line-height: 1.9 !important;
}

body.woocommerce-cart table.shop_table .product-name {
  text-align: right !important;
}

body.woocommerce-cart table.shop_table .product-name a {
  color: #111820 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  background: #eef1f4 !important;
}

body.woocommerce-cart table.shop_table .product-remove a {
  color: #d20f25 !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .quantity {
  min-width: 92px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #d9dee3 !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden !important;
}

body.woocommerce-cart table.shop_table .quantity input.qty {
  width: 42px !important;
  min-height: 36px !important;
  border: 0 !important;
  background: transparent !important;
  color: #111820 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
  padding: 24px !important;
  border-radius: 14px !important;
  background: #f6f7f8 !important;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px !important;
  color: #111820 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.woocommerce-cart .cart_totals table.shop_table {
  width: 100% !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 13px 0 !important;
  border-bottom: 1px solid #dfe3e7 !important;
  text-align: right !important;
  background: transparent !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .woocommerce-Price-amount bdi,
body.woocommerce-cart table.shop_table .woocommerce-Price-amount,
body.woocommerce-cart table.shop_table .woocommerce-Price-amount bdi {
  color: #111820 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-currencySymbol,
body.woocommerce-cart table.shop_table .woocommerce-Price-currencySymbol {
  color: #7b8490 !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  margin-inline-start: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart .cart .button,
body.woocommerce-cart .actions .button {
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #111820 !important;
  background-color: #111820 !important;
  border-color: #111820 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.disabled,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:disabled,
body.woocommerce-cart .button[name="update_cart"]:disabled,
body.woocommerce-cart button[name="update_cart"]:disabled,
body.woocommerce-cart .cart .button:disabled,
body.woocommerce-cart .actions .button:disabled {
  background: #9aa1a9 !important;
  background-color: #9aa1a9 !important;
  border-color: #9aa1a9 !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* cart page width parity + top checkout steps */
body.woocommerce-cart .site-main,
body.woocommerce-cart .rp-main,
body.woocommerce-cart main,
body .woocommerce {
  box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce,
body .woocommerce:has(.woocommerce-cart-form),
.rp-cart-checkout-steps,
body.woocommerce-cart #rp-cart-related-products {
  width: min(100%, var(--rp-content-max-width, 1440px)) !important;
  max-width: var(--rp-content-max-width, 1440px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce,
body .woocommerce:has(.woocommerce-cart-form) {
  padding-right: 20px !important;
  padding-left: 20px !important;
}

body.woocommerce-cart .rp-page,
body.woocommerce-cart .rp-entry,
body.woocommerce-cart .rp-not-found {
  max-width: var(--rp-content-max-width, 1440px) !important;
  width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
}

.rp-cart-checkout-steps {
  margin: 18px auto 44px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  direction: rtl !important;
  color: #6f757b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.rp-cart-checkout-step-arrow {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  border-radius: 5px !important;
  background: #111820 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.rp-cart-checkout-step-arrow::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
  margin-left: 2px !important;
}

.rp-cart-checkout-step {
  color: #6f757b !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  transition: color .18s ease !important;
}

.rp-cart-checkout-step:hover {
  color: #111820 !important;
}

.rp-cart-checkout-step.is-active {
  color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
  font-weight: 800 !important;
}

.rp-cart-checkout-step.is-muted {
  color: #6f757b !important;
  pointer-events: none !important;
}

.rp-cart-checkout-separator {
  width: 7px !important;
  height: 7px !important;
  border-top: 1.7px solid #a6adb4 !important;
  border-left: 1.7px solid #a6adb4 !important;
  transform: rotate(-45deg) !important;
  display: inline-block !important;
}

/* cart page final: hover arrows, correct visible-count breakpoints, clear-all, totals cleanup */

/* Cart table: hide update button, keep Ajax auto-update. */
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"],
body.woocommerce-cart .woocommerce-cart-form input[name="update_cart"] {
  display: none !important;
}

/* Cart page clear-all button: same look/spinner behavior as sidebar clear-all, aligned right. */
body.woocommerce-cart .woocommerce-cart-form .actions {
  text-align: right !important;
  padding: 14px 12px !important;
}

body.woocommerce-cart .rp-cart-page-clear-all {
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(224, 49, 61, .40) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #e0313d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.woocommerce-cart .rp-cart-page-clear-all .rp-cart-sidebar-clear-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity .16s ease !important;
}

body.woocommerce-cart .rp-cart-page-clear-all .rp-cart-sidebar-clear-spinner {
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
  border: 2px solid rgba(224, 49, 61, .22) !important;
  border-top-color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
  border-radius: 999px !important;
  display: none !important;
  animation: rpCartPageClearAllSpin .65s linear infinite !important;
}

body.woocommerce-cart .rp-cart-page-clear-all.is-loading {
  pointer-events: none !important;
  cursor: wait !important;
}

body.woocommerce-cart .rp-cart-page-clear-all.is-loading .rp-cart-sidebar-clear-spinner {
  display: inline-block !important;
}

body.woocommerce-cart .rp-cart-page-clear-all.is-loading .rp-cart-sidebar-clear-text {
  opacity: .72 !important;
}

@keyframes rpCartPageClearAllSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Cart totals: only final total row, prices on the left. */
body.woocommerce-cart .cart_totals table.shop_table tr:not(.order-total) {
  display: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  text-align: right !important;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  text-align: left !important;
}

@media (max-width: 768px) {
  html body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total > td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
  }

  html body.woocommerce-cart .cart_totals table.shop_table_responsive tr.order-total > td::before {
    float: none !important;
    align-self: center;
  }
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
}

body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount bdi {
  color: #111820 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}


/* cart: exact admin-visible count, breadcrumb H1, quick note icon */

/* The separate page title is removed; H1 now lives inside the checkout steps. */
body.woocommerce-cart .rp-page > .rp-entry-title,
body.woocommerce-cart .rp-entry > .rp-entry-title,
body.woocommerce-cart h1.rp-entry-title,
body.woocommerce-cart .entry-title,
body.woocommerce-cart .page-title {
  display: none !important;
}

body.woocommerce-cart .rp-cart-checkout-step-title {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.woocommerce-cart .rp-cart-checkout-step-title .rp-cart-checkout-step {
  color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
  font-size: inherit !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* Cart totals: show only count row + final total row. */
body.woocommerce-cart .cart_totals table.shop_table tr:not(.order-total):not(.rp-cart-total-count-row) {
  display: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.rp-cart-total-count-row {
  display: table-row !important;
}

body.woocommerce-cart .cart_totals table.shop_table th {
  text-align: right !important;
  font-weight: 400 !important;
}

body.woocommerce-cart .cart_totals table.shop_table td {
  text-align: left !important;
}

body.woocommerce-cart .cart_totals .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals .woocommerce-Price-amount bdi,
body.woocommerce-cart table.shop_table .woocommerce-Price-amount,
body.woocommerce-cart table.shop_table .woocommerce-Price-amount bdi {
  color: #111820 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

body.woocommerce-cart .cart_totals .rp-cart-total-count-value {
  color: #111820 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .rp-cart-total-count-row th,
body.woocommerce-cart .cart_totals .rp-cart-total-count-row td {
  padding: 13px 0 !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
}

/* Reduce sticky-menu flicker on cart page by isolating sticky/fixed layers. */
body.woocommerce-cart .rp-site-header,
body.woocommerce-cart .rp-header,
body.woocommerce-cart .rp-mobile-header,
body.woocommerce-cart .rp-mobile-bottom-bar,
body.woocommerce-cart .rp-footer-mobile-links,
body.woocommerce-cart .rp-cart-checkout-steps {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
}

/* Keep cart checkout steps stable; it should not jump during cart ajax updates. */
body.woocommerce-cart .rp-cart-checkout-steps {
  position: relative !important;
  top: auto !important;
  transition: none !important;
}

/* option-required modal message typography */
body.woocommerce-cart .rp-product-option-required-modal__message {
  font-weight: 400 !important;
}


/* cart quick-add option-required modal final typography */
body.woocommerce-cart .rp-product-option-required-modal__message,
body.woocommerce-cart.rp-product-modal-open .rp-product-option-required-modal__message {
  font-weight: 400 !important;
}


/* mobile cart products as separated cards */
@media (max-width: 1100px) {
  body.woocommerce-cart .woocommerce-cart-form {
    width: 100% !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table,
  body.woocommerce-cart .woocommerce-cart-form table.cart {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
  body.woocommerce-cart .woocommerce-cart-form table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
  body.woocommerce-cart .woocommerce-cart-form table.cart tbody {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item,
  body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 46px 16px 14px !important;
    border: 1px solid #e8ecef !important;
    border-radius: 16px !important;
    background: #f8f9fa !important;
    box-shadow: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item + tr.cart_item,
  body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item + tr.cart_item {
    margin-top: 14px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td,
  body.woocommerce-cart .woocommerce-cart-form table.cart td {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border: 0 !important;
    border-top: 1px solid #e3e7eb !important;
    background: transparent !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td::before,
  body.woocommerce-cart .woocommerce-cart-form table.cart td::before {
    color: #111820 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove {
    position: absolute !important;
    top: 12px !important;
    right: 14px !important;
    left: auto !important;
    width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove::before,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove::before {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove a {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #e0313d !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-name {
    min-height: auto !important;
    padding-top: 0 !important;
    padding-inline-end: 36px !important;
    border-top: 0 !important;
    display: block !important;
    text-align: right !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name::before,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-name::before {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-name a {
    color: #111820 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail {
    justify-content: center !important;
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail::before,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail::before {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail img {
    width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-quantity {
    justify-content: space-between !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-quantity .quantity {
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity input.qty,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-quantity input.qty {
    min-width: 92px !important;
    height: 38px !important;
    border: 1px solid #d9dee4 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111820 !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-price,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-subtotal {
    color: #111820 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-amount,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-price .woocommerce-Price-amount,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-subtotal .woocommerce-Price-amount {
    color: #111820 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr:not(.cart_item),
  body.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    border-top: 0 !important;
    padding: 4px 0 0 !important;
    justify-content: flex-start !important;
  }
}


/* mobile cart card thumbnail alignment + real thumbnail image display */
@media (max-width: 1100px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail {
    justify-content: start !important;
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img.rp-cart-item-thumbnail-img,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail img.rp-cart-item-thumbnail-img,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img,
  body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail img {
    width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    max-height: 74px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #fff !important;
  }
}


/* shared cart/checkout purchase steps component */
body.woocommerce-cart .rp-purchase-steps,
body.woocommerce-cart .rp-cart-checkout-steps {
  width: min(100%, 1140px) !important;
  max-width: 1140px !important;
  margin: 24px auto 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  direction: rtl !important;
  color: #6f757b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .rp-purchase-steps::-webkit-scrollbar,
body.woocommerce-cart .rp-cart-checkout-steps::-webkit-scrollbar {
  display: none !important;
}

body.woocommerce-cart .rp-checkout-step-arrow {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  border-radius: 5px !important;
  background: #111820 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

body.woocommerce-cart .rp-checkout-step-arrow::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
  margin-left: 2px !important;
}

body.woocommerce-cart .rp-checkout-step-title {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.woocommerce-cart .rp-checkout-step {
  color: #6f757b !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  transition: color .18s ease !important;
}

body.woocommerce-cart .rp-checkout-step:hover {
  color: #111820 !important;
}

body.woocommerce-cart .rp-checkout-step.is-active {
  color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .rp-checkout-step.is-complete {
  color: #111820 !important;
}

body.woocommerce-cart .rp-checkout-step.is-muted {
  color: #a3a9af !important;
  pointer-events: none !important;
}

body.woocommerce-cart .rp-checkout-separator {
  width: 7px !important;
  min-width: 7px !important;
  height: 7px !important;
  border-top: 1.7px solid #a6adb4 !important;
  border-left: 1.7px solid #a6adb4 !important;
  transform: rotate(-45deg) !important;
  display: inline-block !important;
}

@media (max-width: 1100px) {
  body.woocommerce-cart .rp-purchase-steps,
  body.woocommerce-cart .rp-cart-checkout-steps {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    gap: 10px !important;
    font-size: 12px !important;
  }
}


/* use the same > separator style as checkout */
body.woocommerce-cart .rp-purchase-steps,
body.woocommerce-cart .rp-cart-checkout-steps {
  gap: 10px !important;
}

body.woocommerce-cart .rp-checkout-separator {
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  border: 0 !important;
  transform: none !important;
}

body.woocommerce-cart .rp-checkout-separator::before {
  content: ">" !important;
  display: inline-block !important;
  color: #a6adb4 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}


/* cart checkout/action button typography */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart .cart .button,
body.woocommerce-cart .actions .button {
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #111820 !important;
    background-color: #111820 !important;
    border-color: #111820 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* cart breadcrumb matches checkout reference */
body.woocommerce-cart .rp-purchase-steps,
body.woocommerce-cart .rp-cart-checkout-steps,
body.woocommerce-cart .rp-checkout-steps {
    width: min(100%, 1140px) !important;
    max-width: 1140px !important;
    margin-top: 24px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    margin-bottom: 100px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    direction: rtl !important;
    text-align: right !important;
    color: #6f757b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .rp-purchase-steps::-webkit-scrollbar,
body.woocommerce-cart .rp-cart-checkout-steps::-webkit-scrollbar,
body.woocommerce-cart .rp-checkout-steps::-webkit-scrollbar {
    display: none !important;
}

body.woocommerce-cart .rp-checkout-step-arrow {
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #111820 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.woocommerce-cart .rp-checkout-step-arrow::before {
    display: none !important;
    content: none !important;
}

body.woocommerce-cart .rp-checkout-step-arrow-icon {
    width: 15px !important;
    height: 15px !important;
    display: block !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    transform: none !important;
}

body.woocommerce-cart .rp-checkout-step-title {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.woocommerce-cart .rp-checkout-step {
    color: #6f757b !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    transition: color .18s ease !important;
}

body.woocommerce-cart .rp-checkout-step:hover {
    color: #111820 !important;
}

body.woocommerce-cart .rp-checkout-step.is-active {
    color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    font-weight: 800 !important;
}

body.woocommerce-cart .rp-checkout-step.is-complete {
    color: #111820 !important;
}

body.woocommerce-cart .rp-checkout-step.is-muted {
    color: #a3a9af !important;
    pointer-events: none !important;
}

body.woocommerce-cart .rp-checkout-separator {
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    border: 0 !important;
    transform: none !important;
    display: inline-block !important;
}

body.woocommerce-cart .rp-checkout-separator::before {
    content: ">" !important;
    display: inline-block !important;
    color: #a6adb4 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Align breadcrumb right edge with the cart table/form right edge. */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    max-width: 1140px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (max-width: 1100px) {
    body.woocommerce-cart .rp-purchase-steps,
    body.woocommerce-cart .rp-cart-checkout-steps,
    body.woocommerce-cart .rp-checkout-steps {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 16px !important;
        margin-bottom: 100px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        font-size: 12px !important;
    }
}

/* cart totals title/count value refinement */
body.woocommerce-cart .cart_totals .rp-cart-total-count-row td,
body.woocommerce-cart .cart_totals .rp-cart-total-count-row td .rp-cart-total-count-value {
    font-size: 17px !important;
    font-weight: 600 !important;
}

body.woocommerce-cart .cart_totals .rp-cart-total-count-row .rp-cart-total-count-value {
    color: #111820 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

/* cart table controls, breadcrumb alignment, silent ajax notices */
body.woocommerce-cart .rp-cart-page-clear-all-row {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: ltr !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .rp-cart-page-clear-all,
body.woocommerce-cart .woocommerce-cart-form table.cart td.actions .rp-cart-page-clear-all {
    display: none !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions,
body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 901px) {
    body.woocommerce-cart .rp-purchase-steps,
    body.woocommerce-cart .rp-cart-checkout-steps,
    body.woocommerce-cart .rp-checkout-steps {
        width: 68% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
}

body.woocommerce-cart .rp-checkout-step-arrow .rp-checkout-step-arrow-icon {
    transform: none !important;
}

body.woocommerce-cart.rp-cart-auto-updating .woocommerce-message,
body.woocommerce-cart.rp-cart-auto-updating .woocommerce-info,
body.woocommerce-cart.rp-cart-auto-updating .woocommerce-notice,
body.woocommerce-cart .woocommerce-message[data-rp-cart-silent-notice="true"],
body.woocommerce-cart .woocommerce-info[data-rp-cart-silent-notice="true"],
body.woocommerce-cart .woocommerce-notice[data-rp-cart-silent-notice="true"] {
    display: none !important;
}

/* The old subtotal column label is now "جمع کل"; keep its visual behavior unchanged. */
body.woocommerce-cart th.product-subtotal,
body.woocommerce-cart td.product-subtotal {
    text-align: center !important;
}

/* show mobile footer cart orange circle only when cart has items */
@media (max-width: 768px) {
    .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon {
        position: relative !important;
    }

    .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon::before {
        content: none !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .rp-mobile-bottom-link.is-cart.has-cart .rp-mobile-bottom-icon::before,
    .rp-mobile-bottom-link.is-cart:has(.rp-mobile-bottom-count:not([hidden])) .rp-mobile-bottom-icon::before {
        content: '' !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: absolute !important;
        top: -7px !important;
        right: -9px !important;
        width: 22px !important;
        height: 22px !important;
        border-radius: 999px !important;
        background: #FF5722 !important;
        background-color: #FF5722 !important;
        box-shadow: 0 8px 18px rgb(201 106 0 / 53%) !important;
    }

    .rp-mobile-bottom-link.is-cart.is-empty-cart .rp-mobile-bottom-icon::before {
        content: none !important;
        display: none !important;
    }
}

/* option-required notice as green toast, not modal overlay */
body.rp-product-modal-open,
body.rp-product-option-toast-open,
body.woocommerce-shop.rp-product-modal-open,
body.post-type-archive-product.rp-product-modal-open,
body.tax-product_cat.rp-product-modal-open,
body.tax-product_tag.rp-product-modal-open,
body.single-product.rp-product-modal-open,
body.woocommerce-cart.rp-product-modal-open {
    overflow: auto !important;
    overflow-y: auto !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast,
body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast,
body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast,
body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast,
body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast,
body.single-product .rp-product-option-required-modal.rp-product-option-required-toast,
body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast,
.rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast {
    position: fixed !important;
    top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    right: 16px !important;
    left: 16px !important;
    bottom: auto !important;
    inset: auto 16px auto 16px !important;
    z-index: 1000003 !important;
    width: auto !important;
    max-width: 760px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    direction: rtl !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px) scale(.98) !important;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease !important;
    box-sizing: border-box !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.single-product .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast.is-open,
.rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: translateY(0) scale(1) !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
.rp-product-option-required-toast__box,
body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
body.single-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
.rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box {
    width: min(100%, 760px) !important;
    min-height: 52px !important;
    padding: 10px 12px 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 16px !important;
    background: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    background-color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    color: #fff !important;
    box-shadow: 0 18px 42px rgba(0, 126, 96, .26) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: right !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

.rp-product-option-required-toast__icon {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
.rp-product-option-required-toast__message,
body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
body.single-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
.rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.9 !important;
    text-align: right !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
.rp-product-option-required-toast__close,
body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
body.single-product .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
.rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #009874 !important;
    font-family: var(--rp-font) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 34px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close:hover,
.rp-product-option-required-toast__close:hover {
    background: rgba(255, 255, 255, .92) !important;
    color: #007f62 !important;
}

@media (max-width: 768px) {
    .rp-product-option-required-modal.rp-product-option-required-toast,
    body.woocommerce-shop .rp-product-option-required-modal.rp-product-option-required-toast,
    body.post-type-archive-product .rp-product-option-required-modal.rp-product-option-required-toast,
    body.tax-product_cat .rp-product-option-required-modal.rp-product-option-required-toast,
    body.tax-product_tag .rp-product-option-required-modal.rp-product-option-required-toast,
    body.single-product .rp-product-option-required-modal.rp-product-option-required-toast,
    body.woocommerce-cart .rp-product-option-required-modal.rp-product-option-required-toast,
    .rp-shop-archive .rp-product-option-required-modal.rp-product-option-required-toast {
        right: 12px !important;
        left: 12px !important;
        inset: auto 12px auto 12px !important;
        max-width: none !important;
    }

    .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__box,
    .rp-product-option-required-toast__box {
        width: 100% !important;
        padding: 10px 10px 10px 12px !important;
        gap: 8px !important;
    }

    .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__message,
    .rp-product-option-required-toast__message {
        font-size: 12.5px !important;
        line-height: 1.8 !important;
    }

    .rp-product-option-required-modal.rp-product-option-required-toast .rp-product-option-required-modal__close,
    .rp-product-option-required-toast__close {
        min-height: 32px !important;
        padding: 0 11px !important;
        font-size: 11.5px !important;
        line-height: 32px !important;
    }
}

/* cart related carousel must start below floated cart columns. */
body.woocommerce-cart #rp-cart-related-products,
body.woocommerce-cart .rp-product-carousel--cart-related,
body.woocommerce-cart .rp-cart-related-carousel {
  clear: both !important;
  float: none !important;
  width: min(100%, var(--rp-content-max-width, 1440px)) !important;
  max-width: var(--rp-content-max-width, 1440px) !important;
  margin: 56px auto 0 !important;
  padding-right: 20px !important;
  padding-left: 20px !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .rp-cart-related-head,
body.woocommerce-cart .rp-single-related-head {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}



/* v0.1.412 cart page: clear-all below table + stable responsive product cards */
body.woocommerce-cart .woocommerce-cart-form .rp-cart-page-clear-all-row {
    clear: both !important;
    width: 100% !important;
    margin: 14px 0 24px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .woocommerce-cart-form .rp-cart-page-clear-all {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 1100px) {
    body.woocommerce-cart .woocommerce,
    body.woocommerce-cart .woocommerce:has(.woocommerce-cart-form) {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce > .woocommerce-cart-form,
    body.woocommerce-cart .woocommerce > .cart-collaterals,
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .cart-collaterals {
        margin-top: 18px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.woocommerce-cart .woocommerce-cart-form table.cart,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
    body.woocommerce-cart .woocommerce-cart-form table.cart tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) 30px !important;
        grid-template-areas:
            "thumb name remove"
            "price price price"
            "qty qty qty"
            "subtotal subtotal subtotal" !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px !important;
        padding: 14px !important;
        border: 1px solid #e8ecef !important;
        border-radius: 16px !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item + tr.cart_item,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item + tr.cart_item {
        margin-top: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-remove {
        grid-area: remove !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        align-self: start !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-remove::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name::before {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail {
        grid-area: thumb !important;
        width: 82px !important;
        min-width: 82px !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        align-self: start !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail img,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img.rp-cart-item-thumbnail-img,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail img.rp-cart-item-thumbnail-img {
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        height: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        background: #fff !important;
        display: block !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name {
        grid-area: name !important;
        padding: 0 !important;
        padding-inline-end: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: right !important;
        align-self: start !important;
        overflow: hidden !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name a,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name a {
        display: block !important;
        width: 100% !important;
        color: #111820 !important;
        font-size: var(--rp-type-product_detail_heading-size, 14px) !important;
        font-weight: var(--rp-type-product_detail_heading-weight, 500) !important;
        line-height: 1.8 !important;
        text-align: right !important;
        text-decoration: none !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 10px 0 !important;
        border: 0 !important;
        border-top: 1px solid #e3e7eb !important;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price {
        grid-area: price !important;
        margin-top: 12px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity {
        grid-area: qty !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal {
        grid-area: subtotal !important;
        padding-bottom: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price::before {
        content: "قیمت" !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity::before {
        content: "تعداد" !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal::before {
        content: "جمع کل" !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal::before {
        flex: 0 0 auto !important;
        color: #111820 !important;
        font-size: 12.5px !important;
        font-weight: 800 !important;
        line-height: 1.7 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price .woocommerce-Price-amount,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price .woocommerce-Price-amount,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price .woocommerce-Price-amount bdi,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price .woocommerce-Price-amount bdi,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal .woocommerce-Price-amount,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal .woocommerce-Price-amount,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal .woocommerce-Price-amount bdi,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal .woocommerce-Price-amount bdi {
        color: #111820 !important;
        font-size: var(--rp-type-price-size, 16px) !important;
        font-weight: var(--rp-type-price-weight, 700) !important;
        line-height: 1.8 !important;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .quantity,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity .quantity {
        flex: 0 0 auto !important;
        min-width: 86px !important;
        min-height: 34px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid #d9dee4 !important;
        border-radius: 999px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity input.qty,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity input.qty {
        width: 50px !important;
        min-width: 50px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #111820 !important;
        font-size: var(--rp-type-form_input-size, 13px) !important;
        font-weight: var(--rp-type-form_input-weight, 800) !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr:not(.cart_item),
    body.woocommerce-cart .woocommerce-cart-form table.cart tr:not(.cart_item) {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions,
    body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.woocommerce-cart .woocommerce-cart-form .rp-cart-page-clear-all-row {
        margin: 12px 0 18px !important;
        justify-content: flex-start !important;
    }

    body.woocommerce-cart .cart_totals {
        padding: 20px !important;
        border-radius: 16px !important;
    }
}

/* v0.1.413: prevent off-canvas mobile drawer from being visible inside cart page horizontal overflow */
@media (max-width: 1100px) {
    html,
    body.woocommerce-cart {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.woocommerce-cart .rp-main,
    body.woocommerce-cart .rp-page,
    body.woocommerce-cart .rp-entry,
    body.woocommerce-cart .site-main,
    body.woocommerce-cart .woocommerce,
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart_totals {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart:not(.rp-mobile-menu-open) .rp-mobile-drawer {
        right: 0 !important;
        left: auto !important;
        transform: translate3d(110%, 0, 0) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.woocommerce-cart:not(.rp-mobile-menu-open) .rp-mobile-drawer-backdrop {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.woocommerce-cart.rp-mobile-menu-open .rp-mobile-drawer {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* v0.1.413: final stable mobile cart product cards */
@media (max-width: 1100px) {
    body.woocommerce-cart .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce > .woocommerce-cart-form,
    body.woocommerce-cart .woocommerce > .cart-collaterals,
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.woocommerce-cart .woocommerce-cart-form table.cart,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
    body.woocommerce-cart .woocommerce-cart-form table.cart tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
    body.woocommerce-cart .woocommerce-cart-form table.cart thead {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 82px minmax(0, 1fr) 30px !important;
        grid-template-areas:
            "thumb name remove"
            "price price price"
            "qty qty qty"
            "subtotal subtotal subtotal" !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 12px !important;
        padding: 14px !important;
        border: 1px solid #e8ecef !important;
        border-radius: 16px !important;
        background: #f8f9fa !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail {
        grid-area: thumb !important;
        width: 82px !important;
        min-width: 82px !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name::before,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-remove::before {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail img,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img.rp-cart-item-thumbnail-img,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail img.rp-cart-item-thumbnail-img {
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        height: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        background: #fff !important;
        display: block !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name {
        grid-area: name !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: right !important;
        overflow: hidden !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name a,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        color: #111820 !important;
        font-size: var(--rp-type-product_detail_heading-size, 14px) !important;
        font-weight: var(--rp-type-product_detail_heading-weight, 500) !important;
        line-height: 1.8 !important;
        text-align: right !important;
        text-decoration: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-remove {
        grid-area: remove !important;
        position: static !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        align-self: start !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 10px 0 !important;
        border: 0 !important;
        border-top: 1px solid #e3e7eb !important;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price {
        grid-area: price !important;
        margin-top: 12px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity {
        grid-area: qty !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-subtotal,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-subtotal {
        grid-area: subtotal !important;
        padding-bottom: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form .rp-cart-page-clear-all-row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 18px !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }
}


/* v0.1.610: cart table quantity stepper with cart-count unit label. */
body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-control,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  direction: ltr !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-unit,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-unit {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #7b8490 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  direction: rtl !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-stepper,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-stepper {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  border: 1px solid #d9dee4 !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden !important;
  direction: ltr !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-btn,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111820 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-input-wrap,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-input-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-stepper .quantity,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-stepper .quantity {
  min-width: 42px !important;
  width: 42px !important;
  min-height: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-stepper input.qty {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111820 !important;
  font-size: var(--rp-type-form_input-size, 13px) !important;
  font-weight: var(--rp-type-form_input-weight, 800) !important;
  text-align: center !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}

body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-outer-spin-button,
body.woocommerce-cart table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-inner-spin-button,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-outer-spin-button,
body.woocommerce-cart table.cart td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-inner-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

@media (max-width: 768px) {
  html body.woocommerce-cart .woocommerce-cart-form table tr.cart_item td.product-quantity .rp-cart-table-qty-stepper :is(.rp-cart-table-qty-input-wrap, .quantity, input.qty) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    padding-inline: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity .rp-cart-table-qty-control,
  body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity .rp-cart-table-qty-control {
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity::before,
  body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity::before {
    content: attr(data-title) !important;
  }
}


/* v0.1.611: remove the cart totals title in the second cart column. */
body.woocommerce-cart .cart_totals > h2,
body.woocommerce-cart .cart_totals h2 {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* v0.1.626 - Cart mobile footer must match other pages and not use a compressed layout. */
body.woocommerce-cart .rp-site-header,
body.woocommerce-cart .rp-header,
body.woocommerce-cart .rp-mobile-header,
body.woocommerce-cart .rp-site-footer,
body.woocommerce-cart .rp-footer {
  display: revert !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  body.woocommerce-cart {
    padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar,
  body.woocommerce-cart .rp-mobile-bottom-bar {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2800 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 0 !important;
    min-height: calc(78px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .07) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    direction: ltr !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar.has-3-items {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar.has-4-items {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar.has-5-items {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link {
    min-height: 62px !important;
    padding: 6px 4px 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #202428 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-icon,
  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon {
    width: 34px !important;
    height: 34px !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-icon img,
  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon img {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
    object-fit: contain !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-text {
    font-size: var(--rp-type-navigation-size, 11px) !important;
    font-weight: var(--rp-type-navigation-weight, 400) !important;
    line-height: 1.35 !important;
    color: #25292d !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart.rp-mobile-menu-open .rp-footer-mobile-links.rp-mobile-bottom-bar,
  html body.woocommerce-cart.rp-mobile-menu-open .rp-footer-mobile-links.rp-mobile-bottom-bar {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body.woocommerce-cart .rp-mobile-drawer,
  html body.woocommerce-cart.rp-mobile-menu-open .rp-mobile-drawer,
  body.woocommerce-cart.rp-mobile-menu-open .rp-mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(84vw, 390px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 2147483646 !important;
  }

  body.woocommerce-cart.rp-mobile-menu-open .rp-mobile-drawer {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body.woocommerce-cart.rp-mobile-menu-open .rp-mobile-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483645 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* v0.1.628 - Cart page mobile footer must visually match the homepage mobile footer exactly */
@media (max-width: 768px) {
  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar,
  body.woocommerce-cart .rp-mobile-bottom-bar {
    min-height: calc(56px + env(safe-area-inset-bottom)) !important;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom)) !important;
    align-items: center !important;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, .06) !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link,
  body.woocommerce-cart .rp-mobile-bottom-link {
    min-height: 48px !important;
    padding: 3px 4px 2px !important;
    gap: 3px !important;
    justify-content: center !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-icon,
  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon,
  body.woocommerce-cart .rp-mobile-bottom-icon,
  body.woocommerce-cart .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon {
    width: 24px !important;
    height: 24px !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-icon img,
  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon img,
  body.woocommerce-cart .rp-mobile-bottom-icon img,
  body.woocommerce-cart .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon img {
    width: 23px !important;
    height: 23px !important;
    display: block !important;
    object-fit: contain !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon::before,
  body.woocommerce-cart .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon::before {
    top: -6px !important;
    right: -8px !important;
    width: 18px !important;
    height: 18px !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-count,
  body.woocommerce-cart .rp-mobile-bottom-count {
    top: -6px !important;
    right: -8px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
    line-height: 18px !important;
  }

  body.woocommerce-cart .rp-footer-mobile-links.rp-mobile-bottom-bar .rp-mobile-bottom-text,
  body.woocommerce-cart .rp-mobile-bottom-text {
    font-size: var(--rp-type-navigation-size, 11px) !important;
    font-weight: var(--rp-type-navigation-weight, 400) !important;
    line-height: 1.25 !important;
  }
}

/* v0.1.696 - cart requested typography and table spacing */
.rp-cart-item-title {
    color: #202428;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.75;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    width: 100% !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fbfbfb !important;
    box-shadow: none !important;
    padding: 28px;
}


/* Empty cart state - v0.1.782 */
body.woocommerce-cart .rp-empty-cart {
    width: 100%;
    min-height: 340px;
    padding: 56px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    box-sizing: border-box;
}
body.woocommerce-cart .rp-empty-cart__icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rp-primary-color, #f24000);
}
body.woocommerce-cart .rp-empty-cart__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
body.woocommerce-cart .rp-empty-cart__message {
    margin: 4px 0 0;
    color: #20242a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}
body.woocommerce-cart .rp-empty-cart__shop-link {
    margin-top: 2px;
    color: var(--rp-primary-color, #f24000);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity .18s ease;
}
body.woocommerce-cart .rp-empty-cart__shop-link:hover,
body.woocommerce-cart .rp-empty-cart__shop-link:focus-visible {
    opacity: .72;
}
@media (max-width: 820px) {
    body.woocommerce-cart .rp-empty-cart {
        min-height: 280px;
        padding: 42px 16px;
    }
    body.woocommerce-cart .rp-empty-cart__icon {
        width: 62px;
        height: 62px;
    }
}

/* v0.1.851 — fixed-height mode source remains uncropped; sidebar frame stays compact */
.rp-cart-sidebar-product-image.rp-product-fixed-image{
    width:auto!important;
    height:76px!important;
    max-width:76px!important;
    object-fit:contain!important;
}
/* Keep the currency unit visually secondary in the cart grand total. */
body.woocommerce-cart .wc-block-components-totals-footer-item .rp-cart-total-currency,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-currencySymbol {
    display: inline-block;
    margin-inline-start: 0;
    font-size: .72em;
    font-weight: 500;
    line-height: 1;
}

/* WooCommerce replaces the cart and totals only after the server responds. */
body.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) > .blockUI.blockOverlay {
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) > .blockUI.blockOverlay::before,
body.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) > .blockUI.blockOverlay::after {
    display: none !important;
}
body.woocommerce-cart .cart_totals.processing .order-total th::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-inline-start: 8px;
    border: 2px solid #a4adb7;
    border-top-color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a));
    border-radius: 50%;
    vertical-align: middle;
    animation: rp-cart-totals-spin .7s linear infinite;
}
@keyframes rp-cart-totals-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    body.woocommerce-cart .cart_totals.processing .order-total th::after {
        animation: none;
    }
}

/* Keep clear-all above the per-product remove controls in the desktop cart header. */
body.woocommerce-cart .woocommerce-cart-form .rp-cart-page-clear-all {
    min-height: 26px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

@media (min-width: 901px) {
    body.woocommerce-cart .woocommerce-cart-form thead th.product-remove {
        white-space: nowrap;
    }

    body.woocommerce-cart .woocommerce-cart-form thead th.product-remove .rp-cart-page-clear-all-row {
        clear: none !important;
        width: auto !important;
        margin: 0 !important;
        justify-content: center !important;
        direction: rtl !important;
    }
}

/* Keep the purchase breadcrumb flush with the cart content. This final,
   page-scoped override also wins over the legacy mobile spacing rules. */
body.woocommerce-cart .rp-purchase-steps,
body.woocommerce-cart .rp-cart-checkout-steps,
body.woocommerce-cart .rp-checkout-steps {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* The primary cart action follows the configurable theme accent. */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:not(.disabled):not([aria-disabled="true"]) {
    background: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    background-color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    border-color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:not(.disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    background: #00a982 !important;
    background: color-mix(in srgb, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) 84%, #000) !important;
    background-color: #00a982 !important;
    background-color: color-mix(in srgb, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) 84%, #000) !important;
    border-color: #00a982 !important;
    border-color: color-mix(in srgb, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) 84%, #000) !important;
}

/* Mobile cart rows become product cards. Keep their entire visual surface in
   the active dark palette instead of inheriting the legacy light card colors. */
@media (max-width: 1100px) {
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
        border-color: var(--rp-theme-general-border, #303741) !important;
        background: var(--rp-theme-general-surface, #171b21) !important;
        color: var(--rp-theme-general-text, #f8fafc) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
    }

    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td {
        border-color: var(--rp-theme-general-border, #303741) !important;
        background: transparent !important;
        color: var(--rp-theme-general-text, #f8fafc) !important;
    }

    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td::before,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td::before,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name a,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name a,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item :is(.woocommerce-Price-amount, .woocommerce-Price-amount bdi, ins),
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item :is(.woocommerce-Price-amount, .woocommerce-Price-amount bdi, ins) {
        color: #ffffff !important;
    }

    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item :is(.variation, .variation dt, .variation dd, .variation p, .woocommerce-Price-currencySymbol, del),
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item :is(.variation, .variation dt, .variation dd, .variation p, .woocommerce-Price-currencySymbol, del) {
        color: var(--rp-theme-general-muted, #b8c0cc) !important;
    }

    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-thumbnail img,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-thumbnail img {
        background: var(--rp-theme-general-surface-alt, #20262f) !important;
    }

    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item .quantity,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item .quantity,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-quantity input.qty,
    body.rp-theme-color-preset-dark.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-quantity input.qty {
        border-color: var(--rp-theme-general-border, #3b4450) !important;
        background: var(--rp-theme-general-background, #0f1115) !important;
        color: #ffffff !important;
    }
}

/* Quantity is an editing control. Keep its input and +/- buttons on a dark,
   high-contrast surface when the cart uses the dark palette. */
:is(body.rp-theme-color-preset-dark, body.rp-theme-dark, body.is-dark, html[data-rp-user-theme="dark"] body, html[data-rp-theme-mode="dark"] body, html[data-theme="dark"] body).woocommerce-cart .woocommerce-cart-form table :is(.quantity, .rp-cart-table-qty-stepper) {
    border-color: #3a4657 !important;
    background: #171b21 !important;
}

:is(body.rp-theme-color-preset-dark, body.rp-theme-dark, body.is-dark, html[data-rp-user-theme="dark"] body, html[data-rp-theme-mode="dark"] body, html[data-theme="dark"] body).woocommerce-cart .woocommerce-cart-form table :is(.quantity input.qty, td.product-quantity input.qty, .rp-cart-table-qty-stepper input.qty) {
    background: #0f141c !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    box-shadow: none !important;
}

:is(body.rp-theme-color-preset-dark, body.rp-theme-dark, body.is-dark, html[data-rp-user-theme="dark"] body, html[data-rp-theme-mode="dark"] body, html[data-theme="dark"] body).woocommerce-cart .woocommerce-cart-form table .rp-cart-table-qty-btn {
    background: #171b21 !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Cart-specific legacy rules must consume the same typography tokens as the
   audit; these overrides remain active after the editor is closed. */
body.woocommerce-cart .cart_totals table.shop_table th {
    font-size: var(--rp-type-form_label-size, 13px) !important;
    font-weight: var(--rp-type-form_label-weight, 500) !important;
}

body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount bdi {
    font-size: var(--rp-type-price-size, 16px) !important;
    font-weight: var(--rp-type-price-weight, 700) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    font-size: var(--rp-type-button-size, 14px) !important;
    font-weight: var(--rp-type-button-weight, 500) !important;
}

body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name a,
body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-name a {
    font-size: var(--rp-type-product_detail_heading-size, 14px) !important;
    font-weight: var(--rp-type-product_detail_heading-weight, 500) !important;
}

body.woocommerce-cart .rp-cart-page-clear-all .rp-cart-sidebar-clear-text {
    font-size: var(--rp-type-button-size, 14px) !important;
    font-weight: var(--rp-type-button-weight, 500) !important;
}
/* Product rows own their surfaces; the shared table remains transparent. */
html body.woocommerce-cart form.woocommerce-cart-form > table.shop_table.shop_table_responsive {
  background: transparent !important;
}
html body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount,
html body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount bdi {
  color: var(--rp-theme-general-accent, #ff3152) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 32px !important;
  line-height: 1 !important;
  border-radius: 50%;
  background: transparent !important;
  transition: background-color 140ms ease-out, color 140ms ease-out;
}
html body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove:is(:hover, :focus-visible) {
  background: var(--rp-theme-general-accent, var(--rp-accent, #be123c)) !important;
  color: var(--rp-theme-general-on-accent, #fff) !important;
}

html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove a.remove {
  font-size: 32px !important;
}
html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Keep cart thumbnails independent of table compression. */
html body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img { width:76px !important; min-width:76px !important; max-width:76px !important; height:76px !important; object-fit:contain !important; flex-shrink:0 !important; }
@media (min-width:769px) { html body.woocommerce-cart .woocommerce-cart-form table.shop_table :is(td,th).product-remove { width:50px !important; min-width:50px !important; padding-inline:4px !important; } html body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail { width:92px !important; min-width:92px !important; } }

@media (min-width:769px) { html body.woocommerce-cart .woocommerce-cart-form table.shop_table :is(td,th).product-remove { width:58px !important; min-width:58px !important; } html body.woocommerce-cart .woocommerce-cart-form th.product-remove .rp-cart-page-clear-all { width:50px !important; min-width:0 !important; max-width:50px !important; padding-inline:2px !important; font-size:10px !important; white-space:normal !important; } }

/* Keep tablet cart content and totals in normal document flow. */
@media (max-width: 1100px) {
  html body.woocommerce-cart .woocommerce:has(.woocommerce-cart-form) { display: block !important; }
  html body.woocommerce-cart .woocommerce > :is(.woocommerce-cart-form, .cart-collaterals) { float: none !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; position: static !important; inset: auto !important; }
  html body.woocommerce-cart .cart-collaterals { margin-top: 20px !important; }
  html body.woocommerce-cart .cart-collaterals .cart_totals { float: none !important; width: 100% !important; max-width: 100% !important; position: static !important; inset: auto !important; }
  html body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name { width: auto !important; min-width: 0 !important; }
  html body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td.product-name a { word-break: normal !important; overflow-wrap: break-word !important; }
}

/* The custom cart stepper owns every inner surface, including native controls. */
html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .rp-cart-table-qty-stepper {
  background: var(--rp-theme-forms-background, var(--rp-theme-general-surface)) !important;
  border-color: var(--rp-theme-forms-border, var(--rp-theme-general-border)) !important;
}
html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .rp-cart-table-qty-stepper :is(.rp-cart-table-qty-input-wrap, .quantity, input.qty, .rp-cart-table-qty-btn) {
  background: var(--rp-theme-forms-background, var(--rp-theme-general-surface)) !important;
  color: var(--rp-theme-forms-text, var(--rp-theme-general-text)) !important;
  -webkit-text-fill-color: var(--rp-theme-forms-text, var(--rp-theme-general-text)) !important;
}
html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-inner-spin-button,
html body[class].woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .rp-cart-table-qty-stepper input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

html body[class]:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark).woocommerce-cart .rp-cart-table-qty-stepper,
html:is([data-rp-user-theme=dark], [data-rp-theme-mode=dark], [data-theme=dark]) body.woocommerce-cart .rp-cart-table-qty-stepper { color-scheme: dark; }

/* Keep the symbol on the side selected in WooCommerce, even in RTL cart rows. */
html body.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) .woocommerce-Price-amount.amount,
html body.woocommerce-cart :is(.woocommerce-cart-form, .cart_totals) .woocommerce-Price-amount.amount > bdi {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  direction: ltr !important;
  white-space: nowrap !important;
}
