/* oksi4 v2.3.18 — consent.css
   Банер cookie-згоди. Токени з variables.css, тема перемикається разом із каталогом. */

.consent-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 9000;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease;
}
.consent-banner.shown { opacity: 1; transform: none; }

.consent-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.consent-text { flex: 1 1 auto; min-width: 0; }
.consent-text strong {
  display: block;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.consent-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.consent-text a { color: var(--accent); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

.consent-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.consent-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
/* Обидва рішення — однакова геометрія і однакова насиченість фону.
   Різниця тільки в кольорі, не у візуальній вазі: нерівні кнопки згоди
   EDPB Guidelines 03/2022 трактує як deceptive design.
   Фон саме --bg-3, а не --bg-2: сам банер має --bg-2, і кнопка з ним
   зливалася б у безбарвну рамку — той самий дефект, лише інакше виглядає. */
.consent-btn.ghost {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border);
}
.consent-btn.ghost:hover {
  background: var(--border);
  border-color: var(--text-muted);
}
.consent-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.consent-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* Третя кнопка — не рішення, а пояснення: виглядає як посилання, не як вибір */
.consent-btn.link {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 10px;
  padding-right: 10px;
}
.consent-btn.link:hover { color: var(--accent); }

.consent-details {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-3);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.consent-details strong {
  /* .consent-text strong стилізує заголовок банера — тут ці правила скасовуємо */
  display: inline;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  margin: 0;
  color: var(--text);
  font-weight: 650;
}
.consent-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .consent-banner { left: 8px; right: 8px; bottom: 8px; }
  .consent-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px; }
  .consent-actions { flex-wrap: wrap; flex-direction: row-reverse; }
  .consent-btn { flex: 1 1 0; padding: 11px 12px; }
  .consent-btn.link { flex: 1 1 100%; order: 1; padding: 4px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; }
}

@media print { .consent-banner { display: none; } }
