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

.analytics-choices {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgb(7 9 14 / 58%);
}

.analytics-choices__panel {
  position: relative;
  width: min(44rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  color: #f8f0df;
  background: #0b0f18;
  border: 1px solid #8a5e26;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 45%);
}

.analytics-choices__panel h2 {
  margin: 0 2.5rem 0.75rem 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.analytics-choices__panel p {
  max-width: 68ch;
  line-height: 1.6;
}

.analytics-choices__panel a {
  color: #d9ad62;
}

.analytics-choices__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: #f8f0df;
  font-size: 1.8rem;
  background: transparent;
  border: 1px solid #8a5e26;
  cursor: pointer;
}

.analytics-choices__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.analytics-choices__actions .btn {
  width: 100%;
  min-height: 3rem;
}

.analytics-choices__status {
  min-height: 1.5em;
  margin-bottom: 0;
}

.analytics-choices__control {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9998;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  color: #f8f0df;
  font: inherit;
  font-size: 0.82rem;
  background: #0b0f18;
  border: 1px solid #8a5e26;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 28%);
}

.analytics-choices__control:focus-visible,
.analytics-choices__close:focus-visible,
.analytics-choices__actions .btn:focus-visible {
  outline: 3px solid #f0c36c;
  outline-offset: 3px;
}

@media (max-width: 36rem) {
  .analytics-choices__actions {
    grid-template-columns: 1fr;
  }

  .analytics-choices__control {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

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