/* ==========================================================================
   Bird Control — Checkout próprio
   Identidade do site birdcontrol.com.br com pegada de checkout do Mercado Livre:
   fundo cinza claro, cartões brancos com sombra leve, Nunito Sans, azul para
   ação, verde para confirmação/selos, amarelo + navy só na Black November.
   ========================================================================== */

:root {
  --blue: #2563c4;
  --blue-h: #1d4f9f;
  --blue-soft: #e8f0fc;
  --green: #00a650;
  --green-dark: #00873f;
  --green-soft: #e6f7ee;
  --ink: #1f2329;
  --muted: #5f6670;
  --line: #e6e6e6;
  --line-strong: #cfd3d8;
  --bg: #f5f5f5;
  --card: #ffffff;
  --yellow: #f5c518;
  --navy: #0f1d30;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --red: #c62828;
  --red-soft: #fdecec;
  --amber-soft: #fff8e1;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .1), 0 6px 20px rgba(0, 0, 0, .06);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito Sans', 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(37, 99, 196, .45); outline-offset: 2px; border-radius: 6px; }
h1:focus, h2:focus { outline: none; }

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lnk {
  background: none; border: 0; padding: 0;
  color: var(--blue); font-weight: 700; 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: 800; text-align: center; padding: 7px 12px;
}

/* ───────── faixa Black November ───────── */
#black-bar { background: var(--navy); color: #fff; }
.black-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; text-align: center; flex-wrap: wrap; }
.black-tag { background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 11px; letter-spacing: .12em; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.black-txt strong { color: var(--yellow); font-weight: 800; }

/* ───────── cabeçalho ───────── */
#top { background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .08); position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; }
.top-safe { display: flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: 14px; font-weight: 700; }
.top-safe svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ───────── progresso ───────── */
#progress { background: #fff; border-top: 1px solid var(--line); }
.prog { display: flex; align-items: center; max-width: 680px; padding-top: 8px; padding-bottom: 8px; }
.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: 700; white-space: nowrap;
}
.prog-item:disabled { cursor: default; opacity: 1; }
.prog-num {
  width: 26px; height: 26px; 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: 800;
}
.prog-item.active { color: var(--ink); }
.prog-item.active .prog-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.prog-item.done { color: var(--green-dark); }
.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-radius: var(--radius); box-shadow: var(--shadow);
  padding: 9px 10px; font-size: 12.5px; line-height: 1.3; color: var(--muted);
}
#trust strong { color: var(--ink); font-weight: 800; }
#trust svg { width: 22px; height: 22px; flex: none; fill: var(--green); }

/* ───────── resumo / carrinho ───────── */
#summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
#summary.locked #cart-items, #summary.locked #add-kit, #summary.locked #coupon { pointer-events: none; opacity: .6; }
.sum-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px;
  padding: 10px 12px; background: #fff; border: 0; text-align: left;
}
.sum-toggle-img { width: 46px; height: 46px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); 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: 800; color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-toggle-hint { font-size: 13px; color: var(--blue); font-weight: 700; }
.sum-toggle-total { font-weight: 800; color: var(--ink); 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(--ink); margin-bottom: 6px; }

/* itens */
#cart-items { display: flex; flex-direction: column; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item.sk { align-items: center; }
.ci-img { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); flex: none; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.ci-cover { font-size: 13px; color: var(--green-dark); font-weight: 700; }
.ci-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #fff; }
.qty-btn { width: 34px; height: 32px; border: 0; background: #fff; color: var(--blue); font-size: 20px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.qty-btn:hover:not(:disabled) { background: var(--blue-soft); }
.qty-btn:disabled { color: #b9bec5; cursor: default; }
.qty-val { min-width: 30px; text-align: center; font-weight: 800; font-size: 15px; }
.ci-remove { background: none; border: 0; padding: 4px 0; color: var(--blue); font-size: 13.5px; font-weight: 700; }
.ci-remove:hover { text-decoration: underline; }
.ci-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; text-align: right; }
.ci-price s { font-size: 12.5px; color: var(--muted); }
.ci-price strong { font-size: 16px; color: var(--ink); font-weight: 800; }
.ci-price small { font-size: 12px; color: var(--muted); }

/* adicionar outro kit */
#add-kit { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
#add-kit-toggle {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; font-size: 14.5px;
}
#add-kit-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .2s; }
#add-kit.open #add-kit-toggle svg { transform: rotate(45deg); }
#add-kit-list, .empty-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.kit-add {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; text-align: left;
  padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.kit-add:hover { border-color: var(--blue); background: var(--blue-soft); }
