.giving .demo-give {
  border: 0;
  min-height: 48px;
}

.giving .giving-contact {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: #e7eff7;
}

.donation-demo {
  --checkout-border: #d6e0e9;
  --checkout-accent: #244f7a;
  width: min(960px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 6px 16px 12px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.donation-demo::backdrop {
  background: #091b2dda;
}

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

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}

.checkout-story,
.checkout-content {
  border-radius: 16px;
  box-shadow: 0 12px 42px #02122338;
}

.checkout-story {
  overflow: hidden;
  background: #eef3f8;
}

.checkout-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: 50% 44%;
}

.checkout-story-copy {
  padding: 17px 35px 32px;
}

.checkout-wordmark {
  display: block;
  width: 144px;
  height: auto;
  margin: 0 0 12px -5px;
}

.donation-demo .checkout-story h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.055em;
}

.donation-demo .checkout-story p {
  max-width: 360px;
  margin: 0;
  color: #465d73;
  font-size: 15px;
  line-height: 1.55;
}

.checkout-content {
  z-index: 1;
  min-width: 0;
  margin-left: -16px;
  border: 1px solid var(--checkout-border);
  background: #fff;
}

.donation-demo .checkout-header {
  position: static;
  height: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 5px 25px;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  color: #536c83;
}

.donation-demo .checkout-header .close {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #edf2f7;
  font-size: 24px;
  cursor: pointer;
}

.donation-demo #demo-gift-title {
  margin: 2px 25px 16px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.045em;
}

.checkout-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.gift-options {
  min-width: 0;
  margin: 0;
  padding: 0 25px;
  border: 0;
  border-bottom: 1px solid var(--checkout-border);
}

.gift-frequency,
.gift-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gift-frequency label {
  position: relative;
  cursor: pointer;
}

.gift-frequency input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.gift-frequency span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-bottom: 3px solid transparent;
  color: #536c83;
  font-size: 14px;
  font-weight: 700;
}

.gift-frequency input:checked + span {
  border-bottom-color: var(--checkout-accent);
  color: var(--checkout-accent);
}

.gift-body {
  padding: 21px 25px 20px;
}

.gift-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.gift-presets button {
  min-height: 44px;
  padding: 3px;
  border: 1px solid #bacbdb;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.gift-presets button + button {
  margin-left: -1px;
}

.gift-presets button:first-child {
  border-radius: 7px 0 0 7px;
}

.gift-presets button:last-child {
  border-radius: 0 7px 7px 0;
}

.gift-presets button[aria-pressed="true"] {
  position: relative;
  border-color: var(--checkout-accent);
  background: #e9f1fa;
  color: var(--checkout-accent);
}

.gift-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 11px;
  padding: 0 13px;
  border: 1px solid #bacbdb;
  border-radius: 7px;
  font-weight: 700;
}

.gift-amount > span:first-child {
  font-size: 22px;
}

.gift-amount input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 27px;
}

.gift-currency {
  font-size: 12px;
  color: #4d647a;
}

.gift-extra {
  margin: 0;
  padding: 0;
  border: 0;
}

.gift-extra summary,
.donation-demo .edit-gift {
  width: fit-content;
  min-height: 37px;
  color: var(--checkout-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.gift-extra summary {
  display: block;
  padding: 0;
  line-height: 37px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gift-extra label {
  display: block;
  font-size: 13px;
  margin: 3px 0 5px;
}

.gift-extra select {
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 6px 8px;
  border: 1px solid #bacbdb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 25px 0;
  border-top: 1px solid var(--checkout-border);
}

.checkout-actions output {
  display: block;
  color: var(--ink);
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.checkout-actions small {
  display: block;
  color: #536c83;
  font-size: 12px;
}

.monthly-actions {
  flex-wrap: wrap;
}

.checkout-primary {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 19px;
  border: 1px solid var(--checkout-accent);
  border-radius: 28px;
  background: var(--checkout-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-primary:hover {
  background: #153857;
}

.donation-demo .checkout-footnote {
  margin: 10px 25px 15px;
  color: #536c83;
  font-size: 12px;
}

.payment-body,
.confirmation-body {
  border-top: 1px solid var(--checkout-border);
}

.donation-demo h3 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 800;
}

.payment-body p,
.confirmation-body p {
  margin: 0 0 14px;
  color: #536c83;
  font-size: 14px;
}

.sample-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #bacbdb;
  border-radius: 7px;
  color: var(--ink);
}

.sample-card strong,
.sample-card span {
  display: block;
}

.sample-card div span {
  font-size: 13px;
  color: #536c83;
}

.sample-card-symbol {
  width: 29px;
  height: 21px;
  border: 2px solid var(--checkout-accent);
  border-radius: 4px;
  background: linear-gradient(transparent 29%, var(--checkout-accent) 30% 46%, transparent 47%);
}

.demo-order {
  margin: 13px 0 0;
  padding: 9px 12px;
  border-radius: 7px;
  background: #f0f4f8;
  font-size: 13px;
}

.demo-order div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
}

.demo-order dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.donation-demo .edit-gift {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
}

.donation-demo :is(button, input, summary, select):focus-visible,
.gift-frequency input:focus-visible + span {
  outline: 3px solid #966231;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .donation-demo {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    border-radius: 12px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-story {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border-radius: 12px 12px 0 0;
  }

  .checkout-photo {
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
    object-position: 50% 48%;
  }

  .checkout-story-copy {
    padding: 10px 12px 13px;
  }

  .checkout-wordmark {
    width: 104px;
    margin: 0 0 2px -3px;
  }

  .donation-demo .checkout-story h2 {
    margin: 0;
    font-size: clamp(21px, 5vw, 28px);
  }

  .checkout-story h2 br,
  .donation-demo .checkout-story p {
    display: none;
  }

  .checkout-content {
    margin-left: 0;
    border-radius: 0 0 12px 12px;
  }

  .donation-demo .checkout-header {
    min-height: 49px;
    padding: 2px 7px 1px 17px;
  }

  .donation-demo #demo-gift-title {
    margin: 0 17px 7px;
  }

  .gift-options,
  .gift-body,
  .checkout-actions {
    padding-inline: 17px;
  }

  .gift-body {
    padding-block: 14px;
  }

  .donation-demo .checkout-footnote {
    margin-inline: 17px;
  }
}
