/* checkout.css — /checkout.php only. Uses the same CSS variables defined
   in css/style.css (--navy, --gold, --surface, --border, --shadow, etc.),
   never redefines them, so light/dark theme keeps working unchanged. */

.checkout-page {
  background: var(--bg);
  min-height: calc(100vh - 160px);
  padding: 48px 0 64px;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 980px;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
}

/* ── Order summary (left) ────────────────────────────────────────── */
.checkout-product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.checkout-product-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.checkout-product-name {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

.checkout-summary-rows {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--muted);
}
.checkout-row.checkout-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.checkout-row.checkout-total span:last-child {
  color: var(--navy);
}
[data-theme="dark"] .checkout-row.checkout-total span:last-child {
  color: var(--gold);
}

.checkout-aff-notice {
  margin: 18px 0 0;
  padding: 10px 14px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
}

.checkout-secure-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ── Customer details (right) ────────────────────────────────────── */
.checkout-form-card h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
}
.checkout-form .field {
  margin-bottom: 16px;
}
.checkout-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}
.checkout-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 12px;
}
.checkout-login-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ── Mobile: summary above form, full-width button, generous padding ── */
@media (max-width: 768px) {
  .checkout-page { padding: 24px 0 48px; }
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .checkout-card { padding: 24px 20px; }
  .checkout-row.checkout-total { font-size: 1.3rem; }
}
