/* ── FORCE CONTAINED WIDTH ON CART ──────────────────────── */
/* Overrides Astra customizer if it forces 100% width, to prevent massive gaps on wide monitors */
.woocommerce-cart .ast-container,
.woocommerce-checkout .ast-container {
  max-width: 1300px !important; /* Increased from 1200px to give more horizontal room */
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce-cart #primary,
.woocommerce-checkout #primary {
  width: 100% !important;
}

.woocommerce-cart #secondary,
.woocommerce-checkout #secondary {
  display: none !important;
}

/* Hide default Astra page title (but keep header container for breadcrumbs) */
.woocommerce-cart .entry-header h1.entry-title,
.woocommerce-cart .ast-archive-description {
  display: none !important;
}

/* Full-width Beige Breadcrumb Strip (Targeting the manual <p> tag from page editor) */
.woocommerce-cart .entry-content > p:first-of-type {
  display: block !important;
  background-color: #f4efe9 !important; /* Light beige strip */
  padding: 16px 20px !important;
  margin-top: -40px !important; /* Pulls the strip up closer to the header */
  margin-bottom: 40px !important;
  font-size: 13px !important;
  color: var(--ink-soft) !important;
  font-family: var(--font) !important;
  letter-spacing: 0.3px !important;
  border: none !important;
  
  /* Extends background to edges of screen without breaking layout */
  box-shadow: 0 0 0 100vmax #f4efe9 !important;
  clip-path: inset(0 -100vmax) !important;
}

@media (max-width: 1300px) {
  .woocommerce-cart .entry-content > p:first-of-type {
    padding-left: 20px !important;
  }
}

/* ==========================================================================
   RAKESH MASALA — CART PAGE  (Fully rebuilt to match reference screenshot)
   DOM order inside .woocommerce:
     1. .rk-cart-topbar          (full-width heading row)
     2. form.woocommerce-cart-form  (LEFT column)
     3. .rk-trust-strip           (LEFT column bottom)
     4. .cart-collaterals          (RIGHT column / sidebar)
   ========================================================================== */

:root {
  --brand: #AD2517;
  --brand-dark: #8c1c10;
  --brand-tint: #fbf3f2;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #d9d9d9;
  --line-soft: #e8e8e8;
  --panel: #f5f5f5;
  --success: #27ae60;
  --danger: #d72c0d;
  --radius: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
.woocommerce-cart {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── TWO-COLUMN GRID LAYOUT ─────────────────────────────────────────────── */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  grid-template-areas:
    "topbar  topbar"
    "form    sidebar" !important;
  column-gap: 20px !important;
  row-gap: 0 !important;
  align-items: start;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Notices full width */
.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

/* ── GRID AREA ASSIGNMENTS ──────────────────────────────────────────────── */
.rk-cart-topbar {
  grid-area: topbar;
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-area: form;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}

.woocommerce-cart .cart-collaterals {
  grid-area: sidebar;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}

/* ── TOPBAR: "Your Cart (N Items)" ─────────────────────────────────────── */
.rk-cart-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0;
}

.rk-cart-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
  line-height: 1.2;
}

