.fdi-analytics-consent[hidden], .fdi-cookie-settings[hidden] { display: none; }

.fdi-analytics-consent {
  position: fixed;
  z-index: 86;
  inset-inline-end: max(16px, calc((100% - 1320px) / 2));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(436px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--panel);
  color: var(--ice);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  text-align: start;
  padding: 18px 20px;
}

.fdi-analytics-consent h2 {
  margin: 0 0 8px;
  font: 600 20px/1.2 var(--f-body);
  letter-spacing: normal;
  text-transform: none;
}

.fdi-analytics-consent p {
  margin: 0 0 14px;
  color: var(--ice);
  font: 400 16px/1.45 var(--f-body);
}

.fdi-analytics-consent a { text-decoration: underline; text-underline-offset: 3px; }
.fdi-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fdi-consent-actions button {
  flex: 1 1 135px;
  padding: 8px 10px;
  min-height: 44px;
  background: var(--panel-2);
  border: 1px solid var(--dim);
  border-radius: 2px;
  color: var(--ice);
  font: 600 16px/1.25 var(--f-body);
  cursor: pointer;
}

.fdi-consent-actions button:hover { background: var(--scope); }
.fdi-consent-actions button[aria-pressed="true"] { border-color: var(--hud); }

.fdi-cookie-settings {
  align-self: start;
  padding: 0 0 1px;
  background: none;
  border: 0;
  color: var(--ice);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fdi-analytics-consent :focus-visible, .fdi-cookie-settings:focus-visible {
  outline: 2px solid var(--hud);
  outline-offset: 3px;
}

@media (min-width: 1100px) and (min-height: 640px) {
  .page-home .fdi-analytics-consent { bottom: 184px; }
}
