.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 65;
  inset: auto 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 24px;
  width: auto;
  max-width: 960px;
  max-height: calc(100dvh - 160px);
  margin: 0 auto;
  padding: 20px 24px;
  overflow-y: auto;
  border: 1px solid #c9c9c9;
  background: #fff;
  color: #30312f;
  text-align: left;
  box-shadow: 0 4px 20px #00000014;
  font-family: var(--sans, sans-serif);
}
#analytics-consent h2 { margin: 0 0 6px; color: #30312f; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#analytics-consent .analytics-consent-copy { margin: 0; color: #50514e; font-size: 13px; line-height: 1.5; }
.analytics-consent-copy a { color: #30312f; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.analytics-consent-actions button {
  min-height: 44px;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid #50514e;
  background: #fff;
  color: #30312f;
  font: 500 13px/1.4 var(--sans, sans-serif);
  cursor: pointer;
}
.analytics-consent-actions button:hover { background: #f4f4f3; }
.analytics-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.analytics-consent button:focus-visible, .analytics-settings:focus-visible, .analytics-consent a:focus-visible { outline: 2px solid #30312f; outline-offset: 3px; }
body:has(#analytics-consent:not([hidden])) { padding-bottom: 240px; }
@media (max-width: 760px) {
  .analytics-consent { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .analytics-consent-actions button { flex: 1; min-width: 0; }
  .pc .analytics-consent { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
