﻿:root {
  --primary: #e85d04;
  --teal: #14b8a6;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #f3f4f6;
  --card: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Timer bar ── */
.top-timer {
  background: #e11d1d;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 16px;
}

/* ── Main container ── */
.checkout-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px 0 24px;
  padding: 0 2px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9ca3af;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.step p {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.step.active span,
.step.done span { background: var(--teal); }

.step.active p,
.step.done p { color: var(--text); font-weight: 700; }

.line {
  flex: 1;
  height: 3px;
  background: #d1d5db;
  border-radius: 10px;
  margin: 20px 6px 0;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px 22px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.09);
}

/* ── Card heading with icon ── */
.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-field input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}

.form-field input::placeholder {
  color: #b0b8c4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── External action buttons ── */
.step-actions {
  margin-top: 12px;
}

.step-actions-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.step-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cta {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  transition: opacity 0.15s;
}

.btn-cta:active { opacity: 0.85; }

.btn-cta-inline {
  display: block;
  width: 100%;
}

.btn-secondary {
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 50px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:active { background: #d1d5db; }

.btn-secondary-full {
  width: 100%;
}

/* ── Payment step ── */
.pix-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.summary {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  background: #f9fafb;
}

.summary-item {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-total {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 14px 0 0;
}

/* ── Acquiring card ── */
.acquiring-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.09);
}

.acquiring-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.acquiring-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.acquiring-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.acquiring-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acquiring-info strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.acquiring-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #16a34a;
}

.acquiring-qty {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

.acquiring-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  font-size: 0.95rem;
}

.acquiring-total strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

/* ── Trust badges ── */
.trust-badges {
  background: #fff;
  border-radius: 16px;
  padding: 6px 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
}

.trust-item:last-child {
  border-bottom: none;
}

.trust-icon {
  width: 42px;
  height: 42px;
  background: #dcfce7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ── Utilities ── */
.hidden { display: none !important; }

.safe-note {
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 20px;
  line-height: 1.5;
}

/* ── Frete banner ── */
.frete-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0faf3;
  border: 1.5px solid #2ecc71;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.frete-banner-icon { font-size: 1.5rem; line-height: 1; }
.frete-banner-text { font-size: 0.95rem; color: #1a1a1a; line-height: 1.4; }
.frete-banner-tag {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 20px;
  padding: 1px 9px;
  margin-left: 6px;
  vertical-align: middle;
}
