.analytics-choices-control {
  appearance: none;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 720;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.analytics-choices-control:hover {
  color: var(--primary);
}

.analytics-choices-control:focus-visible,
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible {
  outline: 3px solid #9defff;
  outline-offset: 3px;
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  padding: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 0%, rgba(0, 191, 231, 0.25), transparent 17rem),
    rgba(23, 16, 40, 0.97);
  box-shadow: 0 24px 80px rgba(18, 11, 42, 0.34);
  backdrop-filter: blur(18px);
}

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

.analytics-consent__copy {
  min-width: 0;
}

.analytics-consent__eyebrow {
  margin: 0 0 5px;
  color: #bdefff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 0 32px 8px 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.analytics-consent__copy > p:not(.analytics-consent__eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.analytics-consent__status {
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.analytics-consent a {
  display: inline-block;
  margin-top: 8px;
  color: #bdefff;
  font-size: 0.8rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: min(220px, 35vw);
}

.analytics-consent__actions button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.analytics-consent__allow {
  color: #171028;
  border-color: #fff !important;
  background: #fff;
}

.analytics-consent__allow:hover {
  background: #bdefff;
}

.analytics-consent__deny {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.analytics-consent__deny:hover {
  background: rgba(255, 255, 255, 0.15);
}

.analytics-consent__close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.analytics-consent__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 620px) {
  .analytics-consent {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
    border-radius: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    backdrop-filter: none;
  }
}
