/* ==========================================================================
   HM2 — Checkout próprio
   Claro, cartões brancos, Inter. Azul HM2 para ação, marinho para títulos,
   verde para confirmação/frete grátis, amarelo só em selo pontual.
   ========================================================================== */

:root {
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --navy: #0D1B2A;
  --text: #1F2937;
  --muted: #5B6676;
  --blue: #0078D4;
  --blue-dark: #0063B1;
  --blue-soft: #EAF4FD;
  --green: #15803D;
  --green-soft: #ECFDF3;
  --yellow: #FACC15;
  --red: #C81E1E;
  --red-soft: #FEF2F2;
  --amber-soft: #FFFBEB;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .04), 0 4px 16px rgba(13, 27, 42, .04);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid rgba(0, 120, 212, .45); outline-offset: 2px; border-radius: 6px; }
h1:focus, h2:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lnk {
  background: none; border: 0; padding: 0;
  color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}

/* ───────── modo demonstração ───────── */
#mock-banner {
  background: repeating-linear-gradient(135deg, #FEF3C7 0 14px, #FDE68A 14px 28px);
  color: #713F12; font-size: 13px; font-weight: 700; text-align: center; padding: 7px 12px;
}

/* ───────── cabeçalho ───────── */
#top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  font-size: 28px; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  color: var(--navy); text-decoration: none; padding: 8px 4px 8px 0;
}
.logo b { color: var(--blue); font-weight: 900; }
.top-safe { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 14px; font-weight: 600; }
.top-safe svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ───────── progresso ───────── */
#progress { background: #fff; border-bottom: 1px solid var(--line); }
.prog { display: flex; align-items: center; max-width: 640px; padding-top: 10px; padding-bottom: 10px; }
.prog li { display: flex; align-items: center; flex: 1; }
.prog li:last-child { flex: none; }
.prog li:not(:last-child)::after {
  content: ''; flex: 1; height: 2px; background: var(--line); margin: 0 8px; border-radius: 2px;
}
.prog-item {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px;
  background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.prog-item:disabled { cursor: default; opacity: 1; }
.prog-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; border: 2px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 700;
}
.prog-item.active { color: var(--navy); }
.prog-item.active .prog-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.prog-item.done { color: var(--green); }
.prog-item.done .prog-num { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.prog-item.done .prog-num::before { content: '✓'; font-size: 14px; }

/* ───────── layout ───────── */
#checkout { padding-top: 14px; padding-bottom: 28px; }
#layout { display: flex; flex-direction: column; gap: 12px; }
#summary { order: 1; }
#trust { order: 2; }
#main { order: 3; min-width: 0; }

/* ───────── confiança ───────── */
#trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#trust li {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 10px; font-size: 12.5px; line-height: 1.3; color: var(--muted);
}
#trust strong { color: var(--navy); font-weight: 700; }
#trust svg { width: 22px; height: 22px; flex: none; fill: var(--green); }

/* ───────── resumo ───────── */
#summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sum-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px;
  padding: 10px 12px; background: #fff; border: 0; text-align: left;
}
.sum-toggle-img { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #E7E6EB; flex: none; }
.sum-toggle-img img { width: 100%; height: 100%; object-fit: cover; }
.sum-toggle-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sum-toggle-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.sum-toggle-hint { font-size: 12.5px; color: var(--blue); font-weight: 600; }
.sum-toggle-total { font-weight: 800; color: var(--navy); font-size: 16px; white-space: nowrap; }
.sum-toggle-chev { width: 22px; height: 22px; fill: var(--muted); flex: none; transition: transform .2s; }
#summary[data-collapsed="0"] .sum-toggle-chev { transform: rotate(180deg); }
#summary[data-collapsed="1"] .sum-body { display: none; }
.sum-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.sum-title { display: none; font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }

.sum-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.sum-item-img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #E7E6EB; flex: none; }
.sum-item-img img { width: 100%; height: 100%; object-fit: cover; }
.sum-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sum-item-name { font-weight: 700; color: var(--navy); font-size: 16px; }
.sum-item-meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sum-item-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.sum-item-price s { font-size: 12.5px; color: var(--muted); }
.sum-item-price strong { font-size: 16px; color: var(--navy); font-weight: 800; }

.sum-sub { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.sum-kits { padding: 12px 0 14px; border-top: 1px solid var(--line); }
#kits-grid { display: flex; flex-direction: column; gap: 8px; }

.radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff;
  flex: none; position: relative; transition: border-color .15s;
}
.selected > .radio, .active > .pay-head > .radio { border-color: var(--blue); }
.selected > .radio::after, .active > .pay-head > .radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue);
}

