.footer .footer-analytics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

#analytics-preferences {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 32px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#analytics-consent {
  position: fixed;
  z-index: 150;
  inset-inline-start: max(12px, env(safe-area-inset-left));
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  width: min(390px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #232833);
  box-shadow: 0 8px 36px rgba(25, 35, 67, .22);
  font-size: 14px;
  line-height: 1.5;
}

#analytics-consent h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

#analytics-consent p { margin: 0; }

.analytics-consent-actions {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
}

.analytics-consent-actions button {
  flex: 1;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--indigo, #3d4ea8);
  border-radius: 6px;
  background: #fff;
  color: var(--indigo-700, #31408c);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.analytics-consent-actions button:hover { background: #eef1fb; }

#analytics-consent a {
  color: var(--indigo-700, #31408c);
  text-decoration: underline;
}

#analytics-consent :focus-visible,
#analytics-preferences:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