.rk-cart-count {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.rk-continue-shopping {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.rk-continue-shopping:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── CART TABLE ─────────────────────────────────────────────────────────── */
.woocommerce-cart-form {
  min-width: 0;
}

.shop_table.cart,
table.shop_table.woocommerce-cart-form__contents {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
}

/* Column headers */
.woocommerce-cart .shop_table.cart thead th {
  font-size: 11px !important;
  font-weight: 700 !important;
  border: none !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  padding: 15px 12px 15px !important; /* Added top padding */
  background: transparent !important;
}

/* Rename SUBTOTAL to TOTAL using CSS pseudo-elements */
.woocommerce-cart .shop_table.cart thead th.product-subtotal {
  font-size: 0 !important;
}

.woocommerce-cart .shop_table.cart thead th.product-subtotal::after {
  content: "TOTAL";
  font-size: 11px !important;
  color: var(--muted) !important;
}

.shop_table.cart th,
.shop_table.cart td {
  box-sizing: border-box !important;
}

.woocommerce-cart .shop_table.cart thead {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    display: block;
    margin-bottom: 16px;
  }
  
  .woocommerce-cart .shop_table.cart thead tr {
    display: flex !important;
    align-items: center;
  }

  .woocommerce-cart .shop_table.cart thead th.product-remove {
    order: 6;
    width: 50px !important; min-width: 50px !important; max-width: 50px !important; flex-basis: 50px !important;
    text-align: center !important;
    font-size: 0 !important; /* hide the text */
    padding-right: 16px !important;
  }

  .woocommerce-cart .shop_table.cart thead th.product-thumbnail {
    order: 1;
    width: 90px !important; min-width: 90px !important; max-width: 90px !important; flex-basis: 90px !important;
  }

  .woocommerce-cart .shop_table.cart thead th.product-name {
    order: 2;
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 20px !important;
  }

  .woocommerce-cart .shop_table.cart thead th.product-price {
    order: 3;
    width: 140px !important; min-width: 140px !important; max-width: 140px !important; flex-basis: 140px !important;
    text-align: center !important;
  }

  .woocommerce-cart .shop_table.cart thead th.product-quantity {
    order: 4;
    width: 190px !important; min-width: 190px !important; max-width: 190px !important; flex-basis: 190px !important;
    text-align: center !important;
  }

  .woocommerce-cart .shop_table.cart thead th.product-subtotal {
    order: 5;
    width: 90px !important; min-width: 90px !important; max-width: 90px !important; flex-basis: 90px !important;
    text-align: center !important;
  }

  /* ── CART ITEM ROWS ─────────────────────────────────────────────────────── */
  .shop_table.cart tbody {}

  .shop_table.cart tbody tr.cart_item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex !important;
    align-items: center;
  }

  .shop_table.cart tbody tr.cart_item td {
    padding: 12px 10px;
    vertical-align: middle;
    border: none !important;
    background: transparent;
    box-shadow: none !important;
  }

  /* ── Spacer rows (WooCommerce sometimes injects them) ── */
  .shop_table.cart tbody tr:not(.cart_item) {
    display: none;
  }

  .shop_table.cart tbody tr.cart_item {
    display: flex !important;
    align-items: center;
  }

  /* Column order, widths, and flex layout */
  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-remove {
    order: 6;
    width: 50px !important; min-width: 50px !important; max-width: 50px !important; flex-basis: 50px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    border: none !important;
    padding-right: 16px !important;
  }

  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-thumbnail {
    order: 1;
    width: 90px !important; min-width: 90px !important; max-width: 90px !important; flex-basis: 90px !important;
    flex-shrink: 0 !important;
    border: none !important;
  }

  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-name {
    order: 2;
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 20px !important;
    border: none !important;
    position: relative !important;
  }

  /* Short vertical separator between Product and Price (matches reference) */
  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-name::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background-color: var(--line-soft);
  }

  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-price {
    order: 3;
    width: 140px !important; min-width: 140px !important; max-width: 140px !important; flex-basis: 140px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    text-align: center !important;
  }

  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-quantity {
    order: 4;
    width: 190px !important; min-width: 190px !important; max-width: 190px !important; flex-basis: 190px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    text-align: center !important;
  }

  .woocommerce-cart .shop_table.cart tbody tr.cart_item td.product-subtotal {
    order: 5;
    width: 90px !important; min-width: 90px !important; max-width: 90px !important; flex-basis: 90px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    text-align: center !important;
  }

  .shop_table.cart .product-remove a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #707070 !important;
    border-radius: 50% !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    background: #ffffff !important;
    text-decoration: none !important;
    position: relative !important;
    transition: border-color .15s, background .15s, opacity .15s !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .shop_table.cart .product-remove a.remove::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity .15s;
  }

  .shop_table.cart .product-remove a.remove:hover {
    border-color: #333333 !important;
    background: #f5f5f5 !important;
  }

  .shop_table.cart .product-remove a.remove:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  }

  /* ── THUMBNAIL ──────────────────────────────────────────────────────────── */
  .shop_table.cart .product-thumbnail {
    width: 90px;
    padding-right: 0;
  }

  .shop_table.cart .product-thumbnail img,
  .shop_table.cart .product-thumbnail a img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    display: block;
  }

  /* ── PRODUCT NAME CELL ──────────────────────────────────────────────────── */
  .shop_table.cart .product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
  }

  .shop_table.cart .product-name a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
  }

  .shop_table.cart .product-name a:hover {
    color: var(--brand);
  }

  .shop_table.cart .product-name a.rk-product-title-link,
  .shop_table.cart .product-name .rk-product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    line-height: 1.25;
  }

  .shop_table.cart .product-name .rk-product-weight {
    font-size: 13px;
    color: var(--muted);
    margin: 3px 0 2px;
    font-weight: 400;
  }

  /* Variation */
  .shop_table.cart .product-name dl.variation,
  .shop_table.cart .product-name .variation {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
    font-weight: 400;
  }

  .shop_table.cart .product-name dl.variation dt,
  .shop_table.cart .product-name dl.variation dd {
    display: inline;
    margin: 0;
  }

  /* "Inclusive of all Taxes" */
  .rk-incl-tax {
    font-size: 10px;
    color: var(--muted);
    margin: 4px 0 0;
    font-weight: 400;
  }

  /* Inline price */
  .rk-inline-price {
    margin-top: 4px;
    color: var(--brand);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rk-inline-price .sale-price,
  .rk-inline-price .current-price,
  .rk-inline-price .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
  }

  .rk-inline-price del,
  .rk-inline-price del .woocommerce-Price-amount {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
  }

  /* Hide the extra discount text if it exists inside the price */
  .rk-inline-price .saved-amount,
  .rk-inline-price .discount-percent {
    display: none !important;
  }

  /* Hide default WC bold quantity in name cell */
  .rk-inline-price strong.product-quantity {
    display: none;
  }

  /* Discount badge */
  .rk-discount-badge {
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    background: #d4f3e3 !important;
    color: var(--success) !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    margin-bottom: 6px !important;
    letter-spacing: .3px;
  }

  /* ── PRICE COLUMN ───────────────────────────────────────────────────────── */
  .shop_table.cart .product-price {
    font-size: 16px;
    white-space: nowrap;
    min-width: 80px;
  }

  .shop_table.cart .product-price .woocommerce-Price-amount {
    color: var(--brand);
    font-weight: 800;
  }

  .shop_table.cart .product-price del {
    color: var(--muted);
    font-size: 12px;
  }

  .shop_table.cart .product-price ins {
    text-decoration: none;
  }

  /* ── QUANTITY STEPPER ───────────────────────────────────────────────────── */
  .shop_table.cart .product-quantity {
    white-space: nowrap;
  }

  .shop_table.cart .product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .shop_table.cart .product-quantity .qty-btn {
    width: 28px !important;
    height: 30px !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    color: #4a5568 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .12s !important;
    font-family: inherit !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .shop_table.cart .product-quantity .qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .shop_table.cart .product-quantity input.qty {
    width: 32px !important;
    height: 30px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: var(--ink) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
  }

  .shop_table.cart .product-quantity input.qty::-webkit-outer-spin-button,
  .shop_table.cart .product-quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  /* ── RED TRASH BUTTON (injected by JS as .rk-qty-trash) ─────────────────── */
  .rk-qty-trash {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    background: var(--brand) !important;
    border-radius: 6px !important;
    color: #fff !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: background .15s !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    padding: 0 !important;
    border: none !important;
  }

  .rk-qty-trash:hover {
    background: var(--brand-dark) !important;
  }

  .rk-qty-trash svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shop_table.cart .product-subtotal {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    white-space: nowrap;
  }

  .shop_table.cart .product-subtotal .woocommerce-Price-amount {
    color: var(--brand);
  }

  /* ── CART ACTIONS (coupon + update) ─────────────────────────────────────── */
  .woocommerce-cart-form .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .woocommerce-cart-form .coupon {
    display: flex;
    gap: 8px;
  }

  .woocommerce-cart-form .coupon #coupon_code {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    font-family: var(--font);
    background: #fff;
    color: var(--ink);
    width: 180px;
    outline: none;
    transition: border-color .15s;
  }

  .woocommerce-cart-form .coupon #coupon_code::placeholder {
    color: var(--muted);
  }

  .woocommerce-cart-form .coupon #coupon_code:focus {
    border-color: var(--ink);
  }

  .woocommerce-cart-form .coupon .button {
    height: 42px;
    padding: 0 18px;
    background: #e8e8e8;
    color: #6a6a6a;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background .15s;
  }

  .woocommerce-cart-form .coupon .button:hover {
    background: #dcdcdc;
    color: var(--ink);
  }

  .woocommerce-cart-form button[name="update_cart"] {
    height: 42px;
    padding: 0 18px;
    background: #fff;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background .15s, border-color .15s;
  }

  .woocommerce-cart-form button[name="update_cart"]:hover:not(:disabled) {
    background: var(--panel);
    border-color: var(--ink-soft);
    color: var(--ink);
  }

  .woocommerce-cart-form button[name="update_cart"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  /* ── TRUST BADGES STRIP ─────────────────────────────────────────────────── */
  .rk-trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f6efe9;
    border: 1px solid #eadfd5;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 16px;
    gap: 10px;
  }

  .rk-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
  }

  .rk-trust-item+.rk-trust-item {
    border-left: 1px solid #eadfd5;
    padding-left: 12px;
  }

  .rk-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .rk-trust-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rk-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rk-trust-text strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    display: block;
  }

  .rk-trust-text span {
    font-size: 10px;
    color: var(--ink-soft);
  }

  /* ── ORDER SUMMARY SIDEBAR ──────────────────────────────────────────────── */
  .cart-collaterals {
    min-width: 0;
    width: 100% !important;
    float: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .woocommerce-cart .cart_totals,
  .cart_totals {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 16px !important;
    padding: 26px 22px 22px !important;
    position: sticky;
    top: 90px;
    box-shadow: none !important;
  }

  .woocommerce-cart .cart_totals h2,
  .cart_totals h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--brand) !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.3px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .cart_totals .shop_table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    background: transparent !important;
  }

  .cart_totals .shop_table th,
  .cart_totals .shop_table td {
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    background: transparent !important;
    vertical-align: middle !important;
  }

  /* Subtotal row */
  .cart_totals .shop_table tr.cart-subtotal th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #ebebeb !important;
  }

  .cart_totals .shop_table tr.cart-subtotal th span {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #8a8a8a !important;
  }

  .cart_totals .shop_table tr.cart-subtotal td {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: right !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #ebebeb !important;
  }

  .cart_totals .shop_table tr.cart-subtotal td .woocommerce-Price-amount {
    color: #1a1a1a !important;
    font-weight: 700 !important;
  }

  /* Shipping row */
  .cart_totals .shop_table tr.shipping th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    padding-top: 14px !important;
    padding-bottom: 4px !important;
  }

  .cart_totals .shop_table tr.shipping th::after {
    content: "Free Shipping on orders above ₹499";
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--success);
    margin-top: 3px;
    text-transform: none;
    letter-spacing: 0;
  }

  .cart_totals .shop_table tr.shipping td {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--success) !important;
    text-align: right !important;
    padding-top: 14px !important;
    padding-bottom: 4px !important;
  }

  .cart_totals .shop_table tr.shipping td .woocommerce-Price-amount,
  .cart_totals .shop_table tr.shipping td .amount,
  .cart_totals .shop_table tr.shipping td label {
    color: var(--success) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-align: right !important;
  }

  /* Hide messy WooCommerce shipping calculator and radio buttons */
  .cart_totals .shipping .woocommerce-shipping-destination,
  .cart_totals .shipping .woocommerce-shipping-calculator,
  .cart_totals .shipping ul#shipping_method input[type="radio"],
  .cart_totals .shipping ul#shipping_method input[type="hidden"] {
    display: none !important;
  }

  .cart_totals .shipping ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: right !important;
  }

  .cart_totals .shipping ul#shipping_method li {
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }

  /* Tax row */
  .cart_totals .shop_table tr.rk-tax-row th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    padding-top: 6px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #ebebeb !important;
  }

  .cart_totals .shop_table tr.rk-tax-row th span {
    font-weight: 400 !important;
    color: #8a8a8a !important;
    font-size: 12px !important;
  }

  .cart_totals .shop_table tr.rk-tax-row td {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: right !important;
    padding-top: 6px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #ebebeb !important;
  }

  .cart_totals .shop_table tr.rk-tax-row td .woocommerce-Price-amount {
    color: #1a1a1a !important;
  }

  /* Total row */
  .cart_totals .shop_table tr.order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    padding-top: 16px !important;
    vertical-align: top !important;
  }

  .cart_totals .shop_table tr.order-total td {
    text-align: right !important;
    padding-top: 16px !important;
    vertical-align: top !important;
  }

  .cart_totals .shop_table tr.order-total .woocommerce-Price-amount,
  .cart_totals .shop_table tr.order-total td .amount {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--brand) !important;
    line-height: 1.1 !important;
    display: inline-block !important;
  }

  .cart_totals .shop_table tr.order-total td small,
  .cart_totals .shop_table tr.order-total td .rk-incl-tax-total {
    display: block !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #8a8a8a !important;
    margin-top: 4px !important;
    text-align: right !important;
  }

  /* Proceed to Checkout button */
  .cart_totals .wc-proceed-to-checkout {
    display: block;
    margin-top: 8px;
    margin-bottom: 20px;
  }

  .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: var(--brand) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: var(--font) !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background .2s !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  .cart_totals .wc-proceed-to-checkout .checkout-button::before {
    content: "" !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
  }

  .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--brand-dark) !important;
  }

  /* ── PAYMENT ICONS ──────────────────────────────────────────────────────── */
  .rk-payment-icons {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .rk-payment-icons > p {
    font-size: 12px !important;
    color: #8a8a8a !important;
    margin: 0 0 10px !important;
    font-weight: 500 !important;
  }

  .rk-payment-icons-row {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
  }

  .rk-payment-icons-row .rk-pay-icon {
    height: 18px !important;
    width: auto !important;
    max-width: 32px !important;
    object-fit: contain !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 3px !important;
    padding: 1px 3px !important;
    background: #ffffff !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: content-box !important;
    flex-shrink: 0 !important;
  }

  /* ── NOTICES ────────────────────────────────────────────────────────────── */
  .woocommerce-message {
    background: var(--brand-tint);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 16px;
    list-style: none;
  }

  .woocommerce-error {
    background: #fff4f4;
    border-left: 3px solid var(--danger);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 16px;
    list-style: none;
  }

  /* ── EMPTY CART ─────────────────────────────────────────────────────────── */
  .woocommerce-cart .cart-empty {
    font-size: 16px;
    color: var(--ink-soft);
    text-align: center;
    padding: 60px 0;
  }

  .woocommerce-cart .return-to-shop .button {
    display: inline-block;
    margin-top: 16px;
    padding: 13px 28px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font);
    transition: background .2s;
  }

  .woocommerce-cart .return-to-shop .button:hover {
    background: var(--brand-dark);
  }

  /* ── MOBILE ─────────────────────────────────────────────────────────────── */
  @media (max-width: 900px) {
    .woocommerce-cart .woocommerce {
      grid-template-columns: 1fr !important;
      grid-template-areas:
        "topbar"
        "sidebar"
        "form"
        "trust" !important;
      gap: 20px 0 !important;
    }

    .rk-cart-topbar {
      flex-direction: column;
      gap: 6px;
    }

    .rk-cart-title {
      font-size: 22px;
    }

    .rk-trust-strip {
      flex-direction: column;
      gap: 12px;
      margin-top: 0;
    }

    .rk-trust-item+.rk-trust-item {
      border-left: none;
      border-top: 1px solid #f0d8d5;
      padding-left: 0;
      padding-top: 12px;
    }

    .woocommerce-cart-form .actions {
      flex-direction: column;
      align-items: stretch;
    }

    .woocommerce-cart-form .coupon {
      width: 100%;
    }

    .woocommerce-cart-form .coupon #coupon_code {
      flex: 1;
      width: auto;
    }

    .cart_totals {
      position: static;
    }
  }