.kit-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; text-align: left;
  padding: 8px 12px 8px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.kit-row:hover { border-color: var(--line-strong); }
.kit-row.selected { border-color: var(--blue); background: var(--blue-soft); }
.kit-img { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: #E7E6EB; flex: none; }
.kit-img img { width: 100%; height: 100%; object-fit: cover; }
.kit-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.kit-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.kit-sub { font-size: 12.5px; color: var(--muted); }
.kit-badge {
  background: var(--yellow); color: var(--navy); font-size: 9.5px; font-weight: 800; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 999px; margin-bottom: 2px; white-space: nowrap;
}
.kit-price { font-weight: 800; color: var(--navy); font-size: 15px; white-space: nowrap; }
.kit-row.sk { pointer-events: none; }

/* cupom */
#coupon { padding: 4px 0 12px; border-top: 1px solid var(--line); }
#coupon-toggle {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px;
  background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: 14.5px;
}
#coupon-toggle svg { width: 18px; height: 18px; fill: currentColor; }
#coupon-box { display: flex; gap: 8px; margin-top: 4px; }
#coupon-input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; text-transform: uppercase;
}
#coupon-input::placeholder { text-transform: none; color: #94A3B8; }
#coupon-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 120, 212, .15); }
#coupon-apply {
  height: 46px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--blue);
  background: #fff; color: var(--blue); font-weight: 700;
}
#coupon-apply:hover { background: var(--blue-soft); }
#coupon-apply:disabled { opacity: .6; cursor: default; }
#coupon-msg { font-size: 13.5px; line-height: 1.4; }
#coupon-msg:empty { display: none; }
#coupon-msg.ok, #coupon-msg.wait {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
}
#coupon-msg.ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
#coupon-msg.wait { background: var(--blue-soft); color: var(--navy); }
#coupon-msg.bad { color: var(--red); font-weight: 600; margin-top: 8px; }
#coupon-msg .lnk { font-size: 13px; white-space: nowrap; min-height: 24px; }

