.cookie-preferences {
  position: fixed;
  z-index: 100;
  inset: auto 16px 16px auto;
  width: min(470px, calc(100% - 32px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 32px #142d4226;
  font: 15px/1.5 var(--sans);
}
.cookie-preferences[hidden] { display: none; }
.cookie-preferences h2 { margin: 0 0 8px; font: 600 21px/1.25 var(--sans); }
.cookie-preferences p { margin: 8px 0; }
.cookie-preferences summary { cursor: pointer; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-actions button {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  font: inherit;
}
.cookie-actions button:hover { background: #142d420d; }
.cookie-settings { border: 0; background: transparent; padding: 6px 0; font: inherit; text-decoration: underline; }
