/* AVISO DE COOKIES */
.cookie-banner,
.cookie-preferencias {
  font-family: "Sora", sans-serif;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 9999;

  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background-color: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 40, 80, 0.22);
}

.cookie-banner.ativo {
  display: flex;
}

.cookie-banner-texto {
  max-width: 720px;
}

.cookie-banner-texto strong {
  display: block;
  margin-bottom: 6px;

  color: #1f2858;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.cookie-banner-texto p {
  margin: 0;
  color: #202020;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-banner-texto a {
  color: #002b5c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  min-height: 42px;
  padding: 11px 16px;

  border: none;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: "Sora", sans-serif;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;

  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

.cookie-btn-primario {
  background-color: #002b5c;
  color: #ffffff;
}

.cookie-btn-secundario {
  background-color: #e6f1fc;
  color: #002b5c;
}

.cookie-btn-neutro {
  background-color: #f3f5f8;
  color: #1f2858;
}

.cookie-preferencias-fundo {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
  background-color: rgba(10, 20, 40, 0.55);
}

.cookie-preferencias-fundo.ativo {
  display: flex;
}

.cookie-preferencias {
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  padding: 28px;
  background-color: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(10, 20, 40, 0.28);
}

.cookie-preferencias-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cookie-preferencias h2 {
  margin: 0 0 8px;
  color: #1f2858;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.cookie-preferencias p {
  margin: 0;
  color: #202020;
  font-size: 0.92rem;
  line-height: 1.65;
}

.cookie-fechar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;

  border: none;
  border-radius: 50%;

  background-color: #e6f1fc;
  color: #002b5c;

  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-opcoes {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cookie-opcao {
  padding: 16px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background-color: #fbfcfe;
}

.cookie-opcao-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.cookie-opcao strong {
  color: #1f2858;
  font-size: 0.96rem;
  font-weight: 800;
}

.cookie-opcao span {
  display: block;
  color: #555d6d;
  font-size: 0.84rem;
  line-height: 1.55;
}

.cookie-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #d5dbe5;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #002b5c;
}

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

.cookie-switch input:disabled + .cookie-slider {
  background-color: #8c98aa;
  cursor: not-allowed;
}

.cookie-preferencias-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .cookie-banner-acoes,
  .cookie-preferencias-acoes {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1 1 100%;
  }

  .cookie-preferencias {
    padding: 22px;
  }
}