.kit-img { width: 46px; height: 46px; border-radius: 6px; overflow: hidden; background: #fff; 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(--ink); font-size: 14px; line-height: 1.25; }
.kit-sub { font-size: 12.5px; color: var(--muted); }
.kit-badge {
  background: var(--yellow); color: var(--navy); font-size: 9.5px; font-weight: 900; letter-spacing: .04em;
  padding: 1px 7px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap;
}
.kit-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.kit-price s { font-size: 11.5px; color: var(--muted); }
.kit-price strong { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.kit-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; line-height: 1; }

/* cupom */
#coupon { padding: 4px 0 12px; }
#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: 700; 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: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; text-transform: uppercase;
}
#coupon-input::placeholder { text-transform: none; color: #9aa0a8; }
#coupon-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 196, .15); }
#coupon-apply {
  height: 46px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--blue);
  background: #fff; color: var(--blue); font-weight: 800;
}
#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-dark); font-weight: 700; }
#coupon-msg.wait { background: var(--blue-soft); color: var(--ink); }
#coupon-msg.bad { color: var(--red); font-weight: 700; 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(--ink); }
.sum-line span:last-child { font-weight: 700; white-space: nowrap; }
.sum-line.good span:last-child, .sum-line.good span:first-child { color: var(--green-dark); font-weight: 800; }
.sum-line.muted span:last-child { color: var(--muted); font-weight: 600; }
.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(--ink); padding-top: 3px; }
.sum-total-right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sum-total-val { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; }
.sum-total-note { font-size: 13px; color: var(--green-dark); font-weight: 700; }

.sum-guar {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 12px;
  background: var(--green-soft); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.4; color: var(--ink);
}
.sum-guar svg { width: 22px; height: 22px; fill: var(--green); flex: none; }
.sum-guar strong { color: var(--green-dark); }

/* ───────── 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(--ink); }
.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: 700; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 17px; color: var(--ink); 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='%235f6670'%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: #a3a9b1; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 196, .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: 700; 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: 54px; padding: 0 24px;
  background: var(--blue); color: #fff; border: 0; border-radius: 6px;
  font-size: 17px; font-weight: 800; text-decoration: none; text-align: center;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--blue-h); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .65; cursor: default; }
.btn-primary.done, .btn-primary.btn-green { background: var(--green); }
.btn-primary.done:hover, .btn-primary.btn-green:hover { background: var(--green-dark); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px;
  background: var(--blue-soft); color: var(--blue); border: 0; border-radius: 6px;
  font-size: 16px; font-weight: 800; text-decoration: none;
}
.btn-outline:hover { background: #d9e6fa; }
.btn-back {
  align-self: center; min-height: 44px; padding: 0 16px; background: none; border: 0;
  color: var(--blue); font-weight: 700; font-size: 15px;
}
.btn-back:hover { text-decoration: underline; }

/* ───────── frete ───────── */
.ship-wrap { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ship-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.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: 1px solid var(--line-strong); border-radius: var(--radius);
}
.ship-opt.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ship-opt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ship-opt-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.ship-opt-days { font-size: 13.5px; color: var(--green-dark); font-weight: 600; }
.ship-opt-price { font-weight: 800; color: var(--ink); white-space: nowrap; }

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

/* ───────── pagamento ───────── */
.pay-list { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .15s; }
.pay-opt.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px 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-ico { width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; display: grid; place-items: center; flex: none; }
.pay-ico svg { width: 20px; height: 20px; fill: var(--ink); }
.pay-ico.pix { background: var(--green-soft); }
.pay-ico.pix svg { fill: #32bcad; }
.pay-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-title { font-weight: 800; color: var(--ink); 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-soft); color: var(--green-dark); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; 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(--ink); }
.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(--ink); margin-bottom: 14px; }
.btn-pay { margin-top: 4px; }
#payment-form .btn-pay { margin-top: 18px; }

