*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #30313d;
  background: #fff;
}

.checkout-page {
  --checkout-error-border: #f0b4be;
  --checkout-error-border-strong: #e8a0ad;
  --colorIconCardCvc: #697386;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

@media (min-width: 480px) {
  .checkout-page {
    padding: 3rem 1.5rem 3rem;
  }
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #30313d;
}

.pm-card {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pm-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #30313d;
  background: #f6f9fc;
  border-bottom: 1px solid #e3e8ee;
}

.pm-card-icon {
  color: #697386;
  flex-shrink: 0;
}

.pm-card-body {
  padding: 1rem;
}

.field-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #30313d;
}

.pm-card-body .field-label:not(:first-child) {
  margin-top: 1rem;
}

.compound {
  border: 1px solid #cfd7df;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.compound:focus-within {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.compound.is-error {
  border-color: var(--checkout-error-border-strong);
  box-shadow: 0 0 0 1px var(--checkout-error-border);
}

.compound.is-error:focus-within {
  box-shadow: 0 0 0 3px rgba(223, 27, 65, 0.12);
}

.compound.is-error .compound-row--cardnum input {
  color: #df1b41;
}

.compound.is-error .card-brands,
.compound-row--cardnum.is-field-error .card-brands {
  display: none;
}

.card-inline-error-icon[hidden],
.field-inline-error-icon[hidden],
.field-single-error-icon[hidden] {
  display: none !important;
}

.compound-row--cardnum {
  position: relative;
}

.card-inline-error-icon {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  z-index: 2;
}

.compound-row--full input.has-inline-error-icon {
  padding-right: 2rem;
}

.compound-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e3e8ee;
}

.compound-row--last,
.compound-row:last-child {
  border-bottom: none;
}

.compound-row--full {
  position: relative;
}

.compound-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compound-cell {
  position: relative;
  min-width: 0;
  border-right: 1px solid #e3e8ee;
}

.compound-cell:last-child {
  border-right: none;
}

.compound-row--cardnum.is-field-error,
.compound-row--full.is-field-error,
.compound-cell.is-field-error {
  box-shadow: inset 0 0 0 1px var(--checkout-error-border);
  z-index: 2;
}

.field-inline-error-icon {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  z-index: 3;
}

.compound-cell input.has-inline-error-icon,
.compound-row--full input.has-inline-error-icon,
.compound-row--full select.has-inline-error-icon {
  padding-right: 2.35rem;
}

#cell-card-cvv input {
  padding-right: 2.65rem;
}

#cell-card-cvv input.has-inline-error-icon {
  padding-right: 2.35rem;
}

.card-cvc-hint {
  --colorIconCardCvc: #697386;
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.card-cvc-hint-icon {
  display: block;
  width: 1.875rem;
  height: auto;
}

#cell-card-cvv.is-field-error .card-cvc-hint {
  display: none;
}

.compound-row input,
.compound-row select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  color: #30313d;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
}

.compound-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}


#bill-postal[hidden],
#cell-bill-postal[hidden] {
  display: none;
}

#bill-state-row[hidden] {
  display: none;
}

.compound-row input::placeholder {
  color: #a3acb9;
}

.card-brands {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.25rem;
  pointer-events: none;
}

.compound-row--full input {
  padding-right: 6.75rem;
}

.compound-row--full input.has-single-brand {
  padding-right: 3.25rem;
}

.card-brand-img[hidden] {
  display: none !important;
}

.card-brand-img {
  display: block;
  height: 1rem;
  width: auto;
  max-width: 1.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.field-single-wrap {
  position: relative;
}

.field-single-wrap.is-field-error .field-single {
  border-color: var(--checkout-error-border-strong);
  box-shadow: 0 0 0 1px var(--checkout-error-border);
}

.field-single-wrap.is-field-error .field-single:focus {
  box-shadow: 0 0 0 3px rgba(223, 27, 65, 0.12);
}

.field-single-error-icon {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.field-single {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  color: #30313d;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
  outline: none;
}

.field-single.has-inline-error-icon {
  padding-right: 2.35rem;
}

.field-single:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2);
}

.field-error {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #df1b41;
}

.error-summary {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fef2f4;
  border: 1px solid #f5c4cb;
  border-radius: 6px;
}

.error-summary-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #df1b41;
}

.error-summary-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.error-summary-divider {
  margin: 0.65rem 0;
  border: none;
  border-top: 1px solid #f5c4cb;
}

.error-summary-detail {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #df1b41;
}

.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #0a2540;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-submit:hover:not(:disabled) {
  background: #061b2e;
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.btn-submit.is-loading .btn-text {
  opacity: 0;
}

.btn-spinner {
  position: absolute;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
}

.btn-submit.is-loading .btn-spinner {
  opacity: 1;
  animation: spin 0.65s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.consent {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #697386;
  text-align: center;
}

.stripe-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: #697386;
}

.stripe-footer-powered {
  color: #697386;
}

.stripe-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.stripe-logo {
  display: block;
  height: 1.125rem;
  width: auto;
}

.stripe-footer a:not(.stripe-logo-link) {
  color: #697386;
  text-decoration: none;
}

.stripe-footer a:hover {
  color: #30313d;
  text-decoration: underline;
}

.stripe-footer-sep {
  color: #cfd7df;
  user-select: none;
}
