.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(10px);
}
.checkout-modal.active { display: grid; }
.checkout-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(18, 29, 51, 0.28);
}
.checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.checkout-head h2 {
  margin: 0 0 5px;
  color: #0b1220;
  font: 700 25px/1.2 "Inter", sans-serif;
}
.checkout-head p { margin: 0; color: #64748b; font-size: 14px; }
.checkout-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0b1220;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.checkout-close:hover { background:#eef2f6; }
.checkout-close:focus-visible { outline:3px solid rgba(20,184,166,.3); outline-offset:2px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-field { display: grid; gap: 7px; }
.checkout-field.full { grid-column: 1 / -1; }
.checkout-field label {
  color: #0b1220;
  font-size: 13px;
  font-weight: 600;
}
.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dee7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #2b2b2b;
  font: 15px "Inter", sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-field input:focus,
.checkout-field select:focus {
  border-color: #14b8a6;
  outline: 3px solid rgba(20, 184, 166, 0.14);
}
.checkout-help { color: #727988; font-size: 12px; }
.checkout-error {
  display: none;
  margin-top: 16px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff0f0;
  color: #a22020;
  font-size: 13px;
}
.checkout-error.active { display: block; }
.checkout-submit {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  background: #0b1220;
  color: #fff;
  cursor: pointer;
  font: 600 16px "Inter", sans-serif;
  box-shadow: 0 12px 28px rgba(11,18,32,.18);
  transition: transform .2s, background .2s;
}
.checkout-submit:not(:disabled):hover { transform: translateY(-1px); background:#18243a; }
.checkout-submit:disabled { cursor: wait; opacity: 0.65; }
.checkout-secure {
  margin-top: 12px;
  color: #727988;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 620px) {
  .checkout-modal { padding: 12px; }
  .checkout-dialog { max-height:calc(100vh - 24px); padding: 22px; border-radius:18px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-field.full { grid-column: auto; }
}

