/**
 * Amrô Checkout — pele 100% fiel ao protótipo (demo.html), aplicada sobre o
 * motor nativo do WooCommerce. Tudo escopado sob .amro-checkout-form (e nos
 * blocos de chrome .top / .foot / .wrap que envolvem o form) para NÃO vazar
 * pro tema. Cores da marca: rosa #f66b82 · header #d25b6f · verde #3bb54a.
 *
 * Estrutura no template:
 *   .top   (header rosa, antes do form)
 *   .wrap  (container central)
 *     form.checkout.woocommerce-checkout.amro-checkout-form  ← GRID 3 colunas
 *       > div  (COL 1: dados pessoais)
 *       > div  (COL 2: endereço + frete + #payment)
 *       > div.col-sum (COL 3: #order_review + prova social)
 *   .foot  (rodapé, depois do form)
 *
 * @package Amro_Checkout
 */

/* ───────────────────────── Tokens ───────────────────────── */
.amro-checkout-form,
.amro-checkout-page .top,
.amro-checkout-page .wrap,
.amro-checkout-page .foot {
  --rosa: #f66b82;
  --rosa-d: #d25b6f;
  --verde: #3bb54a;
  --ink: rgba(0, 0, 0, .87);
  --muted: #8a939f;
  --line: #e5e7eb;
  --bg: #f4f6f8;
  --amarelo: #fff7d6;
  --laranja: #f97316;
  --r: 16px;
}

/* Fonte + reset leve só no nosso fluxo (não toca no resto do tema). */
.amro-checkout-page .top,
.amro-checkout-page .wrap,
.amro-checkout-page .foot,
.amro-checkout-form {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 15px;
}
.amro-checkout-form *,
.amro-checkout-page .top *,
.amro-checkout-page .foot * { box-sizing: border-box; }

/* Fundo da página do checkout (aplicado via classe no body pelo template). */
body.amro-checkout-page { background: var(--bg); }

