/* =========================================================
   Checkout NATIVO - PREVIEW (espelha a Zedy/PromoMais)
   Somente UI. Tokens capturados em checkout-analysis/.
   ========================================================= */

:root {
  /* Cores */
  --green: #3FB038;          /* CTA etapas */
  --green-link: #16A34A;     /* links/realce */
  --teal: #13BF8C;           /* CTA PIX */
  --pix-brand: #32BCAD;      /* ícone PIX */
  --blue-sel: #3B82F6;       /* borda selecionado */
  --blue-sel-bg: #EFF6FF;    /* fundo card selecionado */
  --title: #0F172A;          /* títulos */
  --body: #030712;           /* corpo */
  --muted: #6B7280;          /* secundário */
  --border-input: #DEDEDE;   /* borda input */
  --bg: #FFFFFF;
  --footer-bg: #D1D5DB;
  --footer-text: #374151;
  --green-card-bg: #F3FBF2;  /* card etapa concluída */
  --green-card-border: #BBE6B6;
  --locked-bg: #F8FAFC;      /* card colapsado/locked */
  --discount-badge-bg: #DCFCE7;
  --discount-badge-text: #15803D;
  --pix-amber-bg: #FEF3C7;
  --pix-amber-text: #92732E;
  --pix-step-circle: #16A34A;
  --pix-title: #3E3E3E;

  /* Métricas */
  --radius: 8px;
  --input-h: 46px;
  --cta-h: 56px;
  --summary-w: 360px;

  --font-form: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-pix: 'Rubik', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* garante que [hidden] vença displays de flex/grid */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #F1F1F1;
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo { display: inline-flex; }
.brand__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: #F59E0B;
  letter-spacing: -0.01em;
}
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.secure-badge__text {
  font-size: 11px;
  line-height: 1.15;
  color: #111827;
  font-family: var(--font-form);
}
.secure-badge__text strong { font-weight: 700; }

/* ===================== BARRA PROMO ===================== */
.promo-bar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-family: var(--font-form);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
}

/* ===================== MOBILE: resumo colapsável ===================== */
.order-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--locked-bg);
  border: none;
  border-bottom: 1px solid #EAECF0;
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-form);
}
.order-toggle__label { font-size: 14px; color: var(--title); font-weight: 500; }
.order-toggle__count { color: var(--muted); }
.order-toggle__right { display: inline-flex; align-items: center; gap: 6px; }
.order-toggle__total { font-weight: 700; font-size: 16px; color: var(--title); }
.order-toggle__chevron { transition: transform .2s ease; }
.order-toggle[aria-expanded="true"] .order-toggle__chevron { transform: rotate(180deg); }
.order-mobile {
  display: none;
  padding: 16px 18px 20px;
  border-bottom: 1px solid #EAECF0;
  background: #fff;
}

/* ===================== CHECKOUT GRID ===================== */
.checkout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  grid-template-columns: 375px minmax(0, 1fr) var(--summary-w);
  gap: 24px;
  align-items: start;
}
.col { min-width: 0; }
.col--summary { position: sticky; top: 20px; }

/* ===================== STEP CARD ===================== */
.step-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.step-card:last-child { margin-bottom: 0; }

/* card bloqueado (etapas futuras) = cinza claro */
.step-card--locked {
  background: var(--locked-bg);
  border-color: #EEF0F3;
}
.step-card--locked .step-card__title { color: var(--muted); }

/* card concluído (verde claro) */
.step-card--done {
  background: var(--green-card-bg);
  border-color: var(--green-card-border);
  padding: 18px 24px;
}

.step-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.step-card__title {
  font-family: var(--font-form);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--title);
  margin: 0;
}
.step-card__sub {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.step-card__sub--secure {
  margin: 0 0 16px;
  font-size: 12px;
  white-space: nowrap;
}
.step-card__index {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.step-card__body { margin-top: 18px; }

/* colapsado (concluído) */
.step-card__collapsed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-card__summary {
  font-family: var(--font-form);
  font-size: 14px;
  line-height: 1.55;
  color: var(--title);
  margin: 10px 0 0;
}
.step-card__summary .muted { color: var(--muted); }
.step-card__summary strong { font-weight: 600; }
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-form);
  font-size: 14px;
  padding: 0;
}
.edit-btn:hover { color: var(--title); }

