.analytics-consent {
  position: fixed;
  z-index: 10050;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.analytics-consent[hidden] {
  display: none !important;
}

.analytics-consent__content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.analytics-consent__copy h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.analytics-consent__copy p {
  margin: 0 0 6px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.analytics-consent__copy a {
  color: #0d6efd;
  font-size: 0.86rem;
  font-weight: 700;
}

.analytics-consent__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.analytics-consent button:focus-visible,
[data-analytics-consent-settings]:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .analytics-consent__content {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
  }

  .analytics-consent__copy {
    flex: 1 1 auto;
  }

  .analytics-consent__actions {
    flex: 0 0 220px;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent {
    backdrop-filter: none;
  }
}