/* ───────────────────────── Header rosa ───────────────────────── */
.amro-checkout-page .top { background: var(--rosa-d); color: #fff; }
.amro-checkout-page .top-in {
  max-width: 1140px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.amro-checkout-page .logo-img {
  height: 38px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.amro-checkout-page .secure {
  font-weight: 700; font-size: 13.5px; display: flex; align-items: center;
  gap: 7px; color: #fff; position: relative; cursor: help;
}
.amro-checkout-page .secure .pop {
  position: absolute; top: 30px; right: 0; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; font-weight: 600; width: 250px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15); display: none; z-index: 9;
  text-align: left; line-height: 1.4;
}
.amro-checkout-page .secure:hover .pop { display: block; }

/* Container central */
.amro-checkout-page .wrap { max-width: 1140px; margin: 0 auto; padding: 20px 16px; }

/* ─────────────── CHECKOUT — grid 3 colunas (o próprio form) ─────────────── */
/* No demo o grid é .checkout; aqui o form É o .checkout. Filhos diretos = colunas. */
.amro-checkout-form #checkout {
  display: grid;
  grid-template-columns: 1fr 1.3fr 330px;
  gap: 20px;
  align-items: start;
}

/* Cartões */
.amro-checkout-form .card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

/* Stepper / títulos de etapa */
.amro-checkout-form .steptitle {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 800; margin: 0 0 18px;
}
.amro-checkout-form .badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: #0f172a; color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; flex: 0 0 auto;
}
.amro-checkout-form .step.locked { opacity: .55; }
.amro-checkout-form .step.locked .badge { background: #cfd6dd; }
.amro-checkout-form .step.locked .steptitle { color: var(--muted); }
.amro-checkout-form .step .body { display: block; }
.amro-checkout-form .step.collapsed .body { display: none; }
.amro-checkout-form .step.done { background: #f3fbf4; border-color: #cdeccf; }
.amro-checkout-form .step.done .badge { background: var(--verde); }
.amro-checkout-form .step.done .body { display: none; }
.amro-checkout-form .step.done .summ { display: block; }
.amro-checkout-form .summ {
  display: none; color: var(--muted); font-weight: 600;
  line-height: 1.6; font-size: 14px;
}
.amro-checkout-form .step.locked .lockmsg { display: block; color: var(--muted); font-weight: 600; }
.amro-checkout-form .lockmsg { display: none; }

/* ──────────── Inputs: label flutuante + check verde ──────────── */
/* Vale tanto pros .fl do nosso markup quanto pros .form-row nativos do WC. */
.amro-checkout-form .fl,
.amro-checkout-form .woocommerce-checkout .form-row,
.amro-checkout-form .form-row {
  position: relative; margin-bottom: 14px; padding: 0;
}
.amro-checkout-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.amro-checkout-form .fl input,
.amro-checkout-form .fl select,
.amro-checkout-form .form-row input.input-text,
.amro-checkout-form .form-row input[type="text"],
.amro-checkout-form .form-row input[type="email"],
.amro-checkout-form .form-row input[type="tel"],
.amro-checkout-form .form-row input[type="number"],
.amro-checkout-form .form-row input[type="password"],
.amro-checkout-form .form-row select {
  width: 100%; height: 50px; padding: 0 40px 0 14px;
  border: 1px solid #d0d0d0; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  outline: none; transition: border-color .12s, box-shadow .12s;
  line-height: 50px;
}
.amro-checkout-form .fl select,
.amro-checkout-form .form-row select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d25b6f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
/* Select2 do WC (estado/UF e selects ECFB) — força a aparência do .fl. */
.amro-checkout-form .form-row .select2-container { width: 100% !important; }
.amro-checkout-form .form-row .select2-container--default .select2-selection--single {
  height: 50px; border: 1px solid #d0d0d0; border-radius: 10px; background: #fff;
}
.amro-checkout-form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px; padding: 0 40px 0 14px; color: var(--ink); font-size: 15px;
}
.amro-checkout-form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px; right: 8px;
}
.amro-checkout-form .form-row .select2-container--open .select2-selection--single,
.amro-checkout-form .form-row .select2-container--focus .select2-selection--single {
  border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(246, 107, 130, .15);
}

.amro-checkout-form .fl input:focus,
.amro-checkout-form .fl select:focus,
.amro-checkout-form .form-row input:focus,
.amro-checkout-form .form-row select:focus {
  border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(246, 107, 130, .15);
}

/* Label flutuante — .fl (nosso markup) */
.amro-checkout-form .fl label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
  transition: .12s; background: #fff; padding: 0 4px;
}
.amro-checkout-form .fl input:focus + label,
.amro-checkout-form .fl input:not(:placeholder-shown) + label,
.amro-checkout-form .fl.filled label,
.amro-checkout-form .fl select + label {
  top: 0; font-size: 12px; color: var(--rosa-d);
}

/* Label flutuante — .form-row nativo do WC (label vem ANTES do input).
   Como a ordem é label→input, usamos label posicionado e flutuamos sempre
   pra cima quando o campo está preenchido/focado via :has(). */
.amro-checkout-form .form-row > label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
  transition: .12s; background: #fff; padding: 0 4px; z-index: 1;
  max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; margin: 0;
}
.amro-checkout-form .form-row:focus-within > label,
.amro-checkout-form .form-row.amro-filled > label,
.amro-checkout-form .form-row:has(select) > label,
.amro-checkout-form .form-row:has(input:not(:placeholder-shown)) > label {
  top: 0; font-size: 12px; color: var(--rosa-d);
}
.amro-checkout-form .form-row .required,
.amro-checkout-form .req { color: #ef4444; border: 0; text-decoration: none; }
.amro-checkout-form .form-row .optional { display: none; }

/* Check verde de "ok" */
.amro-checkout-form .fl .chk {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--verde); font-weight: 800; display: none;
}
.amro-checkout-form .fl.ok .chk { display: block; }
.amro-checkout-form .form-row.amro-ok::after {
  content: '✓'; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); color: var(--verde); font-weight: 800;
  pointer-events: none;
}

