.analytics-consent {
  position: fixed;
  z-index: 2147483000;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #555b63;
  border-radius: 16px;
  background: #1b1d20;
  color: #fff;
  box-shadow: 0 8px 40px #0003;
  text-transform: none;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 500; }
.analytics-consent p { margin: 0; font-size: 14px; line-height: 1.6; }
.analytics-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.analytics-actions button {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #7b828b;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.analytics-actions button:hover { background: #34383e; }
.analytics-actions button:focus-visible, .analytics-settings:focus-visible { outline: 2px solid #e02d3c; outline-offset: 4px; }
.analytics-settings {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal-content .analytics-settings { font-size: 14px; }
@media (max-width: 600px) {
  .analytics-consent { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 18px; }
  .analytics-consent h2 { font-size: 18px; }
  .analytics-consent p { font-size: 13px; }
  .analytics-actions { gap: 8px; margin-top: 14px; }
  .analytics-actions button { flex-basis: 100%; }
}
