/* ============================================
   KALIFX Checkout
   Tokens pulled from the live site's own system:
   brand red #A60000, coral gradient highlight,
   Segoe UI headings / Arial body, WhatsApp green,
   soft white cards on #f8f9fa.
   ============================================ */
:root {
  --brand: #A60000;
  --brand-coral: #ff4d3d;
  --ink: #1a1a1a;
  --slate: #555;
  --mute: #777;
  --mist: #eceff1;
  --line: #e0e0e0;
  --line-soft: #ebebeb;
  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;
  --success: #1a6e35;
  --success-bg: #f0faf3;
  --success-line: #b6dfc6;
  --font-head: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
}

/* ============================================
   Navbar (matches site nav)
   ============================================ */
.navbar {
  width: 100%;
  background-color: var(--mist);
  border-bottom: 2px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.navbar a {
  color: var(--ink);
  text-decoration: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a:focus-visible {
  color: #4CAF50;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  margin: 15px 0 0 20px;
  font-size: 0.9em;
  display: inline-block;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--mute);
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
}

.breadcrumb span {
  color: #bbb;
  margin: 0 2px;
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 768px) { .breadcrumb { font-size: 0.7em; } }
@media (max-width: 480px) { .breadcrumb { font-size: 0.6em; } }

/* ============================================
   Main / container
   ============================================ */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 20px;
  width: 100%;
}

.container {
  max-width: 440px;
  width: 100%;
}

/* ============================================
   Checkout card
   ============================================ */
.checkout-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 45px rgba(20, 20, 25, 0.12), 0 6px 16px rgba(20, 20, 25, 0.06);
  overflow: hidden;
  text-align: center;
  position: relative;
}

/* thin brand-colored top edge so the card reads as "yours" at a glance */
.checkout-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-coral));
}

.checkout-top {
  padding: 34px 32px 26px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-logo {
  display: block;
  height: 20px;
  width: auto;
  margin: 0 auto 20px;
  user-select: none;
}

.checkout-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand);
  background: rgba(166, 0, 0, 0.07);
  border: 1px solid rgba(166, 0, 0, 0.15);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.checkout-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(166, 0, 0, 0.08);
  border: 1px solid rgba(166, 0, 0, 0.15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.checkout-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

/* signature: the site's own gradient highlight, reused here */
.checkout-title .brand-highlight {
  position: relative;
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(100deg, #A60000 0%, #ff4d3d 55%, #A60000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.checkout-title .brand-highlight::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #A60000, #ff4d3d);
  opacity: 0.5;
}

.checkout-body {
  padding: 26px 32px 30px;
}

/* ---- order summary ---- */
.order-summary {
  margin-bottom: 20px;
  text-align: left;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}

.order-row span {
  color: var(--mute);
}

.order-row strong {
  color: var(--ink);
  font-weight: 600;
}

.badge-mini {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

.order-row--total {
  border-bottom: none;
  padding-top: 15px;
  margin-top: 3px;
  border-top: 1px solid var(--line);
}

.order-row--total span {
  color: var(--ink);
  font-weight: 700;
}

.order-row--total strong {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 800;
}

.order-row--total small {
  display: block;
  margin-top: 3px;
  color: var(--mute);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.checkout-status {
  min-height: 1.2rem;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--mute);
  text-align: center;
}

/* ---- payment method buttons: side by side ---- */
.pay-options {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.pay-options .pay-btn {
  flex: 1;
  min-width: 0;
}

/* ---- pay button, styled after the site's hero-btn ---- */
.pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(166, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pay-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.pay-btn:active {
  transform: translateY(0);
}

.pay-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.pay-btn[data-paypal-checkout] {
  background: #0070ba;
  box-shadow: 0 6px 18px rgba(0, 112, 186, 0.25);
}

.pay-btn[data-paypal-checkout]:hover {
  background: #005ea6;
  box-shadow: 0 10px 22px rgba(0, 112, 186, 0.35);
}

.pay-btn[data-paypal-checkout]:focus-visible {
  outline: 2px solid #0070ba;
}

/* ---- divider + whatsapp: plain icon + text, no bar ---- */
.checkout-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 16px;
  color: #bbb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.checkout-divider::before,
.checkout-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line-soft);
}

.payment-methods {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 18px auto 0;
}

/* ============================================
   Footer (matches site footer)
   ============================================ */
.footer {
  background-color: var(--mist);
  padding: 20px;
  text-align: center;
  border-top: 2px solid var(--line);
}

.footer p {
  font-size: 14px;
  color: #666;
  margin: 20px;
}

.footer a {
  text-decoration: none;
  color: #666;
  margin: 0 10px;
}

.footer a:hover,
.footer a:focus-visible {
  color: #4CAF50;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .footer p, .footer a { font-size: 11px; }
}

@media (max-width: 480px) {
  .main { padding: 28px 14px; }

  .container { max-width: 380px; width: 100%; }

  .checkout-top { padding: 26px 22px 20px; }

  .checkout-title { font-size: 1.3rem; }

  .checkout-body { padding: 20px 22px 24px; }

  .order-row { font-size: 0.85rem; }

  .footer { padding: 14px; }
  .footer p, .footer a { font-size: 10px; }
  .checkout-status {
	  margin: 0 0 8px;
	}
  .pay-btn {
	  padding: 10px 18px;
	  font-size: 0.7rem;
	  border-radius: 5px;
	}
  .pay-options {
	  margin-bottom: 8px;
	}
  .payment-methods {
	  margin: 5px auto 0;
	}
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .pay-btn { transition: none; }
}

/* ---- payment info toggle ---- */
.payment-info-toggle {
  margin-bottom: 16px;
  text-align: left;
}

.payment-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.payment-info-btn:hover { color: var(--ink); }

.payment-info-btn i { font-size: 0.85rem; }

.payment-info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}

.payment-info-panel.is-open {
  max-height: 200px;
  opacity: 1;
}

.payment-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.payment-info-item i {
  margin-top: 2px;
  font-size: 1rem;
  flex-shrink: 0;
}

.payment-info-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.payment-info-item span {
  color: var(--mute);
}
