/* Consent interface — self-hosted, isolated from the existing page components. */
.ka-cookie[hidden], .ka-cookie [hidden], .ka-cookie-settings[hidden] { display: none !important; }
.ka-cookie {
  position: fixed;
  z-index: 1100;
  inset: auto 20px max(20px, env(safe-area-inset-bottom)) 20px;
  max-width: 720px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin-left: auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong, #cfcac0);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #1b1a17);
  box-shadow: 0 12px 48px rgba(27, 26, 23, .15);
  font: 14px/1.6 var(--sans, system-ui, -apple-system, "Segoe UI", sans-serif);
}
.ka-cookie h2 {
  margin: 0 0 10px;
  font: 500 24px/1.15 var(--serif, Georgia, serif);
  letter-spacing: -.01em;
}
.ka-cookie p { margin: 0 0 10px; max-width: none; }
.ka-cookie a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ka-cookie-status { color: var(--muted, #6b675f); font-size: 13px; }
.ka-cookie-reload-note { color: var(--muted, #6b675f); font-size: 13px; }
.ka-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ka-cookie-choice, .ka-cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink, #1b1a17);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #1b1a17);
  font: 600 14px/1.35 var(--sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  cursor: pointer;
}
.ka-cookie-choice:hover, .ka-cookie-close:hover { background: #f5f4ef; }
.ka-cookie-close { border-color: var(--line-strong, #cfcac0); font-weight: 400; }
.ka-cookie-settings {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ka-cookie :focus-visible, .ka-cookie-settings:focus-visible {
  outline: 3px solid var(--focus, #1d5b50);
  outline-offset: 3px;
}
.footer-links:has(.ka-cookie-settings) { flex-wrap: wrap; align-items: center; }
@media (max-width: 560px) {
  .ka-cookie {
    inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: 12px;
  }
  .ka-cookie-actions { display: grid; grid-template-columns: 1fr; }
  .ka-cookie-choice, .ka-cookie-close { width: 100%; }
}
@media print {
  .ka-cookie, .ka-cookie-settings { display: none !important; }
}
