/**
 * Website Cart — RR Shop native UI skin (1.3.4)
 * Scopes: .rr-cart / .rr-cc-shell / body.woocommerce-cart
 * No global button/input/form selectors.
 */

/* —— Tokens —— */
.rr-cart,
.rr-cc-shell.rr-cart-page,
body.woocommerce-cart .rr-cc-shell {
  --rr-c-bg: var(--rr-design-bg);
  --rr-c-card: var(--rr-design-white);
  --rr-c-brand: var(--rr-design-brand);
  --rr-c-brand-hover: var(--rr-design-brand-hover);
  --rr-c-brand-disabled: #9aada3;
  --rr-c-text: var(--rr-design-slate);
  --rr-c-muted: var(--rr-design-muted);
  --rr-c-danger: var(--rr-design-danger-soft);
  --rr-c-line: var(--rr-design-line);
  --rr-c-bar: var(--rr-design-bar);
  --rr-c-ok: var(--rr-design-brand-bright);
  --rr-c-ok-bg: var(--rr-design-tint-green);
  --rr-c-sale: var(--rr-design-danger-deep);
  --rr-c-max: 1240px;
  --rr-c-side: 370px;
  --rr-c-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --rr-c-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --rr-c-radius: 12px;
}

/* —— Page shell (cancel boxed Woo wrappers) —— */
.rr-cc-shell.rr-cart-page,
body.woocommerce-cart main.rr-cc-shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--rr-c-bg);
}
.rr-cc-shell.rr-cart-page > .woocommerce,
body.woocommerce-cart .rr-cc-shell > .woocommerce {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  float: none;
}

.rr-cart {
  font-family: var(--rr-c-sans);
  color: var(--rr-c-text);
  background: var(--rr-c-bg);
  line-height: 1.5;
}
.rr-cart *,
.rr-cart *::before,
.rr-cart *::after { box-sizing: border-box; }
.rr-cart img { max-width: 100%; height: auto; display: block; }
.rr-cart a { color: inherit; text-decoration: none; }
.rr-cart-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}

.rr-cart__wrap {
  width: min(100% - 48px, var(--rr-c-max));
  max-width: var(--rr-c-max);
  margin-inline: auto;
  padding: 28px 0 64px;
}

.rr-cart__crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rr-c-muted);
  margin-bottom: 16px;
}
.rr-cart__crumb a:hover { color: var(--rr-c-brand); }
.rr-cart__continue-mobile { display: none; }

.rr-cart__title {
  margin: 0;
  font-family: var(--rr-c-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--rr-c-brand);
  letter-spacing: -0.02em;
}
.rr-cart__count {
  margin: 6px 0 0;
  color: var(--rr-c-muted);
  font-size: 15px;
}

/* —— Layout: pragmatic ~65/35 when space allows —— */
.rr-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.rr-cart__main,
.rr-cart__side {
  min-width: 0;
}

/* —— Line items as cards —— */
.rr-cart__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rr-cart__item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto auto;
  gap: 14px 16px;
  align-items: center;
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 16px;
}
.rr-cart__thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--rr-design-radius-sm);
  overflow: hidden;
  background: var(--rr-c-bar);
  flex-shrink: 0;
}
.rr-cart__thumb img,
.rr-cart__thumb a {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rr-cart__name {
  margin: 0 0 4px;
  font-family: var(--rr-c-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rr-c-brand);
}
.rr-cart__name a,
.rr-cart__name a:visited {
  color: var(--rr-c-brand);
  text-decoration: none;
}
.rr-cart__name a:hover { color: var(--rr-c-brand-hover); }
.rr-cart__variant {
  margin: 0 0 6px;
  color: var(--rr-c-muted);
  font-size: 13px;
}
.rr-cart__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-c-ok-bg);
  color: var(--rr-c-ok);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.rr-cart__stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rr-c-ok);
}
.rr-cart__unit {
  margin: 0;
  font-weight: 500;
  color: var(--rr-c-text);
  white-space: nowrap;
}
.rr-cart__unit del,
.rr-cart .price del {
  color: var(--rr-c-muted);
  font-weight: 500;
  margin-right: 4px;
}
.rr-cart__unit ins,
.rr-cart .price ins {
  text-decoration: none;
  color: var(--rr-c-text);
  font-weight: 600;
}
.rr-cart__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rr-c-line);
  border-radius: 8px;
  background: var(--rr-design-white);
  overflow: hidden;
  min-height: 42px;
  width: 80px;
  justify-content: center;
}
.rr-cart__qty .quantity {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: 100%;
}
.rr-cart__qty .qty {
  width: 100%;
  min-width: 70px;
  max-width: 90px;
  min-height: 42px;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--rr-c-text);
}
.rr-cart__line-end { text-align: right; }
.rr-cart__line-total {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 16px;
  color: var(--rr-c-text);
  white-space: nowrap;
}
.rr-cart__remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rr-c-danger);
  font-size: 12px;
  line-height: 1.2;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}