/* Estados de erro */
.amro-checkout-form .fl.err input,
.amro-checkout-form .form-row.amro-invalid input,
.amro-checkout-form .form-row.amro-invalid select,
.amro-checkout-form .form-row.woocommerce-invalid input.input-text,
.amro-checkout-form .form-row.woocommerce-invalid select { border-color: #ef4444; }
.amro-checkout-form .fl .msg {
  display: none; color: #ef4444; font-size: 12px; margin-top: 3px;
}
.amro-checkout-form .fl.err .msg { display: block; }
.amro-checkout-form .form-row .amro-field-error,
.amro-checkout-form .form-row.amro-invalid .amro-field-error { color: #ef4444; font-size: 12px; margin-top: 3px; }

/* Spinner (ViaCEP / BrasilAPI) */
.amro-checkout-form .spin,
.amro-checkout-form .form-row.amro-loading::before {
  content: ''; position: absolute; right: 38px; top: 17px;
  width: 16px; height: 16px; border: 2px solid var(--line);
  border-top-color: var(--rosa); border-radius: 50%;
  animation: amroSpin .7s linear infinite; display: none;
}
.amro-checkout-form .fl.loading .spin,
.amro-checkout-form .form-row.amro-loading::before { display: block; }
@keyframes amroSpin { to { transform: rotate(360deg); } }

/* ──────────── Frete + pagamento: radios .opt ──────────── */
.amro-checkout-form .opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; cursor: pointer; font-weight: 700;
}
.amro-checkout-form .opt.sel {
  border-color: var(--rosa); border-left: 4px solid var(--rosa); background: #fff5f7;
}
.amro-checkout-form .opt .dot {
  width: 20px; height: 20px; border: 2px solid #cfd6dd; border-radius: 50%;
  flex: 0 0 auto; position: relative;
}
.amro-checkout-form .opt.sel .dot { border-color: var(--rosa); }
.amro-checkout-form .opt.sel .dot:after {
  content: ''; position: absolute; inset: 4px; background: var(--rosa); border-radius: 50%;
}
.amro-checkout-form .opt .price { margin-left: auto; font-weight: 800; }
.amro-checkout-form .optlbl { display: flex; flex-direction: column; line-height: 1.2; }
.amro-checkout-form .optsub { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.amro-checkout-form .optsub b { color: var(--verde); font-weight: 800; }
.amro-checkout-form .tag {
  background: var(--verde); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 6px; margin-left: auto;
}
.amro-checkout-form .tag + .price { margin-left: 10px; }

/* ──────────── Order bump ──────────── */
.amro-checkout-form .bump {
  border: 2px solid #fde68a; background: var(--amarelo);
  border-radius: 14px; padding: 16px; margin: 16px 0;
}
.amro-checkout-form .bump .ex {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-weight: 800; font-size: 12px; padding: 4px 10px;
  border-radius: 20px; margin-bottom: 10px;
}
.amro-checkout-form .bump .grid { display: flex; gap: 12px; }
.amro-checkout-form .bump .img {
  width: 70px; height: 70px; border-radius: 8px;
  background: linear-gradient(135deg, #f66b82, #d25b6f); flex: 0 0 auto;
}
.amro-checkout-form .bump .txt { font-size: 13px; font-weight: 600; }
.amro-checkout-form .bump .was { text-decoration: line-through; color: #9aa3ad; font-weight: 600; }
.amro-checkout-form .bump .cta {
  display: flex; align-items: center; gap: 10px; background: var(--laranja);
  color: #fff; border: 0; border-radius: 10px; padding: 13px 16px;
  font-weight: 800; font-size: 14px; font-family: inherit; cursor: pointer;
  width: 100%; margin-top: 12px; justify-content: center;
}
.amro-checkout-form .bumpbox {
  width: 16px; height: 16px; border: 2px solid #fff; border-radius: 4px;
  display: inline-block; vertical-align: middle; position: relative;
}
.amro-checkout-form .bumpbox.on { background: #fff; }
.amro-checkout-form .bumpbox.on:after {
  content: '✓'; position: absolute; inset: -2px 0 0 0; color: var(--laranja);
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}

/* ──────────── Botões ──────────── */
.amro-checkout-form .btn,
.amro-checkout-form #place_order,
.amro-checkout-form .woocommerce-checkout #place_order {
  width: 100%; background: var(--rosa); color: #fff; border: 0;
  padding: 16px; border-radius: 30px; font-size: 16px; font-weight: 800;
  font-family: inherit; cursor: pointer; transition: background .12s; margin-top: 6px;
}
.amro-checkout-form .btn:hover,
.amro-checkout-form #place_order:hover { background: var(--rosa-d); }
.amro-checkout-form .nav { display: flex; gap: 12px; margin-top: 8px; }
.amro-checkout-form .nav .prev,
.amro-checkout-form .prev {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 30px; padding: 16px 22px; font-weight: 700; cursor: pointer;
  flex: 0 0 auto; font-family: inherit;
}

/* ════════════ PAGAMENTO NATIVO DO WC → vira radios .opt ════════════ */
.amro-checkout-form #payment {
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.amro-checkout-form #payment .wc_payment_methods {
  list-style: none; margin: 0; padding: 0; border: 0;
}
.amro-checkout-form #payment ul.payment_methods li {
  list-style: none; margin: 0 0 10px; padding: 0; background: none;
}
/* Cada método = um cartão .opt */
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  cursor: pointer; font-weight: 700; transition: border-color .12s, background .12s;
}
/* Radio nativo estilizado como o .dot */
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 20px; height: 20px; border: 2px solid #cfd6dd; border-radius: 50%;
  flex: 0 0 auto; position: relative; cursor: pointer; background: #fff;
}
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked {
  border-color: var(--rosa);
}
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method > input[type="radio"]:checked:after {
  content: ''; position: absolute; inset: 3px; background: var(--rosa); border-radius: 50%;
}
/* Linha selecionada destacada como .opt.sel */
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
  border-color: var(--rosa); border-left: 4px solid var(--rosa); background: #fff5f7;
}
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method > label {
  margin: 0; font-weight: 700; cursor: pointer; display: flex;
  align-items: center; gap: 8px; flex: 1;
}
.amro-checkout-form #payment ul.payment_methods li.wc_payment_method > label img {
  max-height: 24px; width: auto; display: inline-block; vertical-align: middle;
}
/* Caixa de instruções/campos do método (Pix QR, campos do cartão Appmax) */
.amro-checkout-form #payment .payment_box {
  flex-basis: 100%; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 10px; margin: 4px 0 0; padding: 14px;
  font-size: 13px; font-weight: 600; color: #5b6573; line-height: 1.45;
}
.amro-checkout-form #payment .payment_box:before { display: none; }
.amro-checkout-form #payment .payment_box input.input-text,
.amro-checkout-form #payment .payment_box select { height: 46px; line-height: 46px; }
/* Termos + botão de finalizar */
.amro-checkout-form #payment .woocommerce-terms-and-conditions-wrapper {
  margin: 14px 0; font-size: 13px; font-weight: 600; color: var(--muted);
}
.amro-checkout-form #payment .place-order { padding: 0; margin-top: 12px; }
/* Selo de pagamento seguro (markup estático do template, antes do #payment) */
.amro-checkout-form .secband {
  display: flex; gap: 9px; align-items: flex-start; background: #f3fbf4;
  border: 1px solid #cdeccf; border-radius: 10px; padding: 11px 13px;
  font-size: 12.5px; color: #42526b; font-weight: 600; line-height: 1.45; margin-bottom: 14px;
}
.amro-checkout-form .secband .i,
.amro-checkout-form .secband .ic { color: var(--verde); font-size: 14px; flex: 0 0 auto; }
.amro-checkout-form .secband b { color: #2f4636; }
.amro-checkout-form .minicrypt {
  display: flex; gap: 6px; align-items: center; color: var(--verde);
  font-size: 12px; font-weight: 700; margin: -6px 0 12px;
}

/* ──────────── COL 3: resumo + prova social ──────────── */
.amro-checkout-form .col-sum .card { padding: 18px; }

/* Cabeçalho mobile do resumo (sanfona) */
.amro-checkout-form .sum-head {
  display: none; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: 15px; cursor: pointer;
}
.amro-checkout-form .sum-head b { color: var(--verde); }
.amro-checkout-form .sum-head > span { display: flex; gap: 8px; align-items: center; }

/* Cupom (nativo do WC, .form-coupon, estilizado + nosso toggle) */
.amro-checkout-form .coupon {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  color: var(--muted); font-weight: 700; cursor: pointer; margin-bottom: 14px;
}
.amro-checkout-form .coupon-row,
.amro-checkout-form .checkout_coupon .form-row,
.amro-checkout-form form.checkout_coupon {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
  border: 0; padding: 0;
}
.amro-checkout-form .coupon-row input,
.amro-checkout-form .checkout_coupon input.input-text,
.amro-checkout-form .checkout_coupon #coupon_code {
  flex: 1; min-width: 130px; height: 46px; line-height: 46px;
  border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  font-family: inherit; font-size: 14px; outline: none; text-transform: uppercase;
}
.amro-checkout-form .coupon-row input:focus,
.amro-checkout-form .checkout_coupon input.input-text:focus { border-color: var(--rosa); }
.amro-checkout-form .coupon-row button,
.amro-checkout-form .checkout_coupon button {
  background: var(--ink); color: #fff; border: 0; border-radius: 8px;
  padding: 0 18px; height: 46px; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.amro-checkout-form .coupon-msg { flex-basis: 100%; font-size: 12px; font-weight: 700; }

/* Itens do resumo (markup do template, se houver) */
.amro-checkout-form .sitem { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.amro-checkout-form .sthumb {
  width: 54px; height: 54px; border-radius: 8px;
  background: linear-gradient(135deg, #f66b82, #d25b6f); flex: 0 0 auto; position: relative;
}
.amro-checkout-form .sthumb .q {
  position: absolute; top: -6px; left: -6px; width: 22px; height: 22px;
  border-radius: 50%; background: #0f172a; color: #fff; font-size: 11px;
  display: grid; place-items: center; font-weight: 800;
}
.amro-checkout-form .sitem .n { font-size: 13px; font-weight: 700; }
.amro-checkout-form .sitem .v { font-size: 12px; color: var(--muted); }
.amro-checkout-form .sitem .p { margin-left: auto; font-weight: 800; font-size: 14px; }

/* Totais (markup do template, se houver) */
.amro-checkout-form .tot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.amro-checkout-form .tot .l { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-weight: 600; }
.amro-checkout-form .tot .disc { color: var(--verde); }
.amro-checkout-form .tot .g { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; margin-top: 8px; }
.amro-checkout-form .tot .g span:last-child { color: var(--verde); }

/* ════════════ RESUMO NATIVO DO WC (#order_review) → vira o .col-sum/.tot ════════════ */
/* O WC/tema aplica float:right + width:48% no #order_review (layout 2 colunas);
   na nossa coluna isso encolhe a tabela e joga NF-e/qualidade pro lado. Anula. */
.amro-checkout-form #order_review { float: none !important; width: 100% !important; clear: both; }
.amro-checkout-form #order_review,
.amro-checkout-form .woocommerce-checkout-review-order { font-size: 14px; }
.amro-checkout-form .woocommerce-checkout-review-order-table {
  width: 100%; border-collapse: collapse; margin: 0 0 4px;
}
.amro-checkout-form .woocommerce-checkout-review-order-table th,
.amro-checkout-form .woocommerce-checkout-review-order-table td {
  border: 0; padding: 0; text-align: left; vertical-align: top;
}
/* Itens do carrinho — linha estilo .sitem */
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item td {
  padding: 0 0 14px; font-weight: 700;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .product-name {
  font-size: 13px; font-weight: 700; color: var(--ink); padding-right: 10px;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .product-name .product-quantity {
  color: var(--muted); font-weight: 600; font-size: 12px;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .product-total {
  font-weight: 800; font-size: 14px; text-align: right; white-space: nowrap;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .variation {
  margin: 2px 0 0; font-size: 12px; color: var(--muted); font-weight: 600;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .variation dt,
.amro-checkout-form .woocommerce-checkout-review-order-table .cart_item .variation dd { display: inline; margin: 0; padding: 0; }
/* Subtotais (subtotal, frete, cupom) — linha .tot .l */
.amro-checkout-form .woocommerce-checkout-review-order-table tfoot th,
.amro-checkout-form .woocommerce-checkout-review-order-table .cart-subtotal th,
.amro-checkout-form .woocommerce-checkout-review-order-table .shipping th,
.amro-checkout-form .woocommerce-checkout-review-order-table .cart-discount th,
.amro-checkout-form .woocommerce-checkout-review-order-table .fee th {
  color: var(--muted); font-weight: 600; padding: 7px 0;
}
.amro-checkout-form .woocommerce-checkout-review-order-table tfoot td {
  text-align: right; font-weight: 700; padding: 7px 0; color: var(--ink);
}
/* Borda superior só na primeira linha do tfoot (separa itens dos totais) */
.amro-checkout-form .woocommerce-checkout-review-order-table tfoot tr:first-child th,
.amro-checkout-form .woocommerce-checkout-review-order-table tfoot tr:first-child td {
  border-top: 1px solid var(--line); padding-top: 12px;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .cart-discount td,
.amro-checkout-form .woocommerce-checkout-review-order-table .cart-discount th { color: var(--verde); }
/* Total final — destaque grande verde, estilo .tot .g */
.amro-checkout-form .woocommerce-checkout-review-order-table .order-total th {
  font-size: 16px; font-weight: 800; color: var(--ink); padding-top: 8px;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .order-total td {
  font-size: 20px; font-weight: 800; color: var(--verde); padding-top: 8px;
}
/* Frete (lista de métodos dentro do resumo) */
.amro-checkout-form .woocommerce-checkout-review-order-table .shipping ul#shipping_method {
  list-style: none; margin: 0; padding: 0; text-align: right;
}
.amro-checkout-form .woocommerce-checkout-review-order-table .shipping ul#shipping_method li { margin: 0 0 4px; }
.amro-checkout-form .woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping th { vertical-align: top; }

/* Blocos de confiança do resumo */
.amro-checkout-form .nfe {
  display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line);
  margin-top: 12px; padding-top: 11px; color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.amro-checkout-form .quality {
  background: #fafbfc; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; margin-top: 11px; color: #5b6573; font-size: 12px;
  font-weight: 600; line-height: 1.45;
}
.amro-checkout-form .lowstock {
  color: var(--laranja); font-size: 12px; font-weight: 800; margin: 3px 0 0;
  display: flex; align-items: center; gap: 5px;
}

/* ──────────── Prova social / reviews ──────────── */
.amro-checkout-form .revhead {
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px;
}
.amro-checkout-form .revhead .off { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink); }
.amro-checkout-form .revhead .off .seal {
  width: 18px; height: 18px; border-radius: 50%; background: var(--rosa);
  color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: 0 0 auto;
}
.amro-checkout-form .revhead .agg { display: flex; align-items: center; gap: 8px; }
.amro-checkout-form .revhead .agg .n { font-size: 22px; font-weight: 800; }
.amro-checkout-form .revhead .agg .st { color: #facc15; font-size: 15px; letter-spacing: 1px; }
.amro-checkout-form .revhead .cnt { color: var(--muted); font-size: 12px; font-weight: 600; }
.amro-checkout-form .review { display: flex; gap: 12px; margin-bottom: 16px; }
.amro-checkout-form .review img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.amro-checkout-form .rthumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, #f66b82, #d25b6f); flex: 0 0 auto;
}
.amro-checkout-form .stars { color: #facc15; font-size: 13px; letter-spacing: 1px; }
.amro-checkout-form .review .who { font-weight: 800; font-size: 14px; }
.amro-checkout-form .review .prof { color: var(--muted); font-size: 12px; font-weight: 600; }
.amro-checkout-form .review .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.amro-checkout-form .verified {
  display: inline-flex; align-items: center; gap: 3px; background: rgba(59, 181, 74, .1);
  color: var(--verde); font-size: 10.5px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; margin: 3px 0;
}

/* Suporte / sinais de risco (caso o template os inclua na coluna 2/3) */
.amro-checkout-form .support {
  display: flex; gap: 11px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  margin: 14px 0; font-size: 13px; font-weight: 600;
}
.amro-checkout-form .support .wa { width: 22px; height: 22px; color: var(--verde); margin-top: 1px; flex: 0 0 auto; }
.amro-checkout-form .support b { display: block; color: var(--ink); font-weight: 800; margin-bottom: 3px; }
.amro-checkout-form .support a { color: var(--verde); text-decoration: none; font-weight: 800; }
.amro-checkout-form .support .det { color: var(--muted); font-weight: 600; }
.amro-checkout-form .riskstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.amro-checkout-form .riskstrip .it {
  background: #f3fbf4; border: 1px solid #cdeccf; border-radius: 10px;
  padding: 10px 8px; text-align: center; font-size: 11px; font-weight: 700;
  color: #3f5d44; line-height: 1.3;
}
.amro-checkout-form .riskstrip .it .ic { font-size: 18px; display: block; margin-bottom: 4px; }
.amro-checkout-form .founder {
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px;
  color: #42526b; font-size: 13px; line-height: 1.5; font-weight: 600;
}
.amro-checkout-form .founder strong { color: var(--rosa-d); display: block; margin-bottom: 3px; font-weight: 800; }

/* Ícones SVG inline */
.amro-checkout-form .ic,
.amro-checkout-page .top .ic {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.amro-checkout-page .secure .ic { width: 16px; height: 16px; }

/* ──────────── Rodapé ──────────── */
.amro-checkout-page .foot {
  background: #fff; border-top: 1px solid var(--line); text-align: center;
  padding: 24px; margin-top: 24px;
}
.amro-checkout-page .foot h5 { font-weight: 800; margin: 0 0 14px; }
.amro-checkout-page .foot .pays {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px; align-items: center;
}
.amro-checkout-page .foot .pays img {
  height: 34px; width: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.amro-checkout-page .foot small { color: var(--muted); font-weight: 600; display: block; }
.amro-checkout-page .foot .inst { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0 10px; }
.amro-checkout-page .foot .inst b { color: #445; }
.amro-checkout-page .foot .inst .story { font-style: italic; font-size: 12.5px; }
.amro-checkout-page .foot .channels { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.amro-checkout-page .foot .channels a { color: var(--verde); text-decoration: none; font-weight: 800; }
.amro-checkout-page .foot .policies { font-size: 12.5px; margin-bottom: 6px; }
.amro-checkout-page .foot .policies a { color: var(--muted); text-decoration: underline; margin: 0 5px; font-weight: 600; }

/* ──────────── Mensagens / loaders do WC ──────────── */
.amro-checkout-form .woocommerce-info,
.amro-checkout-form .woocommerce-message,
.amro-checkout-form .woocommerce-error {
  border: 1px solid var(--line); border-left: 4px solid var(--rosa);
  background: #fff5f7; border-radius: 10px; padding: 12px 14px;
  font-weight: 600; font-size: 13.5px; list-style: none; margin: 0 0 14px;
}
.amro-checkout-form .woocommerce-error { border-left-color: #ef4444; background: #fef2f2; }
.amro-checkout-form .blockUI.blockOverlay { border-radius: var(--r); }

/* ──────── Suprime chrome de plugins/tema na NOSSA página (canvas standalone) ──────── */
/* Filho não-div do grid (ex.: <wc-order-attribution-inputs> do WC) NÃO vira coluna. */
.amro-checkout-form #checkout > :not(div) { display: none !important; }
/* CommerceKit (timer de reserva + stepper "Shopping Cart/Confirmation"), WhatsApp (QLWApp)
   e o toggle de cupom nativo do WC — temos nosso próprio cupom/stepper/header. */
body.amro-checkout-page [class*="commercekit-timer"],
body.amro-checkout-page .non-product.checkout,
body.amro-checkout-page .checkout-wrap,
body.amro-checkout-page .qlwapp,
body.amro-checkout-page #qlwapp,
body.amro-checkout-page .woocommerce-form-coupon-toggle { display: none !important; }

/* CommerceKit injeta thumbnail 150x150 + wrapper no nome do produto no resumo —
   reduz pra miniatura estilo .sthumb do demo e organiza a linha do item. */
.amro-checkout-form #order_review .product-item-thumbnail { float: left; margin: 0 10px 0 0; }
.amro-checkout-form #order_review .product-item-thumbnail img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: block;
}
.amro-checkout-form #order_review .cg-checkout-table-product-name {
  font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden;
}
.amro-checkout-form #order_review .cg-checkout-table-product-name .product-quantity { color: var(--muted); font-weight: 600; }
.amro-checkout-form #order_review .order-total td,
.amro-checkout-form #order_review .order-total th,
.amro-checkout-form #order_review .product-total,
.amro-checkout-form #order_review tfoot td { white-space: nowrap; }

/* ═══════════════════════ RESPONSIVO ═══════════════════════ */
/* Mobile: 1 coluna, resumo no TOPO (sanfona), demais ordenados. */
@media (max-width: 980px) {
  .amro-checkout-form #checkout { grid-template-columns: 1fr; }

  /* Coluna do resumo se dissolve pra reordenar seus cartões no fluxo único. */
  .amro-checkout-form .col-sum { display: contents; }
  /* Resumo (1º card da col 3) sobe pro topo; reviews (último) descem. */
  .amro-checkout-form .col-sum > .card:first-child { order: -1; margin-bottom: 16px; }
  .amro-checkout-form .col-sum > .card:last-child { order: 10; }

  /* Perfil (col 1) e entrega/pagamento (col 2) na ordem natural. */
  .amro-checkout-form #checkout > div:nth-child(1) { order: 1; }
  .amro-checkout-form #checkout > div:nth-child(2) { order: 2; }

  /* Sanfona do resumo no mobile. */
  .amro-checkout-form .col-sum .sum-head { display: flex; }
  .amro-checkout-form .col-sum .sum-body { display: none; }
  .amro-checkout-form .col-sum .sum-body.open { display: block; margin-top: 14px; }
}

@media (max-width: 560px) {
  .amro-checkout-form .row2 { grid-template-columns: 1fr; }
  .amro-checkout-form .riskstrip { grid-template-columns: repeat(2, 1fr); }
  .amro-checkout-form .card { padding: 18px; }
  .amro-checkout-page .wrap { padding: 14px 12px; }
}
