/* Cookie-согласие: стили плашки (навык site-legal-docs).
   Цвета/шрифт тянутся за переменными темы сайта: задайте --cb-* в сниппете подключения. */
#cookie-consent-root .cb-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:9999;
  max-width:1200px;margin:0 auto;background:var(--cb-bg,#2d2b2c);color:var(--cb-text,#fff);
  border-radius:var(--cb-radius,12px);padding:14px 20px;
  font-family:var(--cb-font,inherit);font-size:14px;line-height:1.5;
  box-shadow:0 8px 32px rgba(0,0,0,.28)}
#cookie-consent-root .cb-wrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
#cookie-consent-root .cb-text{flex:1 1 340px;min-width:260px;margin:0}
#cookie-consent-root .cb-text a{color:var(--cb-accent,#af9253);text-decoration:underline}
#cookie-consent-root .cb-actions{display:flex;gap:10px;flex-wrap:wrap}
#cookie-consent-root .cb-btn{cursor:pointer;border:none;border-radius:var(--cb-radius,12px);
  padding:10px 18px;font-size:14px;font-family:inherit;transition:opacity .15s ease,background .15s ease}
#cookie-consent-root .cb-btn:hover{opacity:.85}
#cookie-consent-root .cb-btn--primary{background:var(--cb-accent,#af9253);color:var(--cb-accent-text,#fff)}
#cookie-consent-root .cb-btn--ghost{background:transparent;color:var(--cb-text,#fff);
  border:1px solid var(--cb-accent,#af9253)}
#cookie-consent-root .cb-hidden{display:none}

/* Панель «Настройки» */
#cookie-consent-root .cb-title{font-size:16px;font-weight:700;margin:0 0 10px}
#cookie-consent-root .cb-cats{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}
#cookie-consent-root .cb-cat{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;
  border:1px solid rgba(255,255,255,.14);border-radius:8px}
#cookie-consent-root .cb-cat input{margin-top:3px;accent-color:var(--cb-accent,#af9253);width:16px;height:16px}
#cookie-consent-root .cb-cat--locked{opacity:.75}
#cookie-consent-root .cb-cat-body{display:flex;flex-direction:column}
#cookie-consent-root .cb-cat-title{font-weight:600}
#cookie-consent-root .cb-cat-desc{font-size:12.5px;opacity:.75}

@media (max-width:640px){
  #cookie-consent-root .cb-bar{left:8px;right:8px;bottom:8px;padding:12px 14px}
  #cookie-consent-root .cb-wrap{flex-direction:column;align-items:stretch;gap:12px}
  #cookie-consent-root .cb-text{flex:0 0 auto}
  #cookie-consent-root .cb-actions{justify-content:stretch}
  #cookie-consent-root .cb-actions .cb-btn{flex:1 1 auto;text-align:center;padding:10px 8px}
}

/* 24.09.2026 — плашка cookie не должна перекрывать модальные окна сайта:
   поиск в шапке ставит body.overflow-hidden, попапы (авторизация, формы) — Fancybox
   ставит html.with-fancybox. Пока открыт любой из них, плашку прячем, иначе на
   коротких экранах она ложится поверх кнопок «Найти» / «Войти». */
html.with-fancybox #cookie-consent-root .cb-bar,
body.overflow-hidden #cookie-consent-root .cb-bar{display:none !important}

/* 24.09.2026 (2) — плашка не должна занимать пол-экрана и должна закрываться.
   Жалоба клиента: на коротких экранах и в браузере, где согласие ещё не дали,
   плашка висит постоянно и перекрывает нижнюю полосу страницы (клики уходят в неё).
   Делаем её компактной на мобильном и добавляем крестик «Закрыть». */
#cookie-consent-root .cb-bar:not(.cb-settings){padding-right:44px}
#cookie-consent-root .cb-close{position:absolute;top:6px;right:8px;width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;
  color:var(--cb-text,#fff);opacity:.6;font-size:20px;line-height:1;cursor:pointer;border-radius:6px}
#cookie-consent-root .cb-close:hover,
#cookie-consent-root .cb-close:focus-visible{opacity:1}

@media (max-width:640px){
  #cookie-consent-root .cb-bar:not(.cb-settings){padding:10px 38px 10px 12px;border-radius:10px}
  #cookie-consent-root .cb-bar{font-size:12.5px;line-height:1.4}
  #cookie-consent-root .cb-wrap{gap:10px}
  #cookie-consent-root .cb-actions{flex-direction:row;flex-wrap:nowrap;gap:6px;justify-content:space-between}
  #cookie-consent-root .cb-actions .cb-btn{flex:0 1 auto;min-width:0;padding:9px 9px;font-size:12px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #cookie-consent-root .cb-close{top:4px;right:4px;width:32px;height:32px}
}
