/* Donation form: the Raisin widget in overlay mode. On the page it is only
   Raisin's "Donate Now" button, which opens the form in a modal that
   donations-ui.css styles, so the block is a centred call to action meant to
   sit inside a card such as .kwcs-doc-cta rather than a card of its own. */
.kwcs-donation-form {
  text-align: center;
  /* Holds the button's space while the bundle loads so the page doesn't jump. */
  min-height: 59px;
}

.kwcs-donation-form donations-wrapper {
  display: block;
}

.kwcs-donation-form__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  border: 2px dashed var(--gold-pale);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.kwcs-donation-form__placeholder strong {
  font-size: 20px;
  color: var(--navy-deep);
}

.kwcs-donation-form.is-fallback {
  min-height: 0;
}

.kwcs-donation-form__fallback {
  text-align: center;
  padding: 8px 0 0;
}

.kwcs-donation-form__fallback[hidden] {
  display: none;
}

.kwcs-donation-form__fallback h3 {
  font-size: 22px;
  line-height: 1.15;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.kwcs-donation-form__fallback p {
  margin: 0 auto 22px;
  max-width: 46ch;
}

/* Matches the navy pill core buttons get inside page sections. Raisin's
   button arrives unstyled, so it gets the same treatment. */
.kwcs-donation-form__button,
.kwcs-donation-form .open-rx-modal {
  display: inline-block;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 100px;
  padding: 16px 34px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kwcs-donation-form__button:hover,
.kwcs-donation-form .open-rx-modal:hover {
  background: var(--navy-deep);
  color: white;
}

.kwcs-donation-form .open-rx-modal:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
