.ipsfc-donation-wrap {
  --ipsfc-green: #2c4a2e;
  --ipsfc-green-dark: #19341f;
  --ipsfc-gold: #b6944c;
  --ipsfc-cream: #f7f4ec;
  --ipsfc-border: #d9d5c9;
  --ipsfc-text: #242821;
  max-width: 760px;
  margin: 40px auto;
  padding: 0 18px;
  color: var(--ipsfc-text);
  font-family: inherit;
}

.ipsfc-donation-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ipsfc-border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(25, 52, 31, .12);
}

.ipsfc-donation-header {
  padding: 34px 36px 30px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--ipsfc-green-dark), var(--ipsfc-green));
}

.ipsfc-heart {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  place-items: center;
  color: #fff;
  font-size: 25px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
}

.ipsfc-donation-header h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
}

.ipsfc-donation-header p {
  max-width: 590px;
  margin: 0 auto;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1.6;
}

.ipsfc-donation-form {
  padding: 30px 36px 34px;
}

.ipsfc-step + .ipsfc-step {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--ipsfc-border);
}

.ipsfc-step h3 {
  margin: 0 0 16px;
  color: var(--ipsfc-green-dark);
  font-size: 20px;
}

.ipsfc-tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ipsfc-tier {
  position: relative;
  cursor: pointer;
}

.ipsfc-tier input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ipsfc-tier span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 10px 8px;
  color: var(--ipsfc-green-dark);
  font-weight: 700;
  border: 2px solid var(--ipsfc-border);
  border-radius: 9px;
  background: #fff;
  transition: .16s ease;
}

.ipsfc-tier:hover span,
.ipsfc-tier.is-selected span,
.ipsfc-tier input:checked + span,
.ipsfc-tier input:focus-visible + span {
  color: #fff !important;
  border-color: var(--ipsfc-green);
  background: var(--ipsfc-green);
}

.ipsfc-custom-amount {
  margin-top: 16px;
}

.ipsfc-money-input {
  display: flex;
  align-items: center;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #aaa;
  border-radius: 7px;
  background: #fff;
}

.ipsfc-money-input > span {
  padding: 12px 0 12px 14px;
  font-weight: 700;
}

.ipsfc-money-input input {
  width: 100%;
  border: 0 !important;
  box-shadow: none !important;
}

.ipsfc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ipsfc-donation-form label {
  display: block;
  font-weight: 650;
}

.ipsfc-donation-form input[type="text"],
.ipsfc-donation-form input[type="email"],
.ipsfc-donation-form input[type="number"],
.ipsfc-donation-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: #222;
  font: inherit;
  border: 1px solid #aaa;
  border-radius: 7px;
  background: #fff;
}

.ipsfc-donation-form textarea {
  resize: vertical;
}

.ipsfc-donation-form input:focus,
.ipsfc-donation-form textarea:focus {
  outline: 3px solid rgba(44,74,46,.18);
  border-color: var(--ipsfc-green);
}

.ipsfc-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
  font-weight: 500 !important;
}

.ipsfc-checkbox input {
  margin-top: 4px;
}

.ipsfc-optional {
  color: #6e716b;
  font-weight: 400;
}

.ipsfc-summary {
  margin: 24px 0 18px;
  padding: 14px 16px;
  text-align: center;
  color: var(--ipsfc-green-dark);
  font-size: 18px;
  border-radius: 8px;
  background: var(--ipsfc-cream);
}

.ipsfc-form-error,
.ipsfc-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 7px;
}

.ipsfc-form-error {
  color: #721c24;
  border: 1px solid #f1b0b7;
  background: #f8d7da;
}

.ipsfc-notice-warning {
  margin: 30px 36px;
  color: #664d03;
  border: 1px solid #ffecb5;
  background: #fff3cd;
}

.ipsfc-paypal-buttons.is-processing {
  opacity: .55;
  pointer-events: none;
}

.ipsfc-secure-note {
  margin: 14px 0 0;
  color: #676b64;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.ipsfc-success {
  padding: 50px 36px;
  text-align: center;
}

