/* Checkout page layout on top of the vendored DS (bespoke `checkout-*` only;
   all values are DS tokens). Mirrors the pattern of site/lp/lp.css. */
.checkout-page {
  background: var(--paper);
  min-height: 100vh;
  padding: var(--sp-4);
}
.checkout-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
}
.checkout-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--w-bold);
  color: var(--ink);
  text-align: center;
  margin-bottom: var(--sp-4);
}
.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--surface-sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  color: var(--success-500);
  font-size: var(--fs-sm);
  font-weight: var(--w-semibold);
  margin-bottom: var(--sp-5);
}
.checkout-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--divider);
}
.checkout-summary__name { color: var(--text-body); font-weight: var(--w-semibold); }
.checkout-summary__tax { color: var(--text-muted); font-size: var(--fs-caption); }
.checkout-summary__price { color: var(--ink); font-weight: var(--w-bold); font-size: var(--fs-h3); }
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-4);
}
.checkout-total__label { color: var(--ink); font-weight: var(--w-bold); }
.checkout-total__value { color: var(--ink); font-weight: var(--w-bold); font-size: var(--fs-h3); }
.checkout-disclaimer {
  background: var(--surface-sunken);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-5);
}
.checkout-disclaimer a { color: var(--brand); }
/* 320px reserves space for Paddle's own inline iframe before it loads — a
   third-party component dimension, not a DS spacing value (no token applies). */
.checkout-frame { min-height: 320px; margin-bottom: var(--sp-4); }
.checkout-error {
  display: none;
  background: var(--danger-50);
  color: var(--danger-500);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  text-align: center;
}
.checkout-error.is-visible { display: block; }
.checkout-error__retry { margin-top: var(--sp-3); }
.checkout-trust {
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-caption);
  line-height: var(--lh-base);
  margin-top: var(--sp-4);
}
/* DS components set `display` explicitly (.wo-banner is display:flex), and a
   class selector outranks the UA stylesheet's `[hidden] { display: none }` — so
   the hidden attribute alone does NOT hide them. Without this, the success page
   showed the install buttons and the "app not in stores yet" banner at the same
   time. `!important` is required to beat the class-level display. */
[hidden] { display: none !important; }

/* Success page: stacked install CTAs (wo-btn is already full-width) and the
   small print under them. */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.checkout-note {
  color: var(--text-faint);
  font-size: var(--fs-caption);
  line-height: var(--lh-base);
}
.checkout-note a { color: var(--brand); }
.checkout-body {
  color: var(--text-muted);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-5);
}
