/* Shared analytics preferences; isolated from page layout. */
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  width: min(400px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-small);
  background: var(--color-white-green);
  color: var(--color-navy);
  box-shadow: 4px 8px 16px rgba(0, 35, 55, .1);
  font: 300 13px/18px var(--font-body);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 6px; font: 400 19px/24px var(--font-display); }
.analytics-consent > p { margin: 0 0 6px; }
.analytics-consent__privacy { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.analytics-consent__button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-small);
  color: var(--color-navy);
  font: 400 14px/20px var(--font-display);
  cursor: pointer;
}
.analytics-consent__button--reject { background: var(--color-surface); }
.analytics-consent__button--accept { background: var(--color-mint); }
.analytics-consent__button:hover { background: var(--color-mint-light); }
.analytics-consent__button:focus-visible,
.analytics-consent__privacy:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
@media (max-width: 767px) {
  .analytics-consent { right: 12px; bottom: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 12px; font-size: 13px; line-height: 18px; }
  .analytics-consent h2 { margin-bottom: 6px; font-size: 18px; line-height: 24px; }
  .analytics-consent > p { margin-bottom: 6px; }
  .analytics-consent__actions { flex-direction: column-reverse; gap: 8px; margin-top: 8px; }
  .analytics-consent__button { width: 100%; padding: 8px 16px; font-size: 14px; line-height: 20px; }
}


.analytics-consent__preferences { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--color-sage); text-align: left; text-decoration: underline; font: 300 16px/28px var(--font-body); cursor: pointer; }
.analytics-consent__preferences:focus-visible { outline: 2px solid var(--color-mint); outline-offset: 3px; }
.analytics-consent__status:empty { display: none; }
.analytics-consent__status { margin-top: 12px !important; color: var(--color-navy); }
