/* Consent UI shares the site's cream, ink, and Source Sans typography. */
.analytics-consent {
  position: fixed;
  z-index: 100;
  inset: auto 1rem 1rem;
  box-sizing: border-box;
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid #c8c1b5;
  border-radius: 0.5rem;
  background: #f8f5ee;
  color: #242923;
  box-shadow: 0 0.25rem 1.5rem #24292326;
  font: 400 1rem/1.5 var(--font-sans, sans-serif);
  text-align: left;
}

.analytics-consent[hidden] { display: none; }
.analytics-consent .analytics-consent__title { margin: 0 0 0.5rem; font-size: 1.2rem; letter-spacing: normal; }
.analytics-consent .analytics-consent__description { margin: 0 0 0.5rem; }
.analytics-consent .analytics-consent__privacy { color: #244e40; text-decoration: underline; }
.analytics-consent .analytics-consent__status { margin: 0.75rem 0; font-size: 0.9rem; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.analytics-consent .analytics-consent__button,
.analytics-consent .analytics-consent__close,
.analytics-preferences .analytics-preferences__button {
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: 600 0.95rem/1.4 var(--font-sans, sans-serif);
  cursor: pointer;
}

.analytics-consent .analytics-consent__button { flex: 1 1 12rem; }
.analytics-consent .analytics-consent__close { border-color: transparent; text-decoration: underline; }
.analytics-consent button:disabled { opacity: 0.6; cursor: not-allowed; }
.analytics-consent :focus-visible,
.analytics-preferences :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.analytics-preferences { padding: 0.5rem 1rem 1rem; text-align: center; }
.analytics-preferences .analytics-preferences__button { border-color: transparent; text-decoration: underline; }

@media (max-width: 30rem) {
  .analytics-consent { inset-inline: 0.5rem; width: calc(100% - 1rem); padding: 1rem; }
  .analytics-consent .analytics-consent__button { flex-basis: 100%; }
}
