/* Cupão da Vez — layout único para telemóvel, tablet e PC */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  background: #dedede !important;
  min-height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

body {
  position: relative !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 430px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 100dvh;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.14);
}

/* VSL / surveys polish */
.enviarCodigo,
button.desbloquear-button {
  border-radius: 14px !important;
}
.square-button {
  border-radius: 12px !important;
}
.card .rate, .rating .rate {
  cursor: pointer;
}

body.fundoAlerta { background-color: #fea802; }

.logoHome {
  width: min(240px, 78%) !important;
  display: block !important;
  margin: 8px auto 18px auto !important;
  mix-blend-mode: multiply;
  background: transparent !important;
}

.logoSaque {
  width: min(160px, 48%) !important;
  margin: 8px auto 0 auto !important;
  display: block !important;
}
body.fundo1 { background-color: #ffdf00; }
body.fundoWhite { background-color: #ffffff; }

/* Home */
body.fundo2 > #p1 {
  display: block;
  padding: 28px 20px 18px !important;
}

body.fundo2 > #p1 > img {
  width: min(210px, 70%) !important;
  display: block !important;
  margin: 8px auto 18px auto !important;
}

.divCadastro {
  margin-top: 14px !important;
  width: calc(100% - 32px) !important;
  margin-left: 16px !important;
  margin-right: 16px !important;
  height: auto !important;
  min-height: 92px;
  padding: 18px 44px 18px 62px;
}

.divCadastro > div:first-child,
body.fundo2 div[style*="height: 100px"] > div:first-child {
  top: 50% !important;
  transform: translateY(-50%);
}

body.fundo2 a + div[style*="height: 100px"] {
  width: calc(100% - 32px) !important;
  margin-left: 16px !important;
  margin-right: 16px !important;
  height: auto !important;
  min-height: 92px;
  padding: 18px 16px 18px 62px;
  margin-bottom: 24px;
}

/* Cabeçalho das páginas do funil (logo + saldo) */
body.fundoWhite > .corteLayoutTop {
  display: none;
}

body.fundoWhite > #p1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px !important;
}

body.fundoWhite > #p1 > img {
  width: 118px !important;
  margin: 4px 0 4px 4px !important;
  flex-shrink: 0;
}

body.fundoWhite > #p1 > .boxSaldo {
  float: none !important;
  margin: 4px 4px 4px 0 !important;
}

body.fundoWhite > #p1 > form {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
}

.coolinput {
  margin-left: 16px !important;
  margin-right: 16px !important;
  width: auto !important;
  max-width: 100%;
}

.coolinput input.input,
.coolinput input[type="text"],
.coolinput input[type="tel"] {
  width: 100% !important;
  max-width: 100%;
}

#validaEmail {
  overflow: visible;
}

#validaEmail .emailHint {
  position: static;
  margin: 6px 0 0 10px;
  min-height: 18px;
  line-height: 1.3;
}

#validaEmail .aux {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.autocomplete-content {
  height: auto !important;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
}

#textoGuiaCpf h1,
#textoGuiaNome h1,
#textoGuiaCelular h1,
#textoGuiaEmail h1,
#textoGuiaFim h1,
#textoTitulo {
  margin-left: 4px !important;
  margin-right: 8px !important;
  font-size: clamp(18px, 5.4vw, 22px) !important;
  line-height: 1.25;
}

#textoInformacao {
  margin-left: 4px !important;
  margin-right: 8px !important;
}

/* Carrossel de cupões */
.container {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 6px !important;
}

.cards {
  position: relative;
  width: 100%;
  height: min(72vh, 520px) !important;
  margin-bottom: 8px !important;
  overflow: hidden;
}

.card {
  width: min(92%, 380px) !important;
}

.card img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

#codigoBarras.coolinput,
#codigoBarras {
  margin-top: 12px !important;
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

#textoCarregandoCodigo,
#textoCodigoEncontrado {
  flex-wrap: wrap;
  padding: 0 12px;
  text-align: center;
}

.carregandoCodigo,
.codigoLocalizado {
  font-size: clamp(12px, 3.6vw, 15px) !important;
  letter-spacing: 0.5px !important;
}