.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-dark); font-size: 13.5px; font-weight: 700; }
.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.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(0, 0, 0, .06); }
.brands li.bd svg { display: block; width: 46px; height: 29px; }
.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: #f5c2c2; 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: #c5d8f5; color: var(--ink); }
.alert-info svg { fill: var(--blue); }
#global-alert:empty, #pay-alert:empty { display: none; }
#ship-slot > .alert { margin-top: 18px; margin-bottom: 0; }

/* ───────── carregamento ───────── */
.skeleton { background: linear-gradient(90deg, #eceef1 25%, #f7f8f9 50%, #eceef1 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 6px; }
.sk-img { width: 72px; height: 72px; flex: none; }
.sk-line { height: 16px; flex: 1; }
.sk-box { height: 64px; border-radius: var(--radius); }
@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); } }

/* ───────── carrinho vazio ───────── */
#empty { padding-top: 24px; padding-bottom: 32px; }
.empty-card { max-width: 560px; margin: 0 auto; padding: 28px 18px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; margin: 0 auto; }
.empty-ico svg { width: 32px; height: 32px; fill: var(--blue); }
.empty-card h2 { font-size: 22px; font-weight: 800; }
.empty-card > p { color: var(--muted); }
.empty-list { text-align: left; margin: 4px 0; }

/* ───────── resultado ───────── */
#result { display: none; padding-top: 18px; padding-bottom: 28px; }
#result.active { display: block; }
.res-card { max-width: 540px; 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(--ink); }
.res-card > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.res-card > p strong { color: var(--ink); }
.res-total { font-size: 34px; font-weight: 800; color: var(--ink); margin-top: 14px; line-height: 1.1; }
.res-order { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: #f0f2f5; font-size: 13.5px; color: var(--muted); }
.res-order strong { color: var(--ink); }
.res-due { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.res-due strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.res-due.expired { color: var(--red); font-weight: 700; }
.copy-wrap { margin-top: 18px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.copy-wrap label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.copy-wrap input {
  width: 100%; height: 48px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: #fafafa; 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: #fafafa; 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(--blue); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; margin-top: 1px;
}
.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; text-align: left; }
.mock-note code { word-break: break-all; font-size: 12.5px; }

/* ───────── WhatsApp (sempre verde do WhatsApp) / rodapé ───────── */
.btn-whats {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  background: var(--wa); color: #fff; border: 0; border-radius: 6px;
  font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.btn-whats:hover { background: var(--wa-dark); }
.btn-whats svg { width: 20px; height: 20px; fill: #fff; flex: none; }

#foot { padding: 8px 0 36px; text-align: center; }
#foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.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, .empty-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) {
  .field.f-4 { grid-column: span 12; }
  #postcode { max-width: 200px; }
  .prog-label { font-size: 12.5px; }
  .prog li:not(:last-child)::after { margin: 0 5px; }
  .btn-whats { font-size: 14px; padding: 0 14px; 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; }
  .ci-img { width: 60px; height: 60px; }
  .kit-img { width: 40px; height: 40px; }
  .kit-plus { width: 26px; height: 26px; }
  .top-safe { font-size: 13px; }
  .logo img { height: 46px; }
  .black-in { font-size: 13px; gap: 8px; }
}

@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: 18px 22px; 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; max-height: calc(100vh - 32px); overflow-y: auto; }
  .sum-toggle { display: none; }
  #summary[data-collapsed="1"] .sum-body, .sum-body { display: block; border-top: 0; padding: 20px; }
  .sum-title { display: block; }
  .cart-item:first-child { padding-top: 8px; }
  .step { padding: 30px 32px; }
  .step-head h1, .step-head h2 { font-size: 24px; }
  .top-in { height: 68px; }
  .logo img { height: 62px; }
  .prog { padding-top: 10px; padding-bottom: 10px; }
  .prog-item { font-size: 15px; }
}

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

/* ───────── campanha de Natal (mesma faixa, cores discretas) ───────── */
#black-bar.natal { background: #14532d; }
#black-bar.natal .black-tag { background: #c62828; color: #fff; }
#black-bar.natal .black-txt strong { color: #fff; }

/* ───────── produto único (checkout do Autorizado): linha "de … por …" ───────── */
.ci-offer { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.ci-offer s { color: var(--muted); }
.ci-offer strong { color: var(--ink); font-weight: 800; }