/* ===================== FIELDS ===================== */
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  margin-bottom: 7px;
}
.field__optional { color: var(--muted); font-weight: 400; }
.field__info { display: inline-flex; cursor: help; }

.field__input {
  width: 100%;
  height: var(--input-h);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  padding: 4px 12px;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field__input::placeholder { color: #9CA3AF; font-weight: 400; }
.field__input:focus {
  border-color: var(--blue-sel);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.field__input--half { max-width: 241px; }

/* estado preenchido/válido (autofill CEP) */
.field__input--filled {
  background: var(--blue-sel-bg);
  border-color: #DBEAFE;
}
.field__input--invalid {
  border-color: var(--green-link); /* não usado p/ erro; placeholder */
}
.field.has-error .field__input {
  border-color: #EF4444;
}
.field__error {
  font-family: var(--font-form);
  font-size: 12px;
  color: #EF4444;
  margin: 6px 0 0;
}

/* telefone com prefixo +55 */
.field__phone {
  display: flex;
  align-items: center;
  height: var(--input-h);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__phone:focus-within {
  border-color: var(--blue-sel);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.field__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px 0 12px;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  border-right: 1px solid var(--border-input);
  height: 100%;
}
.field__input--phone {
  border: none;
  border-radius: 0;
  height: 100%;
  flex: 1;
  min-width: 0;
}
.field__input--phone:focus { box-shadow: none; }

/* linha N° + Bairro */
.field-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.field-row .field { margin-bottom: 0; }
.field--number { width: 110px; flex-shrink: 0; }
.field--neighborhood { flex: 1; }

/* CEP + resultado UF/cidade */
.field__cep-row { display: flex; align-items: center; gap: 12px; }
.field__cep-result {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.field__cep-result.is-loading { color: var(--muted); }

/* input com check verde */
.field__with-check { position: relative; }
.check-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-link);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
}

/* ===================== FRETE ===================== */
.freight {
  border: none;
  margin: 20px 0 0;
  padding: 0;
}
.freight__legend {
  font-family: var(--font-form);
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
  padding: 0;
  margin-bottom: 12px;
}
.freight__option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.freight__option input { position: absolute; opacity: 0; pointer-events: none; }
.freight__option--selected {
  border-color: var(--blue-sel);
  background: var(--blue-sel-bg);
}
.freight__radio {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.freight__option--selected .freight__radio {
  border-color: var(--blue-sel);
}
.freight__option--selected .freight__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--blue-sel);
  border-radius: 50%;
}
.freight__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.freight__name {
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
}
.freight__eta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-form);
  font-size: 12px;
  color: var(--muted);
}
.freight__sedex {
  background: #FFCC00;
  color: #003399;
  font-weight: 800;
  font-size: 11px;
  font-style: italic;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: -0.02em;
}
.freight__price {
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 700;
  color: var(--title);
  white-space: nowrap;
}
.freight__price--free { color: var(--title); }

/* ===================== CTA ===================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: var(--cta-h);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-form);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}
.cta:active { transform: translateY(1px); }
.cta--green { background: var(--green); color: #fff; margin-top: 22px; }
.cta--green:hover { filter: brightness(.96); }
.cta--teal {
  background: var(--teal);
  color: #F9FAFB;
  border-radius: 6px;
  height: 58px;
  font-family: var(--font-pix);
  font-size: 18px;
  margin: 12px 0 8px;
}
.cta--teal:hover { filter: brightness(.96); }
.cta:disabled { opacity: .6; cursor: default; }

/* dentro do card PIX o CTA não tem margem extra */
.pay-option__detail .cta--green { margin-top: 14px; }

