.analytics-choices[hidden] { display: none; }
.analytics-choices {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  padding: .4rem .65rem;
  background: #f4eddd;
  color: #182c40;
  box-shadow: 0 -8px 30px rgb(0 0 0 / .18);
  font-family: Arial, Helvetica, sans-serif;
}
.analytics-choices__content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.analytics-choices h2 {
  margin: 0 0 .1rem;
  color: #182c40;
  font: 400 12px Georgia, "Times New Roman", serif;
}
.analytics-choices p { margin: 0; color: #182c40; font-size: 11px; line-height: 1.3; }
.analytics-choices a { color: #182c40; text-underline-offset: .15em; }
.analytics-choices__actions { display: flex; flex-shrink: 0; gap: .35rem; }
.analytics-choices__actions button {
  min-height: 1.8rem;
  padding: .25rem .5rem;
  font-size: 10px;
  border: 1px solid #182c40;
  border-radius: 0;
  background: transparent;
  color: #182c40;
  cursor: pointer;
}
.analytics-choices__actions button:hover,
.analytics-choices__actions button:focus-visible { outline: 2px solid #182c40; outline-offset: 2px; }
.analytics-choices a { font-size: 10px; }
.analytics-settings-link {
  padding: 0;
  font-size: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.book__links, .kit__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}
.book .book__privacy,
.kit__foot a[href="/privacy/"],
.kit__foot [data-analytics-settings] {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 9px;
}
.book [data-analytics-settings],
.kit__foot [data-analytics-settings] { text-decoration: none; }
.book [data-analytics-settings] { color: rgb(244 237 221 / .52); }
.kit__foot [data-analytics-settings] { color: var(--faint); }
.book [data-analytics-settings]:hover,
.book [data-analytics-settings]:focus-visible,
.kit__foot [data-analytics-settings]:hover,
.kit__foot [data-analytics-settings]:focus-visible { color: var(--cream); }
.book .book__privacy:hover,
.book .book__privacy:focus-visible,
.kit__foot a[href="/privacy/"]:hover,
.kit__foot a[href="/privacy/"]:focus-visible,
.kit__foot [data-analytics-settings]:hover,
.kit__foot [data-analytics-settings]:focus-visible { text-decoration: underline; }
@media (max-width: 760px) {
  .book__links { align-self: flex-end; }
}
@media (max-width: 650px) {
  .analytics-choices__content { display: block; }
  .analytics-choices__actions { margin-top: .4rem; flex-wrap: wrap; }
}
/* v48: two equal choices, readable sizes */
.analytics-choices { padding: .9rem 1rem; }
.analytics-choices h2 { font: 600 15px/1.3 Arial, Helvetica, sans-serif; }
.analytics-choices p, .analytics-choices a { font-size: 14px; line-height: 1.45; }
.analytics-choices__actions { gap: .6rem; }
.analytics-choices__actions button { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: 14px; background: transparent; color: #182c40; }
@media (max-width: 700px) { .analytics-choices__content { flex-direction: column; align-items: stretch; } .analytics-choices__actions button { flex: 1; } }
/* banner in the light blue-grey to match the site */
.analytics-choices { background:#eef2f6; }
.analytics-choices { background:#eef5f8; }

/* Make the inline Privacy link visibly distinct. */
.analytics-choices p a[href="/privacy/"] { color: #246b67; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
