/* The analytics consent banner and the footer's analytics settings link,
   drawn by analytics.js on every page that loads it. */

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(24px, calc((100vw - var(--page-width)) / 2));
  bottom: 24px;
  left: max(24px, calc((100vw - var(--page-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(29, 29, 31, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.analytics-consent-copy {
  max-width: 600px;
}

.analytics-consent-copy strong {
  font-size: 17px;
}

.analytics-consent-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.analytics-consent-actions button,
.analytics-settings-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.analytics-consent-actions button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.analytics-consent-actions button:hover {
  background: var(--ivory);
}

.analytics-consent-actions .analytics-consent-primary {
  background: var(--ink);
  color: #fff;
}

.analytics-consent-actions .analytics-consent-primary:hover {
  background: var(--blue);
}

.analytics-settings-link {
  padding: 0;
}

.analytics-settings-link:hover {
  color: var(--blue);
}

@media (max-width: 680px) {
  .analytics-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .analytics-consent-actions {
    justify-content: flex-end;
  }
}
