/* Keep the embedded checkout's inherited styles identical to checkout.html. */
.landing-checkout-section {
  position: relative;
  padding: 26px 0 0;
  background: var(--brand--color--background);
  color: var(--text-color-primary);
  font-family: var(--_text---font-family--primary);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.05px;
  scroll-margin-top: 74px;
}

/* The landing stylesheet changes these element defaults after checkout CSS. */
:where(.landing-checkout-section) img {
  display: inline-block;
}

:where(.landing-checkout-section) a {
  color: #000;
}

:where(.landing-checkout-section) input {
  line-height: normal;
}

.landing-checkout-section .checkout-atc__button {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  border-radius: 12px;
  background: #2a4022;
  color: #fff;
  font: 700 20px/28px "Archivo", sans-serif;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.landing-checkout-section .checkout-atc__button:hover {
  background: #354f2b;
}

.landing-checkout-section .checkout-atc__button:focus-visible {
  outline: 3px solid #a7b94f;
  outline-offset: 4px;
}

.landing-checkout-section .checkout-atc__button[hidden] {
  display: none;
}

.landing-checkout__details {
  scroll-margin-top: 90px;
}

/* Collapse visually while retaining the layout boxes Spreedly needs at boot. */
.landing-checkout__details[aria-hidden="true"] {
  height: 0;
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* Keep layout boxes present: the SDK skips card fields with offsetParent=null. */
html:not(.next-display-ready) .landing-checkout__content,
html:not(.next-display-ready) .landing-checkout-section > .gallery-slider {
  visibility: hidden;
  pointer-events: none;
}

.landing-checkout-section .landing-checkout__skeleton {
  position: absolute;
  z-index: 1;
  inset: 26px 0 0;
  background: var(--brand--color--background);
  pointer-events: none;
}

html.next-display-ready .landing-checkout__skeleton,
html.checkout-load-timeout .landing-checkout__skeleton {
  display: none;
}

.landing-checkout__error {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #a92222;
  border-radius: 8px;
  background: #fff;
  color: #7d1717;
  text-align: center;
}

html.checkout-load-timeout:not(.next-display-ready) .landing-checkout__error {
  display: block;
}

@media (max-width: 700px) {
  .landing-checkout-section {
    scroll-margin-top: 65px;
  }
}
