/* ============================================================================
   Inline checkout — SHARED first-party payment chrome (single source of truth).
   ----------------------------------------------------------------------------
   The order-summary + trust column and the wrapper around Paddle's INLINE
   payment frame (frameTarget=".paddle-checkout-frame"). Consumed by BOTH
   parent purchase surfaces so they stay identical:
     • website  → auth/index.html          (#checkout-section)
     • in-app   → playnow/accounts-hub.js  ("checkout" view)

   Self-contained (class prefix `co-`), no dependency on either surface's theme.
   Reuses the Family Pack editorial vocabulary — warm cream ground, terracotta /
   orange accents, Playfair Display headline (Nunito elsewhere). Serif falls
   back to Georgia if the webfont isn't loaded; each surface loads Playfair
   Display + Nunito via Google Fonts.

   ⚠ Parallel-copied to the Match2.Cards repo verbatim (like family-pack.css /
   shared/auth/*). Keep the ?v= in sync where it's linked.
   ============================================================================ */

.co-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  align-items: start;
  margin-top: 14px;                    /* breathing room below the "Secure Checkout" header */
}
@media (max-width: 640px) {
  .co-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Left: order summary (cream, editorial — matches fp-card) ── */
.co-summary {
  background: #faf6ee;                 /* warm cream */
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 12px 44px rgba(60, 40, 20, 0.10);
  color: #241f1a;
  -webkit-font-smoothing: antialiased;
}
/* Brand lockup — logo + wordmark at the top of the summary, domain-branded
   (Multiply.Cards / Match2.Cards) by each surface. */
.co-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(40, 30, 20, 0.10);
}
.co-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  box-shadow: 0 3px 10px rgba(40, 60, 180, 0.28);
}
.co-brand-tx { display: flex; flex-direction: column; min-width: 0; }
.co-brand-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #1c1712;
  line-height: 1;
}
.co-brand-name .co-brand-dot { color: #d97a2b; } /* terracotta ".Cards" accent */
.co-brand-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #a1937c;
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.co-eyebrow {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d97a2b;                      /* terracotta */
  margin-bottom: 12px;
}
.co-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1c1712;
  margin: 0 0 6px;
}
.co-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #6f6252;
  line-height: 1.4;
  margin: 0 0 18px;
}
.co-incl {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(40, 30, 20, 0.10);
}
.co-incl li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid rgba(40, 30, 20, 0.10);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3a322a;
  line-height: 1.35;
}
.co-incl li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0812c;                 /* orange dot */
}
.co-total {
  margin-top: 18px;
}
/* Left-aligned, stacked (label over price) — matches the initial sales card,
   which keeps the price flush left rather than pushed to the right edge. */
.co-total-l {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6f6252;
  margin-bottom: 3px;
}
.co-total-r {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: #1c1712;
  letter-spacing: -0.01em;
}
.co-total-note {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a1937c;
  margin: 6px 0 0;
}
.co-trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(40, 30, 20, 0.10);
  display: grid;
  gap: 11px;
}
.co-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #4a4038;
}
.co-trust svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: #2f9e63;                       /* trust green */
}
.co-paddle-badge {
  margin-top: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8a7a63;
  display: flex;
  align-items: center;
  gap: 6px;
}
.co-paddle-badge strong { color: #5b4f3f; font-weight: 800; }
.co-lock { font-size: 12px; }

/* ── Right: the Paddle inline payment frame ── */
.co-pay {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px 20px;
  border: 2px solid #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.co-pay-h {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 14px;
}
.co-frame-wrap {
  position: relative;
  min-height: 450px;
}
/* Paddle's injected iframe sits above the loader; the loader shows through
   until checkout.loaded hides it. */
.paddle-checkout-frame { position: relative; z-index: 1; }
.co-frame-loading {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Nunito', sans-serif;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}
.co-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e8edf3;
  border-top-color: #d97706;
  border-radius: 50%;
  animation: co-spin 0.75s linear infinite;
}
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-spinner { animation-duration: 1.5s; } }
