/* ============================================================
 * Vilkax · vlx-consent.css — first-visit analytics consent banner
 * ============================================================
 * Paired with /_shared/vlx-consent.js. Calm, low-contrast, fixed to
 * the bottom; never blocks the page (no backdrop / scroll-lock) so it
 * is not a dark pattern. Respects reduced motion. */

#vlx-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: var(--surface-raised, rgba(11, 20, 38, 0.94));
  color: var(--text-muted, #94a3b8);
  font-family: var(--font-brand, "Manrope", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: vlx-consent-in 220ms ease-out;
}

/* Compact top row: message + toggle on the left, actions on the right. */
#vlx-consent-banner .vlx-consent-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

@keyframes vlx-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#vlx-consent-banner .vlx-consent-text {
  flex: 1 1 300px;
  margin: 0;
}

/* Inline "Details" toggle — a quiet text button, not a second CTA. */
#vlx-consent-banner .vlx-consent-toggle {
  font: inherit;
  font-weight: 600;
  color: var(--text-strong, #f8fafc);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
#vlx-consent-banner .vlx-consent-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 160ms ease;
}
#vlx-consent-banner.vlx-consent-open .vlx-consent-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}
#vlx-consent-banner .vlx-consent-toggle:hover { color: #fff; }
#vlx-consent-banner .vlx-consent-toggle:focus-visible {
  outline: 2px solid var(--vx-accent-br, #CB95FF);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Always-visible trust line: EU entity + compliance posture, kept small. */
#vlx-consent-banner .vlx-consent-trust {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint, rgba(148, 163, 184, 0.72));
}

/* Collapsed detail: the full explanation, revealed by "Details". */
#vlx-consent-banner .vlx-consent-detail {
  font-size: 13px;
  line-height: 1.55;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.10));
}
#vlx-consent-banner .vlx-consent-detail[hidden] { display: none; }

#vlx-consent-banner .vlx-consent-link {
  color: var(--text-strong, #f8fafc);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#vlx-consent-banner .vlx-consent-link:hover { color: #fff; }

#vlx-consent-banner .vlx-consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

#vlx-consent-banner .vlx-consent-btn {
  font: inherit;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong, #f8fafc);
}

#vlx-consent-banner .vlx-consent-accept {
  background: var(--vx-accent, #B14CFF);
  border-color: var(--vx-accent, #B14CFF);
  color: #fff;
}

#vlx-consent-banner .vlx-consent-btn:hover { filter: brightness(1.08); }
#vlx-consent-banner .vlx-consent-btn:focus-visible {
  outline: 2px solid var(--vx-accent-br, #CB95FF);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #vlx-consent-banner { animation: none; }
}

/* Phones: the actions row can't shrink (flex:0 0 auto), so on narrow screens it
   pushed the buttons a few px past the edge. Give the banner tighter insets and
   let the actions wrap to full width with the buttons sharing the row. */
@media (max-width: 520px) {
  #vlx-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px 14px;
    gap: 12px 12px;
  }
  #vlx-consent-banner .vlx-consent-actions {
    flex: 1 1 100%;
    width: 100%;
  }
  #vlx-consent-banner .vlx-consent-btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}