/* ==========================================================================
   CHECKOUT PAGE FIXES
   ========================================================================== */

/* 1. Remove the massive green featured/header image on the checkout page */
.woocommerce-checkout .ast-single-post-featured-section,
.woocommerce-checkout .post-thumb,
.woocommerce-checkout .ast-article-single .ast-article-image,
.woocommerce-checkout .ast-article-image,
.woocommerce-checkout .post-thumbnail,
.woocommerce-checkout .entry-content > figure:first-child,
.woocommerce-checkout .entry-content > .wp-block-image:first-child,
.woocommerce-checkout .entry-content > p:first-child img,
.woocommerce-checkout .entry-content > img:first-child {
    display: none !important;
}

/* 2. Fix the squashed checkout blocks layout */
/* The site uses a custom checkout DOM with .rk- classes. */
.woocommerce-checkout .rk-checkout-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 40px !important;
    width: 100% !important;
}

.woocommerce-checkout .rk-checkout-left > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure the grid splits left and right properly */
.woocommerce-checkout .rk-checkout-grid {
    display: grid !important;
    grid-template-columns: 1fr 450px !important;
    gap: 40px !important;
    align-items: start !important;
}

@media (max-width: 1024px) {
    .woocommerce-checkout .rk-checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 3. Shopify-style Input Fields & Headings */
/* Style the main section headings */
.woocommerce-checkout .rk-checkout-left h2,
.woocommerce-checkout .rk-checkout-left h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 16px !important;
    margin-top: 36px !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-checkout .rk-checkout-left h2:first-child,
.woocommerce-checkout .rk-checkout-left h3:first-child {
    margin-top: 0 !important;
}

/* --- Checkout Typography & Headers --- */
.woocommerce-checkout .rk-checkout-left h3 {
    position: relative !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 16px !important;
    margin-top: 36px !important;
}

.woocommerce-checkout .rk-checkout-left .woocommerce-billing-fields > h3:first-child,
.woocommerce-checkout .rk-checkout-left .rk-customer-details > h3:first-of-type {
    margin-top: 0 !important;
}

/* Inject 'Sign in' text next to the first Contact header */
.woocommerce-checkout .rk-checkout-left .woocommerce-billing-fields > h3:first-of-type::after,
.woocommerce-checkout .rk-checkout-left .rk-customer-details > h3:first-of-type::after {
    content: "Sign in";
    position: absolute !important;
    right: 0 !important;
    bottom: 2px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    color: #c95d3a !important; /* Shopify link color */
    cursor: pointer !important;
}

/* Checkbox & Radio Labels */
.woocommerce-checkout .rk-checkout-left .rk-customer-details label.checkbox,
.woocommerce-checkout .rk-checkout-left .rk-customer-details label.radio,
.woocommerce-checkout .rk-checkout-left .rk-customer-details .woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #333 !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}
.woocommerce-checkout .rk-checkout-left .rk-customer-details input[type="checkbox"],
.woocommerce-checkout .rk-checkout-left .rk-customer-details input[type="radio"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Custom Dropdown Arrow */
.woocommerce-checkout .rk-checkout-left select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23737373%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px top 50% !important;
    background-size: 10px auto !important;
    padding-right: 30px !important;
}

/* Add Question Mark icons to Email and Phone */
.woocommerce-checkout .rk-checkout-left #billing_email,
.woocommerce-checkout .rk-checkout-left #billing_phone {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23737373%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%3E%3C%2Fcircle%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22%3E%3C%2Fpath%3E%3Cline%20x1%3D%2212%22%20y1%3D%2217%22%20x2%3D%2212.01%22%20y2%3D%2217%22%3E%3C%2Fline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px top 50% !important;
    background-size: 18px auto !important;
    padding-right: 40px !important;
}

