.cart-page {
  max-width: 1050px;
  margin-top: clamp(20px, 4vw, 40px);
}

.checkout-heading { margin-bottom: 22px; }
.checkout-heading h1 { margin: 8px 0 0; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; }
.checkout-steps { display: flex; gap: 9px; color: #6e6671; font-size: .9rem; }
.checkout-steps [aria-current="page"] { color: #30263a; font-weight: 750; }
.checkout-steps a:not([aria-current]) { text-decoration: underline; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.checkout-main, .checkout-form { display: grid; gap: 18px; min-width: 0; }
.checkout-panel {
  min-width: 0;
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #eadfe9;
  border-radius: 16px;
}
.checkout-panel h2, #cart-summary .checkout-panel h2 { margin: 0; font-size: 1.15rem; }
.checkout-address legend { padding: 0 7px; font-size: 1.15rem; font-weight: 800; }
.checkout-address-row, .checkout-card-row { display: grid; gap: 12px; }
.checkout-address-row { grid-template-columns: minmax(0, 1.4fr) minmax(90px, 1fr) minmax(100px, 1fr); }
.checkout-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-address-row input, .checkout-address-row select { width: 100%; }
.checkout-note { margin: 4px 0 0; color: #665d6a; font-size: .86rem; }
.checkout-summary { position: sticky; top: 18px; }
.checkout-summary-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.checkout-summary-heading a { font-size: .84rem; }
.checkout-summary .cart-item { padding: 12px 0; }
#cart-summary .checkout-summary .cart-item h2 { font-size: .95rem; }
.checkout-summary .cart-item p, .checkout-summary .cart-item-controls { font-size: .84rem; }
.checkout-summary .checkout-totals { margin: 16px 0 8px; }
.checkout-summary .checkout-totals div { border: 0; margin: 0; font-weight: 400; }
.checkout-summary .checkout-totals .checkout-grand-total { border-top: 1px solid #eee5ec; margin-top: 6px; padding-top: 10px; font-weight: 800; }
.checkout-summary .button { margin-top: 16px; text-align: center; }
.checkout-page .header .back, .cart-page { overflow-wrap: anywhere; }
.checkout-page .header .back { min-width: 0; white-space: normal; }
.checkout-steps { flex-wrap: wrap; }
.cart-page .field, .cart-page .field input, .cart-page .field select, .cart-page .field textarea {
  min-width: 0;
  max-width: 100%;
}
.cart-page .button { white-space: normal; overflow-wrap: anywhere; }
.checkout-totals dt, .checkout-totals dd { min-width: 0; }
.checkout-totals dd { text-align: right; }
.checkout-address legend { max-width: 100%; }
#cart-keychain { margin: 0; }
#checkout-error { padding: 0 3px; }
#checkout-error:not(:empty) { margin-top: -7px; }

@media (max-width: 720px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .checkout-panel { padding: 16px; }
  .checkout-summary { position: static; }
  .checkout-address-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-address-row .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .checkout-card-row { grid-template-columns: minmax(0, 1fr); }
}
.checkout-intro{margin:0;padding:13px 15px;border-radius:14px;background:#f5eff7;color:#584a5d;line-height:1.45}
