/* FanFundU · Direct Donation checkout (donate-checkout.js) — loaded by _Layout with the script, so the checkout looks
 * the same on every page that opens it (Shopping, Earnings, the team supporter page). Moved here from
 * shopping-styles.css; the tokens only that file defines (--r-lg, --sh-lg, --line-s) carry their values as fallbacks. */

/* What the checkout used to get from the shopping pages' global resets, scoped to it with zero specificity (:where)
   so the rules below still win — the supporter page and any other page get the same checkout. */
.sp-donate-backdrop { font-family: 'REM', sans-serif; }
:where(.sp-donate-backdrop) *, :where(.sp-donate-backdrop) *::before, :where(.sp-donate-backdrop) *::after { box-sizing: border-box; }
:where(.sp-donate-backdrop) :is(h1, h2, h3, h4, p, form, ul, ol) { margin: 0; padding: 0; }
:where(.sp-donate-backdrop) button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* Team badge (the shopping pages' .sp-impact-tab-logo, large) */
.sp-donate-head .sp-impact-tab-logo { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.02em; }

.sp-donate-backdrop {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(28,33,48,.5); backdrop-filter: blur(2px);
  display: flex; padding: 20px; overflow-y: auto;
}
.sp-donate-card {
  position: relative; width: 100%; max-width: 380px; margin: auto;
  background: var(--white); border-radius: var(--r-lg, 18px);
  box-shadow: var(--sh-lg, 0 4px 8px rgba(28,33,48,.06), 0 24px 48px -12px rgba(28,33,48,.22)); padding: 22px;
}
.sp-donate-x {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: background .13s, color .13s;
}
.sp-donate-x:hover { background: var(--line); color: var(--ink); }
.sp-donate-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding-right: 20px; }
.sp-donate-title { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.sp-donate-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.sp-donate-amount-label { font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.sp-donate-step { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.sp-donate-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.sp-donate-preset {
  position: relative; padding: 12px 0; border-radius: 10px; border: 1.5px solid var(--line-s, rgba(28,33,48,.16));
  font-size: 13px; font-weight: 800; color: var(--ink); transition: border-color .13s, background .13s, color .13s, box-shadow .13s;
}
.sp-donate-preset:hover { border-color: var(--red); }
.sp-donate-preset.active { border-color: var(--red); background: var(--red-soft); color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.sp-donate-preset-tick {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
}
.sp-donate-custom {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line-s, rgba(28,33,48,.16)); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px;
}
.sp-donate-custom:focus-within, .sp-donate-custom.active { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; color: var(--ink); }
.sp-donate-custom input {
  border: none; outline: none; font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink); width: 100%; background: none;
}
.sp-donate-actions { display: flex; align-items: center; gap: 10px; }
.sp-donate-cancel { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 10px 4px; }
.sp-donate-cancel:hover { color: var(--ink); }
.sp-donate-submit {
  flex: 1; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 800;
  padding: 11px 0; border-radius: 10px; box-shadow: 0 2px 8px rgba(225,39,39,.28);
  transition: background .13s, opacity .13s;
}
.sp-donate-submit:hover:not(:disabled) { background: var(--red-deep); }
.sp-donate-submit:disabled { opacity: .45; cursor: default; box-shadow: none; }
.sp-donate-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px 4px 4px; }
.sp-donate-success-check { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.sp-donate-success-amt { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.sp-donate-success-msg { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }
.sp-donate-success .sp-donate-submit { width: 100%; }
.sp-donate-boost {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 11px 0; border-radius: 10px; border: 1.5px solid var(--line-s, rgba(28,33,48,.16));
  font-size: 12.5px; font-weight: 800; color: var(--ink); transition: border-color .13s, background .13s;
}
.sp-donate-boost:hover { border-color: var(--red); color: var(--red); }
/* Payment state */
.sp-donate-pay-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.sp-donate-pay {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px;
  border: 1.5px solid var(--line-s, rgba(28,33,48,.16)); border-radius: 10px; text-align: left;
  color: var(--ink); transition: border-color .13s, background .13s, box-shadow .13s;
}
.sp-donate-pay:hover { border-color: var(--red); }
.sp-donate-pay.active { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red) inset; }
.sp-donate-pay-radio {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-s, rgba(28,33,48,.16));
  flex: 0 0 auto; transition: border-color .13s, box-shadow .13s;
}
.sp-donate-pay.active .sp-donate-pay-radio { border-color: var(--red); box-shadow: 0 0 0 4px var(--red) inset; }
.sp-donate-pay-label { flex: 1; font-size: 12.5px; font-weight: 700; }
.sp-donate-pay-mark { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.sp-donate-summary { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.sp-donate-summary-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); }
.sp-donate-summary-row.muted { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.sp-donate-summary-row.total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 13px; font-weight: 800; }
.sp-donate-fee-note { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.5; margin: -6px 0 14px; }
.sp-donate-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-top: 10px; }
/* Live checkout (donate-checkout.js): FanFundU tip, Stripe Payment Element, review, errors */
.sp-donate-tip { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.sp-donate-tip-label { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.sp-donate-tip-note { font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin: 2px 0 8px; }
.sp-donate-pe { min-height: 120px; margin-bottom: 14px; }
.sp-donate-pe-loading { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 40px 0; text-align: center; }
.sp-donate-card-line { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.sp-donate-card-line strong { color: var(--ink); }
.sp-donate-error { font-size: 12px; font-weight: 700; color: #b42318; line-height: 1.45; margin: 0 0 12px; }
@media (max-width: 480px) {
  .sp-donate-backdrop { align-items: flex-end; padding: 0; }
  .sp-donate-card { max-width: none; margin: auto 0 0; border-radius: var(--r-lg, 18px) var(--r-lg, 18px) 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .sp-donate-preset { padding: 14px 0; font-size: 14px; }
  .sp-donate-pay { min-height: 50px; }
  .sp-donate-submit { padding: 14px 0; }
}
