.analytics-consent-panel {
  position: fixed;
  z-index: 2147483000;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.analytics-consent-settings {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  cursor: pointer;
}

.analytics-consent-settings:hover { text-decoration: underline; }
.analytics-consent-settings:focus-visible {
  text-decoration: underline;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-links .analytics-consent-settings { color: #aebbd0; }
.footer-links .analytics-consent-settings:hover,
.footer-links .analytics-consent-settings:focus-visible { color: #ffffff; }
:root[data-theme="day"] .footer-links .analytics-consent-settings { color: #45413C; }
:root[data-theme="day"] .footer-links .analytics-consent-settings:hover,
:root[data-theme="day"] .footer-links .analytics-consent-settings:focus-visible { color: #28231D; }

.marketing footer .analytics-consent-settings { color: #315FAD; text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .marketing footer .analytics-consent-settings { color: #A7C2FA; }
}

.analytics-consent-panel {
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #9eb4d8;
  border-radius: 18px;
  background: #f9f6ef;
  color: #25211d;
  box-shadow: 0 12px 48px #0005;
}

.analytics-consent-panel h2 { margin: 0 0 7px; font-size: 20px; line-height: 1.25; }
.analytics-consent-panel p { margin: 0 0 14px; color: #49443d; }
.analytics-consent-panel a { color: #274f9b; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent-actions button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #3558a7;
  border-radius: 999px;
  background: #3558a7;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.analytics-consent-actions button:first-child { background: transparent; color: #274f9b; }
.analytics-consent-actions button:hover { filter: brightness(1.08); }
.analytics-consent-actions button:focus-visible { outline: 3px solid #74aaff; outline-offset: 2px; }

@media (prefers-color-scheme: dark) {
  .analytics-consent-panel { background: #111a29; color: #f4f6fa; border-color: #7f9cc9; }
  .analytics-consent-panel p { color: #d2dbe8; }
  .analytics-consent-panel a, .analytics-consent-actions button:first-child { color: #b6d2ff; }
  .analytics-consent-actions button { background: #a7c2fa; border-color: #a7c2fa; color: #101724; }
  .analytics-consent-actions button:first-child { background: transparent; }
}

:root[data-theme="night"] .analytics-consent-panel { background: #111a29; color: #f4f6fa; border-color: #7f9cc9; }
:root[data-theme="night"] .analytics-consent-panel p { color: #d2dbe8; }
:root[data-theme="night"] .analytics-consent-panel a,
:root[data-theme="night"] .analytics-consent-actions button:first-child { color: #b6d2ff; }
:root[data-theme="night"] .analytics-consent-actions button { background: #a7c2fa; border-color: #a7c2fa; color: #101724; }
:root[data-theme="night"] .analytics-consent-actions button:first-child { background: transparent; color: #b6d2ff; }

:root[data-theme="day"] .analytics-consent-panel { background: #f9f6ef; color: #25211d; border-color: #9eb4d8; }
:root[data-theme="day"] .analytics-consent-panel p { color: #49443d; }
:root[data-theme="day"] .analytics-consent-panel a,
:root[data-theme="day"] .analytics-consent-actions button:first-child { color: #274f9b; }
:root[data-theme="day"] .analytics-consent-actions button { background: #3558a7; border-color: #3558a7; color: #fff; }
:root[data-theme="day"] .analytics-consent-actions button:first-child { background: transparent; color: #274f9b; }
