.donation-dialog {
  width: min(94vw, 790px);
  max-height: min(92dvh, 850px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #f8fafc;
  color: #172033;
  box-shadow: 0 32px 100px rgba(15, 23, 42, 0.34);
  scrollbar-width: none;
}

.donation-dialog::-webkit-scrollbar,
.donation-shell::-webkit-scrollbar {
  display: none;
}

.donation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.donation-dialog--loading {
  width: auto;
  border-radius: 18px;
}

.donation-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  background: #fff;
  font-weight: 750;
}

.donation-shell {
  max-height: min(92dvh, 850px);
  overflow-y: auto;
  scrollbar-width: none;
}

.donation-header {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 28px 32px 25px;
  overflow: hidden;
  border-bottom: 0;
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background:
    radial-gradient(
      circle at 84% -15%,
      rgba(251, 191, 36, 0.35),
      transparent 34%
    ),
    linear-gradient(135deg, #7f1d3f 0%, #9f1239 48%, #4c1029 100%);
}

.donation-header::after {
  content: '';
  position: absolute;
  right: -95px;
  bottom: -180px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 84px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.donation-header__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.donation-header__brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.donation-header__brand small {
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.donation-header__brand strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.donation-header__heart {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(253, 230, 138, 0.38);
  border-radius: 16px;
  background: rgba(253, 230, 138, 0.13);
  color: #fde68a;
  font-variation-settings: 'FILL' 1;
}

.donation-close {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
}

.donation-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.donation-mission {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 19px 0 20px;
  color: #fff7ed;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.55;
}

.donation-impact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.donation-impact > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.donation-impact .material-symbols-outlined {
  color: #fde68a;
  font-size: 16px;
}

.donation-body {
  padding: 25px 32px 28px;
}

.donation-section-heading {
  margin-bottom: 14px;
}

.donation-section-heading small {
  color: #9f1239;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.donation-section-heading h2 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 1.2rem;
}

.donation-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.donation-method {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 12px 38px 12px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 17px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.donation-method:hover {
  border-color: #f9a8bd;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(100, 20, 50, 0.08);
}

.donation-method.is-selected {
  border-color: #be123c;
  background: #fff7f9;
  box-shadow: 0 0 0 2px rgba(190, 18, 60, 0.1);
}

.donation-method__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f1f5f9;
  color: #475569;
}

.donation-method.is-selected .donation-method__icon {
  background: #ffe4e6;
  color: #be123c;
}

.donation-method__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.donation-method__copy strong {
  color: #172033;
  font-size: 0.88rem;
}

.donation-method__copy small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
}

.donation-method__badge {
  position: absolute;
  top: -7px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.58rem;
  font-weight: 850;
}

.donation-method__check {
  position: absolute;
  right: 12px;
  color: transparent;
  font-size: 20px;
}

.donation-method.is-selected .donation-method__check {
  color: #be123c;
  font-variation-settings: 'FILL' 1;
}

.donation-panels {
  margin-top: 15px;
}

.donation-method-panel {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.donation-method-panel.hidden {
  display: none;
}

.donation-bank-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #ecfdf5;
  color: #166534;
}

.donation-bank-intro .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.donation-bank-intro p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.donation-bank-details {
  display: grid;
  gap: 8px;
  margin: 13px 0;
}

.donation-bank-details > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #f8fafc;
}

.donation-bank-details dt {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.donation-bank-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 0.8rem;
  font-weight: 750;
}

.donation-copy {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #e2e8f0;
  color: #475569;
  cursor: pointer;
}

.donation-copy.is-copied {
  background: #dcfce7;
  color: #15803d;
}

.donation-copy .material-symbols-outlined {
  font-size: 17px;
}

.donation-receipt-note,
.donation-online-intro {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}

.donation-amounts {
  margin: 0;
  padding: 0;
  border: 0;
}

.donation-amounts legend {
  margin-bottom: 10px;
  color: #172033;
  font-size: 0.85rem;
  font-weight: 800;
}

.donation-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.donation-presets button {
  padding: 11px 8px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.donation-presets button.is-selected {
  border-color: #be123c;
  background: #fff1f2;
  color: #9f1239;
}

.donation-custom-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
}

.donation-custom-amount__field {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
}

.donation-custom-amount__field > span {
  padding-left: 12px;
  color: #64748b;
  font-weight: 800;
}

.donation-custom-amount input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px 10px 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 0.95rem;
  font-weight: 800;
}

