/* ==========================================================================
   SMCF — Donate page stylesheet.
   Additive stylesheet for /donate.php only, linked after /style.css.
   Does not modify style.css or any file owned by other in-progress
   conversion work.
   ========================================================================== */

.smcf-donate-intro {
  max-width: 760px;
}

/* ---- Live donation widget (PayPal), replacing the old disabled
   placeholder — plain vanilla JS (public/js/donate.js), no Vue, per the
   site's "Vue scoped to chrome only" convention. ---- */
.smcf-donate-widget {
  border-radius: 6px;
  padding: 40px;
  margin-top: 32px;
  background: var(--smcf-white);
}

.smcf-donate-currency-note {
  margin: 0 0 24px;
  font-family: var(--smcf-font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: #b3261e;
  text-align: center;
}

/* Frequency tabs — two equal-weight buttons, no checkbox. Selected =
   orange fill / white text; unselected = the exact opposite, white fill /
   orange text. */
.smcf-donate-frequency {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.smcf-donate-freq-btn {
  flex: 1 1 0;
  padding: 16px;
  font-family: var(--smcf-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--smcf-gold);
  border-radius: 4px;
  background: var(--smcf-white);
  color: var(--smcf-gold);
  cursor: pointer;
}

.smcf-donate-freq-btn.is-active {
  border-color: var(--smcf-gold);
  background: var(--smcf-gold);
  color: var(--smcf-white);
}

/* Amount presets + custom amount. */
.smcf-donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

@media (min-width: 560px) {
  .smcf-donate-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.smcf-donate-amount-btn {
  padding: 16px 8px;
  font-family: var(--smcf-font-body);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: 2px solid var(--smcf-gray-light);
  border-radius: 4px;
  background: var(--smcf-white);
  color: var(--smcf-charcoal);
  cursor: pointer;
}

.smcf-donate-amount-btn.is-active {
  border-color: var(--smcf-gold);
  background: var(--smcf-gold);
  color: var(--smcf-white);
}

.smcf-donate-custom-amount {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.smcf-donate-custom-amount label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--smcf-font-body);
  font-size: 0.85rem;
  color: var(--smcf-charcoal);
}

.smcf-donate-custom-amount input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--smcf-gray-light);
  border-radius: 4px;
  font-family: var(--smcf-font-body);
  font-size: 1rem;
  color: var(--smcf-charcoal);
  box-sizing: border-box;
}

.smcf-donate-error {
  margin: 16px 0 0;
  color: #b3261e;
  font-family: var(--smcf-font-body);
  font-size: 0.85rem;
}

#donate-continue-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  border: none;
  cursor: pointer;
}

/* Confirmation step. */
.smcf-donate-confirm {
  text-align: center;
}

.smcf-donate-confirm p {
  font-family: var(--smcf-font-body);
  font-size: 1.05rem;
  color: var(--smcf-charcoal);
  margin: 0 0 24px;
}

/* Frequency word and "USD" highlighted separately, not as one red blob. */
.smcf-donate-confirm-highlight {
  color: #b3261e;
  font-weight: 700;
}

.smcf-donate-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.smcf-donate-confirm-actions button {
  border: none;
  cursor: pointer;
}

.smcf-donate-confirm-actions .smcf-button--outline {
  border: 2px solid var(--smcf-charcoal);
  color: var(--smcf-charcoal);
  background: transparent;
}

.smcf-donate-confirm-actions .smcf-button--outline:hover {
  background: var(--smcf-charcoal);
  color: var(--smcf-white);
}

/* Pay step — PayPal Buttons mount here after Confirm. Constrained to a
   reasonable checkout-button width and centered — without a max-width the
   SDK stretches its buttons to fill the whole (quite wide) widget card,
   which reads as a giant edge-to-edge bar rather than a centered button. */
#donate-step-pay {
  max-width: 420px;
  margin: 0 auto;
}

.smcf-donate-pay-status {
  margin-top: 16px;
  text-align: center;
  font-family: var(--smcf-font-body);
  font-size: 0.9rem;
  color: var(--smcf-sage);
}

.smcf-donate-pay-status--error {
  color: #b3261e;
}

.smcf-donate-media img {
  border-radius: 6px;
}

/* ---- Donor FAQ accordion (native <details>/<summary>, no JS needed) ---- */
.smcf-accordion {
  margin-top: 8px;
}

.smcf-accordion details {
  border-bottom: 1px solid var(--smcf-gray-light);
}

.smcf-accordion summary {
  padding: 18px 4px;
  font-family: var(--smcf-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--smcf-charcoal);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.smcf-accordion summary::-webkit-details-marker {
  display: none;
}

.smcf-accordion summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--smcf-font-body);
  font-size: 1.1rem;
  color: var(--smcf-gold);
}

.smcf-accordion details[open] summary::after {
  content: '\2212';
}

.smcf-accordion .smcf-accordion-body {
  padding: 0 4px 20px;
  font-size: 0.92rem;
}

.smcf-accordion .smcf-accordion-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
}

.smcf-accordion .smcf-accordion-body li {
  margin-bottom: 6px;
}

.smcf-accordion .smcf-accordion-body hr {
  border: 0;
  border-top: 1px solid var(--smcf-gray-light);
  margin: 16px 0;
}
