/* ForecastsPro — one-page checkout (/checkout). Builds on billing.css (header, layout, cards,
 * status screens, pay button, footer): only what the one form adds lives here. Mobile first:
 * on phones the form follows the price directly, the steps and "What's included" come after. */

.co-card .bill-section { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.co-card .bill-notices:empty { display: none; }

/* ---- Summary: what is bought, for how much ------------------------------------------ */
.co-summary {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.co-summary img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.co-summary-main { flex: 1; min-width: 0; }
.co-summary-title { color: var(--text-primary); font-weight: 650; line-height: 1.3; }
.co-summary-sub { color: var(--text-subtle); font-size: var(--text-sm); line-height: 1.4; }
.co-summary-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.co-summary-price strong {
  color: var(--text-primary); font-size: var(--text-xl); font-weight: 750; letter-spacing: -0.02em;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.co-summary-price small { color: var(--text-default); font-size: var(--text-xs); font-weight: 600; margin-top: 2px; }

/* ---- Fieldsets ------------------------------------------------------------------------ */
.co-fieldset { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.co-legend {
  padding: 0; margin-bottom: var(--space-3);
  color: var(--text-primary); font-size: var(--text-md); font-weight: 650;
}
.co-aside {
  position: absolute; top: 0; right: 0;
  color: var(--text-subtle); font-size: var(--text-sm); line-height: 1.6;
}
.co-aside a { font-weight: 600; }
.co-fieldset .field + .field { margin-top: var(--space-3); }
.co-fieldset .strength { margin-top: 2px; }
.email-suggest:empty { display: none; }
.email-suggest .link-button { font-weight: 600; overflow-wrap: anywhere; text-align: left; }

.co-signed-in {
  display: flex; align-items: flex-start; gap: var(--space-2);
  color: var(--text-default); font-size: var(--text-base); line-height: 1.5;
}
.co-signed-in > .icon { color: var(--text-subtle); margin-top: 2px; }
.co-signed-in strong { overflow-wrap: anywhere; }
.co-not-you { color: var(--text-subtle); white-space: nowrap; }
.co-not-you .link-button { font-weight: 600; }

/* ---- Coins: USDT (TRC20) preselected, the others one tap away ------------------------------ */
.co-coins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.co-coin {
  position: relative; display: flex; align-items: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-2) var(--space-2) var(--space-2) 10px;
  border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-input);
  cursor: pointer; min-width: 0;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.co-coin:hover { border-color: #50535b; background: #222327; }
.co-coin input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.co-coin:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.18), rgba(88, 101, 242, 0.08));
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.co-coin:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.co-coin .coin-logo { flex: none; }
.co-coin-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.co-coin-code { color: var(--text-primary); font-weight: 650; font-size: var(--text-base); }
.co-coin-net { color: var(--text-subtle); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-coin:has(input:checked) .co-coin-net { color: var(--accent-text); }

.co-coin-note { margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.5; }
.co-coin-note-main { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--text-default); }
.co-coin-note-main .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--warning-text); }
.co-more { margin-top: var(--space-2); color: var(--text-muted); }
.co-more summary { cursor: pointer; color: var(--text-link); font-weight: 600; width: max-content; max-width: 100%; }
.co-more summary:hover { text-decoration: underline; }
.co-more ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.co-more li { position: relative; padding-left: 14px; }
.co-more li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--warning-text); }

/* ---- One consent box: its three statements, one per line -------------------------------- */
.co-consent-field { margin-bottom: var(--space-4); }
.co-consent { font-size: var(--text-sm); }
.co-consent-text { display: grid; gap: var(--space-2); }
.co-consent-line { display: block; }
.co-consent-field .field-error { margin-top: var(--space-2); }
.co-turnstile { margin: 0 0 var(--space-4); min-height: 65px; }
.co-turnstile:empty { display: none; }

/* ---- Pay ------------------------------------------------------------------------------ */
/* Centred text with its icon inline before the first word (a wrapped line stays centred
   under it instead of leaving the icon stranded at the left edge). */
.co-receipt {
  display: block; margin-top: var(--space-3);
  color: var(--text-default); font-size: var(--text-sm); line-height: 1.5; text-align: center; text-wrap: balance;
}
.co-receipt > .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; color: var(--text-subtle); }
.co-receipt strong { overflow-wrap: anywhere; }
.co-receipt .link-button { font-weight: 600; }
.co-fine { margin-top: var(--space-2); color: var(--text-subtle); font-size: var(--text-sm); line-height: 1.5; text-align: center; }

/* ---- How it goes from here ------------------------------------------------------------- */
/* Numbered media rows (base.css): a 28px round tile, the number centred in it. */
.co-steps { list-style: none; display: grid; gap: var(--space-5); }
.co-step-num {
  font-size: var(--text-sm); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.co-steps + .bill-h2 { margin-top: var(--space-7); }

.co-screen-note { color: var(--text-muted); font-size: var(--text-base); line-height: 1.55; margin: var(--space-4) auto 0; max-width: 460px; }
.bill-status .alert { margin-top: var(--space-5); text-align: left; }

/* ---- Small screens ------------------------------------------------------------------- */
@media (max-width: 600px) {
  /* Logo | name, terms, then the price on its own line under them (no squeezed columns). */
  .co-summary {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-3); row-gap: 6px;
    align-items: start; padding: var(--space-4);
  }
  .co-summary img { grid-row: span 2; }
  .co-summary-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; text-align: left; }
  .co-summary-price small { margin-top: 0; }
  .co-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-aside { position: static; margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
}
