/**
 * RootCleanse Cart + Checkout
 * Loaded on cart, checkout, order-received.
 * Works with classic shortcode templates (preferred) and block fallback.
 */

/* =========================================================
   CART + CHECKOUT + MINI-CART - RootCleanse
   ========================================================= */

.rc-page-cart,
.rc-page-checkout {
  background: #f7f6f1 !important;
  padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

/* Steps */
.rc-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  justify-content: flex-start;
}
.rc-steps__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted, #5c6350);
  opacity: .55;
}
.rc-steps__item::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
}
.rc-steps__item.is-current {
  opacity: 1;
  color: var(--leaf, #2f6b32);
}
.rc-steps__item.is-done {
  opacity: 1;
  color: var(--charcoal, #1a1a1a);
}
.rc-steps__item.is-done a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rc-steps__item + .rc-steps__item::after {
  /* spacer handled by gap */
}

/* Delivery progress */
.rc-delivery {
  margin: 0 0 1.15rem;
  padding: .9rem 1rem;
  background: var(--mist, #f4f8e8);
  border-radius: .85rem;
  border: 1px solid rgba(47, 107, 50, 0.12);
}
.rc-delivery__msg {
  margin: 0 0 .55rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--leaf, #2f6b32);
}
.rc-delivery__msg--ok { color: var(--leaf, #2f6b32); }
.rc-delivery__track {
  height: .45rem;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  overflow: hidden;
}
.rc-delivery__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime, #a8c73a), var(--leaf, #2f6b32));
  border-radius: 999px;
  transition: width .35s ease;
}

/* Hide any coupon-code text Woo still injects into totals */
.rc-cart-totals .cart-discount .woocommerce-remove-coupon {
  font-size: .82rem;
  font-weight: 600;
  margin-left: .35rem;
  color: var(--muted, #5c6350);
}
.rc-cart-totals .cart-discount th small,
.rc-cart-totals .cart-discount td .coupon-name,
.woocommerce-checkout-review-order-table .cart-discount th .code {
  /* no-op hook for plugins */
}

/* Mini-cart drawer: premium styles live in styles.css (sitewide).
   Do not override here — was fighting the pop-out layout. */
.rc-mini-cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.rc-mini-cart-empty p { margin: 0 0 1rem; color: var(--muted, #5c6350); }

/* ---- Full cart page ---- */
.rc-cart {
  max-width: 72rem;
  margin: 0 auto;
}
.rc-cart__header { margin-bottom: 1.75rem; }
.rc-cart__title {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0;
  line-height: 1.15;
  color: var(--charcoal, #1a1a1a);
}
.rc-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 900px) {
  .rc-cart__layout { grid-template-columns: 1fr; }
}
.rc-cart__items {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: .25rem 1.35rem 1.35rem;
  box-shadow: 0 10px 40px rgba(26,26,26,.04);
  min-width: 0;
}
.rc-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.rc-cart-item:last-of-type { border-bottom: none; }
@media (max-width: 520px) {
  .rc-cart-item { grid-template-columns: 88px 1fr; gap: .85rem; }
}
.rc-cart-item__media {
  width: 112px;
  max-width: 100%;
}
@media (max-width: 520px) {
  .rc-cart-item__media { width: 88px; }
}
.rc-cart-item__media a {
  display: block;
  line-height: 0;
  border-radius: .9rem;
  overflow: hidden;
}
.rc-cart-item__media img,
.rc-cart-item__media a img,
.rc-cart-item__img {
  width: 112px !important;
  height: 112px !important;
  max-width: 100% !important;
  aspect-ratio: 1;
  object-fit: cover !important;
  border-radius: .9rem;
  background: var(--mist, #f4f8e8);
  display: block !important;
}
@media (max-width: 520px) {
  .rc-cart-item__media img,
  .rc-cart-item__media a img,
  .rc-cart-item__img {
    width: 88px !important;
    height: 88px !important;
  }
}
.rc-cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.rc-cart-item__name {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.05rem;
  margin: 0 0 .35rem;
  line-height: 1.3;
}
.rc-cart-item__name a {
  color: inherit;
  text-decoration: none;
}
.rc-cart-item__name a:hover { color: var(--leaf, #2f6b32); }
.rc-cart-item__unit {
  margin: 0;
  font-size: .88rem;
  color: var(--muted, #5c6350);
}
.rc-cart-item__line-total {
  font-weight: 700;
  color: var(--leaf, #2f6b32);
  white-space: nowrap;
}
.rc-cart-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: .85rem;
}
.rc-cart-item__actions .quantity {
  display: inline-flex;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.rc-cart-item__actions .quantity .qty {
  width: 3rem;
  height: 2.5rem;
  border: none;
  text-align: center;
  font-weight: 600;
  background: transparent;
}
.rc-cart-item__remove {
  font-size: .88rem;
  color: var(--muted, #5c6350);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rc-cart-item__remove:hover { color: #a33; }

.rc-cart__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: .5rem;
}
.rc-cart__coupon {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  flex: 1 1 auto;
}
.rc-cart__coupon .input-text {
  flex: 1 1 10rem;
  min-width: 10rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-family: inherit;
  background: #fff;
}

.rc-cart__summary {
  min-width: 0;
}
.rc-cart__summary-card {
  position: sticky;
  top: 6rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 16px 48px rgba(26,26,26,.06);
  overflow: hidden; /* never leak cross-sell cards into summary */
}
.rc-cart__summary-title {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

/* Big green discount callout in order summary */
.rc-cart__discount-banner {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: linear-gradient(135deg, #eef8d4, #f4f8e8);
  border: 1.5px solid rgba(47, 107, 50, 0.22);
}
.rc-cart__discount-banner strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2f6b32;
  margin-bottom: .35rem;
}
.rc-cart__discount-banner__amt {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e4a22;
}
/* Never surface raw coupon codes in the basket UI */
.rc-cart__discount-code,
.rc-cart-discount-row__code,
.cart-drawer .coupon-code,
.woocommerce-remove-coupon[data-coupon]::before {
  /* data-coupon stays for JS; not visible text */
}

.rc-cart-totals table.shop_table {
  border: none !important;
  margin: 0 0 1rem;
  width: 100%;
}
.rc-cart-totals table.shop_table th,
.rc-cart-totals table.shop_table td {
  border: none !important;
  padding: .55rem 0 !important;
  background: transparent !important;
  font-size: .95rem;
  vertical-align: top;
}
.rc-cart-totals table.shop_table th {
  font-weight: 500;
  color: var(--muted, #5c6350);
  text-align: left;
}
.rc-cart-totals table.shop_table td {
  text-align: right;
  font-weight: 600;
}
/* Discount row highlight in totals table */
.rc-cart-totals tr.cart-discount th,
.rc-cart-totals tr.rc-cart-discount-row th,
.rc-cart-totals tr.cart-discount td,
.rc-cart-totals tr.rc-cart-discount-row td {
  color: #2f6b32 !important;
  background: rgba(168, 199, 58, 0.12) !important;
  padding: .65rem .55rem !important;
}
.rc-cart-totals tr.cart-discount th,
.rc-cart-totals tr.rc-cart-discount-row th {
  border-radius: .55rem 0 0 .55rem;
}
.rc-cart-totals tr.cart-discount td,
.rc-cart-totals tr.rc-cart-discount-row td {
  border-radius: 0 .55rem .55rem 0;
}
.rc-cart-discount-row__label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}
.rc-cart-discount-row__code {
  display: inline-block;
  margin-top: .15rem;
  font-weight: 800;
  font-size: .88rem;
  color: #1e4a22;
}
.rc-cart-discount-row__amount,
.rc-cart-totals tr.cart-discount .woocommerce-Price-amount {
  font-weight: 800 !important;
  color: #2f6b32 !important;
}
.rc-cart-totals tr.order-total th,
.rc-cart-totals tr.order-total td {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--charcoal, #1a1a1a) !important;
  padding-top: .9rem !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
}

/* Full-width cross-sells — never crammed into sidebar */
.rc-cart__cross-sells {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 0.25rem;
}
.rc-cart__cross-sells > .cross-sells > h2,
.rc-cart__cross-sells .cross-sells > h2 {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 0 0 1.15rem;
  color: var(--charcoal, #1a1a1a);
}
.rc-cart__cross-sells ul.products,
.rc-cart__cross-sells .products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.15rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
@media (max-width: 800px) {
  .rc-cart__cross-sells ul.products,
  .rc-cart__cross-sells .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .rc-cart__cross-sells ul.products,
  .rc-cart__cross-sells .products {
    grid-template-columns: 1fr !important;
  }
}
.rc-cart__cross-sells .product,
.rc-cart__cross-sells li.product,
.rc-cart__cross-sells .product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
.rc-cart__cross-sells .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26,26,26,.05);
}
.rc-cart__cross-sells .product-card__media {
  aspect-ratio: 1;
  background: var(--mist, #f4f8e8);
  overflow: hidden;
}
.rc-cart__cross-sells .product-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.rc-cart__cross-sells .product-card__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  min-width: 0;
}
.rc-cart__cross-sells .product-card__title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.rc-cart__cross-sells .product-card__desc {
  font-size: .85rem;
  color: var(--muted, #5c6350);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-cart__cross-sells .product-card__price {
  font-weight: 700;
  color: var(--leaf, #2f6b32);
  margin: .15rem 0;
}
.rc-cart__cross-sells .product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .35rem;
}
.rc-cart__cross-sells .product-card__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  justify-content: center;
}

/* Quantity control on cart line */
.rc-cart-item__actions .quantity {
  display: inline-flex !important;
  align-items: center;
  border: 1.5px solid rgba(0,0,0,.12) !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: #fff;
  min-height: 2.5rem;
}
.rc-cart-item__actions .quantity .qty,
.rc-cart-item__actions input.qty {
  width: 3rem !important;
  min-width: 3rem;
  height: 2.5rem !important;
  border: none !important;
  text-align: center !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
.rc-cart-item__actions .quantity .qty::-webkit-outer-spin-button,
.rc-cart-item__actions .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rc-cart-item__remove {
  color: #8a3a32 !important;
  font-weight: 600;
}
.rc-cart__checkout-btn .checkout-button,
.rc-cart__checkout-btn a.button {
  display: flex !important;
  width: 100% !important;
  justify-content: center;
  align-items: center;
  min-height: 3.15rem;
  background: var(--leaf, #2f6b32) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}
.rc-cart__checkout-btn .checkout-button:hover {
  filter: brightness(1.06);
}
/* Trust list: SVG icons in cart.php — no ::before text (avoids encoding glitches) */
.rc-cart__trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: .9rem 0 0;
  border-top: 1px solid rgba(0,0,0,.06);
  display: grid;
  gap: .55rem;
  font-size: .86rem;
  color: var(--muted, #5c6350);
}
.rc-cart__trust li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding-left: 0;
  position: relative;
  line-height: 1.4;
}
.rc-cart__trust li::before {
  display: none !important;
  content: none !important;
}
.rc-cart__trust svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: .12rem;
  color: var(--leaf, #2f6b32);
}
.rc-cart__continue {
  display: inline-block;
  margin-top: 1rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--leaf, #2f6b32);
  text-decoration: none;
}
.rc-cart__continue:hover { text-decoration: underline; }

/* Empty cart */
.rc-cart-empty {
  text-align: center;
  max-width: 28rem;
  margin: 2rem auto;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
}
.rc-cart-empty__icon {
  color: var(--leaf, #2f6b32);
  margin-bottom: 1rem;
  opacity: .85;
}
.rc-cart-empty__title {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.75rem;
  margin: 0 0 .5rem;
}
.rc-cart-empty__text {
  color: var(--muted, #5c6350);
  margin: 0 0 1.5rem;
}

/* Hide default cart table chrome if any plugin reintroduces */
.rc-cart .shop_table.cart { display: none; }

/* ---- Checkout ---- */
.rc-checkout__header { margin-bottom: 1.75rem; }
.rc-checkout__title {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0;
}
.rc-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 960px) {
  .rc-checkout__layout { grid-template-columns: 1fr; }
  .rc-checkout__aside { order: -1; }
}
.rc-checkout__panel,
.rc-checkout__summary-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 12px 40px rgba(26,26,26,.04);
}
.rc-checkout__summary-card {
  position: sticky;
  top: 6rem;
}
.rc-checkout__panel-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.rc-checkout__panel-head h2 {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.25rem;
  margin: 0;
}
.rc-checkout__step-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--mist, #f4f8e8);
  color: var(--leaf, #2f6b32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* Checkout fields */
.rc-checkout .form-row {
  margin-bottom: .85rem !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.rc-checkout .form-row-first,
.rc-checkout .form-row-last {
  width: calc(50% - .4rem) !important;
  float: left !important;
}
.rc-checkout .form-row-first { margin-right: .8rem !important; }
.rc-checkout .form-row label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal, #1a1a1a);
  margin-bottom: .35rem;
  display: block;
}
.rc-checkout .input-text,
.rc-checkout select,
.rc-checkout textarea,
.rc-checkout .select2-container .select2-selection--single {
  width: 100% !important;
  border: 1.5px solid rgba(0,0,0,.12) !important;
  border-radius: .75rem !important;
  padding: .75rem .95rem !important;
  font-family: inherit !important;
  font-size: .95rem !important;
  background: #fff !important;
  min-height: 2.85rem;
  box-shadow: none !important;
}
.rc-checkout .input-text:focus,
.rc-checkout select:focus,
.rc-checkout textarea:focus {
  border-color: var(--leaf, #2f6b32) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 199, 58, 0.25) !important;
}
.rc-checkout .select2-container .select2-selection--single {
  height: auto !important;
  padding: .55rem .75rem !important;
}
.rc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4 !important;
  padding: 0 !important;
}
.rc-checkout .woocommerce-billing-fields h3,
.rc-checkout .woocommerce-shipping-fields h3,
.rc-checkout .woocommerce-additional-fields h3 {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: 1.05rem;
  margin: 1.25rem 0 .75rem;
}
.rc-checkout #ship-to-different-address label {
  font-weight: 600;
}

/* Order review table */
.rc-checkout__review .shop_table {
  border: none !important;
  margin: 0 0 1rem !important;
  width: 100%;
}
.rc-checkout__review .shop_table th,
.rc-checkout__review .shop_table td {
  border: none !important;
  padding: .55rem 0 !important;
  background: transparent !important;
  font-size: .92rem;
  vertical-align: top;
}
.rc-checkout__review .shop_table thead { display: none; }
.rc-checkout__review .product-name { text-align: left; font-weight: 600; }
.rc-checkout__review .product-total { text-align: right; white-space: nowrap; }
.rc-checkout__review .cart-subtotal th,
.rc-checkout__review .order-total th {
  text-align: left;
  color: var(--muted, #5c6350);
  font-weight: 500;
}
.rc-checkout__review .order-total th,
.rc-checkout__review .order-total td {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
  padding-top: .85rem !important;
}

/* Payment box */
.rc-checkout #payment {
  background: var(--mist, #f4f8e8) !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(47,107,50,.12) !important;
  padding: 1rem 1.1rem !important;
  margin-top: 1rem;
}
.rc-checkout #payment ul.payment_methods {
  list-style: none !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: none !important;
}
.rc-checkout #payment ul.payment_methods li {
  margin: 0 0 .65rem !important;
  padding: .75rem .85rem !important;
  background: #fff;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.06);
}
.rc-checkout #payment div.payment_box {
  background: transparent !important;
  padding: .5rem 0 0 !important;
  margin: 0 !important;
  color: var(--muted, #5c6350);
  font-size: .88rem;
}
.rc-checkout #payment div.payment_box::before { display: none !important; }
.rc-checkout #place_order,
.rc-checkout #payment #place_order {
  width: 100% !important;
  min-height: 3.2rem !important;
  background: var(--leaf, #2f6b32) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  margin-top: .5rem !important;
  float: none !important;
  padding: .9rem 1.25rem !important;
}
.rc-checkout #place_order:hover { filter: brightness(1.06); }
.rc-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: .88rem;
  color: var(--muted, #5c6350);
  margin-bottom: .75rem;
}
.rc-checkout__trust {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0,0,0,.06);
  display: grid;
  gap: .55rem;
}
.rc-checkout__trust li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  color: var(--muted, #5c6350);
}
.rc-checkout__trust svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--leaf, #2f6b32);
  flex-shrink: 0;
}

/* Thank you */
.rc-thankyou {
  max-width: 40rem;
  margin: 0 auto;
}
.rc-thankyou__success {
  text-align: center;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
}
.rc-thankyou__check {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--mist, #f4f8e8);
  color: var(--leaf, #2f6b32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.rc-thankyou__success h1 {
  font-family: var(--font-display, Outfit, sans-serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  margin: 0 0 .5rem;
}
.rc-thankyou__lead {
  color: var(--muted, #5c6350);
  margin: 0;
}
.rc-thankyou__meta {
  list-style: none !important;
  margin: 0 0 1.25rem !important;
  padding: 1.25rem !important;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  gap: .85rem;
}
.rc-thankyou__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}
.rc-thankyou__meta span {
  color: var(--muted, #5c6350);
  font-size: .9rem;
}
.rc-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Generic Woo notices on cart/checkout */
.rc-page-cart .woocommerce-message,
.rc-page-checkout .woocommerce-message,
.rc-page-cart .woocommerce-info,
.rc-page-checkout .woocommerce-info {
  border-radius: .9rem !important;
  border-top: none !important;
  border-left: 4px solid var(--lime, #a8c73a) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(26,26,26,.04);
}

/* Make update cart button less noisy */
.rc-cart button[name="update_cart"] {
  background: transparent !important;
  color: var(--charcoal, #1a1a1a) !important;
  border: 1.5px solid rgba(0,0,0,.12) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: .55rem 1rem !important;
}


/* =========================================================
   WooCommerce BLOCKS cart/checkout (fallback if still on blocks)
   ========================================================= */
.wc-block-cart,
.wp-block-woocommerce-cart,
.wc-block-checkout,
.wp-block-woocommerce-checkout {
  font-family: inherit !important;
  color: var(--charcoal, #1a1a1a) !important;
}

.wc-block-cart,
.wc-block-checkout {
  max-width: 1100px;
  margin-inline: auto;
}

.wc-block-components-product-name,
.wc-block-cart-items__row {
  font-family: var(--font-display, Outfit, sans-serif) !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link) {
  background: var(--leaf, #2f6b32) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  min-height: 3rem !important;
  box-shadow: none !important;
}

.wc-block-cart__submit-container .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  filter: brightness(1.06);
}

.wc-block-components-totals-wrapper,
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
  background: #fff !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  padding: 1.25rem !important;
  box-shadow: 0 12px 40px rgba(26,26,26,.05);
}

.wc-block-cart-items,
.wc-block-cart-items__row {
  border-color: rgba(0,0,0,.06) !important;
}

.wc-block-components-product-metadata,
.wc-block-components-product-price {
  color: var(--muted, #5c6350) !important;
}

.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox input,
.wc-block-components-select select {
  border-radius: .75rem !important;
  border: 1.5px solid rgba(0,0,0,.12) !important;
  min-height: 2.85rem !important;
  font-family: inherit !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus {
  border-color: var(--leaf, #2f6b32) !important;
  box-shadow: 0 0 0 3px rgba(168,199,58,.25) !important;
  outline: none !important;
}

.wc-block-components-checkout-step {
  background: #fff;
  border-radius: 1.15rem;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1.15rem 1.25rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 8px 28px rgba(26,26,26,.04);
}

.wc-block-components-checkout-step__title {
  font-family: var(--font-display, Outfit, sans-serif) !important;
  font-size: 1.15rem !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 500 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--leaf, #2f6b32) !important;
}

.wc-block-cart-item__image img {
  border-radius: .75rem !important;
}

body.rc-body-cart,
body.rc-body-checkout,
body.woocommerce-cart,
body.woocommerce-checkout {
  background: #f7f6f1;
}

body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-checkout .entry-content > .woocommerce {
  max-width: none;
}

/* Hide default page title if still present */
.woocommerce-cart .page-hero,
.woocommerce-checkout .page-hero {
  display: none !important;
}