/* Preview Donate / “Buy us a coffee” page.
   Card layout and copy follow the live /donate coffee card (nws.css).
   Checkout is a one-time Stripe Payment Link, not POST /api/stripe/coffee. */

main:has(.donate-page) {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--page-px) 7rem;
  min-width: 0;
}
@media (width >= 768px) {
  main:has(.donate-page) {
    padding: 24px var(--page-px) 4rem;
  }
}

.donate-page { margin: 0; }
.coffee-page {
  justify-content: center;
  padding: 24px 0 64px;
  display: flex;
}
.coffee-card {
  background: var(--well, #f7f7f7);
  text-align: center;
  border-radius: 16px;
  width: 100%;
  max-width: 28rem;
  padding: 32px 24px;
}
.coffee-card .queue-kicker {
  color: #595959;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.coffee-card > svg.coffee-card-ico,
.coffee-card > svg.coffee-ico {
  width: 48px;
  height: 48px;
  color: var(--red, #d51920);
  margin: 0 auto 8px;
  display: block;
}
.coffee-card h1 {
  font-family: var(--font-display, Poppins, "Segoe UI", sans-serif);
  letter-spacing: -0.03em;
  color: #111;
  margin: 8px 0 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}
.coffee-lede,
.coffee-note,
.coffee-thanks {
  color: #555;
  max-width: 36ch;
  margin: 12px auto 0;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.coffee-thanks { color: #111; font-weight: 500; }
.coffee-lede[hidden],
.coffee-note[hidden],
.coffee-thanks[hidden],
.coffee-custom[hidden],
.coffee-err[hidden],
.coffee-confirm-note[hidden] { display: none !important; }

.coffee-amounts {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  display: flex;
}
.coffee-amt {
  color: #111;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 999px;
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}
.coffee-amt.on {
  color: #fff;
  background: #111;
  border-color: #111;
}
.coffee-custom {
  color: #111;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}
.coffee-usd { color: #555; }
.coffee-custom input {
  text-align: right;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 104px;
  height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: #111;
}
.coffee-custom input:focus {
  outline: 2px solid var(--red, #d51920);
  outline-offset: 1px;
  border-color: transparent;
}
.coffee-when {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
  display: grid;
}
.coffee-when-btn {
  color: #111;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.coffee-when-btn.on {
  color: #fff;
  background: #111;
  border-color: #111;
}
.coffee-when-btn.is-pending,
.coffee-when-btn:disabled {
  color: #666;
  cursor: not-allowed;
  background: #eee;
  border-color: #ddd;
  opacity: 1;
}
.coffee-pending-note {
  color: #555;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}

.coffee-buy {
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  background: var(--red, #d51920);
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  padding: 0 18px;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}
.coffee-buy:hover { color: #fff; background: var(--red-hover, #b9151b); text-decoration: none; }
.coffee-buy svg { width: 18px; height: 18px; flex: none; }
.coffee-buy.is-soon,
.coffee-buy[aria-disabled="true"] {
  color: #333;
  cursor: default;
  background: #e8e8e8;
  pointer-events: none;
}
.coffee-buy.is-soon:hover,
.coffee-buy[aria-disabled="true"]:hover {
  color: #333;
  background: #e8e8e8;
}

.coffee-confirm-note {
  color: #555;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}
.coffee-err {
  color: var(--red, #d51920);
  margin: 12px 0 0;
  font-size: 14px;
}

.coffee-page .pay-stripe {
  color: #595959;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
}
.coffee-page .pay-stripe-brand {
  color: #635bff;
  letter-spacing: -0.01em;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  text-decoration: none;
}
.coffee-page a.pay-stripe-brand { color: #635bff; font-weight: 600; }
.coffee-page .pay-stripe-brand:hover { color: #0a2540; }
.coffee-page .pay-stripe-brand svg { width: 18px; height: 18px; display: block; flex: none; }
.coffee-page .pay-stripe-copy { max-width: 42ch; text-wrap: pretty; }

.coffee-foot {
  color: #555;
  margin: 16px 0 0;
  font-size: 14px;
  text-wrap: pretty;
}
.coffee-foot a {
  color: #111;
  text-underline-offset: 3px;
  text-decoration: underline;
  font-weight: 500;
}
.coffee-foot a:hover { color: #000; }

.coffee-card .nowrap { white-space: nowrap; }
