/* ==========================================================================
   Max Del - Banner de Consentimento de Cookies (LGPD - Lei 13.709/2018)
   Arquivo autônomo, não depende de jQuery nem de outros estilos do site.
   ========================================================================== */

#lgpd-banner,
#lgpd-modal-wrap,
#lgpd-reabrir,
.lgpd-embed-bloqueado {
  font-family: 'Helvetica', Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

#lgpd-banner *,
#lgpd-modal-wrap *,
.lgpd-embed-bloqueado * {
  box-sizing: border-box;
}

/* --- Barra inferior -------------------------------------------------- */
#lgpd-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: #282827;
  border-top: 3px solid #65be6b;
  color: #e8e8e8;
  padding: 18px 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .28);
  display: none;
}

#lgpd-banner.lgpd-visivel {
  display: block;
}

#lgpd-banner-inn {
  max-width: 960px;
  margin: 0 auto;
  display: block;
}

#lgpd-banner h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
  font-weight: bold;
}

#lgpd-banner p {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 18px;
  color: #cfcfcf;
}

#lgpd-banner a.lgpd-link,
#lgpd-modal a.lgpd-link {
  color: #65be6b;
  text-decoration: underline;
}

#lgpd-banner a.lgpd-link:hover,
#lgpd-modal a.lgpd-link:hover {
  color: #8ad48f !important;
}

.lgpd-texto {
  float: left;
  width: 60%;
  padding-right: 25px;
}

.lgpd-acoes {
  float: right;
  width: 40%;
  text-align: right;
  padding-top: 4px;
}

/* --- Botões ----------------------------------------------------------- */
.lgpd-btn {
  display: inline-block;
  margin: 4px 0 4px 8px;
  padding: 9px 18px;
  font-size: 12px;
  line-height: 14px;
  font-family: 'Helvetica', Arial, Helvetica, sans-serif;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.lgpd-btn-aceitar {
  background: #65be6b;
  border-color: #65be6b;
  color: #fff;
  font-weight: bold;
}

.lgpd-btn-aceitar:hover {
  background: #55a95b;
  border-color: #55a95b;
  color: #fff !important;
}

.lgpd-btn-recusar {
  background: transparent;
  border-color: #8b8b8a;
  color: #e8e8e8;
}

.lgpd-btn-recusar:hover {
  border-color: #fff;
  color: #fff !important;
}

.lgpd-btn-config {
  background: transparent;
  border-color: transparent;
  color: #cfcfcf;
  text-decoration: underline;
}

.lgpd-btn-config:hover {
  color: #fff !important;
}

/* --- Janela de preferências ------------------------------------------ */
#lgpd-modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .6);
  display: none;
  overflow-y: auto;
  padding: 20px;
}

#lgpd-modal-wrap.lgpd-visivel {
  display: block;
}

#lgpd-modal {
  background: #fff;
  max-width: 640px;
  margin: 40px auto;
  border-radius: 4px;
  border-top: 4px solid #65be6b;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
  color: #666;
}

#lgpd-modal-head {
  padding: 20px 25px 14px;
  border-bottom: 1px solid #e1e1e1;
  position: relative;
}

#lgpd-modal-head h2 {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 22px;
  color: #404040;
  font-weight: bold;
}

#lgpd-fechar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 22px;
  color: #aeafaf;
  cursor: pointer;
  padding: 2px 6px;
}

#lgpd-fechar:hover {
  color: #404040;
}

#lgpd-modal-body {
  padding: 18px 25px 6px;
  max-height: 55vh;
  overflow-y: auto;
}

#lgpd-modal-body > p.lgpd-intro {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 19px;
}