.rr-cart__remove svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.rr-cart__remove:hover { color: #8a3838; }

.rr-cart__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 0;
}
.rr-cart__list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.rr-cart__list-footer a {
  font-weight: 600;
  color: var(--rr-c-brand);
}

/* Mobile coupon (details) */
.rr-cart__m-coupon {
  display: none;
  background: var(--rr-c-bar);
  border: 1px solid var(--rr-c-line);
  border-radius: 12px;
  padding: 4px 14px 14px;
  margin: 8px 0 0;
}
.rr-cart__m-coupon summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
}
.rr-cart__m-coupon summary::-webkit-details-marker { display: none; }

/* —— Summary card —— */
.rr-cart__summary,
.rr-cart .cart_totals {
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 22px;
}
.rr-cart__summary.is-sticky { position: sticky; top: 16px; }
.rr-cart__summary-title {
  margin: 0 0 16px;
  font-family: var(--rr-c-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--rr-c-brand);
}
.rr-cart__totals-table,
.rr-cart .cart_totals table {
  width: 100%;
  border: 0;
  margin: 0 0 12px;
  border-collapse: collapse;
}
.rr-cart__totals-table th,
.rr-cart__totals-table td,
.rr-cart .cart_totals table th,
.rr-cart .cart_totals table td {
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  background: transparent;
  vertical-align: top;
}
.rr-cart__totals-table th,
.rr-cart .cart_totals table th {
  color: var(--rr-c-muted);
  font-weight: 500;
  text-align: left;
  width: 55%;
  padding-right: 12px;
}
.rr-cart__totals-table td,
.rr-cart .cart_totals table td {
  text-align: right;
  font-weight: 600;
  color: var(--rr-c-text);
  width: 45%;
}
/*
 * Keep Order Summary as real label|amount rows.
 * Woo .shop_table_responsive otherwise stacks th/td and injects td::before labels.
 */
.rr-cart .cart_totals table.shop_table_responsive,
.rr-cart__totals-table.shop_table_responsive {
  display: table;
  width: 100%;
}
.rr-cart .cart_totals table.shop_table_responsive tbody,
.rr-cart__totals-table.shop_table_responsive tbody {
  display: table-row-group;
}
.rr-cart .cart_totals table.shop_table_responsive tr,
.rr-cart__totals-table.shop_table_responsive tr {
  display: table-row;
}
.rr-cart .cart_totals table.shop_table_responsive th,
.rr-cart .cart_totals table.shop_table_responsive td,
.rr-cart__totals-table.shop_table_responsive th,
.rr-cart__totals-table.shop_table_responsive td {
  display: table-cell;
  float: none;
}
.rr-cart .cart_totals table.shop_table_responsive td::before,
.rr-cart__totals-table.shop_table_responsive td::before {
  content: none;
  display: none;
}
.rr-cart .cart_totals .shipping th,
.rr-cart__totals-table .shipping th {
  vertical-align: top;
}
.rr-cart .cart_totals .shipping td .woocommerce-shipping-destination,
.rr-cart .cart_totals .shipping td .shipping-calculator-button,
.rr-cart__totals-table .shipping td .woocommerce-shipping-destination {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.rr-cart__total-row th,
.rr-cart__total-row td,
.rr-cart .cart_totals .order-total th,
.rr-cart .cart_totals .order-total td {
  border-top: 1px solid var(--rr-c-line);
  padding-top: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--rr-c-brand);
}
.rr-cart .cart_totals .shipping td,
.rr-cart__totals-table .shipping td {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rr-c-muted);
}
.rr-cart .cart_totals .shipping a,
.rr-cart__totals-table .shipping a {
  color: var(--rr-c-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rr-cart__coupon {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0 12px;
}
.rr-cart__coupon input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rr-c-line);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  height: 44px;
  background: var(--rr-design-white);
  color: var(--rr-c-text);
  font-size: 14px;
  line-height: 1.2;
}
.rr-cart__coupon input:focus {
  outline: none;
  border-color: var(--rr-c-brand);
  box-shadow: 0 0 0 3px var(--rr-design-shadow-brand-12);
}
.rr-cart__coupon .button,
.rr-cart__coupon button {
  min-height: 44px;
  height: 44px;
  border-radius: 8px;
  padding: 0 14px;
}

