/* Checkout v2 — summary + wallet preview */
.checkout-page .checkout-grid {
  gap: 1.25rem;
}

.checkout-summary {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
}

.checkout-summary-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.checkout-summary-head h3 {
  margin: 0;
}

.checkout-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.checkout-summary-line span:last-child {
  text-align: right;
  color: var(--text);
}

.checkout-summary-line--muted span {
  color: var(--muted);
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 1.05rem;
  font-weight: 700;
}

.checkout-summary-total strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.checkout-wallet-panel {
  margin: 0.85rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.82rem;
}

.checkout-wallet-panel.hidden {
  display: none;
}

.checkout-wallet-panel--warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.checkout-wallet-panel--err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.checkout-wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0;
}

.checkout-wallet-label {
  color: var(--muted);
}

.checkout-order-fields-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.45));
  border-radius: 14px;
}


section#checkout-root {
  padding: 40px 0;
}

/* Có đơn trong sessionStorage: không flash empty state trước khi checkout.js chạy */
html.giza-checkout-pending #checkout-empty-state {
  display: none !important;
}

html.giza-checkout-pending #checkout-order-panel.hidden {
  display: block !important;
}
