.analytics-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10000;
  max-width: 980px;
  margin-inline: auto;
  padding: 1rem;
  color: #f5f5f5;
  background: rgba(18, 18, 18, 0.985);
  border: 1px solid rgba(242, 140, 40, 0.58);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.48);
}

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

.analytics-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.analytics-consent__copy h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
}

.analytics-consent__copy p {
  max-width: 68ch;
  margin: 0 0 0.45rem;
  color: #e1e1e1;
  line-height: 1.6;
}

.analytics-consent__copy a {
  color: #ffb15d;
  text-underline-offset: 0.2em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: #151515;
  font: inherit;
  font-weight: 700;
  background: #ff9e3d;
  border: 1px solid #ffb15d;
  border-radius: 0.65rem;
  cursor: pointer;
}

.analytics-consent__actions button:hover {
  background: #ffb15d;
}

.analytics-consent__actions .button--secondary {
  color: #fff;
  background: transparent;
}

.analytics-consent__actions .button--secondary:hover {
  color: #151515;
  background: #ffb15d;
}

.analytics-preferences-button {
  display: inline;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.analytics-preferences-button:hover,
.analytics-preferences-button:focus-visible {
  color: #ffb15d;
}

.analytics-preferences-button--floating {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(242, 140, 40, 0.58);
  border-radius: 999px;
}

.analytics-preferences-container {
  margin: 0;
}

.analytics-consent button:focus-visible,
.analytics-preferences-button:focus-visible,
[data-open-analytics-preferences]:focus-visible {
  outline: 3px solid #ffb15d;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .analytics-consent {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    max-height: calc(100dvh - 1.3rem);
    overflow-y: auto;
  }

  .analytics-consent__inner {
    grid-template-columns: 1fr;
  }

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

  .analytics-consent__actions .button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-consent * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
