/* A compact consent control using the site's existing type and surface tokens. */
.cookie-consent {
  position: fixed;
  z-index: 1100;
  inset: auto auto max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  color: var(--ink-strong, var(--text-0, #f4f7fa));
  background: var(--surface-raised, var(--surface-1, #101724));
  border: 1px solid var(--rule, var(--border-strong, #526071));
  box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
  font-family: var(--font-body, system-ui, sans-serif);
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent[data-cookie-consent] h2 {
  margin: 0 0 .65rem;
  font: 600 1.1rem/1.3 var(--font-heading, var(--font-header, system-ui, sans-serif));
  letter-spacing: -.025em;
  color: inherit;
}
.cookie-consent p { margin: 0; font: inherit; font-size: .9rem; line-height: 1.6; color: inherit; }
.cookie-consent a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.cookie-consent__actions button {
  flex: 1 1 10rem;
  min-height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: .65rem .8rem;
  background: transparent;
  color: inherit;
  font: 600 .85rem/1.3 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
  touch-action: manipulation;
}
.cookie-consent__actions button:hover { background: var(--surface-2, #263246); }
.cookie-settings, .cookie-consent__keep {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  touch-action: manipulation;
}
.cookie-settings { padding: 0; }
.cookie-consent__keep { display: block; margin-top: 1rem; padding: .25rem 0; font-size: .85rem; }
.cookie-consent button:focus-visible, .cookie-consent a:focus-visible, .cookie-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (max-width: 30rem) { .cookie-consent { padding: 1.1rem; } }
