.analytics-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

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

.analytics-consent__panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(21, 92, 255, 0.18);
  pointer-events: auto;
}

.analytics-consent__copy {
  display: grid;
  gap: 6px;
}

.analytics-consent__text,
.analytics-consent__status {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.analytics-consent__status {
  color: var(--muted);
  font-size: 12px;
}

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

.analytics-consent__button,
.analytics-consent__privacy,
.analytics-settings-link {
  min-height: 40px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.analytics-consent__button,
.analytics-consent__privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.analytics-consent__button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
}

.analytics-consent__button + .analytics-consent__button {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.analytics-consent__privacy,
.analytics-settings-link {
  color: var(--blue);
}

.analytics-consent__button:focus-visible,
.analytics-consent__privacy:focus-visible,
.analytics-settings-link:focus-visible {
  outline: 3px solid rgba(21, 92, 255, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .analytics-consent__panel {
    animation: analytics-consent-in 180ms ease-out;
  }
}

@keyframes analytics-consent-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .analytics-consent {
    right: 10px;
    bottom: 78px;
    left: 10px;
  }

  .analytics-consent__panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

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

  .analytics-consent__button,
  .analytics-consent__privacy {
    flex: 1 1 130px;
  }
}