.ipsfc-success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fff;
  font-size: 38px;
  border-radius: 50%;
  background: var(--ipsfc-green);
}

.ipsfc-success h3 {
  margin: 0 0 12px;
  color: var(--ipsfc-green-dark);
  font-size: 29px;
}

.ipsfc-transaction-line {
  color: #666;
  font-size: 14px;
}

.ipsfc-thanks-link {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  color: #fff !important;
  text-decoration: none;
  border-radius: 7px;
  background: var(--ipsfc-green);
}

.ipsfc-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .ipsfc-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ipsfc-tier:last-child {
    grid-column: 1 / -1;
  }

  .ipsfc-fields {
    grid-template-columns: 1fr;
  }

  .ipsfc-donation-header,
  .ipsfc-donation-form,
  .ipsfc-success {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* Compact footer donation callout */
.ipsfc-donation-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  max-width: 330px;
  padding: 18px;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid #d9aa3d;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.ipsfc-donation-cta-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #243f2a;
  font-size: 19px;
  border-radius: 50%;
  background: #f5c64d;
}

.ipsfc-donation-cta-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #f5c64d !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ipsfc-donation-cta h3 {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.ipsfc-donation-cta p {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.ipsfc-open-donation-modal {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 3px;
  padding: 11px 14px;
  color: #1e3523 !important;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 5px;
  background: #f5c64d;
  cursor: pointer;
}

.ipsfc-open-donation-modal:hover {
  background: #ffd66d;
}

body.ipsfc-modal-open {
  overflow: hidden;
}

.ipsfc-modal[hidden] {
  display: none !important;
}

.ipsfc-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  opacity: 0;
  transition: opacity .18s ease;
}

.ipsfc-modal.is-open {
  opacity: 1;
}

.ipsfc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 14, .78);
  backdrop-filter: blur(3px);
}

.ipsfc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  transform: translateY(14px) scale(.985);
  transition: transform .18s ease;
}

.ipsfc-modal.is-open .ipsfc-modal-dialog {
  transform: translateY(0) scale(1);
}

.ipsfc-modal-scroll {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  background: #fff;
}

.ipsfc-modal-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #fff !important;
  font-size: 29px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  cursor: pointer;
}

.ipsfc-modal .ipsfc-donation-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ipsfc-modal .ipsfc-donation-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ipsfc-donation-wrap,
.ipsfc-donation-wrap p,
.ipsfc-donation-wrap label,
.ipsfc-donation-wrap h3,
.ipsfc-donation-wrap input,
.ipsfc-donation-wrap textarea {
  color: #242821;
}

.ipsfc-donation-wrap .ipsfc-donation-header,
.ipsfc-donation-wrap .ipsfc-donation-header h2,
.ipsfc-donation-wrap .ipsfc-donation-header p,
.ipsfc-donation-wrap .ipsfc-tier input:checked + span,
.ipsfc-donation-wrap .ipsfc-tier.is-selected span {
  color: #fff !important;
}

@media (max-width: 700px) {
  .ipsfc-modal {
    padding: 8px;
  }

  .ipsfc-modal-dialog,
  .ipsfc-modal-scroll {
    max-height: calc(100vh - 16px);
  }
}


/* Enfold stacking-context compatibility */
html.ipsfc-modal-open,
body.ipsfc-modal-open {
  overflow: hidden !important;
}

body > .ipsfc-modal {
  position: fixed !important;
  z-index: 2147483000 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  isolation: isolate;
}

body > .ipsfc-modal .ipsfc-modal-backdrop {
  position: fixed !important;
  z-index: 1 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
}

body > .ipsfc-modal .ipsfc-modal-dialog {
  position: relative !important;
  z-index: 2 !important;
}

/* Prevent Enfold footer typography and layout selectors from leaking in. */
body > .ipsfc-modal .ipsfc-donation-wrap {
  float: none !important;
  width: auto !important;
  clear: both !important;
}

body > .ipsfc-modal .ipsfc-donation-card {
  width: 100% !important;
}