.rr-cart__trust {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--rr-c-muted);
  text-align: center;
}
.rr-cart__trust li {
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* —— Primary CTAs: white text on brand green (fix low-contrast) —— */
.rr-cart .rr-cart__btn-primary,
.rr-cart .rr-cart__btn-secondary,
.rr-cart .button.rr-cart__btn-secondary,
.rr-cart .button.rr-cart__update,
.rr-cart .wc-proceed-to-checkout .checkout-button,
.rr-cart a.checkout-button,
.rr-cart button[name="apply_coupon"],
.rr-cart button[name="update_cart"],
body.woocommerce-cart .rr-cart .button.alt,
body.woocommerce-cart .rr-cart a.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--rr-c-brand) !important;
  color: var(--rr-design-white) !important;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none;
}
.rr-cart .wc-proceed-to-checkout .checkout-button,
.rr-cart a.checkout-button {
  width: 100%;
}
.rr-cart .rr-cart__btn-primary:hover,
.rr-cart .rr-cart__btn-secondary:hover,
.rr-cart .wc-proceed-to-checkout .checkout-button:hover,
.rr-cart a.checkout-button:hover,
.rr-cart button[name="apply_coupon"]:hover,
.rr-cart button[name="update_cart"]:hover {
  background: var(--rr-c-brand-hover) !important;
  color: var(--rr-design-white) !important;
}
.rr-cart .rr-cart__btn-secondary,
.rr-cart button[name="apply_coupon"],
.rr-cart button[name="update_cart"] {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.rr-cart button.rr-cart__update:disabled,
.rr-cart button[name="update_cart"]:disabled,
.rr-cart button.rr-cart__update:disabled:hover,
.rr-cart button[name="update_cart"]:disabled:hover {
  background: var(--rr-c-brand-disabled) !important;
  color: var(--rr-design-white) !important;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

/* —— Empty —— */
.rr-cart__empty { margin-top: 28px; }
.rr-cart__empty-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 40px 28px;
}
.rr-cart__empty-icon {
  margin: 0 auto 16px;
  color: var(--rr-c-brand);
}
.rr-cart__empty-card h2 {
  margin: 0 0 8px;
  font-family: var(--rr-c-serif);
  color: var(--rr-c-brand);
}
.rr-cart__empty-card p { margin: 0 0 20px; color: var(--rr-c-muted); }
.rr-cart__text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--rr-c-brand);
}

/* —— Related —— */
.rr-cart__related-block { margin-top: 28px; }
.rr-cart__related-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rr-cart__related-head h2 {
  margin: 0;
  font-family: var(--rr-c-serif);
  font-size: 22px;
  color: var(--rr-c-brand);
}
.rr-cart__related-head p { margin: 4px 0 0; color: var(--rr-c-muted); font-size: 14px; }
.rr-cart__related-head a { font-weight: 600; color: var(--rr-c-brand); }
.rr-cart .cross-sells > h2 { display: none; }
.rr-cart__related-grid ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rr-cart__related-grid ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: 12px;
  padding: 10px;
}