/* ===================== ORDER SUMMARY ===================== */
.order-summary {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 22px;
}
.order-mobile .order-summary { border: none; padding: 0; }
/* no mobile o header colapsável já mostra "Resumo do pedido": some o título e cola o brinde no topo */
.order-mobile .order-summary__title { display: none; }
.order-mobile .order-items { margin-top: 0; }
.order-summary__title {
  font-family: var(--font-form);
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
  margin: 0 0 14px;
}
.coupon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-link);
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  margin-bottom: 16px;
}
.order-summary__lines { border-top: 1px solid #F1F1F1; padding-top: 14px; }
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--body);
  margin-bottom: 9px;
}
.summary-line__value--free { color: var(--green-link); }
.summary-line__value--discount { color: var(--muted); }
.summary-line--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #F1F1F1;
  font-weight: 700;
  font-size: 16px;
  color: var(--title);
}
.summary-line--total .summary-line__value { font-weight: 700; }

.order-items { margin-top: 18px; }
.order-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.order-item__thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #EEF0F3;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.order-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.order-item__thumb--gift { background: #fff; }
.order-item__info { flex: 1; min-width: 0; }
.order-item__name {
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 500;
  color: var(--title);
  line-height: 1.3;
  margin: 0;
}
.order-item__price {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--title);
  white-space: nowrap;
  margin-left: 8px;
}
.order-item__top { display: flex; justify-content: space-between; align-items: flex-start; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
}
.qty-stepper button:hover { background: #F9FAFB; }
.qty-stepper__count {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--title);
}

/* item brinde (order bump) */
.order-item--gift {
  border: 1px dashed var(--green-card-border);
  background: #EEF9F1;
  border-radius: 10px;
  padding: 12px;
  margin-top: 4px;
}
/* thumb do brinde fica branco mesmo dentro da box verde clara */
.order-item--gift .order-item__thumb { background: #fff; }
.gift-badge {
  display: inline-block;
  border: 1px solid var(--green-link);
  color: var(--green-link);
  border-radius: 6px;
  font-family: var(--font-form);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
}
.order-item__desc {
  font-family: var(--font-form);
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.3;
}

/* ===================== PAYMENT OPTIONS ===================== */
.pay-options { display: flex; flex-direction: column; gap: 14px; }
.pay-option {
  position: relative;
  display: block;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 18px 18px;
  cursor: pointer;
  background: #F6F7F8;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pay-option > .pay-option__top > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pay-option--selected {
  border-color: var(--blue-sel);
  box-shadow: 0 0 0 1px var(--blue-sel);
  background: #fff;
}
.pay-option__top { display: flex; align-items: center; gap: 12px; }
.pay-option__radio {
  width: 20px;
  height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.pay-option--selected .pay-option__radio { border-color: var(--blue-sel); }
.pay-option--selected .pay-option__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--blue-sel);
  border-radius: 50%;
}
.pay-option__icon { display: inline-flex; align-items: center; }
.pay-option__icon--pix img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.pay-option__icon--card {
  width: 40px;
  height: 32px;
  background: #F3F4F6;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.pay-option__labels { display: flex; flex-direction: column; gap: 2px; }
.pay-option__name {
  font-family: var(--font-form);
  font-size: 15px;
  font-weight: 600;
  color: var(--title);
}
.pay-option__note {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--green-link);
}
.pay-discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--discount-badge-bg);
  color: var(--discount-badge-text);
  font-family: var(--font-form);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 0 10px 0 10px;
}
.pay-option__detail { display: none; padding-top: 14px; }
.pay-option--selected .pay-option__detail { display: block; }
.pay-option__expire {
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}
.pay-option__value {
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--body);
  margin: 0;
}
.pay-option__value strong { color: var(--green-link); font-weight: 700; }
/* ===================== CARTÃO: campos expandidos ===================== */
.card-form__label {
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
  margin: 0 0 8px;
}
.card-form__box {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 18px;
}
.card-form__brand-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #9CA3AF;
  display: inline-flex;
}
.card-form .field { margin-bottom: 16px; }
.card-form .field:last-of-type { margin-bottom: 0; }
.card-form .field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
}
.card-form__first { margin-top: 6px; }

