.embedded-payment {
  width: min(100%, 1180px);
  min-width: 0;
  margin: 0 auto;
  padding: 2.5rem max(1.25rem, 3vw) 4rem;
  border-top: 1px solid var(--line, #d8d6ce);
  color: var(--ink, #242921);
  scroll-margin-top: 110px;
}

.embedded-payment > h2,
.embedded-payment-heading h2 {
  margin: .7rem 0 1rem;
  font: 400 clamp(2rem, 4vw, 3rem)/1.15 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
}

.embedded-payment > p:not(.eyebrow):not(.embedded-payment-test) {
  max-width: 46rem;
  font-size: .95rem;
  line-height: 1.65;
}

.embedded-payment-test {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .55rem .8rem;
  border: 1px solid #b6ae8f;
  border-radius: 3px;
  background: #f3eddb;
  color: #534929;
  font-size: .8rem;
  line-height: 1.5;
}

.embedded-payment-mount {
  min-width: 0;
  max-width: 100%;
  margin: 1.5rem 0;
  isolation: isolate;
}

.embedded-payment-mount iframe {
  max-width: 100%;
  border: 0;
}

#embedded-payment-status {
  min-height: 1.65em;
  margin: 1rem 0;
  overflow-wrap: anywhere;
}

.embedded-payment-retry {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}

.embedded-payment[data-payment-state="error"] #embedded-payment-status,
.embedded-payment[data-payment-state="failed"] #embedded-payment-status {
  color: #85293b;
}

.embedded-payment[data-payment-state="paid"] #embedded-payment-status {
  color: #354d2e;
}

@media (max-width: 700px) {
  .embedded-payment {
    padding: 2rem 5% 3rem;
    scroll-margin-top: 90px;
  }

  .embedded-payment-mount {
    margin: 1rem -3%;
    max-width: none;
  }

  .embedded-payment-test {
    max-width: 100%;
    font-size: .75rem;
  }

  .embedded-payment-retry {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embedded-payment {
    scroll-behavior: auto;
  }
}

@media print {
  .embedded-payment { display: none !important; }
}
