.analytics-consent {
  position: fixed;
  z-index: 10000;
  inset-inline: max(16px, calc((100vw - 1120px) / 2));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  color: #172033;
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  box-shadow: 0 12px 38px rgba(20, 35, 60, .22);
  font: 400 14px/1.55 Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.analytics-consent__content { max-width: 760px; }
.analytics-consent__content h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.analytics-consent__content p { margin: 0 0 7px; }
.analytics-consent__guardian { font-weight: 600; }
.analytics-consent__content a { color: #1649a1; text-decoration: underline; text-underline-offset: 2px; }
.analytics-consent__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.analytics-consent__button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #1649a1;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.analytics-consent__button:focus-visible,
[data-open-analytics-preferences]:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.analytics-consent__button--primary { color: #fff; background: #1649a1; }
.analytics-consent__button--secondary { color: #1649a1; background: #fff; }
.analytics-consent__button:hover { filter: brightness(.94); }

[data-open-analytics-preferences] {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .analytics-consent { inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .analytics-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-consent__button { padding-inline: 8px; }
}