/* Botões de continuar */
.continuarAtivo,
.continuarInativo,
.finalizarAtivo {
  max-width: min(398px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto !important;
  box-sizing: border-box;
}

.continuarAtivo[style*="position: unset"],
.continuarInativo[style*="position: unset"] {
  position: relative !important;
  left: auto;
  transform: none;
  width: 100% !important;
  max-width: 100%;
}

/* VSL */
#saque .corteLayoutTop {
  display: none !important;
}

#saque > #p1,
#saque #p1 {
  display: block !important;
  text-align: center;
  padding: 12px 16px !important;
}

#saque img[src*="logo2"] {
  width: min(160px, 48%) !important;
  margin: 8px auto 0 auto !important;
  display: block !important;
}

.menu,
.menuemb {
  max-width: 430px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 100%;
}

.menuemb {
  width: min(95%, 410px) !important;
}

.outer-box,
.outer-box-login {
  width: calc(100% - 24px) !important;
  max-width: 100%;
}

.white-box,
.white-box-login {
  width: 100% !important;
  padding-left: 12px;
  padding-right: 12px;
}

.form-input,
.form-label,
.desbloquear-button {
  width: calc(100% - 32px) !important;
  max-width: 100%;
}

.button-container {
  width: calc(100% - 32px) !important;
}

.square-button {
  min-width: 0;
}

.square-button span {
  font-size: clamp(9px, 2.6vw, 11px);
}

.popup-container,
.popup-containerL {
  width: min(90vw, 400px) !important;
  max-height: 90dvh;
  overflow: auto;
}

.valor-box {
  width: auto !important;
  min-width: 110px;
  max-width: 46vw;
}

.valor-box span,
#valor {
  font-size: clamp(14px, 4vw, 20px) !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imagem img {
  width: 100% !important;
  border-radius: 12px;
}

/* Páginas de confirmação (prevsl / concluir) */
body.fundo1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 16px 32px;
}

body.fundo1 .coolinput {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.fundo1 .continuarAtivo {
  position: relative !important;
  left: auto;
  transform: none;
  width: 100% !important;
  max-width: 100%;
}

@media (max-width: 359px) {
  body.fundoWhite > #p1 > img {
    width: 96px !important;
  }
  .cards {
    height: min(52vh, 320px) !important;
  }
  .divCadastro,
  body.fundo2 a + div[style*="height: 100px"] {
    padding-left: 54px;
  }
}

@media (min-width: 768px) {
  html {
    background: #dedede;
  }
  body {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    min-height: calc(100dvh - 48px);
    border-radius: 16px;
    overflow-x: hidden;
  }
  body.fundo2,
  body.fundo1,
  body.fundoWhite {
    min-height: auto;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 460px;
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    min-height: calc(100dvh - 64px);
  }
  body.fundo2,
  body.fundo1 {
    min-height: auto;
  }
}


/* prod100-chrome */
.cdv-header-logo,
.brand-logo.cdv-header-logo {
  width: auto !important;
  height: 44px !important;
  max-width: 210px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  margin: 6px 0 6px 10px !important;
  mix-blend-mode: multiply;
  background: transparent !important;
}
body.fundo2 .cdv-header-logo,
body.fundo2 .logoHome {
  margin-left: auto !important;
  margin-right: auto !important;
  height: auto !important;
  max-height: 88px !important;
  width: min(260px, 78%) !important;
}
.cdv-trust {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px auto 6px;
  padding: 0 12px;
}
.cdv-trust span {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  font-family: system-ui, sans-serif;
}
.cdv-trust-note {
  text-align: center;
  font-size: 11px;
  color: #666;
  margin: 0 auto 14px;
  padding: 0 16px;
  font-family: system-ui, sans-serif;
}
.menuRodapeCupom {
  position: fixed !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 406px !important;
  height: 58px !important;
  padding: 6px 10px !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.12) !important;
  border: 1px solid #f0f0f0 !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}
.menuRodapeCupom .material-symbols-outlined {
  font-size: 28px !important;
  color: #656565 !important;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}
.menuRodapeCupom .ativo { color: #E6A800 !important; }
body.fundoWhite, body.fundoBranco {
  padding-bottom: 84px !important;
}
.nif-cta-hint {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin: 8px 16px 0;
  font-family: system-ui, sans-serif;
}
.tax-brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 10px;
  mix-blend-mode: multiply;
}
@media (min-width: 1024px) {
  body {
    max-width: 430px !important;
  }
}
