.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 8px;
  font-family: "DIN Neuzeit", Arial, sans-serif;
}

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.donate-story p { color: var(--muted); max-width: 48ch; }
.donate-impact { margin: 18px 0; padding: 0; list-style: none; }
.donate-impact li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.donate-note { font-size: 14px; }

.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(63, 63, 70, .08);
  padding: 28px 26px 24px;
}
.pay-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.pay-card-head img {
  height: 48px;
  width: auto;
  background: #fff;
}
.pay-card-head h2 { margin: 0 0 4px; font-size: 26px; }
.pay-card-head p { margin: 0; color: var(--muted); font-size: 14px; }

.pay-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.pay-form legend {
  font-family: "DIN Neuzeit", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.pay-form legend em {
  font-style: normal;
  color: var(--gold);
  margin-left: 6px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.amt {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 44px;
  font-family: "DIN Neuzeit", Arial, sans-serif;
}
.amt.is-on, .amt:hover { border-color: var(--gold); background: #fff8ea; }
.freq { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 14px; }

.field { display: grid; gap: 6px; margin: 10px 0; font-size: 14px; }
.field span { color: var(--muted); }
.field input, .field textarea, .chat-compose textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.placeholder-banner {
  background: #fff6e5;
  border: 1px solid #e8c36a;
  color: #5c4a16;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 8px;
}
.pay-placeholders input { background: #fafafa; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pay-submit { width: 100%; margin-top: 6px; }

.pay-unavailable {
  text-align: center;
  padding: 12px 4px 6px;
}
.unavail-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--charcoal); color: #fff;
  display: grid; place-items: center;
  font-size: 28px; font-family: "DIN Neuzeit", Arial, sans-serif;
}
.pay-unavailable .btn { width: 100%; margin-top: 10px; }

.chat-layer {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, .45);
  z-index: 80;
  display: grid;
  justify-items: end;
  align-items: stretch;
}
.chat-layer[hidden],
.support-modal[hidden],
.chat-start[hidden],
.chat-compose[hidden] {
  display: none !important;
}
.chat-panel {
  width: min(420px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: -12px 0 40px rgba(0,0,0,.18);
}
.chat-panel-page {
  width: min(720px, 100%);
  min-height: 70vh;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(63,63,70,.08);
  border: 1px solid var(--line);
}
.chat-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.chat-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: "DIN Neuzeit", Arial, sans-serif;
}
.chat-head h1, .chat-head h2 { margin: 2px 0 0; font-size: 22px; }
.chat-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; display: inline-block; }
.dot.on { background: #2f9e44; }
.chat-close {
  border: 0; background: transparent; font-size: 28px; line-height: 1; width: 36px;
}

.chat-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 15px;
}
.bubble.visitor { align-self: flex-end; background: var(--gold); color: #fff; }
.bubble.admin { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 13px; text-align: center; max-width: 90%; }
.bubble time { display: block; opacity: .75; font-size: 11px; margin-top: 4px; }
.chat-start, .chat-compose { padding: 14px 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.chat-compose textarea { min-height: 54px; resize: vertical; }
.chat-error { color: #9b1c1c; font-size: 13px; }

body.support-modal-open,
body.chat-open { overflow: hidden; }

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .42);
}
.support-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(63, 63, 70, .16);
  padding: 32px 28px 26px;
  text-align: left;
}
.support-modal-dialog h2 {
  margin: 4px 0 12px;
  font-size: 28px;
}
.support-modal-dialog p#supportModalDesc {
  color: var(--muted);
  margin: 0 0 22px;
}
.support-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.support-modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--charcoal);
}
.support-modal-x:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .support-modal-backdrop { animation: clvfFade .18s ease; }
  .support-modal-dialog { animation: clvfRise .2s ease; }
}
@keyframes clvfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes clvfRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .donate-layout { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .chat-layer { align-items: end; }
  .chat-panel { width: 100%; min-height: 86vh; border-radius: 16px 16px 0 0; }
  .field-row { grid-template-columns: 1fr; }
  .chat-head { grid-template-columns: 1fr auto; }
  .support-modal { padding: 12px; align-items: end; }
  .support-modal-dialog { width: 100%; padding: 26px 20px 20px; }
  .support-modal-actions { grid-template-columns: 1fr; }
}

