.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: clamp(0.75rem, 2vw, 2rem);
  bottom: clamp(0.75rem, 2vw, 2rem);
  left: clamp(0.75rem, 2vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.125rem;
  color: #fff;
  background: #090909;
  box-shadow: 0 0.75rem 3rem rgb(0 0 0 / 18%);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.analytics-consent[hidden] { display: none; }
.analytics-consent.is-visible { opacity: 1; transform: none; }
.analytics-consent p { max-width: 58rem; margin: 0; font-size: clamp(0.78rem, 1vw, 0.9rem); line-height: 1.4; }
.analytics-consent div { display: flex; align-items: center; gap: 1rem; }
.analytics-consent a,
.analytics-consent button {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.analytics-consent button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible { outline: 2px solid #fff; outline-offset: 0.2rem; }

.privacy-control {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 680px) {
  .analytics-consent { grid-template-columns: 1fr; gap: 0.65rem; padding: 0.9rem 1rem; }
  .analytics-consent div { justify-content: space-between; gap: 1.25rem; }
  .analytics-consent button { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent { transition: none; }
}
