/* ==========================================================================
   CENTAURO VIGILÂNCIA — Banner de Consentimento de Cookies
   Conforme LGPD (Lei nº 13.709/2018) e Resolução CD/ANPD nº 18/2024.
   ========================================================================== */

/* ---------- Overlay ---------- */
#cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
}
#cookie-overlay.visible {
  display: block;
}

/* ---------- Banner ---------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9001;
  background: #ffffff;
  border-top: 3px solid #941114;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.14);
  padding: 24px 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #3a3a3a;
  animation: slideUp 0.35s ease;
}
#cookie-banner.visible {
  display: block;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
}
.cookie-text strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.cookie-text p {
  margin: 0;
  line-height: 1.6;
  color: #5a5a5a;
}
.cookie-text a {
  color: #941114;
  font-weight: 600;
  text-decoration: underline;
}
.cookie-text a:hover {
  color: #6e0c0e;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* botão aceitar */
.cookie-btn-accept {
  background: #941114;
  color: #ffffff;
  border: 1.5px solid #941114;
  padding: 11px 24px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.cookie-btn-accept:hover {
  background: #6e0c0e;
  border-color: #6e0c0e;
}

/* botão recusar — igual destaque conforme exigência ANPD */
.cookie-btn-reject {
  background: transparent;
  color: #3a3a3a;
  border: 1.5px solid #3a3a3a;
  padding: 11px 24px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cookie-btn-reject:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

/* link discreto para gerenciar preferências */
.cookie-link-manage {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #8c8c8c;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 4px;
  background: none;
  border: none;
  font-family: inherit;
}
.cookie-link-manage:hover { color: #3a3a3a; }

/* ---------- Ícone de reabrir preferências no rodapé ---------- */
#cookie-reopen {
  display: none;
  position: fixed;
  bottom: 84px;   /* acima do botão de WhatsApp que está em bottom:24px */
  right: 24px;
  z-index: 8999;
  background: #ffffff;
  border: 1.5px solid #d0cbc3;
  color: #3a3a3a;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: all 0.2s ease;
}
#cookie-reopen:hover {
  background: #f7f5f3;
  border-color: #941114;
  color: #941114;
}
#cookie-reopen.visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  #cookie-banner { padding: 20px 16px; }
  .cookie-inner  { gap: 20px; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-btn-accept,
  .cookie-btn-reject { flex: 1; text-align: center; }
  #cookie-reopen { bottom: 90px; }
}
