/*
 * Баннер согласия на cookie. Показан только пока посетитель не выбрал: класс
 * lin-consent-pending на <html> ставит consent.js.
 *
 * Файл подключается в header.php отдельным <link> с версией по времени правки,
 * а не лежит в styles.css — тот Битрикс объединяет и кэширует.
 */

.lin-cookie {
  display: none;
}

html.lin-consent-pending .lin-cookie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000050;
  padding: 16px 40px;
  background: #192033;
  color: #fff;
  font: 400 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
}

.lin-cookie__text {
  max-width: 860px;
}

.lin-cookie__text a {
  color: #f9e8d6;
  text-decoration: underline;
}

.lin-cookie__buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.lin-cookie__btn {
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: 500 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.lin-cookie__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lin-cookie__btn:focus-visible {
  outline: 2px solid #f9e8d6;
  outline-offset: 2px;
}

.lin-cookie__btn--accept {
  background: #fff;
  color: #192033;
}

.lin-cookie__btn--accept:hover {
  background: #f9e8d6;
}

@media (max-width: 760px) {
  html.lin-consent-pending .lin-cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 15px;
  }

  .lin-cookie__buttons {
    flex-direction: column;
  }

  .lin-cookie__btn {
    white-space: normal;
    width: 100%;
  }
}

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