/* kimgiroux.com consent banner. Uses the site's tokens, with fallbacks. */
.kgc {
  --kgc-bg: var(--bg-card, oklch(0.26 0.014 105));
  --kgc-text: var(--text, oklch(0.95 0.008 90));
  --kgc-muted: var(--text-60, oklch(0.95 0.008 90 / 0.6));
  --kgc-accent: var(--accent, oklch(0.68 0.09 120));
  --kgc-accent-hover: var(--accent-hover, oklch(0.75 0.09 105));
  --kgc-border: var(--border, oklch(1 0 0 / 0.1));
  --kgc-ink: var(--bg, oklch(0.22 0.012 105));
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  width: min(440px, calc(100vw - 32px));
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--kgc-text);
}
.kgc[hidden] { display: none; }
.kgc-card {
  background: var(--kgc-bg);
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 4px;
  padding: 24px;
  box-shadow: oklch(0 0 0 / 0.45) 0 18px 44px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.kgc-title {
  font-family: Sora, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.kgc-desc { font-size: 14px; line-height: 1.6; color: var(--kgc-muted); margin: 0; }
.kgc-desc a { color: var(--kgc-accent); text-decoration: underline; text-underline-offset: 2px; }
.kgc-desc a:hover { color: var(--kgc-accent-hover); }

.kgc-prefs { margin-top: 16px; border-top: 1px solid var(--kgc-border); }
.kgc-prefs[hidden] { display: none; }
.kgc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--kgc-border);
  cursor: pointer;
}
.kgc-row:first-child { cursor: default; }
.kgc-label { display: block; font-size: 14px; font-weight: 600; }
.kgc-help { display: block; font-size: 13px; line-height: 1.5; color: var(--kgc-muted); margin-top: 2px; }
.kgc-always { font-size: 13px; font-weight: 600; color: var(--kgc-accent); }
.kgc-note { font-size: 13px; line-height: 1.5; color: var(--kgc-muted); margin: 12px 0 0; }

.kgc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: oklch(1 0 0 / 0.18);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
}
.kgc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--kgc-text);
  transition: transform 0.2s;
}
.kgc-switch:checked { background: var(--kgc-accent); }
.kgc-switch:checked::after { transform: translateX(18px); background: var(--kgc-ink); }
.kgc-switch:disabled { opacity: 0.4; cursor: not-allowed; }

.kgc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kgc-btn {
  flex: 1 1 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.kgc-btn[hidden] { display: none; }
.kgc-btn-solid { background: var(--kgc-accent); color: var(--kgc-ink); border: 1px solid var(--kgc-accent); }
.kgc-btn-solid:hover { background: var(--kgc-accent-hover); border-color: var(--kgc-accent-hover); }
.kgc-btn-ghost { background: transparent; color: var(--kgc-text); border: 1px solid oklch(1 0 0 / 0.25); }
.kgc-btn-ghost:hover { border-color: oklch(1 0 0 / 0.5); }
.kgc-btn:focus-visible, .kgc-switch:focus-visible, .kgc-desc a:focus-visible {
  outline: 2px solid var(--kgc-accent-hover);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .kgc { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .kgc-card { padding: 20px; }
  .kgc-btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kgc-switch, .kgc-switch::after, .kgc-btn { transition: none; }
}

/* Footer link style for "Cookie settings" when it's a button */
.cookie-settings-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cookie-settings-link:hover { color: var(--accent-hover, currentColor); }