.woocommerce-checkout .rk-checkout-left input:focus,
.woocommerce-checkout .rk-checkout-left select:focus,
.woocommerce-checkout .rk-checkout-left textarea:focus {
    border-color: var(--brand, #b12722) !important;
    box-shadow: 0 0 0 1px var(--brand, #b12722) !important;
    outline: none !important;
}

/* --- Robust Grid Layout for Forms --- */
/* Target the custom RK wrappers directly since standard Woo wrappers are missing */
.woocommerce-checkout .rk-checkout-left .rk-customer-details {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr !important;
    gap: 14px !important;
}

/* Default full width for any child inside customer details */
.woocommerce-checkout .rk-checkout-left .rk-customer-details > * {
    grid-column: span 6 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* First/Last Name (Half Width) */
.woocommerce-checkout .rk-checkout-left .rk-customer-details .form-row-first,
.woocommerce-checkout .rk-checkout-left .rk-customer-details .form-row-last {
    grid-column: span 3 !important;
}

/* City, State, PIN (Third Width) */
.woocommerce-checkout .rk-checkout-left .rk-customer-details #billing_city_field,
.woocommerce-checkout .rk-checkout-left .rk-customer-details #billing_state_field,
.woocommerce-checkout .rk-checkout-left .rk-customer-details #billing_postcode_field,
.woocommerce-checkout .rk-checkout-left .rk-customer-details #shipping_city_field,
.woocommerce-checkout .rk-checkout-left .rk-customer-details #shipping_state_field,
.woocommerce-checkout .rk-checkout-left .rk-customer-details #shipping_postcode_field {
    grid-column: span 2 !important;
}

/* 4. Shipping & Payment Boxes (Shopify Style) */
/* Style the Shipping Method Box */
.woocommerce-checkout .rk-checkout-left .rk-shipping-methods-wrapper,
.woocommerce-checkout .rk-checkout-left #shipping_method,
.woocommerce-checkout .rk-checkout-left .rk-payment-wrapper #payment ul.payment_methods {
    border: 1px solid #ffbca8 !important;
    background-color: #fff8f5 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Fix any table lines inside the shipping box */
.woocommerce-checkout .rk-checkout-left .rk-shipping-methods-wrapper table {
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
}
.woocommerce-checkout .rk-checkout-left .rk-shipping-methods-wrapper table td,
.woocommerce-checkout .rk-checkout-left .rk-shipping-methods-wrapper table th {
    border: none !important;
    background: transparent !important;
    padding: 8px 0 !important;
}

/* The Payment Details Box (Grey section under selected payment method) */
.woocommerce-checkout .rk-checkout-left .rk-payment-wrapper #payment div.payment_box {
    background-color: #f7f7f7 !important;
    border: 1px solid #d9d9d9 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 16px !important;
    margin: 0 !important;
    color: #333 !important;
}

/* Ensure the payment wrapper itself doesn't have duplicate borders */
.woocommerce-checkout .rk-checkout-left #payment {
    background: transparent !important;
}

