.analytics-consent-banner {
  position: fixed; z-index: 40;
  left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 24px; border: 1px solid #bac5b9; border-radius: 12px;
  background: #f7f8ed; color: #152f27; box-shadow: 0 8px 35px #152f2730;
}
.analytics-consent-banner h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.analytics-consent-banner p { margin: 0; font-size: 14px; line-height: 1.6; }
.analytics-consent-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-banner .analytics-consent-status { margin-top: 10px; font-size: 13px; }
.analytics-consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.analytics-consent-buttons button {
  min-height: 44px; padding: 10px 16px; border: 1px solid #152f27; border-radius: 6px;
  background: #152f27; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.analytics-consent-buttons button:hover { background: #294b3d; }
.analytics-consent-buttons .analytics-consent-close { background: transparent; color: #152f27; }
.analytics-consent-buttons .analytics-consent-close:hover { background: #e4e9dc; }
.analytics-settings {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.analytics-settings:hover { color: #ffb180; }
.analytics-consent-banner :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #bf551f; outline-offset: 4px; }
@media (max-width: 600px) {
  .analytics-consent-banner { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 18px; max-height: calc(100dvh - 24px); }
  .analytics-consent-buttons button { flex: 1 1 auto; }
}
@media print { .analytics-consent-banner, .analytics-settings { display: none; } }
