/* Google Analytics consent controls — kept separate from the site theme. */
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  max-width: min(31rem, calc(100vw - 2rem));
  padding: 1.1rem;
  color: #f6f7ff;
  background: #131626;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .9rem;
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .35);
  font: 400 .9rem/1.45 system-ui, sans-serif;
}

.analytics-consent p { margin: 0; }
.analytics-consent a { color: #b8c5ff; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.analytics-consent button,
.analytics-preferences {
  appearance: none;
  padding: .55rem .8rem;
  color: #f6f7ff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: .45rem;
  cursor: pointer;
  font: inherit;
}
.analytics-consent button:first-child { color: #0a1023; background: #b8c5ff; border-color: #b8c5ff; font-weight: 700; }
.analytics-preferences {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  font-size: .78rem;
  opacity: .82;
}
.analytics-preferences:hover, .analytics-preferences:focus { opacity: 1; }

@media (max-width: 34rem) {
  .analytics-consent { right: .75rem; bottom: .75rem; max-width: calc(100vw - 1.5rem); }
  .analytics-preferences { right: .75rem; bottom: .75rem; }
}
