.analytics-consent {
  position: relative;
  z-index: 1000;
}

.analytics-consent__settings {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: #171717;
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  font: inherit;
  cursor: pointer;
}

.analytics-consent__panel {
  position: fixed;
  inset: 0;
  padding: 1rem;
  background: rgba(12, 12, 12, 0.58);
}

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

.analytics-consent__content {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  transform: translateX(-50%);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1rem;
  background: #fff;
  color: #171717;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.analytics-consent__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-consent__content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
}

.analytics-consent__content p {
  margin: 0.6rem 0;
  line-height: 1.55;
}

.analytics-consent__content a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #171717;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.analytics-consent__actions button[data-consent="granted"] {
  background: #171717;
  color: #fff;
}

.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible {
  outline: 3px solid #f0b64c;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .analytics-consent__settings {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .analytics-consent__content {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .analytics-consent__actions {
    flex-direction: column-reverse;
  }

  .analytics-consent__actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent *,
  .analytics-consent *::before,
  .analytics-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
