/* Flexible viewport spacing; payment forms always retain their natural height. */
body.checkout-viewport-page #main-content {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  padding-block: clamp(16px, 3vh, 32px);
}

.checkout-viewport-page .conversion-frame {
  flex-shrink: 0;
}

@media (min-width: 701px) {
  .checkout-viewport-page .conversion-checkout {
    min-height: min(716px, calc(100vh - 132px));
    min-height: min(716px, calc(100dvh - 132px));
  }

  .checkout-viewport-page .conversion-frame--focused .conversion-checkout {
    min-height: min(620px, calc(100vh - 132px));
    min-height: min(620px, calc(100dvh - 132px));
  }

  .checkout-viewport-page .conversion-status-layout {
    min-height: min(630px, calc(100vh - 132px));
    min-height: min(630px, calc(100dvh - 132px));
  }

  .checkout-viewport-page .conversion-auth {
    min-height: min(570px, calc(100vh - 132px));
    min-height: min(570px, calc(100dvh - 132px));
  }

  .checkout-viewport-page .conversion-checkout-summary,
  .checkout-viewport-page .conversion-frame--focused .conversion-checkout-summary {
    padding-block: clamp(28px, 5vh, 56px);
  }

  .checkout-viewport-page .conversion-checkout-content,
  .checkout-viewport-page .conversion-frame--focused .conversion-checkout-content {
    padding-block: clamp(24px, 4vh, 48px);
  }
}

@media (min-width: 701px) and (max-height: 760px) {
  body.checkout-viewport-page #main-content {
    padding-block: 16px;
  }

  .checkout-viewport-page .conversion-header {
    min-height: 58px;
  }

  .checkout-viewport-page .conversion-checkout-summary,
  .checkout-viewport-page .conversion-frame--focused .conversion-checkout-summary,
  .checkout-viewport-page .conversion-checkout-content,
  .checkout-viewport-page .conversion-frame--focused .conversion-checkout-content,
  .checkout-viewport-page .conversion-status-content,
  .checkout-viewport-page .conversion-status-summary,
  .checkout-viewport-page .conversion-auth-summary,
  .checkout-viewport-page .conversion-auth-content {
    padding-block: 24px;
  }

  .checkout-viewport-page .conversion-checkout-form,
  .checkout-viewport-page .conversion-frame--focused .conversion-checkout-form {
    margin-top: 18px;
  }

  .checkout-viewport-page .conversion-checkout-form.conversion-form {
    gap: 12px;
  }

  .checkout-viewport-page .conversion-checkout-form > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .checkout-viewport-page .conversion-reassurance-list,
  .checkout-viewport-page .conversion-frame--focused .conversion-reassurance-list {
    margin-top: 12px;
    padding-top: 8px;
  }

  .checkout-viewport-page .conversion-reassurance {
    padding-block: 4px;
  }

  .checkout-viewport-page .conversion-status-route {
    margin-bottom: 16px;
  }

  .checkout-viewport-page .conversion-status-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .checkout-viewport-page .conversion-status-content .conversion-content-head h1 {
    max-width: 18ch;
    font-size: 32px;
  }

  .checkout-viewport-page .conversion-status-notice {
    margin-top: 16px;
    padding-block: 12px;
  }

  .checkout-viewport-page .conversion-status-actions {
    margin-top: 18px;
  }

  .checkout-viewport-page .conversion-status-help {
    margin-top: 16px;
  }
}

@media (max-width: 700px) {
  body.checkout-viewport-page #main-content {
    padding-block: 12px 24px;
  }

  .checkout-viewport-page .conversion-form input:not([type="checkbox"]):not([type="radio"]),
  .checkout-viewport-page #billing-country {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  body.checkout-viewport-page #main-content {
    padding: 0;
  }

  .checkout-viewport-page .conversion-frame {
    min-height: 100vh;
    min-height: 100dvh;
  }
}
