body { padding-bottom: var(--cookie-notice-space, 0px); }
.cookie-notice {
  position: fixed;
  z-index: 10000;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--rule, #deddda);
  border-radius: 18px;
  background: var(--sheet, #fff);
  color: var(--ink, #0e0e0f);
  box-shadow: 0 8px 32px #0e0e0f14;
  font-family: var(--text, sans-serif);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.cookie-notice p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--graphite, #5f5f64); }
.cookie-notice p a { color: inherit; text-underline-offset: 2px; }
.cookie-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-notice-actions button {
  flex: 1;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--rule, #deddda);
  border-radius: 999px;
  background: var(--paper, #f3f3f2);
  color: var(--ink, #0e0e0f);
  font: 600 13px/1.3 var(--text, sans-serif);
  cursor: pointer;
}
.cookie-notice-actions button:hover { background: var(--signal-wash, #e2f2e9); border-color: var(--signal, #23784f); }
.cookie-settings { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.home-footer .cookie-settings { font-size: 14px; }
.cookie-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice button:focus-visible, .cookie-settings:focus-visible { outline: 2px solid var(--signal, #23784f); outline-offset: 3px; }
@media (max-width: 380px) {
  .cookie-notice { padding: 14px; }
  .cookie-notice-actions button { padding-inline: 8px; font-size: 12px; }
}
