/* Donate pop-up (template-parts/donate-modal.php). Native <dialog>, same approach as the home video player. */
.jj-donate-modal {
  width: min(560px, 94vw);
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: #333333;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.jj-donate-modal::backdrop {
  background: #00101ee6;
}
.jj-donate-modal[open] {
  animation: jj-donate-in 0.28s ease-out;
}
@keyframes jj-donate-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jj-donate-modal[open] {
    animation: none;
  }
}
html.jj-donate-open {
  overflow: hidden;
}

.jj-donate-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  background: #0a2240;
  border-top: 5px solid #c41230;
}
.jj-donate-modal-top img {
  width: auto;
  height: 58px;
  object-fit: contain;
}
.jj-donate-modal-close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}
.jj-donate-modal-close:hover {
  color: #cccccc;
}

.jj-donate-modal-body {
  padding: 28px 24px 24px;
  text-align: center;
}
.jj-donate-modal-kicker {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c41230;
}
.jj-donate-modal-title {
  margin-top: 8px;
  outline: none; /* receives focus on open (screen readers announce it); no ring on a heading */
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.08;
  text-transform: uppercase;
  color: #0a2240;
}
.jj-donate-modal-text {
  margin: 14px auto 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.55;
  color: #666666;
}

.jj-donate-modal-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 480px) {
  .jj-donate-modal-amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.jj-donate-modal-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 900;
  font-size: 21px;
  color: #0a2240;
  background: #fff;
  border: 2px solid #0a2240;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.jj-donate-modal-amount.is-other {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #0a2240;
}
.jj-donate-modal-amount:hover,
.jj-donate-modal-amount:focus-visible {
  color: #fff;
  background: #c41230;
  border-color: #c41230;
}
.jj-donate-modal button:focus-visible,
.jj-donate-modal a:focus-visible {
  outline: 3px solid #c41230;
  outline-offset: 2px;
}

.jj-donate-modal-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #999999;
}
.jj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 479px) {
  .jj-donate-modal-top img {
    height: 48px;
  }
  .jj-donate-modal-body {
    padding: 22px 18px 20px;
  }
}