/* —— Notices —— */
.rr-cart .woocommerce-message,
.rr-cart .woocommerce-info,
.rr-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error {
  border-radius: var(--rr-design-radius-sm);
  border-top-color: var(--rr-c-brand);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .rr-cart__layout { grid-template-columns: 1fr; }
  .rr-cart__summary.is-sticky { position: static; }
  .rr-cart__related-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .rr-cart__crumb { display: none; }
  .rr-cart__continue-mobile {
    display: inline-flex;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--rr-c-brand);
    font-size: 14px;
  }
  .rr-cart__list-footer { display: none; }
  .rr-cart__m-coupon { display: block; }
  .rr-cart__summary .rr-cart__coupon { display: none; }
  .rr-cart__list { gap: 12px; }
  /*
   * Compact card: thumb beside title; unit/qty/total+remove on one controls row.
   * Replaces prior flex-wrap + column stack that left empty space beside the thumb.
   */
  .rr-cart__item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info info"
      "unit qty end";
    gap: 8px 10px;
    align-items: center;
    padding: 12px;
    min-height: 0;
  }
  .rr-cart__thumb {
    grid-area: thumb;
    width: 88px;
    height: 88px;
    flex: none;
    align-self: start;
  }
  .rr-cart__info {
    grid-area: info;
    min-width: 0;
    align-self: start;
  }
  .rr-cart__name {
    font-size: 15px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .rr-cart__unit {
    grid-area: unit;
    margin: 0;
    flex: none;
    text-align: left;
    font-size: 14px;
  }
  .rr-cart__qty {
    grid-area: qty;
    flex: none;
    width: 72px;
    min-height: 40px;
    justify-self: center;
  }
  .rr-cart__qty .qty {
    min-width: 56px;
    max-width: 72px;
    min-height: 40px;
  }
  .rr-cart__line-end {
    grid-area: end;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    justify-self: end;
  }
  .rr-cart__line-total { margin: 0; font-size: 15px; }
  .rr-cart__actions {
    margin-top: 12px;
    justify-content: stretch;
  }
  .rr-cart__actions .rr-cart__update,
  .rr-cart__actions button[name="update_cart"] {
    width: 100%;
  }
  .rr-cart__summary,
  .rr-cart .cart_totals {
    padding: 16px;
  }
  .rr-cart__totals-table th,
  .rr-cart__totals-table td,
  .rr-cart .cart_totals table th,
  .rr-cart .cart_totals table td {
    padding: 6px 0;
  }
  .rr-cart__trust { font-size: 10px; gap: 4px 10px; }
}

@media (max-width: 600px) {
  .rr-cart__item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info info"
      "unit qty end";
    gap: 8px 10px;
    padding: 12px;
  }
  .rr-cart__thumb {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 430px) {
  .rr-cart__wrap { width: min(100% - 20px, var(--rr-c-max)); padding-top: 18px; }
  .rr-cart__item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 8px 8px;
    padding: 12px;
  }
  .rr-cart__thumb {
    width: 80px;
    height: 80px;
  }
  .rr-cart__info { display: flex; flex-direction: column; gap: 4px; }
  .rr-cart__qty { width: 68px; }
  .rr-cart__related-grid ul.products { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rr-cart__trust {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 4px;
  }
}

@media (max-width: 320px) {
  .rr-cart__wrap { width: min(100% - 16px, var(--rr-c-max)); }
  .rr-cart__related-grid ul.products { grid-template-columns: 1fr; }
  .rr-cart__coupon { flex-direction: column; }
}

/*
 * Host Cart: WooCommerce Cart Blocks (not classic .rr-cart).
 * Real selectors: .wc-block-cart / .wc-block-cart-items / order-summary / totals.
 * One card for items + one card for totals (no nested bordered panels).
 */
body.woocommerce-cart {
  --rr-c-bg: var(--rr-design-bg);
  --rr-c-card: var(--rr-design-white);
  --rr-c-brand: var(--rr-design-brand);
  --rr-c-brand-hover: var(--rr-design-brand-hover);
  --rr-c-text: var(--rr-design-text);
  --rr-c-muted: var(--rr-design-muted);
  --rr-c-line: var(--rr-design-line);
  --rr-c-bar: var(--rr-design-bar);
  --rr-c-sale: var(--rr-design-danger-deep);
  --rr-c-max: 1240px;
  --rr-c-side: 370px;
  --rr-c-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --rr-c-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --rr-c-radius: 12px;
  background: var(--rr-c-bg);
}
body.woocommerce-cart .rr-cc-shell.rr-cart-page,
body.woocommerce-cart main.rr-cc-shell {
  background: var(--rr-c-bg);
  max-width: none;
  width: 100%;
}

/* —— Page container —— */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block,
body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
  box-sizing: border-box;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
  width: min(100% - 48px, var(--rr-c-max));
  max-width: var(--rr-c-max);
  margin: 28px auto 72px;
  padding: 0;
  font-family: var(--rr-c-sans);
  color: var(--rr-c-text);
  background: transparent;
}

/*
 * Two-column shell — visual padding/borders here.
 * Woo 65%/35% beat + bill `order` live only in #rr2-cart-final-override.
 */
body.woocommerce-cart .wc-block-cart .wc-block-components-main {
  padding: 20px 22px;
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  box-sizing: border-box;
  min-width: 0;
}
body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar {
  min-width: 0;
  box-sizing: border-box;
}

