/* An in-flow consent panel keeps the page and its controls available. */
.analytics-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 36px;
  width: 100%;
  margin: 0;
  padding: 24px var(--gutter, 24px);
  border-bottom: 1px solid var(--line, #3d453d);
  background: var(--panel, #1c221d);
  color: var(--fg, #f4f3eb);
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
.analytics-preferences[hidden] { display: none; }
.analytics-preferences-copy { flex: 1 1 520px; max-width: 85ch; }
.analytics-preferences h2 {
  margin: 0 0 9px;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.analytics-preferences-copy p {
  margin: 0;
  color: var(--muted, #aab1a8);
  font-size: 1rem;
  line-height: 1.65;
}
.analytics-preferences a {
  color: var(--fg, #f4f3eb);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-preferences-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.analytics-preferences-actions button {
  min-height: 46px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--accent, #c8f665);
  border-radius: 0;
  background: transparent;
  color: var(--fg, #f4f3eb);
  font: 500 1rem/1.4 Inter, Arial, sans-serif;
  cursor: pointer;
}
.analytics-preferences-actions button:hover:not(:disabled) {
  background: var(--accent, #c8f665);
  color: var(--bg, #141715);
}
.analytics-preferences-actions button:disabled { opacity: .6; cursor: default; }
.analytics-preferences-actions .analytics-preferences-close {
  border-color: var(--line, #3d453d);
}
.analytics-preferences button:focus-visible,
.analytics-preferences a:focus-visible,
[data-analytics-preferences]:focus-visible {
  outline: 2px solid var(--accent, #c8f665);
  outline-offset: 5px;
}
.analytics-preferences-status {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted, #aab1a8);
  font-size: .875rem;
}
.analytics-preferences-status:empty { display: none; }
button[data-analytics-preferences] {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 44px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
button[data-analytics-preferences]:hover { color: var(--accent, #c8f665); }
@media (max-width: 680px) {
  .analytics-preferences { gap: 18px; padding-block: 22px; }
  .analytics-preferences-copy { flex-basis: 100%; }
  .analytics-preferences-actions { width: 100%; flex-direction: column; }
  .analytics-preferences-actions button { width: 100%; }
}
