/* ==========================================================================
   WEF donation widget — PayPal
   --------------------------------------------------------------------------
   One self-contained block, loaded anywhere a gift can be started. It is a
   set of links, not an embed: donations complete on PayPal's own checkout,
   so there is no third-party script or iframe on our pages and nothing to
   whitelist in the CSP.

   Prefixed .wef-donate-* so it never collides with the homepage's .donate-*
   section styles or the donate page's local .give-* rules.

   Two forms:
     .wef-donate            transparent — sits inside a card the page owns
                            (the homepage's .donate-form).
     .wef-donate--card      brings its own white card, border and shadow.
   ========================================================================== */

.wef-donate {
  --wd-radius: 14px;
  font-family: var(--sans, "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--ink-900, #23201A);
  display: grid;
  gap: 18px;
  text-align: left;
}

.wef-donate--card {
  background: #fff;
  border: 1px solid var(--line, #E7E1D3);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 20px 52px rgba(23, 50, 16, .12);
}

.wef-donate *,
.wef-donate *::before,
.wef-donate *::after { box-sizing: border-box; }

/* ---- Head ---- */
.wef-donate-head { display: grid; gap: 6px; }

.wef-donate-eyebrow {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--pine-ink, #3C762E);
}

.wef-donate-title {
  margin: 0;
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  color: var(--forest-900, #173210);
}

.wef-donate-sub {
  margin: 0;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--ink-600, #57534A);
}

/* ---- Amount chips ----
   Each chip is a real link carrying its own &amount=, so the widget is fully
   usable with JavaScript off. With JS on, a click selects the amount instead
   of navigating and the primary button carries it. */
.wef-donate-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wef-donate-chip {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1.5px solid var(--line, #E7E1D3);
  border-radius: var(--wd-radius);
  background: var(--paper, #FFFDF8);
  color: var(--ink-900, #23201A);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wef-donate-chip:hover {
  border-color: var(--pine-ink, #3C762E);
  background: var(--sage-50, #EFF8EC);
  transform: translateY(-1px);
}

.wef-donate-chip:focus-visible {
  outline: 2px solid var(--forest-900, #173210);
  outline-offset: 2px;
}

.wef-donate-chip[aria-pressed="true"] {
  border-color: var(--forest-900, #173210);
  background: var(--sage-50, #EFF8EC);
  box-shadow: inset 0 0 0 1px var(--forest-900, #173210);
}

.wef-donate-chip-amt {
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--forest-900, #173210);
}

.wef-donate-chip-note {
  font-size: .78rem;
  line-height: 1.35;
  color: var(--ink-600, #57534A);
}

/* ---- Custom amount ----
   Hidden until wef-donate.js unhides it: typing an amount needs the script,
   and a dead input is worse than no input. */
.wef-donate-custom { display: grid; gap: 7px; }

.wef-donate-custom-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-600, #57534A);
}

.wef-donate-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line, #E7E1D3);
  border-radius: var(--wd-radius);
  background: var(--paper, #FFFDF8);
  padding: 0 14px;
  transition: border-color .18s ease;
}

.wef-donate-field:focus-within { border-color: var(--forest-900, #173210); }

.wef-donate-currency {
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: 1.1rem;
  color: var(--ink-600, #57534A);
  flex: none;
}

.wef-donate-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  padding: 13px 0;
  font: inherit;
  font-size: 1.05rem;
  color: inherit;
}

.wef-donate-input:focus { outline: none; }

/* ---- Primary action ---- */
.wef-donate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-radius: var(--wd-radius);
  background: var(--forest-900, #173210);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.wef-donate-submit:hover {
  background: var(--forest-800, #244B1B);
  transform: translateY(-1px);
}

.wef-donate-submit:focus-visible {
  outline: 2px solid var(--forest-900, #173210);
  outline-offset: 3px;
}

.wef-donate-submit svg {
  width: 18px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

/* ---- Reassurance ---- */
.wef-donate-note {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-600, #57534A);
}

.wef-donate-trust {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line, #E7E1D3);
  display: grid;
  gap: 9px;
}

.wef-donate-trust li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-600, #57534A);
}

.wef-donate-trust svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--pine-ink, #3C762E);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 420px) {
  .wef-donate-amounts { grid-template-columns: 1fr; }
  .wef-donate-chip { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wef-donate-chip,
  .wef-donate-submit { transition: none; }
  .wef-donate-chip:hover,
  .wef-donate-submit:hover { transform: none; }
}
