:root {
  --brand: #0d9488;
  --brand-coral: #14b8a6;
  --ink: #1a1a1a;
  --slate: #555;
  --mute: #777;
  --mist: #eceff1;
  --line: #e0e0e0;
  --line-soft: #ebebeb;
  --white: #ffffff;
  --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;
  min-height: 100%;
}

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

.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: #14b8a6;
}

.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;
}

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

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

.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-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.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(13, 148, 136, 0.07);
  border: 1px solid rgba(13, 148, 136, 0.15);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 18px;
}

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

.checkout-title .brand-highlight {
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(100deg, #0d9488 0%, #2dd4bf 55%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.checkout-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mute);
}

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

.field-label {
  display: block;
  text-align: left;
  margin-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
  text-transform: uppercase;
}

.machine-id-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
  text-transform: uppercase;
}

.machine-id-input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(13, 148, 136, 0.15);
}

.field-help {
  margin: 7px 0 18px;
  text-align: left;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.4;
}

.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;
  text-align: right;
}

.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(--brand);
  text-align: center;
}

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

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

.pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  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(37, 211, 102, 0.25);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pay-btn:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}

.pay-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pay-btn:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

.pay-btn[data-whatsapp-checkout] {
  background: #25d366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}

.pay-btn[data-whatsapp-checkout]:hover {
  background: #1ebe5b;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.35);
}

.pay-btn[data-whatsapp-checkout]:focus-visible {
  outline: 2px solid #25d366;
}

.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;
}

.pay-btn--gumroad {
  background: #ff90e8;
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(255, 144, 232, 0.25);
}

.pay-btn--gumroad:hover {
  background: #e07cd4;
  box-shadow: 0 10px 22px rgba(255, 144, 232, 0.35);
}

.pay-btn--gumroad:focus-visible {
  outline: 2px solid #ff90e8;
}

.pay-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pay-or-divider::before,
.pay-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.pay-or-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mute);
}

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

.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: #14b8a6;
}

@media (max-width: 480px) {
  .main { padding: 28px 14px; }
  .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; }
  .pay-btn {
	  padding: 10px 18px;
	  font-size: 0.7rem;
	  border-radius: 5px;
	}
  .pay-options {
	  margin-bottom: 8px;
	}
  .payment-methods {
	  margin: 5px auto 0;
	}
}

@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);
}