.lgpd-cat {
  border: 1px solid #e5e3e3;
  border-radius: 3px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.lgpd-cat-topo {
  margin-bottom: 6px;
}

.lgpd-cat-topo h4 {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 18px;
  color: #404040;
  font-weight: bold;
  float: left;
}

.lgpd-cat p {
  clear: both;
  margin: 0;
  padding-top: 6px;
  font-size: 11px;
  line-height: 17px;
  color: #777;
}

.lgpd-cat ul {
  clear: both;
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  font-size: 11px;
  line-height: 17px;
  color: #888;
}

.lgpd-cat ul li {
  list-style: disc;
  padding: 1px 0;
}

/* Interruptor */
.lgpd-switch {
  float: right;
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.lgpd-switch input {
  position: absolute;
  opacity: 0;
  width: 46px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.lgpd-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c9c9ca;
  border-radius: 24px;
  transition: background .2s linear;
  pointer-events: none;
}

.lgpd-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s linear;
}

.lgpd-switch input:checked + .lgpd-slider {
  background: #65be6b;
}

.lgpd-switch input:checked + .lgpd-slider:before {
  transform: translateX(22px);
}

.lgpd-switch input:focus + .lgpd-slider {
  box-shadow: 0 0 0 2px rgba(101, 190, 107, .45);
}

.lgpd-switch input:disabled {
  cursor: not-allowed;
}

.lgpd-switch input:disabled + .lgpd-slider {
  background: #9ecb57;
  opacity: .55;
}

.lgpd-sempre {
  float: right;
  font-size: 11px;
  line-height: 24px;
  color: #65be6b;
  font-weight: bold;
}

#lgpd-modal-foot {
  padding: 14px 25px 18px;
  border-top: 1px solid #e1e1e1;
  text-align: right;
}

#lgpd-modal-foot .lgpd-btn-recusar {
  border-color: #c9c9ca;
  color: #666;
}

#lgpd-modal-foot .lgpd-btn-recusar:hover {
  border-color: #404040;
  color: #404040 !important;
}

#lgpd-modal-foot .lgpd-btn-salvar {
  background: #404040;
  border-color: #404040;
  color: #fff;
}

#lgpd-modal-foot .lgpd-btn-salvar:hover {
  background: #282827;
  color: #fff !important;
}

#lgpd-modal-foot p.lgpd-rodape-nota {
  clear: both;
  text-align: left;
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 15px;
  color: #999;
}

/* --- Botão flutuante para reabrir as preferências --------------------- */
#lgpd-reabrir {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 99997;
  display: none;
  background: #282827;
  color: #fff;
  border: 1px solid #65be6b;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  line-height: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  opacity: .82;
}

#lgpd-reabrir:hover {
  opacity: 1;
  color: #65be6b !important;
}

#lgpd-reabrir.lgpd-visivel {
  display: block;
}

/* --- Placeholder de conteúdo de terceiros bloqueado ------------------- */
.lgpd-embed-bloqueado {
  background: #f4f4f4;
  border: 1px dashed #c9c9ca;
  color: #777;
  text-align: center;
  padding: 30px 20px;
  font-size: 12px;
  line-height: 19px;
}

.lgpd-embed-bloqueado p {
  margin: 0 0 12px;
}

.lgpd-embed-bloqueado .lgpd-btn-aceitar {
  margin-left: 0;
}

/* --- Links do rodapé -------------------------------------------------- */
.lgpd-footer-links {
  display: inline;
  margin-left: 12px;
}

.lgpd-footer-links a,
.lgpd-footer-links button {
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Helvetica', Arial, Helvetica, sans-serif;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}

.lgpd-footer-links a:hover,
.lgpd-footer-links button:hover {
  color: #cac6c6 !important;
  text-decoration: underline;
}

.lgpd-footer-sep {
  color: #6d6d6d;
  margin: 0 6px;
}

/* --- Responsivo ------------------------------------------------------- */
@media only screen and (max-width: 767px) {
  #lgpd-banner {
    padding: 14px 15px;
    max-height: 82vh;
    overflow-y: auto;
  }

  .lgpd-texto,
  .lgpd-acoes {
    float: none;
    width: 100%;
    padding-right: 0;
    text-align: left;
  }

  .lgpd-acoes {
    padding-top: 12px;
  }

  .lgpd-btn {
    margin: 5px 8px 5px 0;
  }

  .lgpd-btn-aceitar,
  .lgpd-btn-recusar {
    display: block;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .lgpd-btn-config {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  #lgpd-modal {
    margin: 10px auto;
  }

  #lgpd-modal-body {
    max-height: none;
    padding: 15px 16px 4px;
  }

  #lgpd-modal-head,
  #lgpd-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  #lgpd-modal-foot .lgpd-btn {
    display: block;
    width: 100%;
    margin: 6px 0 0;
    text-align: center;
  }

  #lgpd-reabrir {
    left: 10px;
    bottom: 10px;
    padding: 6px 11px;
  }
}