/* ================= Donate checkout page (/donate) ================= */
.donate-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .donate-wrap { grid-template-columns: 1fr; }
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(63, 63, 70, .10);
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.back-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
}
.back-arrow:hover { background: #f4f1ec; }
.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "DIN Neuzeit", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.check-badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
}
.pay-summary-body { padding: 20px; }

.amount {
  font-family: "DIN Neuzeit", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 4px 0 18px;
}
.amount-pick { margin-bottom: 14px; }
.section-label {
  font-family: "DIN Neuzeit", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  margin: 10px 0;
  cursor: pointer;
}
.checkbox-row input { accent-color: var(--gold); width: 16px; height: 16px; }
.info-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.terms-note { font-size: 13px; color: var(--muted); margin: 10px 0 16px; }
.terms-note a { color: var(--ink); }

/* Wallet payment buttons */
.pay-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 0;
  font-family: "DIN Neuzeit", -apple-system, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px 0;
  cursor: pointer;
}
.pay-btn.apple-pay { background: #000; color: #fff; }
.pay-btn.apple-pay:hover { background: #1c1c1e; }
.pay-btn.google-pay { background: #fff; color: #3c4043; border: 1px solid #d7dade; }
.pay-btn.google-pay:hover { background: #f7f8f9; }
.gpay-left { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.gpay-left .g { color: #4285f4; font-weight: 700; }
.gpay-cards { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.mini-card {
  background: #1a73e8;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
  letter-spacing: .04em;
}
.plus-box {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 12px;
  border: 1px solid #d7dade;
  border-radius: 3px;
  font-size: 9px;
  color: #5f6368;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 8px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

/* Payment method accordion */
.card-option,
.alt-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.card-option:focus-visible,
.alt-method:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.radio-dot,
.alt-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #b6b2ac;
  border-radius: 50%;
  position: relative;
  transition: border-color .15s ease;
}
.radio-dot.is-on,
.alt-radio.is-on { border-color: var(--gold); }
.radio-dot.is-on::after,
.alt-radio.is-on::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}
.card-icons { margin-left: auto; display: inline-flex; gap: 4px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.brand.visa { background: #1a1f71; }
.brand.mc { background: #eb001b; }
.brand.disc { background: #f48120; }
.brand.amex { background: #2e77bc; }

.card-panel,
.alt-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.card-panel.open,
.alt-panel.open { max-height: 900px; }
.card-panel-inner { padding: 18px 4px 22px; }
.alt-panel-inner { padding: 16px 4px 20px; }

.field-group input,
.field input,
.field select { width: 100%; }
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
}
.phone-flag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #f7f5f2;
  border-right: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}
.phone-field input { border: 0; }
.card-number-field { position: relative; }
.card-number-field input { padding-right: 86px; }
.brand-icons {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 3px;
}
.cvc-field { position: relative; }
.cvc-field input { padding-right: 30px; }
.cvc-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.alt-logo { margin-left: auto; }
.paypal-logo { font-style: italic; font-weight: 700; color: #003087; }
.paypal-logo > span { color: #0079c1; }
.venmo-logo { font-style: italic; font-weight: 700; color: #3d95ce; }
.cashapp-logo { font-weight: 700; color: #00d632; }
.lowest-fee { font-size: 12px; color: #2f9e44; font-weight: 600; }
.bank-icon { font-size: 18px; }

/* Full-width gold submit on the checkout card */
.pay-summary-body .pay-submit,
.alt-panel-inner .pay-submit,
.card-panel-inner .pay-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-family: "DIN Neuzeit", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pay-summary-body .pay-submit:hover { background: var(--gold-dark); }

/* Payment server down modal details */
.pay-down-dialog { text-align: center; }
.pay-down-dialog .support-modal-x { position: absolute; }
.pay-down-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #b3261e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
}
.pay-down-sub { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.pay-down-sub strong { color: var(--ink); }
.pay-down-meta { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