/* Single Totals card — strip nested borders from Woo/Elementor panels */
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 22px 22px 20px;
  box-sizing: border-box;
}
body.woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-wrapper,
body.woocommerce-cart .wc-block-cart .wc-block-components-panel,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-coupon {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/*
 * Order summary flex — ONLY direct children get order.
 * Woo wraps Subtotal/Shipping/Discount/Taxes in
 * .wp-block-woocommerce-cart-order-summary-totals-block.
 * Prior order:1–8 on nested blocks left totals-block at order:0 →
 * Free shipping / totals appeared ABOVE "CART TOTALS". Fixed in
 * #rr2-cart-final-override; do not reintroduce nested order here.
 */
body.woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon {
  margin-top: 14px;
  padding-top: 4px;
}

/* —— Line items —— */
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart table.wc-block-cart-items {
  width: 100%;
  max-width: 100%;
  border: 0;
  table-layout: auto;
}
body.woocommerce-cart .wc-block-cart-items th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rr-c-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--rr-c-line) !important;
  padding: 0 8px 12px;
  background: transparent !important;
}
body.woocommerce-cart .wc-block-cart-items td {
  border-bottom: 1px solid var(--rr-c-line) !important;
  padding: 18px 8px;
  vertical-align: middle;
  background: transparent !important;
}
body.woocommerce-cart .wc-block-cart-items__row:last-child td {
  border-bottom: 0 !important;
}
body.woocommerce-cart .wc-block-cart-items__header-image,
body.woocommerce-cart .wc-block-cart-item__image {
  width: 88px;
  max-width: 88px;
}
body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
  width: 84px !important;
  height: 84px !important;
  max-width: 84px !important;
  object-fit: cover;
  border-radius: var(--rr-design-radius-sm);
  background: var(--rr-c-bar);
  display: block;
}
body.woocommerce-cart .wc-block-cart-item__product {
  padding-left: 14px;
  min-width: 0;
}
body.woocommerce-cart .wc-block-cart-item__wrap {
  min-width: 0;
  gap: 6px;
}
body.woocommerce-cart .wc-block-components-product-name {
  font-family: var(--rr-c-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--rr-c-text);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.woocommerce-cart .wc-block-components-product-name:hover {
  color: var(--rr-c-brand);
}
body.woocommerce-cart .wc-block-components-product-metadata {
  color: var(--rr-c-muted);
  font-size: 13px;
  line-height: 1.4;
}
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-cart-item__prices {
  font-size: 14px;
  color: var(--rr-c-text);
  margin-top: 2px;
}
body.woocommerce-cart .wc-block-components-product-price del,
body.woocommerce-cart .wc-block-cart-item__prices del {
  color: var(--rr-c-muted);
  opacity: 0.85;
}
body.woocommerce-cart .wc-block-components-product-price ins,
body.woocommerce-cart .wc-block-cart-item__prices ins {
  text-decoration: none;
  color: var(--rr-c-sale);
  font-weight: 600;
  background: transparent;
}
body.woocommerce-cart .wc-block-cart-item__total {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  min-width: 0;
}
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
  font-family: var(--rr-c-serif);
  font-size: 16px;
}

/* Qty centered; remove separated */
body.woocommerce-cart .wc-block-cart-item__quantity {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 0;
}
body.woocommerce-cart .wc-block-components-quantity-selector {
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-design-radius-sm);
  overflow: hidden;
  min-height: 40px;
  width: 112px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--rr-design-white);
}
body.woocommerce-cart .wc-block-components-quantity-selector__button {
  min-width: 36px;
  color: var(--rr-c-brand);
}
body.woocommerce-cart .wc-block-components-quantity-selector__input {
  text-align: center !important;
  min-width: 0 !important;
  color: var(--rr-c-text);
}
body.woocommerce-cart .wc-block-cart-item__remove-link {
  margin-top: 2px;
  font-size: 12px;
  color: var(--rr-c-muted) !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: var(--rr-design-danger) !important;
}

/* —— Compact bill rows —— */
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block .wc-block-cart__totals-title {
  font-family: var(--rr-c-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--rr-c-brand);
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-item {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: 14px;
  color: var(--rr-c-text);
  background: transparent !important;
}
body.woocommerce-cart .wc-block-components-totals-item__label {
  color: var(--rr-c-muted);
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
}
body.woocommerce-cart .wc-block-components-totals-item__value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}
body.woocommerce-cart .wc-block-components-totals-item__description {
  width: 100%;
  flex-basis: 100%;
  color: var(--rr-c-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}
body.woocommerce-cart .wc-block-components-totals-discount .wc-block-components-totals-item__value,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-discount-block .wc-block-components-totals-item__value {
  color: var(--rr-c-sale);
}
body.woocommerce-cart .wc-block-components-totals-footer-item {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--rr-c-line) !important;
  border-bottom: 0 !important;
  padding: 14px 0 4px !important;
  margin: 8px 0 0 !important;
  background: transparent !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  color: var(--rr-c-text);
  font-family: var(--rr-c-serif);
  font-size: 18px;
  font-weight: 600;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
  font-family: var(--rr-c-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--rr-c-brand);
  white-space: nowrap;
}

