/* Checkout typography test page only */
.checkout-modern-page,
.checkout-modern-page p,
.checkout-modern-page li,
.checkout-modern-page label,
.checkout-modern-page input,
.checkout-modern-page select,
.checkout-modern-page textarea,
.checkout-modern-page td,
.checkout-modern-page small {
  font-weight: 300 !important;
}

.checkout-modern-page h1,
.checkout-modern-page h2 {
  font-weight: 600 !important;
}

.checkout-modern-page h3,
.checkout-modern-page h4,
.checkout-modern-page h5,
.checkout-modern-page h6 {
  font-weight: 500 !important;
}

.checkout-modern-page .main-nav a,
.checkout-modern-page .main-nav button,
.checkout-modern-page .mobile-drawer-nav a,
.checkout-modern-page .mobile-drawer-label,
.checkout-modern-page .header-actions a,
.checkout-modern-page button,
.checkout-modern-page .button,
.checkout-modern-page input[type="submit"],
.checkout-modern-page .submit-order,
.checkout-modern-page .checkout-steps li,
.checkout-modern-page .footer-column a {
  font-weight: 500 !important;
}

.checkout-modern-page .checkout-steps.compact {
  max-width: 820px;
  margin-bottom: 56px;
  column-gap: 18px;
}

.checkout-modern-page .checkout-steps.compact li {
  width: 100%;
  max-width: 138px;
  justify-self: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.checkout-modern-page .checkout-steps.compact li:before {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.checkout-modern-page .checkout-steps.compact:before {
  left: 10%;
  right: 10%;
  top: 14px;
}

.checkout-modern-page .credit-card {
  background: transparent !important;
}

.checkout-modern-page .checkout-form {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.checkout-modern-page .summary-item {
  grid-template-columns: 1fr;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9d9d9;
}

.checkout-modern-page .summary-item div {
  color: #1f2d36;
  font-size: 18px;
  font-weight: 600 !important;
  line-height: 1.3;
}

.checkout-modern-page main.checkout-page {
  padding-top: 42px;
}

.checkout-modern-page main.checkout-page > h1 {
  margin: 0 0 30px !important;
  color: #132c3d !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  text-align: center;
}


@media (max-width: 760px) {
  .checkout-modern-page .checkout-steps.compact {
    max-width: 100%;
    gap: 12px;
  }

  .checkout-modern-page .checkout-steps.compact li {
    max-width: none;
    text-align: left;
  }
}

/* Modern checkout form test */
.checkout-modern-page .checkout-layout {
  grid-template-columns: minmax(0, 720px) 285px;
  gap: 34px;
  align-items: start;
}

.checkout-modern-page .checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-modern-page .checkout-test-section,
.checkout-modern-page .checkout-submit-panel {
  padding: 24px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.checkout-modern-page .checkout-test-section h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: #132c3d;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.checkout-modern-page .checkout-test-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #0b9dcc;
}

.checkout-modern-page .form-grid {
  gap: 14px;
  margin-bottom: 0;
}

.checkout-modern-page .checkout-form input,
.checkout-modern-page .checkout-form select,
.checkout-modern-page .checkout-form textarea {
  min-height: 46px;
  border: 1px solid #cfdee7;
  border-radius: 6px;
  padding: 0 14px;
  background: #fbfdfe;
  color: #172d3b;
  font-size: 14px !important;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.checkout-modern-page .checkout-form input::placeholder,
.checkout-modern-page .checkout-form textarea::placeholder {
  color: #7c8b95;
}

.checkout-modern-page .checkout-form input:focus,
.checkout-modern-page .checkout-form select:focus,
.checkout-modern-page .checkout-form textarea:focus {
  border-color: #0b9dcc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 157, 204, .14);
  outline: none;
}

.checkout-modern-page .checkout-form .static-field {
  background: #eef7fb;
  color: #355365;
}

.checkout-modern-page .credit-card {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid #e0edf3;
  border-radius: 8px;
  background: transparent !important;
}

.checkout-modern-page .credit-card h3 {
  margin: 0 0 14px;
  padding: 0;
  color: #203746;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.checkout-modern-page .credit-card > input,
.checkout-modern-page .credit-card .two input {
  width: 100%;
  margin: 0;
}

.checkout-modern-page .credit-card .two {
  margin: 0 0 14px;
}

.checkout-modern-page .credit-card > input {
  margin-bottom: 14px;
}

.checkout-modern-page .credit-card .billing-check,
.checkout-modern-page .credit-card .save-card-check,
.checkout-modern-page .checkline {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dce9ef;
  border-radius: 8px;
  background: #fbfdfe;
  color: #263b49;
  font-size: 14px;
  line-height: 1.35;
}

.checkout-modern-page .credit-card .save-card-check {
  justify-content: flex-end;
  margin-bottom: 14px;
  background: transparent;
}

.checkout-modern-page .checkline + .checkline {
  margin-top: 10px;
}

.checkout-modern-page .credit-card .billing-check input,
.checkout-modern-page .credit-card .save-card-check input,
.checkout-modern-page .checkline input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 1px;
  accent-color: #0b9dcc;
}

.checkout-modern-page .comments {
  margin-top: 16px;
  color: #263b49;
  font-size: 14px;
  font-weight: 500 !important;
}

.checkout-modern-page .comments textarea {
  min-height: 116px;
  margin-top: 8px;
  padding: 12px 14px;
  resize: vertical;
}

.checkout-modern-page .checkout-submit-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.checkout-modern-page .submit-order {
  width: min(100%, 240px);
  min-height: 48px;
  margin: 0 !important;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(8, 142, 197, .22);
  font-size: 15px;
  letter-spacing: 0;
}

.checkout-modern-page .checkout-warning {
  max-width: 520px;
  margin: 16px 0 0 !important;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .checkout-modern-page .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-modern-page .checkout-test-section,
  .checkout-modern-page .checkout-submit-panel {
    padding: 18px;
  }

  .checkout-modern-page .form-grid,
  .checkout-modern-page .credit-card .two {
    grid-template-columns: 1fr;
  }
}

