#modal_donation {
  width: min(560px, calc(100vw - 2rem));
  max-width: 560px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 38px rgba(31, 40, 37, 0.28);
  text-align: left;
}

#modal_donation.modal {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

#modal_donation .rocket_modal_header {
  position: relative;
}

#modal_donation .brand_logo_container {
  top: 0.75rem;
  width: 68px;
  height: 68px;
}

#modal_donation .brand_logo {
  width: 54px;
  height: 54px;
}

#modal_donation .modal-title {
  margin-top: 5.25rem;
}

#modal_donation .modal-body {
  padding: 1rem 1.25rem 0.35rem;
}

#modal_donation .modal-footer {
  padding: 0.45rem 1.25rem 1rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

#modal_donation .payment-provider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 1.8rem;
  margin-top: 0.2rem;
  color: #69736f;
  font-size: 0.76rem;
}

#modal_donation .payment-provider-line .icon-shield-alt-solid {
  color: #7b8581;
  font-size: 0.82rem;
}

#modal_donation .stripe-provider-link {
  display: inline-flex;
  align-items: center;
  color: #635bff;
  line-height: 1;
}

#modal_donation .stripe-provider-link:hover,
#modal_donation .stripe-provider-link:focus-visible {
  color: #4b45c6;
}

#modal_donation .stripemark {
  position: static;
  top: auto;
  display: inline-block;
  font-size: 2rem;
  line-height: 0.75;
}

#modal_donation .donation-close {
  position: absolute;
  z-index: 4;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.82);
  color: #fff;
  font: 700 1.5rem/1 sans-serif;
  cursor: pointer;
}

#modal_donation .donation-close:hover,
#modal_donation .donation-close:focus-visible {
  background: #111;
  outline: 3px solid rgba(255, 255, 255, 0.75);
}

.donation-steps,
.donation-steps__inner,
.donation-steps__list,
.donation-step {
  width: 100%;
  min-width: 0;
}

.donation-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.donation-step[hidden],
.campaign-checkout[hidden],
.donation-inline-host[hidden] {
  display: none !important;
}

#payment-element {
  min-height: 120px;
  margin-top: 0.5rem;
}

#payment-element.StripeElement {
  height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#modal_donation .input-container {
  flex-flow: row nowrap;
  align-items: stretch;
}

#modal_donation .input-container .form-icon {
  flex: 0 0 34px;
}

#modal_donation .input-container #custamount {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.ElementsModal--error-message {
  margin-top: 0.4rem;
  color: #be1d2d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.legacy-country-field {
  display: none !important;
}

.donation-summary {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d7e2dd;
  border-radius: 8px;
  background: #f7fbf9;
}

.donation-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.donation-summary__row--total {
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid #c7d8d0;
  font-size: 1.05rem;
}

.express-checkout {
  margin: 0 0 1.1rem;
}

.express-checkout[hidden] {
  display: none !important;
}

.express-checkout__label {
  margin: 0 0 0.5rem;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.express-checkout__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
  color: #66736d;
  font-size: 0.78rem;
  text-align: center;
}

.express-checkout__divider::before,
.express-checkout__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d7e2dd;
}

.express-checkout__divider span {
  white-space: nowrap;
}

.cover-fee-check,
.marketing-optin-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

#modal_donation .cover-fee-check input[type="checkbox"],
#modal_donation .marketing-optin-check input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  margin-top: 0.3rem;
  padding: 0 !important;
  border: 1px solid #7c8782;
  border-radius: 3px;
  box-shadow: none;
  accent-color: #179766;
}

.cover-fee-check label,
.marketing-optin-check label {
  line-height: 1.45;
}

.donation-form-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0.25rem 0 0.4rem;
}

.donation-back {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #596661;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.donation-back:hover,
.donation-back:focus-visible {
  color: #be1d2d;
}

.donation-result {
  padding: 2rem 1rem;
  text-align: center;
}

.donation-result h3 {
  margin-bottom: 0.75rem;
}

.donation-reference {
  color: #66736d;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.rocket-alert-closebtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.campaign-checkout,
.donation-inline-host {
  scroll-margin-top: 7rem;
  width: min(100%, 620px);
  margin: 2rem auto 1rem;
}

#modal_donation.donation-checkout--inline {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid rgba(84, 153, 164, 0.4);
}

.blocker #modal_donation a.close-modal {
  display: none;
}

@media (max-width: 600px) {
  .blocker {
    padding: 0;
  }

  #modal_donation.modal {
    width: 100% !important;
    max-width: none;
    max-height: 100vh;
    margin-left: 0 !important;
    border-radius: 0;
  }

  #modal_donation .modal-body {
    padding: 0.8rem 0.75rem 0.25rem;
  }

  #modal_donation .modal-footer {
    padding: 0.35rem 0.75rem 0.8rem;
  }

  #modal_donation .modal-title {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    font-size: 1.25rem;
  }
}
