/* ============================================================
   ETF Setups brand skin for the WooCommerce pages (cart / checkout /
   my-account). The bb-theme's bare header/footer are hidden and the real
   ETF Setups marketing nav + footer are injected by the plugin; this brands
   the WooCommerce content to match the rest of the site.
   ============================================================ */

/* Hide the bare theme header & footer — we inject the ETF nav/footer instead */
body.woocommerce-page .fl-page-header,
body.woocommerce-page .fl-page-header-wrap { display: none !important; }
body.woocommerce-page .fl-page-footer,
body.woocommerce-page .fl-page-footer-wrap { display: none !important; }
body.woocommerce-page .fl-page,
body.woocommerce-page .fl-page-content { padding-top: 0 !important; margin-top: 0 !important; }

/* Layout + typography */
body.woocommerce-page { color: var(--etfsp-ink, #1a1f2c); background: #fff; }
/* Match the marketing nav bar width exactly. */
body.woocommerce-page .fl-content-full.container { max-width: 1280px; padding-left: clamp(20px,4.5vw,64px); padding-right: clamp(20px,4.5vw,64px); }
body.woocommerce-page .entry-title,
body.woocommerce-page h1, body.woocommerce-page h2, body.woocommerce-page h3 {
  font-family: var(--etfsp-font, Inter, -apple-system, sans-serif) !important;
  color: var(--etfsp-navy, #0a1929) !important; font-weight: 800 !important; letter-spacing: -0.02em;
}
body.woocommerce-page a { color: var(--etfsp-navy, #0a1929); }

/* Tables (cart + order review) */
body.woocommerce-page .shop_table,
body.woocommerce-page .woocommerce-checkout-review-order-table {
  border: 1px solid rgba(10,25,41,0.10); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden;
}
body.woocommerce-page .shop_table th { background: var(--etfsp-paper, #fbf9f4); color: var(--etfsp-ink-3, #6b7480); font-family: var(--etfsp-font, Inter, sans-serif); }
body.woocommerce-page .shop_table td, body.woocommerce-page .shop_table th { border-top: 1px solid rgba(10,25,41,0.06); }

/* Totals / order-review cards */
body.woocommerce-page .cart_totals,
body.woocommerce-page #order_review,
body.woocommerce-page .woocommerce-order,
body.woocommerce-page #customer_details .col-1,
body.woocommerce-page #customer_details .col-2 {
  background: #fff; border: 1px solid rgba(10,25,41,0.10); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 18px 44px -32px rgba(10,25,41,0.30);
}

/* Order notes ("Additional information") is disabled — drop its empty column. */
body.woocommerce-page #customer_details .col-2 { display: none !important; }
body.woocommerce-page #customer_details .col-1 { width: 100% !important; float: none !important; max-width: none; }

/* Two-column checkout: billing details + card on the LEFT (~60%), order
   summary on the RIGHT (~40%). DOM order is set by the plugin's
   checkout/form-checkout.php override. */
body.woocommerce-checkout .etfsp-checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;       /* ~60% / ~40% */
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
}
body.woocommerce-checkout .etfsp-checkout-right { position: sticky; top: 90px; }
body.woocommerce-checkout #order_review_heading { margin: 0 0 14px; }
body.woocommerce-checkout #payment-left { margin-top: 26px; }

@media (max-width: 880px) {
  body.woocommerce-checkout .etfsp-checkout-grid { grid-template-columns: 1fr; }
  body.woocommerce-checkout .etfsp-checkout-right { position: static; }
}

/* Cleaner order summary — drop the spreadsheet look. */
body.woocommerce-checkout #order_review .shop_table { border: 0; box-shadow: none; border-radius: 0; }
body.woocommerce-checkout #order_review .shop_table thead { display: none; }
body.woocommerce-checkout #order_review .shop_table td,
body.woocommerce-checkout #order_review .shop_table th {
  border: 0; background: transparent; padding: 9px 0; font-size: 14px;
}
/* Redundant rows (subtotal == total for a single item; the "Recurring totals"
   header) add noise — hide them. */
body.woocommerce-checkout #order_review .cart-subtotal,
body.woocommerce-checkout #order_review tr.recurring-totals { display: none; }
/* Line item gets a divider; the totals read as a clean stack. */
body.woocommerce-checkout #order_review tr.cart_item td { padding-bottom: 14px; border-bottom: 1px solid rgba(10,25,41,0.10); }
body.woocommerce-checkout #order_review tr.cart_item .product-name { color: var(--etfsp-navy, #0a1929); font-weight: 600; }
/* Product thumbnail on the line item */
body.woocommerce-checkout #order_review .etfsp-co-thumb {
  width: 46px; height: 46px; border-radius: 9px; vertical-align: middle;
  margin-right: 12px; object-fit: cover; border: 1px solid rgba(10,25,41,0.10);
}
body.woocommerce-checkout #order_review tr.order-total th { padding-top: 14px; font-weight: 700; color: var(--etfsp-navy, #0a1929); }
body.woocommerce-checkout #order_review tr.order-total td { padding-top: 14px; font-size: 16px; }
body.woocommerce-checkout #order_review tr.order-total.recurring-total td,
body.woocommerce-checkout #order_review tr.order-total.recurring-total th { color: var(--etfsp-ink-2, #6b7480); font-weight: 600; }
body.woocommerce-checkout #order_review .first-payment-date { margin-top: 4px; color: var(--etfsp-ink-3, #6b7480); }

/* Primary buttons */
body.woocommerce-page a.button, body.woocommerce-page button.button,
body.woocommerce-page input.button, body.woocommerce-page #place_order,
body.woocommerce-page .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-page .woocommerce-button {
  background: var(--etfsp-navy, #0a1929) !important; color: #fff !important;
  border: 0 !important; border-radius: 8px !important; font-weight: 700 !important;
  padding: 14px 26px !important; text-transform: none !important; line-height: 1.1 !important;
  font-family: var(--etfsp-font, Inter, sans-serif) !important; box-shadow: 0 6px 18px -8px rgba(10,25,41,0.4);
}
body.woocommerce-page a.button:hover, body.woocommerce-page button.button:hover,
body.woocommerce-page input.button:hover, body.woocommerce-page #place_order:hover,
body.woocommerce-page .checkout-button:hover { background: #06101c !important; color: #fff !important; }

/* Secondary buttons (apply coupon / update cart) */
body.woocommerce-page .button[name="apply_coupon"],
body.woocommerce-page .button[name="update_cart"] {
  background: var(--etfsp-paper, #f1f0ec) !important; color: var(--etfsp-navy, #0a1929) !important;
  border: 1px solid rgba(10,25,41,0.14) !important; box-shadow: none; font-weight: 600 !important;
}

/* Form inputs */
body.woocommerce-page .input-text,
body.woocommerce-page input[type="text"], body.woocommerce-page input[type="email"],
body.woocommerce-page input[type="tel"], body.woocommerce-page input[type="password"],
body.woocommerce-page select, body.woocommerce-page .select2-selection {
  border: 1px solid rgba(10,25,41,0.18) !important; border-radius: 8px !important;
  padding: 11px 12px !important; min-height: 44px; font-family: var(--etfsp-font, Inter, sans-serif) !important;
}
body.woocommerce-page label { font-family: var(--etfsp-font, Inter, sans-serif); color: var(--etfsp-ink-2, #45506180); }

/* Notices */
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info { border-top-color: var(--etfsp-navy, #0a1929) !important; }

/* Soften the WooCommerce "processing" overlay (was a dark spinner blob). */
body.woocommerce-page .blockUI.blockOverlay { background: #fff !important; opacity: 0.6 !important; }
body.woocommerce-page .blockUI.blockOverlay::before { border-top-color: var(--etfsp-navy, #0a1929) !important; }

/* Order-received receipt: one consistent body size across the overview, the
   order-details/subscription tables, and the billing address (the address was
   rendering larger than — and the overview much smaller than — everything else). */
body.woocommerce-order-received .woocommerce-table--order-details td,
body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .order_details td,
body.woocommerce-order-received .order_details th,
body.woocommerce-order-received .woocommerce-customer-details address,
body.woocommerce-order-received .woocommerce-column__title {
  font-family: var(--etfsp-font, Inter, sans-serif);
  font-size: 14.5px;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  font-style: normal; line-height: 1.75; color: var(--etfsp-ink, #1a1f2c);
}
body.woocommerce-order-received .woocommerce-column__title { font-size: 13px; }
body.woocommerce-order-received .woocommerce-order-overview li { font-size: 13px; }

/* ============================================================
   Post-purchase welcome / onboarding launchpad (order-received page)
   ============================================================ */
/* The hero leads, so hide the default "Order received" page H1. */
body.woocommerce-order-received .fl-post-title { display: none; }

.etfsp-welcome {
  background: linear-gradient(180deg, #fbf9f4 0%, #fff 100%);
  border: 1px solid rgba(10,25,41,0.10);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
  margin: 0 0 34px;
  box-shadow: 0 24px 56px -38px rgba(10,25,41,0.40);
}
.etfsp-welcome-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,138,76,0.10); color: #1f8a4c;
  font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.etfsp-welcome-check {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #1f8a4c; color: #fff; font-size: 11px;
}
.etfsp-welcome-title {
  font-family: var(--etfsp-font, Inter, sans-serif) !important;
  font-size: clamp(26px, 4vw, 34px) !important; font-weight: 800 !important;
  letter-spacing: -0.02em; color: var(--etfsp-navy, #0a1929) !important;
  margin: 0 0 8px !important;
}
.etfsp-welcome-sub {
  font-size: 16px; line-height: 1.55; color: #4a5568;
  max-width: 60ch; margin: 0 0 26px;
}
.etfsp-welcome-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.etfsp-welcome-step {
  display: block; text-decoration: none !important;
  background: #fff; border: 1px solid rgba(10,25,41,0.10);
  border-radius: 13px; padding: 18px 18px 20px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.etfsp-welcome-step:hover {
  transform: translateY(-2px); border-color: rgba(10,25,41,0.22);
  box-shadow: 0 16px 34px -24px rgba(10,25,41,0.45);
}
.etfsp-welcome-step-n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--etfsp-navy, #0a1929); color: #fff;
  font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.etfsp-welcome-step-h {
  display: block; font-weight: 700; font-size: 15px;
  color: var(--etfsp-navy, #0a1929); margin-bottom: 5px;
}
.etfsp-welcome-step-p {
  display: block; font-size: 13.5px; line-height: 1.5; color: #6b7480;
}
.etfsp-welcome-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .etfsp-welcome-steps { grid-template-columns: 1fr; }
  .etfsp-welcome-cta .etfsp-btn { width: 100%; text-align: center; }
}
