/* Kaizen brand mapping for the consent banner */
:root {
  --kc-bg: #111111; --kc-text: #ffffff; --kc-muted: #9a9a9a;
  --kc-accent: #38b6ff; --kc-accent-text: #080808; --kc-border: rgba(255,255,255,0.10);
  --kc-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --kc-radius: 20px; --kc-btn-radius: 100px;
}
[data-theme="light"] {
  --kc-bg: #ffffff; --kc-text: #0a0a0a; --kc-muted: #555555; --kc-border: rgba(0,0,0,0.10);
}
/* "Cookie settings" link in footers — styled like the neighbouring legal links */
.footer-cookie-btn { font: inherit; font-size: 0.78rem; color: rgba(255,255,255,0.55); background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.2s; }
.footer-cookie-btn:hover { color: rgba(255,255,255,0.9); }
[data-theme="light"] .footer-cookie-btn { color: rgba(0,0,0,0.6); }
/* Map placeholder shown until marketing cookies are accepted */
.kc-embed-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 200px; padding: 20px; text-align: center; background: var(--card, #111); color: var(--grey, #888); font-size: 0.85rem; }
.kc-embed-placeholder[hidden] { display: none; }
.kc-embed-placeholder a, .kc-embed-placeholder button { color: var(--accent, #38b6ff); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Kaizen cookie consent — brand via --kc-* variables (see cookie-consent.js header). */
.kc-banner, .kc-dialog {
  --_bg: var(--kc-bg, #ffffff);
  --_text: var(--kc-text, #1a1a1a);
  --_muted: var(--kc-muted, #555555);
  --_accent: var(--kc-accent, #1a1a1a);
  --_accent-text: var(--kc-accent-text, #ffffff);
  --_border: var(--kc-border, rgba(0, 0, 0, 0.12));
  --_radius: var(--kc-radius, 14px);
  --_btn-radius: var(--kc-btn-radius, 8px);
  font-family: var(--kc-font, inherit);
  background: var(--_bg);
  color: var(--_text);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1.55;
  box-sizing: border-box;
}
.kc-banner *, .kc-dialog * { box-sizing: border-box; }
.kc-banner[hidden], .kc-overlay[hidden] { display: none !important; }

.kc-banner {
  position: fixed;
  z-index: 2147483000;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  gap: 18px 28px;
  align-items: center;
  flex-wrap: wrap;
}
.kc-banner__text { flex: 1 1 380px; }
.kc-title { font: inherit; font-weight: 700; font-size: 1.05em; margin: 0 0 4px; color: var(--_text); }
.kc-banner p, .kc-dialog p { margin: 0; color: var(--_muted); }
.kc-banner a, .kc-dialog a { color: var(--_text); text-decoration: underline; text-underline-offset: 2px; }

.kc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Accept and Reject are deliberately identical (ICO: equal prominence). */
.kc-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.92em;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--_btn-radius);
  border: 2px solid var(--_accent);
  background: var(--_accent);
  color: var(--_accent-text);
  cursor: pointer;
}
.kc-btn:hover { filter: brightness(1.08); }
.kc-link {
  font: inherit;
  font-size: 0.92em;
  min-height: 44px;
  padding: 10px 6px;
  background: none;
  border: 0;
  color: var(--_text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.kc-banner :focus-visible, .kc-dialog :focus-visible {
  outline: 3px solid var(--_text);
  outline-offset: 3px;
}

.kc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kc-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
}
.kc-dialog > p { margin-bottom: 18px; }
.kc-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--_border);
}
.kc-row__label { font-weight: 700; color: var(--_text); }
.kc-row__desc { font-size: 0.9em; margin-top: 2px !important; }
.kc-always { font-size: 0.85em; font-weight: 700; color: var(--_muted); white-space: nowrap; }
.kc-dialog .kc-actions { margin-top: 18px; }
.kc-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  font-size: 26px;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--_text);
  cursor: pointer;
  border-radius: 50%;
}

/* Toggle switch */
.kc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 48px; height: 28px;
  border-radius: 999px;
  background: var(--_border);
  border: 2px solid var(--_muted);
  position: relative;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s;
}
.kc-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--_muted);
  transition: transform 0.2s, background 0.2s;
}
.kc-switch:checked { background: var(--_accent); border-color: var(--_accent); }
.kc-switch:checked::after { transform: translateX(20px); background: var(--_accent-text); }

html.kc-lock { overflow: hidden; }

@media (max-width: 600px) {
  .kc-banner { left: 8px; right: 8px; bottom: 8px; padding: 18px 16px; }
  .kc-banner .kc-actions { width: 100%; }
  .kc-banner .kc-btn { flex: 1 1 0; }
  .kc-banner .kc-link { width: 100%; text-align: center; }
  .kc-dialog .kc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-switch, .kc-switch::after { transition: none; }
}

/* Consent-gated iframes stay hidden until their category is accepted */
iframe[data-consent][data-src] { display: none !important; }
