/*
 * XILO cookie consent popup. Palette matches style.css (--cream,
 * --ink, --electric, --muted). Falls back to inline hex so the
 * banner still looks right on pages that don't include style.css.
 */
.xilo-cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147483000;
  max-width: 420px;
  width: calc(100vw - 40px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  pointer-events: none;
}

.xilo-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.xilo-cookie-inner {
  background: var(--cream, #fbf9f1);
  color: var(--ink, #0e0e0e);
  border: 1px solid rgba(14, 14, 14, 0.12);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 48px rgba(14, 14, 14, 0.16), 0 4px 12px rgba(14, 14, 14, 0.06);
}

.xilo-cookie-title {
  margin: 0 0 8px;
  font-family: 'Outfit', 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #0e0e0e);
}

.xilo-cookie-body {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted, #6b6b66);
}

.xilo-cookie-link {
  color: var(--ink, #0e0e0e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xilo-cookie-link:hover {
  color: var(--electric, #3956BC);
}

.xilo-cookie-prefs {
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  margin: 8px 0 14px;
  padding: 4px 0;
}

.xilo-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.xilo-cookie-row + .xilo-cookie-row {
  border-top: 1px solid rgba(14, 14, 14, 0.06);
}

.xilo-cookie-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.xilo-cookie-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #0e0e0e);
}

.xilo-cookie-row-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #6b6b66);
}

.xilo-cookie-fixed {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6b6b66);
  background: rgba(14, 14, 14, 0.05);
  padding: 5px 10px;
  border-radius: 999px;
}

.xilo-cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.xilo-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.xilo-cookie-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.2);
  transition: background 0.18s ease;
}

.xilo-cookie-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream, #fbf9f1);
  box-shadow: 0 1px 3px rgba(14, 14, 14, 0.2);
  transition: transform 0.18s ease;
}

.xilo-cookie-switch input:checked + .xilo-cookie-switch-track {
  background: var(--ink, #0e0e0e);
}

.xilo-cookie-switch input:checked + .xilo-cookie-switch-track::after {
  transform: translateX(16px);
}

.xilo-cookie-switch input:focus-visible + .xilo-cookie-switch-track {
  outline: 2px solid var(--electric, #3956BC);
  outline-offset: 2px;
}

.xilo-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.xilo-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xilo-cookie-btn--ghost {
  background: transparent;
  color: var(--ink, #0e0e0e);
  border-color: rgba(14, 14, 14, 0.2);
}

.xilo-cookie-btn--ghost:hover {
  background: rgba(14, 14, 14, 0.05);
  border-color: rgba(14, 14, 14, 0.35);
}

.xilo-cookie-btn--primary {
  background: var(--ink, #0e0e0e);
  color: var(--cream, #fbf9f1);
  border-color: var(--ink, #0e0e0e);
}

.xilo-cookie-btn--primary:hover {
  background: var(--electric, #3956BC);
  border-color: var(--electric, #3956BC);
}

.xilo-cookie-btn:focus-visible {
  outline: 2px solid var(--electric, #3956BC);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .xilo-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .xilo-cookie-inner {
    padding: 18px 18px 16px;
    border-radius: 12px;
  }
  .xilo-cookie-actions {
    flex-direction: row;
  }
  .xilo-cookie-btn {
    flex: 1 1 auto;
    padding: 10px 12px;
  }
}
