.checkout-page {
  padding: 40px 68px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.checkout-form-section h1 {
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 32px;
}
#checkout-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}
#checkout-form legend {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 500;
}
#checkout-form label {
  display: block;
  margin-bottom: 16px;
  width: 100%;
  height: auto;
  border: none;
}
#checkout-form label span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}
#checkout-form input[type="text"],
#checkout-form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: inherit;
}
.secure-checkout-copy {
  max-width: 520px;
  margin: 0 0 28px;
  color: #555;
  font-size: 18px;
  line-height: 1.45;
}
.secure-checkout-copy p {
  margin: 0 0 12px;
}
.promo-form {
  max-width: 520px;
  margin: 0 0 20px;
}
.promo-form label {
  display: block;
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
}
.promo-form div {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
}
.promo-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 15px;
  text-transform: uppercase;
}
.promo-form button {
  height: 48px;
  border: 1px solid #151515;
  background: #fff;
  color: #151515;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}
.promo-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #18794e;
  font-size: 14px;
}
.promo-form.has-error .promo-message {
  color: #b42318;
}
.checkout-error {
  margin: 16px 0 0;
  color: #b42318;
  font-size: 15px;
  line-height: 1.4;
}
.city-state-zip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
  cursor: pointer;
  width: 100%;
  height: auto;
}
.payment-option input {
  width: 18px;
  height: 18px;
  min-width: 0;
  padding: 0;
}
.payment-visual {
  padding: 16px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}
.place-order-btn {
  width: 100%;
  padding: 18px;
  background: #151515;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}

.checkout-summary {
  padding: 32px;
  background: #fafafa;
  border: 1px solid #eee;
}
.checkout-summary h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 400;
}
.checkout-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.checkout-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.checkout-item div {
  flex: 1;
}
.checkout-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.summary-totals {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.summary-totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}
.summary-totals div[hidden] {
  display: none;
}
.summary-totals .discount-row {
  color: #18794e;
}
.summary-totals .total-row {
  font-size: 20px;
  font-weight: 500;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}

.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 24px;
}
.success-container h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.success-container p {
  font-size: 18px;
  color: #555;
  margin-bottom: 12px;
}
.order-id {
  font-family: monospace;
  background: #f0f0f0;
  padding: 8px 16px;
  display: inline-block;
  margin: 16px 0;
}
.btn-primary {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 32px;
  background: #151515;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

@media (max-width: 900px) {
  .checkout-page {
    padding: 28px 16px 56px;
  }
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .checkout-summary {
    order: -1;
    padding: 20px;
  }
  .city-state-zip {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .success-container h1 {
    font-size: 36px;
  }
}
