/* WSPÓLNY SILNIK - pytanie o zgodę na analitykę (assets/consent.js).
   Karta w prawym dolnym rogu - nie zasłania przycisków hero i nie blokuje strony. Kolory z tokenów
   motywu (ds/theme.css), więc działa w jasnym i ciemnym motywie obu marek.
   Oba przyciski mają tę samą wielkość - odmowa jest tak samo łatwa jak zgoda. */
.consent {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 18px 20px 16px;
  border: 1px solid rgba(var(--fg-rgb, 244, 241, 236), .16);
  border-radius: 12px;
  background: var(--ink-2, #14191F);
  color: var(--bone, #F4F1EC);
  box-shadow: var(--shadow-1, 0 8px 30px rgba(0, 0, 0, .45));
  font-family: var(--ff-sans, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: consent-in 240ms cubic-bezier(.23, 1, .32, 1) both;
}
.consent__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bone, #F4F1EC);
}
.consent__text {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(var(--fg-rgb, 244, 241, 236), .8);
}
.consent__more {
  color: var(--accent-on-surface, #7EA2C7);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.consent__row {
  display: flex;
  gap: 10px;
}
.consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--fg-rgb, 244, 241, 236), .45);
  border-radius: 8px;
  background: transparent;
  color: var(--bone, #F4F1EC);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, transform 120ms ease-out;
}
.consent__btn--yes {
  background: var(--bone, #F4F1EC);
  border-color: var(--bone, #F4F1EC);
  color: var(--ink, #0B0F14);
}
.consent__btn:active { transform: scale(.97); }
.consent__btn:focus-visible,
.consent__more:focus-visible {
  outline: 2px solid var(--accent-on-surface, #7EA2C7);
  outline-offset: 3px;
}
@media (hover: hover) {
  .consent__btn:hover { background: rgba(var(--fg-rgb, 244, 241, 236), .1); }
  .consent__btn--yes:hover { background: rgba(var(--fg-rgb, 244, 241, 236), .86); }
}
/* Podstrony Entrady mają w tym rogu przycisk czatu - karta staje nad nim. */
@media (min-width: 521px) {
  body:has(.chat-fab:not([hidden])) .consent { bottom: 92px; }
}
@media (max-width: 520px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
  .consent__btn { transition: none; }
}
@media print { .consent { display: none; } }