/* Coupon — compact, not a second card */
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
  font-size: 14px;
  font-weight: 600;
  color: var(--rr-c-brand) !important;
  padding: 8px 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wc-block-components-totals-coupon__input,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex: 1 1 140px;
  min-width: 0 !important;
  max-width: 100%;
}
body.woocommerce-cart .wc-block-components-totals-coupon__input input,
body.woocommerce-cart .wc-block-components-totals-coupon__form input[type="text"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid var(--rr-c-line) !important;
  border-radius: 8px !important;
  min-height: 44px;
  background: var(--rr-design-white) !important;
  padding: 10px 12px !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__button {
  flex: 0 0 auto;
  background: var(--rr-c-brand) !important;
  color: var(--rr-design-white) !important;
  border: 0 !important;
  border-radius: 8px !important;
  min-height: 44px;
  font-weight: 600 !important;
  white-space: nowrap;
}

/* Checkout CTA — only outer .wc-block-cart__submit owns gap above button (nested DOM). */
body.woocommerce-cart .wc-block-cart__submit {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wc-block-cart__submit .wc-block-cart__submit-container,
body.woocommerce-cart .wc-block-cart__submit-container {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block:not(.wc-block-cart__submit) {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block.wc-block-cart__submit {
  margin-top: 16px; /* same node as .wc-block-cart__submit — single gap, not stacked */
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart .wc-block-components-button.wp-element-button:not(.is-link):not(.wc-block-components-quantity-selector__button):not(.wc-block-cart-item__remove-link) {
  background: var(--rr-c-brand) !important;
  color: var(--rr-design-white) !important;
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 50px;
  font-weight: 700 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart .wc-block-components-button.wp-element-button:not(.is-link):hover {
  background: var(--rr-c-brand-hover) !important;
  color: var(--rr-design-white) !important;
}

/* Cross-sells under items stay inside main flow */
body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block {
  margin-top: 20px;
  min-width: 0;
  max-width: 100%;
}

/* Classic shortcode cart WITHOUT .rr-cart (fallback) */
body.woocommerce-cart:not(:has(.rr-cart)) .woocommerce {
  width: min(100% - 48px, var(--rr-c-max));
  max-width: var(--rr-c-max);
  margin: 28px auto 72px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.woocommerce-cart .woocommerce-cart-form {
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 16px 20px;
}
body.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 20px 22px;
  float: none;
  width: 100%;
  max-width: var(--rr-c-side);
  margin-left: auto;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--rr-c-brand) !important;
  color: var(--rr-design-white) !important;
  border-radius: 12px;
  min-height: 48px;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

/* —— Tablet / Mobile: stack; beat Woo @container 80px+132px row —— */
@media (max-width: 960px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart,
  body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.woocommerce-cart .wc-block-cart .wc-block-components-main,
  body.woocommerce-cart .wc-block-cart .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 699px) {
  /*
   * Host DOM: quantity lives inside td.product > .wrap — not a tr grid child.
   * Only place direct td children on the row grid; qty flows in product column.
   */
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    padding: 16px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    width: 84px !important;
    max-width: 84px !important;
  }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0 !important;
    min-width: 0 !important;
  }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity {
    /* nested in product wrap — no grid-column/row on tr */
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 12px !important;
    margin-top: 8px;
  }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  body.woocommerce-cart .wc-block-components-quantity-selector {
    margin: 0;
  }
}

@media (max-width: 430px) {
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-cart:not(:has(.rr-cart)) .woocommerce {
    width: min(100% - 20px, var(--rr-c-max));
    margin-top: 18px;
    margin-bottom: 48px;
  }
  body.woocommerce-cart .wc-block-cart .wc-block-components-main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
    padding: 14px 14px !important;
  }
  body.woocommerce-cart .wc-block-cart-item__image img,
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
  }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
  body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
  body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
    font-size: 22px;
  }
  body.woocommerce-cart .wc-block-components-totals-coupon__form {
    flex-direction: column;
  }
  body.woocommerce-cart .wc-block-components-totals-coupon__button,
  body.woocommerce-cart .wc-block-cart__submit-button {
    width: 100% !important;
  }
  body.woocommerce-cart .wc-block-components-product-name {
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart {
    width: min(100% - 16px, var(--rr-c-max));
  }
}

/*
 * ——— Elementor Pro Cart Widget ———
 * DOM ownership (1.3.22 PHP): column-start|end are direct children of .e-cart__container.
 * Theme closes .rr-cart before woocommerce_before_cart_collaterals — do not use
 * grid-column reparenting (invalid when column-end was nested under .rr-cart__wrap).
 * Sole PC grid = .e-cart__container. Neutralize RR .rr-cart__layout 2-col inside.
 * Classic .rr-cart outside Elementor keeps its own dual-rail rules above.
 */
body.woocommerce-cart .elementor-widget-woocommerce-cart {
  --rr-c-bg: var(--rr-design-bg);
  --rr-c-card: var(--rr-design-white);
  --rr-c-brand: var(--rr-design-brand);
  --rr-c-brand-hover: var(--rr-design-brand-hover);
  --rr-c-line: var(--rr-design-line);
  --rr-c-max: 1240px;
  --rr-c-side: 360px;
  --rr-c-radius: 12px;
  --rr-c-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --rr-c-sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  background: transparent;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart > .elementor-widget-container,
body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce {
  max-width: none;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  float: none;
  margin: 0;
  padding: 0;
}

/* Unique PC two-column: items | summary */
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, var(--rr-c-side)) !important;
  gap: 28px !important;
  align-items: start !important;
  width: min(100% - 48px, var(--rr-c-max)) !important;
  max-width: var(--rr-c-max) !important;
  margin: 28px auto 72px !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-start,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-inner {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* RR template inside left column — no second dual-rail / page wrap */
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart {
  background: transparent;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__layout {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin-top: 12px !important;
  width: 100% !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
/* Totals rendered in .e-cart__column-end — empty RR side must not reserve a track */
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__side {
  display: none !important;
}

/* Strip Elementor section chrome; keep .rr-cart__item cards as the bordered surface */
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart-section,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-shop-table,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-start .woocommerce-cart-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__main {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

/* Right: single Order Summary card */
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals.rr-cart__summary,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end .cart_totals {
  background: var(--rr-c-card);
  border: 1px solid var(--rr-c-line);
  border-radius: var(--rr-c-radius);
  padding: 22px;
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
  box-sizing: border-box;
  position: sticky;
  top: 16px;
}

/*
 * Coupons: keep RR Shop summary form (nonce + apply_coupon).
 * Hide Elementor .coupon.e-cart-section duplicate. Hide RR m-coupon under Elementor
 * (summary already in column-end on all breakpoints).
 */
body.woocommerce-cart .elementor-widget-woocommerce-cart .coupon.e-cart-section {
  display: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__m-coupon {
  display: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__summary .rr-cart__coupon {
  display: flex !important;
  margin-top: 12px;
}

/*
 * 1.3.23 Visual unification (Elementor Host) — colors / type / controls only.
 * Do not change .e-cart__container grid columns, order, or node placement.
 */
body.woocommerce-cart .elementor-widget-woocommerce-cart {
  --rr-c-text: var(--rr-design-slate);
  --rr-c-danger: var(--rr-design-danger-soft);
  --rr-c-brand-disabled: #9aada3;
  color: var(--rr-c-text);
  font-family: var(--rr-c-sans);
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__item {
  grid-template-columns: 84px minmax(0, 1fr) auto auto auto;
  background: var(--rr-design-white);
  border: 1px solid var(--rr-c-line);
  border-radius: 12px;
  padding: 16px;
  min-height: 0;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__stock {
  width: fit-content;
  max-width: 100%;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--rr-design-radius-sm);
  overflow: hidden;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__name,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__name a,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__name a:visited {
  color: var(--rr-c-brand) !important;
  font-family: var(--rr-c-serif);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__name a:hover {
  color: var(--rr-c-brand-hover) !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__unit {
  color: var(--rr-c-text);
  font-weight: 500;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__line-total {
  color: var(--rr-c-text);
  font-weight: 700;
  font-size: 16px;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__qty {
  width: 80px;
  min-height: 42px;
  border: 1px solid var(--rr-c-line);
  border-radius: 8px;
  background: var(--rr-design-white);
  box-shadow: none !important;
  outline: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__qty .qty,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__qty input.qty {
  width: 100%;
  min-width: 70px;
  max-width: 90px;
  min-height: 42px;
  font-size: 15px;
  color: var(--rr-c-text);
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__remove,
body.woocommerce-cart .elementor-widget-woocommerce-cart a.rr-cart__remove.remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--rr-c-danger) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__remove svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__remove:hover {
  color: #8a3838 !important;
}

/* Buttons — kill Elementor blue outline / fill */
body.woocommerce-cart .elementor-widget-woocommerce-cart button,
body.woocommerce-cart .elementor-widget-woocommerce-cart .button,
body.woocommerce-cart .elementor-widget-woocommerce-cart a.button {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart button.rr-cart__update,
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="update_cart"],
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon .button,
body.woocommerce-cart .elementor-widget-woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .elementor-widget-woocommerce-cart a.checkout-button {
  min-height: 44px;
  background: var(--rr-c-brand) !important;
  background-color: var(--rr-c-brand) !important;
  color: var(--rr-design-white) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 600;
  box-shadow: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .elementor-widget-woocommerce-cart a.checkout-button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--rr-design-radius-sm) !important;
  font-weight: 700;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart button.rr-cart__update:hover:not(:disabled),
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="update_cart"]:hover:not(:disabled),
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon .button:hover,
body.woocommerce-cart .elementor-widget-woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .elementor-widget-woocommerce-cart a.checkout-button:hover {
  background: var(--rr-c-brand-hover) !important;
  background-color: var(--rr-c-brand-hover) !important;
  color: var(--rr-design-white) !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart button.rr-cart__update:disabled,
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="update_cart"]:disabled,
body.woocommerce-cart .elementor-widget-woocommerce-cart button.rr-cart__update:disabled:hover,
body.woocommerce-cart .elementor-widget-woocommerce-cart button[name="update_cart"]:disabled:hover {
  background: var(--rr-c-brand-disabled) !important;
  background-color: var(--rr-c-brand-disabled) !important;
  color: var(--rr-design-white) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

/* Order Summary compact hierarchy */
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals.rr-cart__summary,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end .cart_totals {
  padding: 18px 20px;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__summary-title {
  margin: 0 0 12px;
  font-family: var(--rr-c-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--rr-c-brand);
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__totals-table th,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__totals-table td,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals table th,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals table td {
  padding: 7px 0;
  font-size: 14px;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__total-row th,
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__total-row td,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals .order-total td {
  font-size: 22px;
  font-weight: 700;
  color: var(--rr-c-brand) !important;
  padding-top: 12px;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals .shipping td {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rr-c-muted);
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals .shipping a {
  color: var(--rr-c-brand) !important;
  font-weight: 600;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__summary .rr-cart__coupon {
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon input {
  border-radius: 8px;
  min-height: 44px;
  height: 44px;
  border: 1px solid var(--rr-c-line);
  box-shadow: none !important;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__trust {
  margin-top: 12px;
  font-size: 11px;
  gap: 6px 14px;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__trust li {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__container {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100% - 24px, var(--rr-c-max)) !important;
    gap: 20px !important;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals.rr-cart__summary,
  body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end .cart_totals {
    position: static;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__qty {
    width: 76px;
    max-width: 100%;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon {
    flex-wrap: wrap;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon input,
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__coupon .button {
    min-width: 0;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__summary .rr-cart__coupon {
    display: flex !important; /* override classic mobile hide — Elementor has no m-coupon */
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__m-coupon {
    display: none !important;
  }
  /* Same compact item grid as classic .rr-cart (Elementor hosts the same markup) */
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info info"
      "unit qty end";
    gap: 8px 10px;
    align-items: center;
    padding: 12px;
    min-height: 0;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__thumb {
    grid-area: thumb;
    width: 88px;
    height: 88px;
    align-self: start;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__info {
    grid-area: info;
    min-width: 0;
    align-self: start;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__unit {
    grid-area: unit;
    margin: 0;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__qty {
    grid-area: qty;
    width: 72px;
    justify-self: center;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__line-end {
    grid-area: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    justify-self: end;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__actions {
    margin-top: 12px;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__actions .rr-cart__update,
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__actions button[name="update_cart"] {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__thumb {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 430px) {
  body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__container {
    width: min(100% - 16px, var(--rr-c-max)) !important;
    margin-top: 18px !important;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals.rr-cart__summary {
    padding: 16px;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__thumb {
    width: 80px;
    height: 80px;
  }
  body.woocommerce-cart .elementor-widget-woocommerce-cart .rr-cart__trust {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}
