*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'sansL';
  src: url('../fonts/open-sans.light.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'sansR';
  src: url('../fonts/open-sans.regular.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'sansS';
  src: url('../fonts/open-sans.semibold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'sansB';
  src: url('../fonts/open-sans.bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

.barra-out{
  height: 32px;
  background: #f1f1f1;
  font-weight: bold;
  font-size: 12px;
  line-height: 32px;
  font-family: sansB;

  border-bottom: 1px solid #dfdfdf;
  color: #606060;
}

.barra-in{
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
  height: 100%;
}

.barra-in-left{
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 2px solid #dfdfdf;
  padding-right: 15px;
}

.header-flag{
  height: 20px;
}

.barra-in-right{
  display: flex;
}

.barra-in-right-text{
  border-right: 2px solid #dfdfdf;
  padding: 8px 15px 8px 13px;
  display: flex;
  align-items: center;
}

.header-libras{
  margin-top: 2px;
  margin-left: 15px;
  height: 28px;
}

.header-out{
  padding: 14px 0 0 0;
  background-color: #1659bf;
  color: #fff;
}

.header-in{
  overflow: hidden;
  margin: 0 auto;
  max-width: 960px;
}

.header-in-container1, .header-in-container2{
  display: flex;
  justify-content: space-between;
}

.header-in-container1-left{
  display: flex;
}

.header-in-container1-left-item{
  font-family: sansS;
  display: flex;
  font-size: 10px;
  color: #dcecff;
  margin-right: 8px;
  align-items: center;
}

.header-in-container1-left-item-number{
  margin-left: 5px;
  display: flex;
  align-items: center;
  color: #0a1857;
  background: url(../img/bg-acess-key.gif) center center no-repeat;
  padding: 0 4px;
}

.header-in-container1-right{
  font-family: sansS;
  font-size: 11px;
  color: #dcecff;
  display: flex;
  gap: 10px;
  border-bottom: 1px dotted #6893cb;
}

h1{
  font-size: 40px;
  font-family: sansR;
  margin-bottom: 0px;
}

.ministerio-text{
  font-size: 14px;
  font-family: sansL;
  margin-bottom: 20px;
}

.search-container{
  margin-top: 32px;
  border: 1px solid #CCCCCC;
  display: flex;
  background-color: #f0f1f4;
  border-radius: 8px;
  align-items: center;
  height: 32px;
}

.input-search{
  border: none;
  border-radius: 5px;
  width: 186px;
  padding: 0.3em 0.35em;
  font-size: 15px;
  height: 25px;
  outline: none;
  font-size: 12px;
}

.search-img{
  width: 20px;
  height: 19px;
  margin: 4px 4px 4px;
}

.social-icons{
  margin-top: 12px;
  display: flex;
  justify-content: end;
  gap: 5px;
}

.social-icons img{
  width: 20px;
  height: 20px;
}

.sobre-out{
  background: #0f4098;
  padding: 5px 0;
  color: #fff;
  font-family: sansR;
  font-size: 12px;
}

.sobre-in{
  overflow: hidden;
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  justify-content: end;
}

.sobre-in-item{
  padding: 0px 10px;
  border-right: 1px solid #87a0cc;
}

.sobre-in-item-last{
  border-right: none!important;
}

.container-in{
  margin: 0 auto;
  padding: 0 0 1.5em;
  max-width: 960px;
  background: #fff;
  font-size: 1.3em;
  margin-top: 40px;
}

.brasao-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brasao-container div{
  margin-top: 10px;
  font-size: 15px;
  font-family: sansB;
}

.brasao{
  width: 81px;
  height: 85px;
}

.dados-container{
  text-align: left;
  margin-left: 80px;
  font-size: 15px;
  font-family: sansR;
}

.dado-linha{
  margin: 30px 0px;
}

.dados-strong{
  font-family: sansS;
}

.dados-bottom-container{
  margin-top: 20px;
  margin-left: 80px;
  font-size: 15px;
  font-family: sansR;
}

.div-gerar-pagamento-button{
  justify-content: center;
}

.gerar-pagamento-button{
  margin-top: 30px;
  width: 400px;
  height: 45px;
  background-color: #1659bf;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-family: sansB;
  font-size: 15px;
  cursor: pointer;
}

/* Checkbox Terms Styles */
.termos-checkbox-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.termos-checkbox {
  align-items: center;
  justify-content: center;
  padding: 10px;
  gap: 8px;
  cursor: pointer;
  font-family: sansR;
  font-size: 14px;
  color: #333;
}

.termos-checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #1659bf;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.termos-checkbox input:checked::after {
  content: '✓';
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  color: #1659bf;
  font-weight: bold;
}

.gerar-pagamento-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pagamento-header1 {
  justify-content: center;   /* centraliza horizontalmente se precisar */
  align-items: center;       /* alinha verticalmente se houver mais altura */
  margin: 50px 0px 30px 0px;
}

/* O texto (e o timer) vão dentro deste container */
.pagamento-header1-text {
  display: flex;          /* garante comportamento flex */
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;    /* evita quebrar em várias linhas */
  width: 100%;            /* ocupa 100% do contêiner pai */
  max-width: 800px;       /* ou outro valor, definindo um limite */
  font-size: 16px;
  color: #333;
}

/* Linhas contínuas */
.pagamento-header1-text::before,
.pagamento-header1-text::after {
  content: '';
  flex: 1;                      /* faz cada linha se estender lateralmente */
  border-bottom: 2px solid #ccc;
  margin: 0 10px;               /* espaçamento entre linha e texto */
  height: 0;                    /* evita qualquer "altura" no pseudo-elemento */
}

/* Timer */
.pagamento-header-timer {
  color: #d9534f; /* vermelho */
  font-weight: bold;
  margin: 0 10px;
}


.qr-container{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.qr-img{
  width: 200px;
  height: 200px;
}

.pix-text-container{
  width: 500px;
  display: flex;
  padding: 4px 10px;
  margin: 16px 0;
  border-radius: 8px;
  background-color: #ecf4ff;
  overflow: hidden;
  align-items: center;
  border: 1px solid #c3d3e8;
  height: 57px;
  margin: 16px 0;
}

.pix-text-brcode{
  max-width: 600px;
  font-weight: bold;
  color: #0f4098;
  font-family: sansB;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.pix-text-button{
  background-color: rgb(0 49 87 / 20%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.copy-blue-img{
  width: 16px;
  height: 16px;
}

.copiar-button{
  margin-top: 20px;
  width: 300px;
  height: 45px;
  background-color: #1659bf;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-family: sansB;
  font-size: 15px;
  cursor: pointer;
}

.print-voltar-container{
  margin-top: 30px;
  display: flex;
  justify-content: end;
  flex-direction: column;
  align-items: end;
  font-family: sansR;
  font-size: 12px;
  color: #777777;
}

.footer-header{
  height: 20px;
  background-color: #1659bf;
}

.footer-out{
  background-color: #0042b1;
}

.footer-in{
  margin: 0 auto;
  max-width: 960px;
  padding: 20px 0px;

}

@media (max-width: 768px) {

  .barra-in-left{
    padding-left: 10px;
  }

  .barra-in-right, .header-in-container1{
    display: none;
  }

  .header-in-container2{
    padding: 0px 5px;
  }


  h1{
    font-size: 25px;
    margin-top: 0;
  }

  .search-container{
    margin-top: 10px;
  }

  .social-icons{
    margin-bottom: 5px;
  }

  .sobre-in-item{
    font-size: 11px;
  }

  .sobre-oculto{
    display: none;
  }

  .dados-container{
    margin-left: 20px;
  }

  .dados-bottom-container{
    width: 90%;
    margin-left: 20px;
  }

  .dados-bottom-container div{
    margin-top: 5px;
  }

  .gerar-pagamento-button{
    width: 370px;
    margin: 50px 10px 5px 10px;
  }

  /* Ajustes para o checkbox em mobile */
  .termos-checkbox-container {
    width: 100%;
    padding: 0 20px;
    margin-top: 15px;
  }

  .termos-checkbox {
    padding: 8px 10px 0px 14px;
    margin-left: 10px;
    font-size: 13px;
    white-space: normal;
    box-sizing: border-box;
  }

  .termos-checkbox input {
    flex: 0 0 auto;
    min-width: 18px;
  }

  .termos-checkbox span {
    flex: 1;
    word-wrap: break-word;
    line-height: 1.3;
  }


  .pix-text-container{
    width: 90%;
  }

  .print-voltar-container{
    padding-right: 10px;
  }

  .footer-in{
    padding-left: 10px;
  }
}