/* HK (2026-11-11): тихая плашка cookie - ПРОЧТИ-МЕНЯ, «Пакет 16: 18-hk_cookie», ТЗ 08 v2 п.7.
   Заменяет прежнюю (#cookie-banner, cookie-banner.css, блок в common.js). Текст согласия и ключ cookie_consent прежние.
   Телефон: узкая полоса над нижним меню (положение от --hk-bottom, её ставит mobile-nav.js). ПК: карточка слева внизу. */
.hk-cookie[hidden] { display: none !important; }
.hk-cookie {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px; /* запасное значение для старых браузеров без var() */
  bottom: calc(var(--hk-bottom, 0px) + 8px);
  z-index: 9000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 36px 10px 12px;
  background: #fff;
  color: #444;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  font: 12.5px/1.4 Arial, Helvetica, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease-out, transform .2s ease-out, bottom .2s ease-out;
}
.hk-cookie.is-on { opacity: 1; transform: none; }
.hk-cookie * { box-sizing: border-box; }
.hk-cookie__t { margin: 0; }
.hk-cookie__t a { color: #277f00; font-weight: 700; text-decoration: underline; }
.hk-cookie__r { display: flex; gap: 8px; }
.hk-cookie__b {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #277f00;
  border-radius: 20px;
  background: #fff;
  color: #277f00;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hk-cookie__b--main { background: #277f00; color: #fff; }
.hk-cookie__b:focus-visible, .hk-cookie__x:focus-visible { outline: 2px solid #277f00; outline-offset: 2px; }
.hk-cookie__x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #777;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hk-cookie {
    left: 16px;
    right: auto;
    bottom: 16px;
    bottom: calc(var(--hk-bottom, 0px) + 16px); /* поднимается над липкой панелью «Купить» на карточке товара */
    width: 420px;
    max-width: calc(100vw - 32px);
  }
}

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

@media print { .hk-cookie { display: none !important; } }
