.checkout-page { background: #f8fafc; color: #0f172a; font-family: "Inter", Arial, sans-serif; }
.checkout-wrap { max-width: 860px; padding: 30px 0 56px; }
.checkout-back { text-decoration: none; color: #1f4f80; font-weight: 600; }
.checkout-sub { color: #64748b; margin-top: 8px; }
.checkout-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; box-shadow: 0 8px 20px rgba(2,6,23,0.05); }
.checkout-section h3 { margin: 14px 0 2px; }
.checkout-hint { margin: 0 0 10px; color: #64748b; font-size: 13px; }
.checkout-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.checkout-form label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; border: 1px solid #dbe3ef; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-top: 4px; font-family: inherit; }
.cart-list { display: grid; gap: 10px; margin: 12px 0 8px; }
.cart-item { display: grid; grid-template-columns: 1.6fr 120px 120px; gap: 10px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; }
.cart-item-single { background: #f8fbff; border-color: #cfe0f5; }
.cart-product-meta small { display: block; margin-top: 2px; color: #64748b; font-weight: 500; }
.cart-item label { margin: 0; font-weight: 500; }
.cart-price { font-weight: 700; color: #047857; }
.checkout-total { margin: 10px 0 12px; font-size: 16px; color: #1e293b; }
.checkout-total strong { color: #047857; }
.pay-methods { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.pay-methods-single { margin: 12px 0 16px; }
.pay-method-badge { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.checkout-form button { background: #1f4f80; color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.checkout-form button:disabled { opacity: 0.7; cursor: wait; }
.checkout-msg { margin-top: 10px; color: #991b1b; }
.checkout-msg-warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; padding: 10px 12px; border-radius: 8px; }
.checkout-trust { margin: 0 0 14px; color: #047857; font-size: 13px; font-weight: 600; }
.track-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; }
.track-table th, .track-table td { border-bottom: 1px solid #edf2f7; padding: 10px; text-align: left; font-size: 14px; }

/* Payment status pages (failed / success) */
.status-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
}
.status-card-failed { border-top: 4px solid #f59e0b; }
.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #c2410c;
}
.status-icon svg { width: 28px; height: 28px; }
.status-card h1 { margin: 0 0 8px; font-size: 1.65rem; color: #0f172a; }
.status-lead { margin: 0 auto 14px; max-width: 520px; color: #64748b; font-size: 15px; line-height: 1.55; }
.status-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-pill-pending { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.status-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.status-panel-head h2 { margin: 0; font-size: 1.05rem; color: #1e293b; }
.status-order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
}
.status-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.status-items li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.status-item-name { font-weight: 600; color: #334155; }
.status-item-meta { color: #64748b; font-size: 13px; }
.status-item-price { font-weight: 700; color: #047857; white-space: nowrap; }
.status-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}
.status-meta-label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.status-meta-grid strong { font-size: 14px; color: #0f172a; }
.status-amount { color: #047857; font-size: 1.05rem; }
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.status-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.status-btn-primary { background: #1f4f80; color: #fff; }
.status-btn-primary:hover:not(:disabled) { background: #163d63; }
.status-btn-primary:disabled { opacity: 0.75; cursor: wait; }
.status-btn-secondary { background: #fff; color: #1f4f80; border: 1px solid #bfdbfe; }
.status-btn-secondary:hover { background: #eff6ff; }
.status-btn-ghost { background: transparent; color: #475569; border: 1px solid #e2e8f0; }
.status-btn-ghost:hover { background: #f8fafc; }
.status-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: status-spin 0.7s linear infinite;
}
@keyframes status-spin { to { transform: rotate(360deg); } }
.status-help {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 8px;
}
.status-help h3 { margin: 0 0 6px; font-size: 15px; color: #1e293b; }
.status-help p { margin: 0 0 10px; color: #64748b; font-size: 14px; line-height: 1.5; }
.status-help-link {
  display: inline-flex;
  font-weight: 700;
  color: #1f4f80;
  text-decoration: none;
  font-size: 14px;
}
.status-help-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .status-meta-grid { grid-template-columns: 1fr; }
  .status-items li { grid-template-columns: 1fr; gap: 4px; }
  .status-item-price { justify-self: start; }
  .status-actions { flex-direction: column; }
  .status-actions .status-btn { width: 100%; }
}