.analytics-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(740px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 14px 16px;
  overflow-y: auto;
  border: 1px solid #dddfea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(24, 30, 52, .16);
  color: #20263b;
  font: 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.analytics-consent p { margin: 0; }
.analytics-notice { width: min(1080px, calc(100% - 40px)); margin: 18px auto 0; color: #596279; font: 13px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.analytics-consent a { color: #4f46e5; text-underline-offset: 2px; }
.analytics-consent div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 360px; min-width: 0; }
.analytics-consent button { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 8px; font: 600 12px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.analytics-consent-reject { border: 1px solid #d4d8e5; background: #fff; color: #424a61; }
.analytics-consent-accept { border: 1px solid #4f46e5; background: #4f46e5; box-shadow: 0 4px 10px rgba(79, 70, 229, .18); color: #fff; }
.analytics-consent button:focus-visible { outline: 3px solid #8b85ff; outline-offset: 2px; }

@media (max-width: 720px) {
  .analytics-consent { grid-template-columns: 1fr; gap: 12px; width: min(430px, calc(100vw - 24px)); padding: 14px; }
  .analytics-consent div { width: 100%; }
}

@media (max-width: 380px) {
  .analytics-consent { bottom: max(12px, env(safe-area-inset-bottom)); }
  .analytics-consent button { padding-inline: 7px; }
}
