.donation { margin-top: 26px; margin-bottom: 26px; }
.donation-panel { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #c6ddec; border-radius: 14px; background: radial-gradient(ellipse at 86% 46%,#d7eaf8 0,#edf6fc 43%,#f8fbfe 75%); }
.donation-copy { position: relative; z-index: 2; width: 62%; padding: 25px 32px 23px; }
.donation-mono { display: block; width: 103px; height: 23px; object-fit: contain; object-position: left; margin-bottom: 13px; }
.donation h2 { font-size: clamp(26px,2.8vw,37px); line-height: 1.12; font-weight: 700; letter-spacing: -1.1px; color: #122c46; }
.donation h2 span { white-space: nowrap; }
.donation-description { margin-top: 11px; font-size: 15px; line-height: 1.5; color: #48667e; }
.donation-art { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 39%; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.donation-jar-base { display: block; width: 100%; height: 100%; }
.donation-heart-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.donation-art img { display: block; height: 100%; width: 100%; object-fit: contain; object-position: center top; }
.donation-form { margin-top: 19px; }
.donation-amounts { display: grid; grid-template-columns: repeat(3,minmax(66px,1fr)) minmax(174px,1.65fr); gap: 8px; max-width: 560px; }
.donation-choice { min-height: 42px; padding: 9px 10px; border: 1px solid #93b5cf; border-radius: 9px; background: #ffffffd9; color: #163b5b; font-size: 14px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.donation-choice:hover { border-color: #217db1; background: #e6f1fa; }
.donation-choice[aria-pressed="true"] { border-color: #e2be3f; background: #f4ce46; color: #122c46; }
.donation-custom { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-top: 10px; font-size: 12px; color: #48667e; }
.donation-custom[hidden] { display: none; }
.donation-custom input { min-width: 0; width: 132px; min-height: 40px; padding: 8px 12px; border: 1px solid #93b5cf; border-radius: 8px; font: inherit; font-size: 16px; color: #163b5b; background: white; }
.donation-custom input:focus-visible { outline: 3px solid #217db1; outline-offset: 2px; }
.donation-actions { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.donation-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 12px 19px; border-radius: 10px; background: #163b5b; color: white; font-size: 15px; font-weight: 600; }
.donation-submit:hover { background: #245c86; }
.donation-submit:disabled { background: #49677f; cursor: not-allowed; }
.donation-submit [data-donation-selected] { white-space: nowrap; }
.donation-submit .donation-arrow { margin-left: 14px; font-size: 20px; line-height: .8; }
.donation-signature { display: inline-flex; align-items: baseline; gap: 5px; padding-left: 18px; border-left: 1px solid #b8cfdf; color: #163b5b; font-size: 19px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.donation-signature span { color: #217db1; font-size: 18px; }
.donation-note { margin-top: 9px; color: #526b80; font-size: 11px; line-height: 1.45; }
@media (max-width: 1050px) {
  .donation-copy { width: 65%; padding-left: 24px; padding-right: 18px; }
  .donation-art { width: 36%; }
  .donation-amounts { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 380px; }
  .donation-choice-custom { grid-column: 1 / -1; }
  .donation-actions { gap: 14px; }
  .donation-signature { font-size: 17px; padding-left: 13px; }
}
@media (max-width: 620px) {
  .donation { margin-top: 20px; margin-bottom: 20px; }
  .donation-copy { width: 100%; padding: 18px 16px; }
  .donation-mono { width: 87px; height: 19px; margin-bottom: 12px; }
  .donation h2 { max-width: calc(100% - 115px); font-size: 26px; line-height: 1.08; letter-spacing: -.8px; }
  .donation h2 span { white-space: normal; }
  .donation-art { top: 0; right: 3px; bottom: auto; width: 134px; height: 155px; opacity: .98; }
  .donation-description { position: relative; margin-top: 12px; font-size: 13px; max-width: 100%; }
  .donation-form { margin-top: 14px; }
  .donation-amounts { max-width: none; gap: 7px; }
  .donation-choice { min-height: 39px; padding: 9px 6px; font-size: 13px; }
  .donation-actions { gap: 12px; }
  .donation-submit { min-height: 43px; padding: 11px 13px; font-size: 13px; gap: 5px; }
  .donation-submit .donation-arrow { margin-left: 5px; font-size: 18px; }
  .donation-signature { padding-left: 11px; font-size: 15px; }
  .donation-signature span { font-size: 14px; }
  .donation-note { font-size: 10px; }
}
@media (max-width: 360px) {
  .donation-copy { padding: 17px 12px; }
  .donation h2 { max-width: calc(100% - 102px); font-size: 24px; }
  .donation-art { right: -4px; width: 118px; height: 157px; }
  .donation-description { margin-top: 18px; }
  .donation-actions { justify-content: space-between; gap: 7px; }
  .donation-signature { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; padding-left: 8px; }
  .donation-signature span { font-size: 12px; }
}

/* Persistent shortcut to the donation form; only the heart moves. */
.donation-shortcut {
  position: fixed;
  z-index: 40;
  right: calc(14px + env(safe-area-inset-right,0px));
  bottom: calc(20px + env(safe-area-inset-bottom,0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 80px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  color: #163b5b;
  filter: drop-shadow(0 3px 5px #102f4b35);
}
.donation-shortcut[hidden] { display: none; }
.donation-shortcut:hover { filter: drop-shadow(0 3px 7px #102f4b55); }
.donation-shortcut:focus-visible { outline: 3px solid #217db1; outline-offset: 3px; }
.donation-shortcut svg { display: block; width: 88px; height: 80px; overflow: visible; }
/* A paired beat with a short recovery; only the isolated heart changes size. */
.donation-beating-heart { transform-box: view-box; transform-origin: 420px 390px; }
.donation-budget { margin-bottom: 0; }
@media (max-width: 620px) {
  .donation-shortcut { right: calc(6px + env(safe-area-inset-right,0px)); bottom: calc(14px + env(safe-area-inset-bottom,0px)); width: 72px; height: 66px; }
  .donation-shortcut svg { width: 72px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .donation-shortcut { transition: none; }
  .donation-beating-heart { animation: none; transform: none; filter: none; }
}