/* input do cartão com ícones/bandeiras à direita */
.card-input-wrap { position: relative; }
/* reserva espaço p/ as bandeiras (3 svg 26px + "+5" + gaps + margem direita)
   — número/placeholder param ANTES dos ícones, sem sobreposição */
.card-input-wrap .field__input { padding-right: 132px; }
.card-input-wrap--cvv .field__input { padding-right: 56px; }
.card-brands {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.card-brands svg { display: block; border-radius: 3px; }
.card-brands__more {
  font-family: var(--font-form);
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
}
.card-cvv-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  pointer-events: none;
}

/* linha validade + CVV */
.card-form__row {
  display: flex;
  gap: 14px;
}
.card-form__row .field { flex: 1; margin-bottom: 0; }

/* select de parcelas */
.card-select {
  width: 100%;
  height: var(--input-h);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  padding: 4px 38px 4px 12px;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card-select:focus {
  border-color: var(--blue-sel);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.card-form .cta--green { margin-top: 18px; }

/* ===================== CARTÃO: mock (preview) vs live (Pagou Element) =====================
   Box ÚNICO (.card-form__box) com 1 campo de nome (#cardName) sempre visível.
   Dentro dele alternam só os campos sensíveis:
     - Padrão (preview/testMode): mostra o MOCK (.card-form__mock = Número/Validade/CVV),
       esconde o Payment Element.
     - body.is-live (produção): esconde o MOCK, mostra o Payment Element seguro da Pagou
       (.card-form__live com #cardElement) no MESMO lugar. */
.card-form__live { display: none; }
.card-form__mock { display: block; }
body.is-live .card-form__live { display: block; }
body.is-live .card-form__mock,
body.is-live .card-form__label--mock { display: none; }
/* LIVE: sem caixa aninhada — o iframe da Pagou (que já tem nome/número/validade/cvv)
   fica full-width, sem borda/padding extra do .card-form__box espremendo. */
body.is-live .card-form__box {
  border: none;
  padding: 0;
  background: transparent;
}

/* container do iframe da Pagou — full-width; o iframe traz nome/número/validade/cvv (~249px) */
.card-element {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
}
.card-element:has(iframe) { padding: 0; border: none; align-items: stretch; }
.card-element iframe { display: block; width: 100%; min-height: 249px; border: 0; }
/* placeholder discreto enquanto o iframe Pagou não monta (origin allowlist pendente).
   Some assim que o iframe da Pagou entra no container. */
.card-element__hint {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--muted);
}
.card-element:has(iframe) .card-element__hint { display: none; }
#cardElementError { margin-top: 8px; }

/* ===================== TELA PIX ===================== */
.pix-screen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  justify-content: center;
}
.pix-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}
.pix-card__title {
  font-family: var(--font-pix);
  font-size: 32px;
  font-weight: 600;
  line-height: 48px;
  color: var(--pix-title);
  margin: 0 0 12px;
}
.pix-card__urgency {
  font-family: var(--font-pix);
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
}
.pix-card__urgency strong { color: var(--pix-title); font-weight: 600; }
.pix-illustration { display: flex; justify-content: center; margin: 4px 0 18px; }
.pix-illustration img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}
.pix-status {
  display: inline-block;
  background: var(--pix-amber-bg);
  color: var(--pix-amber-text);
  font-family: var(--font-pix);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pix-code {
  border: 1px dashed #64737E;
  border-radius: 8px;
  padding: 14px 12px;
  font-family: var(--font-pix);
  font-size: 13px;
  color: var(--body);
  word-break: break-all;
  text-align: center;
  line-height: 1.4;
  /* mostra só uma linha "truncada" como no original */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pix-dev-paid {
  background: none;
  border: 1px dashed #CBD5E1;
  border-radius: 6px;
  color: #94A3B8;
  font-family: var(--font-form);
  font-size: 11px;
  padding: 5px 10px;
  margin: 0 auto 10px;
  cursor: pointer;
  display: block;
}
.pix-dev-paid:hover { color: var(--muted); border-color: #94A3B8; }
.pix-value {
  font-family: var(--font-pix);
  font-size: 16px;
  color: var(--body);
  margin: 0 0 8px;
}
.pix-value strong { color: var(--green-link); font-weight: 700; }
.pix-divider {
  border-top: 1px dashed #E5E7EB;
  margin: 16px 0 18px;
}
.pix-how__title {
  font-family: var(--font-form);
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
  text-align: left;
  margin: 0 0 14px;
}
.pix-how {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.pix-how__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--body);
  margin-bottom: 14px;
}
.pix-how__item:last-child { margin-bottom: 0; }
.pix-how__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pix-step-circle);
  color: #fff;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ===================== TELA PAGAMENTO CONFIRMADO ===================== */
.thankyou {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  justify-content: center;
}
.thankyou-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}
.thankyou-check { display: flex; justify-content: center; margin-bottom: 16px; }
.thankyou-title {
  font-family: var(--font-form);
  font-size: 28px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 8px;
}
.thankyou-sub {
  font-family: var(--font-form);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
}
.thankyou-order {
  font-family: var(--font-form);
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 20px;
}
.thankyou-order strong { color: var(--title); font-weight: 600; }