/* linhas e total */
#sum-lines { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 4px 0; color: var(--text); }
.sum-line span:last-child { font-weight: 600; white-space: nowrap; }
.sum-line.good span:last-child { color: var(--green); font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0 2px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-total-label { font-size: 17px; font-weight: 800; color: var(--navy); padding-top: 3px; }
.sum-total-right { display: flex; flex-direction: column; align-items: flex-end; }
.sum-total-val { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
.sum-total-note { font-size: 13.5px; color: var(--muted); }

.sum-gift {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 12px;
  background: var(--green-soft); border: 1px dashed #86EFAC; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.35; color: var(--text);
}
.sum-gift img { width: 54px; height: 60px; object-fit: contain; flex: none; }
.sum-gift strong { color: var(--green); }

/* ───────── passos / formulário ───────── */
.step { display: none; padding: 20px 16px; }
.step.active { display: block; }
.step-head { margin-bottom: 18px; }
.step-head h1, .step-head h2 { font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.step-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 12px; }
.field { grid-column: span 12; min-width: 0; display: flex; flex-direction: column; }
.field.f-cc { grid-column: span 4; }
.field.f-half { grid-column: span 6; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 52px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 17px; color: var(--text); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235B6676'%3E%3Cpath d='M7.4 8.6 12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 40px;
  font-size: 16px; text-overflow: ellipsis;
}
.field input::placeholder { color: #A0AEC0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 120, 212, .15); }
.field input.upper { text-transform: uppercase; }
.field.invalid input, .field.invalid select { border-color: var(--red); background: var(--red-soft); }
.field .err { display: none; color: var(--red); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.field.invalid .err { display: block; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field.cep-help { display: none; }

.step-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 24px;
  background: var(--blue); color: #fff; border: 0; border-radius: 12px;
  font-size: 17px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .65; cursor: default; }
.btn-primary.done { background: var(--green); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px;
  background: #fff; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 12px;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn-outline:hover { background: var(--blue-soft); }
.btn-back {
  align-self: center; min-height: 44px; padding: 0 16px; background: none; border: 0;
  color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}

/* ───────── frete ───────── */
.ship-wrap { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ship-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.ship-opts { display: flex; flex-direction: column; gap: 8px; }
.ship-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; text-align: left;
  padding: 10px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.ship-opt.selected { border-color: var(--blue); background: var(--blue-soft); }
.ship-opt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ship-opt-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.ship-opt-days { font-size: 13.5px; color: var(--muted); }
.ship-opt-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.ship-opt-price.free { color: var(--green); }

/* ───────── pagamento ───────── */
.pay-list { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .15s; }
.pay-opt.active { border-color: var(--blue); }
.pay-head {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px;
  padding: 12px 14px; background: none; border: 0; text-align: left;
}
.pay-opt.active .pay-head { background: var(--blue-soft); }
.pay-ico { width: 36px; height: 36px; border-radius: 9px; background: #F1F5F9; display: grid; place-items: center; flex: none; }
.pay-ico svg { width: 20px; height: 20px; fill: var(--navy); }
.pay-ico.pix { background: var(--green-soft); }
.pay-ico.pix svg { fill: var(--green); }
.pay-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-title { font-weight: 700; color: var(--navy); font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.pay-sub { font-size: 13px; color: var(--muted); }
.tag-now { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pay-val { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.pay-val strong { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.pay-val small { font-size: 12px; color: var(--muted); }
.pay-pane { display: none; padding: 16px 14px 16px; border-top: 1px solid var(--line); }
.pay-opt.active .pay-pane { display: block; }
.pay-text { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.pay-text strong { color: var(--navy); }
.btn-pay { margin-top: 4px; }
#payment-form .btn-pay { margin-top: 18px; }
.pay-opt[data-method="pix"] .btn-pay { background: var(--green); }
.pay-opt[data-method="pix"] .btn-pay:hover { background: #116B33; }

.pay-safe { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pay-safe-line { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 13.5px; font-weight: 600; }
.pay-safe-line svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.brands li {
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  padding: 4px 9px; font-size: 11.5px; font-weight: 700; color: var(--navy); letter-spacing: .01em;
}
.brands li.b-pix { color: var(--green); border-color: #86EFAC; }
.pay-safe-by { font-size: 12.5px; color: var(--muted); }
#step-3 .step-nav { margin-top: 8px; }

/* ───────── alertas ───────── */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.45; margin-bottom: 14px; border: 1px solid; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert strong { display: block; }
.alert div strong:not(:first-child) { display: inline; }
.alert-danger { background: var(--red-soft); border-color: #FECACA; color: #7F1D1D; }
.alert-danger svg { fill: var(--red); }
.alert-warn { background: var(--amber-soft); border-color: #FDE68A; color: #713F12; }
.alert-warn svg { fill: #B45309; }
.alert-info { background: var(--blue-soft); border-color: #BFDBFE; color: var(--navy); }
.alert-info svg { fill: var(--blue); }
#global-alert:empty, #pay-alert:empty { display: none; }
.ship-wrap + .alert, #ship-slot > .alert { margin-top: 18px; margin-bottom: 0; }

/* ───────── carregamento ───────── */
.skeleton { background: linear-gradient(90deg, #EEF2F6 25%, #F8FAFC 50%, #EEF2F6 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; }
.sk-img { width: 46px; height: 46px; flex: none; }
.sk-line { height: 16px; flex: 1; }
.sk-box { height: 64px; border-radius: var(--radius-sm); }
@keyframes sk { to { background-position: -200% 0; } }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; flex: none; display: inline-block; }
.spinner.dark { border-color: var(--line-strong); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── resultado ───────── */
#result { display: none; padding-top: 18px; padding-bottom: 28px; }
#result.active { display: block; }
.res-card { max-width: 520px; margin: 0 auto; padding: 26px 18px; text-align: center; }
.res-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--blue-soft); }
.res-ico svg { width: 30px; height: 30px; fill: var(--blue); }
.res-ico.ok, .res-ico.pix { background: var(--green-soft); }
.res-ico.ok svg, .res-ico.pix svg { fill: var(--green); }
.res-ico.fail { background: var(--red-soft); }
.res-ico.fail svg { fill: var(--red); }
.res-card h2 { font-size: 23px; line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.res-card > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.res-card > p strong { color: var(--navy); }
.res-total { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-top: 14px; line-height: 1.1; }
.res-order { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: #F1F5F9; font-size: 13.5px; color: var(--muted); }
.res-order strong { color: var(--navy); }
.res-due { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.res-due strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.res-due.expired { color: var(--red); font-weight: 600; }
.copy-wrap { margin-top: 18px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.copy-wrap label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.copy-wrap input {
  width: 100%; height: 48px; padding: 0 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: #F8FAFC; font-size: 14px; color: var(--muted); text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.res-how { margin: 20px 0 0; padding: 14px 14px 14px 16px; background: #F8FAFC; border-radius: var(--radius-sm); text-align: left; counter-reset: how; display: flex; flex-direction: column; gap: 10px; }
.res-how li { counter-increment: how; display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.res-how li::before {
  content: counter(how); width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 1px;
}
.res-how strong { color: var(--navy); }
.pix-qr { margin: 18px auto 0; width: 244px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pix-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.res-poll { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.res-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mock-note { margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FEF3C7; color: #713F12; font-size: 13px; }
.mock-note code { word-break: break-all; font-size: 12.5px; }

/* ───────── WhatsApp / rodapé ───────── */
.btn-whats {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px;
  background: #fff; color: #166534; border: 1.5px solid #86EFAC; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn-whats:hover { background: var(--green-soft); }
.btn-whats svg { width: 20px; height: 20px; fill: #16A34A; flex: none; }

#foot { padding: 8px 0 36px; text-align: center; }
#foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-legal { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 640px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot-links a { font-size: 13px; color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }

/* ───────── telas maiores ───────── */
@media (min-width: 560px) {
  .field.f-6 { grid-column: span 6; }
  .field.f-4 { grid-column: span 4; }
  .field.f-8 { grid-column: span 8; }
  .field.cep-help { display: flex; justify-content: flex-end; padding-bottom: 14px; font-size: 14px; }
  .step { padding: 26px 24px; }
  .res-card { padding: 34px 32px; }
  #trust { grid-template-columns: repeat(4, 1fr); }
  .step-nav .btn-primary { max-width: 340px; }
  .step-nav { align-items: flex-start; }
  .btn-back { align-self: flex-start; padding-left: 0; }
}

@media (max-width: 559px) {
  /* no celular, CEP + UF e os pares curtos ficam lado a lado só onde cabe */
  .field.f-4 { grid-column: span 12; }
  #postcode { max-width: 200px; }
  .prog-label { font-size: 13px; }
  .btn-whats { font-size: 14px; padding: 0 12px; gap: 8px; }
  .pay-ico, .pay-sub { display: none; }
  .pay-head { padding: 12px; gap: 10px; }
  .pay-title { font-size: 15.5px; }
  .pay-val strong { font-size: 15px; }
  .pay-val small { font-size: 11.5px; }
  .pay-safe-line { font-size: 12.5px; }
  .kit-img { width: 40px; height: 40px; }
  .kit-sub { font-size: 12px; white-space: nowrap; }
  .sum-toggle-hint { white-space: nowrap; }
  .top-safe { font-size: 13px; }
}

@media (min-width: 960px) {
  #checkout { padding-top: 24px; padding-bottom: 48px; }
  #layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "trust trust" "main summary"; gap: 20px 24px; align-items: start; }
  #trust { grid-area: trust; gap: 12px; }
  #trust li { padding: 12px 14px; font-size: 13.5px; }
  #main { grid-area: main; }
  #summary { grid-area: summary; position: sticky; top: 16px; }
  .sum-toggle { display: none; }
  #summary[data-collapsed="1"] .sum-body, .sum-body { display: block; border-top: 0; padding: 20px; }
  .sum-title { display: block; }
  .sum-item { padding-top: 0; }
  .step { padding: 32px; }
  .step-head h1, .step-head h2 { font-size: 26px; }
  .top-in { height: 68px; }
  .logo { font-size: 32px; }
  .prog { padding-top: 12px; padding-bottom: 12px; }
  .prog-item { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; scroll-behavior: auto !important; }
}

/* bandeiras em selo (14/nov) */
.brands li.bd { border: 1px solid var(--line-strong); border-radius: 6px; padding: 0; background: none; line-height: 0; overflow: hidden; box-shadow: 0 1px 2px rgba(13,27,42,.06); }
.brands li.bd svg { display: block; width: 46px; height: 29px; }

/* brinde em destaque (14/nov) */
.sum-gift { gap: 14px; padding: 12px 14px 12px 8px; align-items: center; }
.sum-gift img { width: 104px; height: 124px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(13,27,42,.28)); }
.sum-gift-txt { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.35; }
.sum-gift-txt strong { color: var(--navy); font-size: 15px; line-height: 1.25; }
.sum-gift-tag { align-self: flex-start; background: #FACC15; color: #0D1B2A; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; padding: 3px 9px; border-radius: 99px; }
/* "clique aqui para ver os kits" — só o texto pulsando (sem fundo) */
.sum-toggle-hint { color: var(--blue) !important; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
  white-space: normal !important; line-height: 1.3; margin-top: 2px; animation: hm2pulse 2.2s ease-in-out infinite; }
#summary[data-collapsed="0"] .sum-toggle-hint { animation: none; color: var(--muted) !important; text-decoration: none; }
@keyframes hm2pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sum-toggle-hint { animation: none; } }
