/* Importa a fonte */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Aplica DM Sans em absolutamente todos os elementos dentro do formulário */
.address-box, 
.address-box *, 
.address-box input, 
.address-box select, 
.address-box textarea, 
.address-box button, 
.address-box label, 
.address-box a {
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}



.address-box .cep-input-wrapper a.cep-link {
  color: #00857E !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}



/* Importa DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Aplica DM Sans globalmente */
body, html {
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Aplica DM Sans em todo o formulário e elementos filhos */
.address-box, 
.address-box * {
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #222 !important;
}

/* Inputs, selects e buttons */
.address-box input,
.address-box select,
.address-box textarea,
.address-box button {
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  color: #222 !important;
}

/* Labels */
.address-box label {
  color: #555 !important; /* levemente mais fraco */
  font-weight: 500 !important;
}

/* Inputs e selects: força usar DM Sans mesmo em navegadores que sobrescrevem */
.address-box input, 
.address-box select, 
.address-box textarea {
  all: unset; /* remove estilos nativos do browser */
  box-sizing: border-box !important;
  padding: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  color: #222 !important;
}



































.checkout-header {
  width: 100%;
  padding: 8px 20px;
  box-sizing: border-box;
  background: #fff;
  font-family: "DM Sans", sans-serif; /* aplica fonte a tudo */
  border-bottom: 1px solid #ddd;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 17px;   /* logo pequeno */
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.secure-logo {
  height: 20px;   /* logos pequenos */
  width: auto;
}

/* Etapas do checkout */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;  /* distância do topo */
  gap: 10px;          /* espaço entre step e barra */
  font-family: "DM Sans", sans-serif;
}

.step {
  font-size: 16px;
  color: #aaa; /* padrão cinza */
  font-weight: 500;
  white-space: nowrap; /* não quebra texto */
  line-height: 1.0;
}

.step.active {
  color: #0fa099; /* verde ativo */
  font-weight: 600;
}

.bar {
  height: 3px;       /* altura da barra */
  width: 15px;       /* comprimento menor da barra */
  background: #ccc;  /* cinza padrão */
  align-self: center;
}

.bar.active {
  background: #0fa099; /* verde ativo */
}










/* Aplica borda cinza escuro ao focar nos inputs e selects */
.form-group input:focus,
.form-group select:focus {
  outline: none;                /* remove o contorno padrão do navegador */
  border: 2px solid rgb(118, 118, 118); /* borda cinza escuro */
  box-shadow: none;             /* remove sombra laranja padrão */
}




.address-box {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  font-family: "DM Sans", sans-serif;
  background: #fff;
}

.box-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #222;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 10px;
}

.cep-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cep-link {
  font-size: 13px;
  color: #00857E;
  text-decoration: underline;
  cursor: pointer;
}

.location-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.green-link {
  color: #00857E;
  font-size: 13px;
}

.form-warning {
  background: #f2f2f2;
  padding: 10px;
  font-size: 13px;
  border-radius: 6px;
  margin-bottom: 15px;
  color: #444;
}

.note {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.checkbox-inline {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  color: #222;
}

.green-check {
  color: #00857E;
  font-weight: 500;
}

.input-icon {
  position: relative;
}

.input-icon svg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Checkbox personalizado quando marcado */
input[type="checkbox"]:checked {
  accent-color: #00A470; /* muda a cor do checkbox marcado */
}

/* Botões empilhados */
.form-actions {
  display: flex;
  flex-direction: column; /* empilha verticalmente */
  gap: 10px;              /* espaçamento entre os botões */
  margin-top: 14px;
}


.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.btn.green {
  background: #00857E;
  color: #fff;
}

.btn.gray {
  background: #ddd;
  color: #333;
}

.numero-container {
  display: flex;
  flex-direction: column; /* deixa um embaixo do outro */
  align-items: flex-start; /* alinha tudo à esquerda */
  gap: 6px; /* espaço entre input e checkbox */
}

/* força input e checkbox do número na mesma linha */
#numero {
  display: inline-block;
  width: auto;           /* para caber o checkbox ao lado */
  vertical-align: middle;
}

#sem-numero {
  vertical-align: middle;       /* mantém alinhamento básico */
  margin-left: -5px;            /* espaçamento horizontal do input */
  position: relative;           /* permite deslocamento */
  top: 19px;                     /* empurra para baixo */
}




























/* Footer geral */
.site-footer {
  position: relative; /* referência para elementos absolute dentro */
  box-sizing: border-box;
  color: #443c3c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  height: auto;
  margin-top: 20px; /* mantém o footer no final */
  outline: none;
  overflow-wrap: break-word;
  padding: 20px 0; /* remova padding lateral para a linha cobrir toda a tela */
  text-align: center;
  text-decoration: none;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Linha fina preta */
.footer-line {
  position: absolute; /* fora do fluxo normal do footer */
  top: 0;             /* linha no topo do footer */
  left: 90;            /* canto esquerdo da tela */
  width: 100vw;       /* cobre toda a largura da viewport */
  height: 1px;
  background-color: #e0dddd;
  margin: 0;
}

/* Container de ícones de segurança */
.security-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

/* Ícones de segurança */
.security-icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 30px !important;  /* força o espaçamento */
}

.security-icons img {
  width: 75px;
  max-width: 20vw;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
}
.security-icons img:hover {
  transform: scale(1.1);
}

/* Copyright */
.footer-copyright {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #443c3c;
  margin-bottom: 10px;
}

/* Links dentro do footer */
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: #20AE43;
  text-decoration: none;
}

/* Responsividade para celular */
@media (max-width: 480px) {
  .security-icons {
    gap: 10px;
    margin: 15px 0;
  }
  .security-icons img {
    width: 20vw;
    max-width: 50px;
  }
  .site-footer {
    font-size: 12px;
    padding: 15px 0;
  }
}

.main-content {
  min-height: calc(100vh - 80px - 140px); /* 80px ≈ header, 140px ≈ footer */
}




.security-icons img,
.security-icons img.secure-site,
.security-icons img.secure-google,
.security-icons img.geotrust {
  width: 70px !important;   /* ou outro valor desejado */
  height: auto !important;
  max-width: none !important; /* remove limites */
}












/* Campos na mesma linha */
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
}

/* CEP com link à direita dentro do mesmo container */
.cep-container .cep-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cep-container input#cep {
  flex: 1; /* ocupa todo espaço disponível */
}

.cep-container .cep-link {
  white-space: nowrap;
  font-size: 13px;
  color: #00857E;
  text-decoration: underline;
  cursor: pointer;
}

/* Aviso abaixo do CEP */
.cep-container .form-warning {
  margin-top: 6px;
  font-size: 13px;
  background: #f8f8f8;
  padding: 6px 10px;
  border-radius: 6px;
  color: #444;
  width: 100%;
}








.hidden-fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hidden-fields.show {
  max-height: 2000px; /* ou o valor suficiente para conter todos os campos */
  opacity: 1;
}





.address-box,
.address-box * {
  font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}






#loading-overlay {
  display: none; /* invisível até clicar */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #00A470;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