.donation-amounts > small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.68rem;
}

.donation-points-reward {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 13px;
  background: #fffbeb;
  color: #92400e;
}

.donation-points-reward > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fef3c7;
  color: #b45309;
  font-variation-settings: 'FILL' 1;
}

.donation-points-reward > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.donation-points-reward small {
  color: #a16207;
  font-size: 0.68rem;
  line-height: 1.35;
}

.donation-points-reward strong {
  color: #78350f;
  font-size: 0.88rem;
}

.donation-points-reward--manual {
  grid-template-columns: 34px minmax(0, 1fr);
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
  font-size: 0.74rem;
  line-height: 1.45;
}

.donation-points-reward--manual > .material-symbols-outlined {
  background: #dcfce7;
  color: #15803d;
}

.donation-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(159, 18, 57, 0.22);
}

.donation-submit:hover {
  background: linear-gradient(135deg, #9f1239, #881337);
}

.donation-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.donation-provider-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 9px 0 0;
  color: #64748b;
  font-size: 0.66rem;
  text-align: center;
}

.donation-provider-note .material-symbols-outlined {
  color: #15803d;
  font-size: 15px;
}

.donation-status {
  min-height: 0;
  margin-top: 10px;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.donation-status:empty {
  display: none;
}

.donation-status.is-error {
  color: #b91c1c;
}

.donation-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  color: #64748b;
  font-size: 0.7rem;
}

.donation-footer .material-symbols-outlined {
  font-size: 15px;
}

.donation-footer a {
  color: #9f1239;
  font-weight: 750;
}

.donation-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  text-align: center;
}

.donation-unavailable > .material-symbols-outlined {
  margin-bottom: 8px;
  color: #be123c;
  font-size: 34px;
  font-variation-settings: 'FILL' 1;
}

.donation-unavailable p {
  max-width: 480px;
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.donation-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(100, 116, 139, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: donation-spin 0.7s linear infinite;
}

@keyframes donation-spin {
  to {
    transform: rotate(360deg);
  }
}

#site-footer .footer-donate-link,
.public-site-footer .footer-donate-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(253, 164, 175, 0.65);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 72, 0.94),
    rgba(190, 18, 60, 0.98)
  );
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

#site-footer .footer-donate-link:hover,
.public-site-footer .footer-donate-link:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.38);
}

#site-footer .footer-donate-link:focus-visible,
.public-site-footer .footer-donate-link:focus-visible {
  outline: 2px solid #fda4af;
  outline-offset: 2px;
}

.footer-donate-link .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: 'FILL' 1;
}

@media (max-width: 620px) {
  .donation-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 21px;
  }

  .donation-shell {
    max-height: calc(100dvh - 24px);
  }

  .donation-header {
    padding: 20px 18px 18px;
  }

  .donation-header__heart {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .donation-header__brand strong {
    font-size: 1.35rem;
  }

  .donation-header__brand small {
    font-size: 0.57rem;
  }

  .donation-close {
    top: 15px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .donation-mission {
    margin: 15px 0;
    padding-right: 2px;
    font-size: 0.86rem;
  }

  .donation-impact {
    gap: 5px;
  }

  .donation-impact > span {
    padding: 5px 7px;
    font-size: 0.62rem;
  }

  .donation-body {
    padding: 18px 15px 20px;
  }

  .donation-methods {
    grid-template-columns: 1fr;
  }

  .donation-method {
    min-height: 70px;
  }

  .donation-method-panel {
    padding: 14px;
  }

  .donation-bank-details > div {
    grid-template-columns: 1fr 34px;
  }

  .donation-bank-details dt {
    grid-column: 1 / -1;
  }

  .donation-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .donation-custom-amount {
    grid-template-columns: 1fr 130px;
  }

  .donation-points-reward {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .donation-points-reward > small {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  #site-footer .footer-donate-link {
    padding: 3px 8px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donation-spinner {
    animation-duration: 1.4s;
  }

  #site-footer .footer-donate-link,
  .public-site-footer .footer-donate-link,
  .donation-method {
    transition: none;
  }
}
