.analytics-consent {
  position: fixed;
  z-index: 1200;
  right: clamp(12px, 2vw, 32px);
  bottom: clamp(12px, 2vw, 32px);
  left: clamp(12px, 2vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(4, 9, 20, .98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .48);
  color: #f8f9ff;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent__copy h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 24px);
}

.analytics-consent__copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 249, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}

.analytics-consent__copy a {
  color: #ff6d9e;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.analytics-consent__actions .button {
  min-height: 46px;
  padding: 12px 18px;
  white-space: nowrap;
}

.site-footer__legal button[data-analytics-manage] {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.site-footer__legal button[data-analytics-manage]:focus-visible {
  outline: 2px solid #ff5d96;
  outline-offset: 4px;
}

.analytics-noscript-pixel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 760px) {
  .analytics-consent {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .analytics-consent__actions {
    justify-content: stretch;
  }

  .analytics-consent__actions .button {
    flex: 1 1 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    scroll-behavior: auto;
  }
}
