/* Barra de consentimento — topo da tela, discreta, aparece junto com o splash */
#cm-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998; /* atrás do splash (9999) mas na frente do conteúdo */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: cm-overlay-fade 0.25s ease-out;
}

@keyframes cm-overlay-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#cm-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: rgba(10, 19, 38, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 12px 16px;
  width: min(560px, calc(100vw - 24px));
  animation: cm-consent-slide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cm-consent-slide {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cm-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cm-consent-text {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cm-consent-text a {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cm-consent-text a:hover { color: #f1c947; }

.cm-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cm-consent-actions button {
  border: 0;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cm-consent-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.cm-consent-reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cm-consent-accept {
  background: #d4af37;
  color: #0a1326;
}

.cm-consent-accept:hover {
  background: #f1c947;
  transform: translateY(-1px);
}