/* 5. Shopify-style Right Sidebar (Order Summary) */
.woocommerce-checkout .rk-checkout-right {
    background-color: #fafafa !important;
    border-left: 1px solid #e1e1e1 !important;
    padding: 36px 44px 70px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Force the order review container to take full width and remove Astra's white box! */
.woocommerce-checkout .rk-checkout-right #order_review,
.woocommerce-checkout .rk-checkout-right #order_review table {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Sidebar Title - Hidden to match Shopify which doesn't say 'Your Order' */
.woocommerce-checkout .rk-checkout-right h3#order_review_heading {
    display: none !important;
}

/* Product Images and Badges */
.woocommerce-checkout .rk-checkout-right table.shop_table td.product-name img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    object-fit: cover !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    background: #fff !important;
    margin-right: 15px !important;
}

.woocommerce-checkout .rk-checkout-right .product-quantity {
    background-color: rgba(114,114,114,0.9) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 2px 6px !important;
    position: absolute !important;
    top: -8px !important;
    left: 50px !important;
    z-index: 2 !important;
}

/* Convert the table rows into a modern Flex layout to prevent squashing */
.woocommerce-checkout .rk-checkout-right table.shop_table {
    border: none !important;
    width: 100% !important;
    border-collapse: collapse !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table thead {
    display: none !important; /* Hide headers like Shopify */
}
.woocommerce-checkout .rk-checkout-right table.shop_table tbody tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 0 !important;
    position: relative !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table td.product-name {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* FORCE text to stay next to image */
    text-align: left !important;
    border: none !important;
    padding: 0 !important;
    flex: 1 !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table td.product-total {
    border: none !important;
    padding: 0 !important;
    text-align: right !important;
    font-weight: 500 !important;
}

/* Totals styling (tfoot) */
.woocommerce-checkout .rk-checkout-right table.shop_table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table tfoot th,
.woocommerce-checkout .rk-checkout-right table.shop_table tfoot td {
    border-bottom: none !important;
    padding: 10px 0 !important;
    background: transparent !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table tfoot th {
    text-align: left !important;
    font-weight: normal !important;
    color: #555 !important;
}
.woocommerce-checkout .rk-checkout-right table.shop_table tfoot td {
    text-align: right !important;
}

/* Order Total Row */
.woocommerce-checkout .rk-checkout-right .order-total {
    border-top: 1px solid #e1e1e1 !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
}
.woocommerce-checkout .rk-checkout-right .order-total th {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
}
.woocommerce-checkout .rk-checkout-right .order-total .amount {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333 !important;
}