.thankyou-method {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green-card-bg);
  border: 1px solid var(--green-card-border);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 24px;
}
.thankyou-method__icon { display: inline-flex; }
.thankyou-method__text { display: flex; flex-direction: column; text-align: left; }
.thankyou-method__label {
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
}
.thankyou-method__status {
  font-family: var(--font-form);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-link);
}

.thankyou-block { text-align: left; margin-bottom: 24px; }
.thankyou-block:last-of-type { margin-bottom: 0; }
.thankyou-block__title {
  font-family: var(--font-form);
  font-size: 16px;
  font-weight: 700;
  color: var(--title);
  margin: 0 0 12px;
}
.thankyou-summary { padding: 18px; }
.thankyou-summary .order-summary__title,
.thankyou-summary .coupon-link { display: none; }
.thankyou-summary .order-summary__lines { border-top: none; padding-top: 0; }
.thankyou-summary .qty-stepper { display: none; }
.thankyou-summary .order-items { border-top: 1px solid #F1F1F1; padding-top: 16px; }

.thankyou-block--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.thankyou-info {
  background: var(--locked-bg);
  border: 1px solid #EEF0F3;
  border-radius: 10px;
  padding: 14px 16px;
}
.thankyou-info__title {
  font-family: var(--font-form);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin: 0 0 8px;
}
.thankyou-info__body {
  font-family: var(--font-form);
  font-size: 13px;
  line-height: 1.55;
  color: var(--title);
  margin: 0;
  word-break: break-word;
}
.thankyou-info__body strong { font-weight: 600; }

.thankyou-next { list-style: none; padding: 0; margin: 0; }
.thankyou-next__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--body);
  margin-bottom: 12px;
}
.thankyou-next__item:last-child { margin-bottom: 0; }
.thankyou-next__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pix-step-circle);
  color: #fff;
  font-family: var(--font-form);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .thankyou { padding: 20px 16px 40px; }
  .thankyou-card { padding: 28px 18px; border-radius: 0; border-left: none; border-right: none; }
  .thankyou-title { font-size: 24px; }
  .thankyou-block--cols { grid-template-columns: 1fr; }
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 28px 24px 32px;
  font-family: var(--font-form);
  font-size: 13px;
  line-height: 1.7;
}
.site-footer p { margin: 0; }
.site-footer__brand { margin-bottom: 2px; }
.site-footer__contact { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.site-footer__contact p::after { content: " /"; }
.site-footer__contact p:last-child::after { content: ""; }
.secure-badge--footer { justify-content: center; margin-top: 14px; }

/* MOBILE: cada info do footer em sua própria linha, arejado e legível */
@media (max-width: 920px) {
  .site-footer { font-size: 14px; line-height: 1.65; padding: 26px 18px 30px; }
  .site-footer__addr,
  .site-footer__cnpj { margin-top: 12px; }
  .site-footer__contact { display: block; margin-top: 16px; }
  .site-footer__contact p { margin: 0 0 6px; }
  .site-footer__contact p::after,
  .site-footer__contact p:last-child::after { content: ""; }
}

/* selo preview — escondido no checkout LIVE (domínio público) */
body.is-live .preview-flag { display: none !important; }
.preview-flag {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: rgba(15,23,42,.9);
  color: #fff;
  font-family: var(--font-form);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 50;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVO - MOBILE (1 coluna)
   ========================================================= */
@media (max-width: 920px) {
  .checkout {
    grid-template-columns: 1fr;
    padding: 16px 16px 40px;
    gap: 0;
  }
  .col--summary { display: none; }       /* resumo desktop some */
  .col--payment { order: 3; }
  .col--form { order: 2; }
  .order-toggle { display: flex; }        /* resumo colapsável aparece */
  .order-mobile.is-open { display: block; }

  .step-card { padding: 20px 18px; border-radius: 0; border-left: none; border-right: none; margin-bottom: 0; border-bottom: none; }
  .col--form .step-card:first-child { border-top: none; }
  .step-card--locked { border: none; }
  /* separador entre cards no mobile */
  .step-card + .step-card,
  .col + .col .step-card { border-top: 1px solid #EEF0F3; }

  .field__input--half { max-width: 100%; }
  .field__phone.field__input--half { max-width: 100%; }
  /* CEP no mobile: input ocupa ~60%, resultado UF/cidade ao lado sem quebrar */
  .field__cep-row #zipcode { flex: 0 1 160px; }
  .field__cep-result { white-space: nowrap; font-size: 12px; }
  .freight__option { padding: 14px; }

  .pix-screen { padding: 20px 16px 40px; }
  .pix-card { padding: 28px 18px; border-radius: 0; border-left: none; border-right: none; }
  .pix-card__title { font-size: 26px; line-height: 39px; }
  .pix-illustration img { width: 170px; height: 170px; }

  .preview-flag { left: 12px; right: 12px; text-align: center; }
}

/* telas bem estreitas: garante o texto "transações seguras" numa linha só */
@media (max-width: 360px) {
  .step-card__sub--secure { font-size: 11px; }
}

@media (max-width: 920px) {
  /* no mobile o card de pagamento e o de entrega/identificação ficam empilhados;
     remove o segundo border-top duplicado */
  .col--payment .step-card { border-top: 1px solid #EEF0F3; }
}

/* =========================================================
   MOBILE ESTREITO (<=480px): box de pagamento NÃO pode espremer.
   Reduz padding lateral da pay-option e tira aninhamento extra do cartão
   pra sobrar largura — campos legíveis/fáceis de preencher no celular.
   ========================================================= */
@media (max-width: 480px) {
  .pay-options { gap: 12px; }
  .pay-option { padding: 14px 12px; border-radius: 10px; }
  .pay-option--selected { padding: 14px 12px; }
  .pay-option__top { gap: 10px; }
  .pay-option__detail { padding-top: 12px; }
  /* badge "5% DE DESCONTO" maior/legível no mobile */
  .pay-discount-badge { font-size: 12px; padding: 5px 12px; letter-spacing: .02em; }

  /* CARTÃO: o iframe da Pagou o mais full-width possível dentro da opção.
     Sem padding/borda da box no live (já zerado), e container colado às bordas. */
  body.is-live .card-form { margin: 0; }
  body.is-live .card-element { padding: 0; border: none; }
  body.is-live .card-element iframe { min-height: 252px; }

  /* select de parcelas e botão Finalizar full-width e altura confortável */
  .card-select { width: 100%; height: 46px; }
  .card-form .cta--green,
  .pay-option__detail .cta--green { width: 100%; }

  /* PIX: texto/valor/botão sem aperto */
  .pay-option__expire { font-size: 13px; }
  /* "Valor no Pix: R$ X" maior no mobile, com o valor verde em destaque */
  .pay-option__value { font-size: 16px; font-weight: 600; }
  .pay-option__value strong { font-size: 20px; }
}

/* foco visível acessível em tudo que é interativo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.freight__option:focus-within,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-sel);
  outline-offset: 2px;
}
