.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 32px #0005;
  font-size: 16px;
  line-height: 1.5;
}
.cookie-copy { flex: 1; }
.cookie-copy h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.cookie-copy p { margin: 0; max-width: 80ch; }
.cookie-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cookie-actions button {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.cookie-actions button:hover { background: var(--cta-hover); }
.cookie-actions button:active { background: #c38b5e; }
.cookie-actions button:focus-visible, .cookie-preferences:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.cookie-preferences {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  text-underline-offset: 3px;
}
.cookie-preferences:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; bottom: max(12px, env(safe-area-inset-bottom)); inset-inline: 12px; }
  .cookie-actions { flex-shrink: 1; }
  .cookie-actions button { flex: 1; }
}
