/* =========================================================
   COOKIES — ZELO
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);

  transition:
    opacity .35s ease,
    visibility .35s ease,
    transform .35s ease;
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.cookie-content {
  max-width: 1180px;
  margin: 0 auto;

  padding: 22px 24px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;

  background: rgba(255, 255, 255, .98);

  border: 1px solid #e5e8ef;
  border-radius: 18px;

  box-shadow:
    0 20px 60px rgba(15, 30, 60, .18);

  backdrop-filter: blur(12px);
}


/* =========================================================
   ÍCONE
   ========================================================= */

.cookie-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #eef3ff;
  color: #118a69;

  font-size: 23px;
}


/* =========================================================
   TEXTO
   ========================================================= */

.cookie-text h3 {
  margin: 0 0 5px;

  color: #16181d;

  font-size: 17px;
  font-weight: 800;
}

.cookie-text p {
  max-width: 650px;

  margin: 0 0 5px;

  color: #6d727b;

  font-size: 13px;
  line-height: 1.5;
}

.cookie-policy-link {
  color: #118a69;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;
}

.cookie-policy-link:hover {
  text-decoration: underline;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-btn {
  min-height: 42px;

  padding: 0 17px;

  border-radius: 9px;

  font-size: 12px;
  font-weight: 800;

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}


/* PRIMÁRIO */

.cookie-btn-primary {
  background: #118a69;
  color: #fff;
}

.cookie-btn-primary:hover {
  background: #118a69;
  box-shadow: 0 7px 18px rgba(23, 72, 213, .25);
}


/* OUTLINE */

.cookie-btn-outline {
  background: #fff;
  color: #118a69;
  border-color: #d5dcef;
}


/* SECUNDÁRIO */

.cookie-btn-secondary {
  background: #f3f4f6;
  color: #444950;
}


/* =========================================================
   MODAL
   ========================================================= */

.cookie-modal-overlay {
  position: fixed;
  inset: 0;

  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(8, 15, 30, .55);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   MODAL
   ========================================================= */

.cookie-modal {
  position: relative;

  width: 100%;
  max-width: 620px;

  padding: 30px;

  background: #fff;

  border-radius: 20px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, .22);

  transform: translateY(20px);

  transition: transform .3s ease;
}

.cookie-modal-overlay.active .cookie-modal {
  transform: translateY(0);
}


/* =========================================================
   FECHAR
   ========================================================= */

.cookie-modal-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: #f3f4f6;
  color: #555;

  cursor: pointer;
}


/* =========================================================
   HEADER MODAL
   ========================================================= */

.cookie-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 18px;
}

.cookie-modal-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background: #eef3ff;
  color: #1748d5;

  font-size: 20px;
}

.cookie-modal-header span {
  color: #1748d5;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

.cookie-modal-header h2 {
  margin: 2px 0 0;

  color: #15171b;

  font-size: 23px;
  font-weight: 900;
}


/* =========================================================
   DESCRIÇÃO
   ========================================================= */

.cookie-modal-description {
  margin-bottom: 22px;

  color: #70757d;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   OPÇÕES
   ========================================================= */

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 0;

  border-top: 1px solid #edf0f4;
}

.cookie-option-info {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.cookie-option-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #f5f7fb;
  color: #1748d5;
}

.cookie-option strong {
  display: block;

  margin-bottom: 3px;

  color: #25282d;

  font-size: 13px;
  font-weight: 800;
}

.cookie-option p {
  margin: 0;

  color: #858991;

  font-size: 11px;
  line-height: 1.45;
}


/* =========================================================
   SEMPRE ATIVOS
   ========================================================= */

.cookie-always-active {
  color: #198754;

  font-size: 10px;
  font-weight: 800;

  white-space: nowrap;
}


/* =========================================================
   SWITCH
   ========================================================= */

.cookie-switch {
  position: relative;

  width: 44px;
  height: 24px;

  display: block;

  cursor: pointer;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;

  background: #dfe3e9;

  border-radius: 20px;

  transition: .25s;
}

.cookie-switch span::before {
  content: "";

  position: absolute;

  width: 18px;
  height: 18px;

  left: 3px;
  top: 3px;

  background: #fff;

  border-radius: 50%;

  box-shadow: 0 2px 5px rgba(0, 0, 0, .15);

  transition: .25s;
}

.cookie-switch input:checked + span {
  background: #1748d5;
}

.cookie-switch input:checked + span::before {
  transform: translateX(20px);
}


/* =========================================================
   FOOTER MODAL
   ========================================================= */

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 20px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 850px) {

  .cookie-content {
    grid-template-columns: auto 1fr;
  }

  .cookie-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

}


@media (max-width: 576px) {

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-content {
    padding: 18px;

    grid-template-columns: 1fr;
    gap: 13px;
  }

  .cookie-icon {
    width: 44px;
    height: 44px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-btn-primary {
    grid-column: 1 / -1;
  }

  .cookie-modal {
    padding: 23px 18px;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }

}