/* ============================================================
   cookie-free-pill.css · sticky bottom-right notis om cookieless-tracking
   Mønstret porteret fra udstillerguide.dk · tilpasset alfanova-tokens.
   JS: src/assets/js/cookie-free-pill.js (dismiss persistes i localStorage
   som alfanova:cookie-free-dismissed).
   ============================================================ */

.cookie-free-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 48px);
  padding: 10px 10px 10px 18px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.cookie-free-pill.is-visible {
  display: inline-flex;
}

.cookie-free-pill.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.cookie-free-pill__text {
  white-space: nowrap;
  pointer-events: none;
  color: var(--ink-mute);
}

.cookie-free-pill__link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  pointer-events: auto;
}

.cookie-free-pill__link:hover,
.cookie-free-pill__link:focus-visible {
  color: var(--accent);
}

.cookie-free-pill__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink-mute);
  cursor: pointer;
  flex: 0 0 auto;
  pointer-events: auto;
  transition: background 180ms ease, color 180ms ease;
}

.cookie-free-pill__dismiss:hover,
.cookie-free-pill__dismiss:focus-visible {
  background: var(--bg-deep);
  color: var(--ink);
}

.cookie-free-pill__dismiss svg {
  width: 14px;
  height: 14px;
}

/* Mobile (≤480px) · hold pillen kompakt + skub den højre-i-bunden */
@media (max-width: 480px) {
  .cookie-free-pill {
    right: 12px;
    bottom: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
    padding: 6px 6px 6px 14px;
    gap: 8px;
    font-size: 0.7rem;
  }
  .cookie-free-pill__text {
    white-space: normal;
  }
  .cookie-free-pill__dismiss {
    width: 24px;
    height: 24px;
  }
}

/* Ekstra small (≤360px) · diskret badge */
@media (max-width: 360px) {
  .cookie-free-pill {
    font-size: 0.65rem;
    padding: 4px 6px 4px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-free-pill {
    transition: none;
  }
}
