.cookie-preferences {
  padding: 0;
  border: 0;
  background: none;
  color: #dde5eb;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.analytics-consent {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  width: min(480px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 35px #102d4330;
}

.analytics-consent h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.2;
}

.analytics-consent p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.analytics-consent a {
  color: var(--navy);
}

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-consent-actions button {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  font-size: 14px;
}

.analytics-consent-actions button:hover {
  background: var(--deep);
}

@media (max-width: 600px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }
}
