/* ============================================================================
   HD AT Sistemas Inteligentes — banner de consentimento de cookies (LGPD)
   Arquivo ADITIVO — compartilhado nas 29 páginas do site.
   ============================================================================ */

.hdat-cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 4000;
  width: min(380px, calc(100vw - 40px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 20px 22px 18px;
  font-family: var(--hdat-cookie-font, inherit);
  animation: hdat-cookie-in .3s ease;
}
@keyframes hdat-cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hdat-cookie-banner[hidden] { display: none !important; }

.hdat-cookie-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hdat-cookie-banner__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0fa89d;
}

.hdat-cookie-banner__desc {
  margin: 0 0 12px;
  font-size: .87rem;
  line-height: 1.5;
  color: #4a4a4a;
}

.hdat-cookie-banner__detail {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
  font-size: .8rem;
  font-style: italic;
  color: #6b6f76;
  line-height: 1.5;
}

.hdat-cookie-banner__links {
  margin: 0 0 16px;
  font-size: .82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.hdat-cookie-banner__links a {
  color: #0fa89d;
  text-decoration: underline;
}
.hdat-cookie-banner__links a:hover { color: #0c8a81; }

.hdat-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hdat-cookie-banner__prefs {
  background: none;
  border: none;
  padding: 0;
  margin-right: auto;
  font-size: .82rem;
  color: #6b6f76;
  text-decoration: underline;
  cursor: pointer;
}
.hdat-cookie-banner__prefs:hover { color: #252525; }

.hdat-cookie-banner__btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.hdat-cookie-banner__btn:active { transform: translateY(1px); }

.hdat-cookie-banner__btn--rejeitar {
  background: #fff;
  border-color: #d0d0d0;
  color: #4a4a4a;
}
.hdat-cookie-banner__btn--rejeitar:hover { border-color: #a0a0a0; }

.hdat-cookie-banner__btn--aceitar {
  background: #0fa89d;
  color: #fff;
}
.hdat-cookie-banner__btn--aceitar:hover { background: #0c8a81; }

.hdat-cookie-banner__btn:focus-visible {
  outline: 3px solid #044cd0;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hdat-cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
  .hdat-cookie-banner__actions { flex-direction: column; align-items: stretch; }
  .hdat-cookie-banner__prefs { margin: 0 0 8px; text-align: left; }
  .hdat-cookie-banner__btn { width: 100%; text-align: center; }
}
