

/* Start:/local/components/logicloud/chat.assets/chat-counter.css?17955025517756*/
/* ============================================================
   Счётчик непрочитанных сообщений у элементов интерфейса сайта.
   Оформление повторяет .chatnw__count из компонентов чата.

   Подключается из /local/php_interface/init.php на всех страницах
   публичной части — десктопный и мобильный шаблоны Aspro живут
   раздельно, общее место хранения здесь.

   Разметку даёт шаблон меню по параметру пункта COUNTER,
   значение проставляет chat-counter.js.
   ============================================================ */

.menu-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 100px;
  background: #ff7081;
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.menu-counter[hidden] {
  display: none;
}

/* тема перекрашивает текст ссылки при наведении и в активном
   состоянии — цифра должна оставаться белой */
.side-menu a .menu-counter,
.side-menu a:hover .menu-counter,
.side-menu a:focus .menu-counter,
.side-menu .link--active .menu-counter,
.mobilemenu__menu a .menu-counter,
.mobilemenu__menu a:hover .menu-counter,
.mobilemenu__menu-item--selected a .menu-counter,
.cabinet-dropdown a .menu-counter,
.cabinet-dropdown a:hover .menu-counter,
.cabinet-dropdown .dropdown-menu-item--current .menu-counter {
  color: #fff;
}

/* в выпадающем меню кабинета текст и иконка стоят в строку */
.cabinet-dropdown .menu-counter {
  margin-left: 6px;
}

/* --- Нижняя панель на мобильных ----------------------------------------
   Штатный счётчик панели не используем: тема скрывает .icon-count
   безусловно. Бейдж рисуем тем же псевдоэлементом, что и в шапке,
   только компактнее — в панели пять пунктов в ряд.
   Класс chat-counter-host вешается на обёртку иконки в
   include/blocks/panel/bottom.php. */

.bottom-icons-panel .chat-counter-host[data-chat-count]::after {
  top: -3px;
  left: calc(50% - 2px);
  min-width: 30px;
  height: 20px;
  padding: 0 7px 0 21px;
  border-radius: 10px;
  background-position: 6px center;
  background-size: 10px 10px;
  font-size: 12px;
}

/* бейдж выходит за границы иконки — не даём контейнерам его обрезать */
.bottom-icons-panel,
.bottom-icons-panel__content,
.bottom-icons-panel__content-link,
.bottom-icons-panel .icon-block-with-counter__inner {
  overflow: visible;
}

/* в мобильном меню ссылка — flex-строка со стрелкой справа,
   счётчик встаёт сразу за текстом */
.mobilemenu__menu .menu-counter {
  flex-shrink: 0;
  margin-right: auto;
}

/* ============================================================
   Счётчик на иконке личного кабинета в шапке.

   Разметку этого блока рисует функция шаблона
   \TSolution\Functions::showHeaderBlock(), менять её нельзя.
   Поэтому в page_blocks/header*_1.php к ссылке (CLASS_LINK) или
   к обёртке (WRAPPER) добавлен класс chat-counter-host, число
   проставляет chat-counter.js в атрибут data-chat-count,
   а сам бейдж рисуется псевдоэлементом.
   ============================================================ */

.chat-counter-host {
  position: relative;
}

.chat-counter-host[data-chat-count]::after {
  content: attr(data-chat-count);
  position: absolute;
  top: -11px;
  left: calc(50% - 2px);
  z-index: 2;

  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 36px;
  height: 24px;
  padding: 0 9px 0 25px;

  border: 2px solid #fff;
  border-radius: 11px;
  background-color: #ff7081;
  background-image: url("/local/components/logicloud/chat.assets/chat-bubble.svg");
  background-repeat: no-repeat;
  background-position: 7px center;
  background-size: 12px 12px;

  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

/* в мобильной шапке иконка меньше и подписи под ней нет —
   бейдж прижимается плотнее */
.header-mobile .chat-counter-host[data-chat-count]::after,
.mobile-header .chat-counter-host[data-chat-count]::after {
  top: -8px;
  left: calc(50% - 4px);
}

/* ============================================================
   Кнопка «Чат по заказу» в личном кабинете.

   Разметку даёт \Logicloud\Chat\OrderButton, число в бейдж
   проставляет chat-counter.js. Стоит в трёх местах: активные
   заказы на главной кабинета, список заказов, детальная заказа.
   ============================================================ */

.chat-order-btn {
  position: relative;
  /* карточку заказа целиком накрывает ссылка .item-link-absolute —
     кнопка должна оставаться кликабельной поверх неё */
  z-index: 3;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 6px 14px;

  border: 1px solid #ededed;
  border-radius: 8px;
  background: #fff;

  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #562a1b;
  text-decoration: none;
  white-space: nowrap;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-order-btn:hover,
.chat-order-btn:focus {
  border-color: #d9d9d9;
  color: #562a1b;
  text-decoration: none;
}

.chat-order-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  /* цвет иконки берётся из currentColor кнопки */
  color: inherit;
}

.chat-order-btn__text {
  display: inline-block;
}

/* бейдж выходит за угол кнопки — как в макете */
.chat-order-btn__count {
  position: absolute;
  top: -8px;
  right: -8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 21px;
  height: 20px;
  padding: 0 6px;

  border-radius: 10px;
  background: #ff7081;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}

.chat-order-btn__count[hidden] {
  display: none;
}

/* карточки заказов обрезают содержимое по скруглению — бейджу нужен выход */
.orders__order,
.orders__order__inner,
.orders__order__buttons,
.order__card__buttons {
  overflow: visible;
}

/* в списке заказов кнопки стоят колонкой и тянутся на всю ширину */
.orders__order__buttons .chat-order-btn,
.order__card__buttons .chat-order-btn {
  justify-content: center;
  width: 100%;
}

/* на главной кабинета кнопка идёт отдельной строкой под телом карточки */
.orders__order__chat {
  margin-top: 12px;
}

/* End */


/* Start:/local/templates/chat.admin/template_styles.css?17955025513734*/
/* ============================================================
   Шаблон chat.admin — стили страницы авторизации.
   Стили самих чатов лежат внутри компонентов logicloud:chat.*
   ============================================================ */

html,
body {
  margin: 0;
}

.chatauth,
.chatauth *,
.chatauth *::before,
.chatauth *::after {
  box-sizing: border-box;
}

.chatauth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  background: #f6f8fa;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  color: #222;
}

.chatauth__card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border: 1px solid #ededed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.chatauth__title {
  margin: 0;
  font-size: 22px;
  line-height: 27px;
  font-weight: 600;
  color: #222;
}

.chatauth__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 17px;
  color: #999;
}

.chatauth__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.chatauth__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 15px;
  color: #999;
}

.chatauth__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 17px 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f8fa;
  cursor: text;
  transition: all 400ms ease-in-out;
}

.chatauth__field:focus-within {
  border-color: #d9d9d9;
}

.chatauth__field--invalid {
  border-color: #ff7081;
}

.chatauth__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 19px;
  color: #222;
}

.chatauth__input::-moz-placeholder {
  color: #999;
  opacity: 1;
}

.chatauth__input::placeholder {
  color: #999;
  opacity: 1;
}

.chatauth__toggle {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  line-height: 15px;
  color: #577ee9;
  cursor: pointer;
  transition: all 400ms ease-in-out;
}

.chatauth__toggle:hover {
  color: #7c9df8;
}

.chatauth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 17px;
  color: #222;
  cursor: pointer;
}

.chatauth__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #577ee9;
  cursor: pointer;
}

.chatauth__button {
  width: 100%;
  padding: 15px 24px 16px;
  border: 0;
  border-radius: 30px;
  background: #577ee9;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 400ms ease-in-out;
}

.chatauth__button:hover {
  background: #7c9df8;
}

.chatauth__button:active {
  background: #436cdb;
  color: #e3e8ef;
}

.chatauth__button:focus-visible {
  outline: 2px solid #577ee9;
  outline-offset: 2px;
}

.chatauth__message {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 17px;
}

.chatauth__message--error {
  background: #ffe9ec;
  color: #c43147;
}

.chatauth__message--note {
  background: #f6f8fa;
  color: #222;
}

.chatauth__footer {
  margin-top: 20px;
  font-size: 12px;
  line-height: 15px;
  color: #999;
  text-align: center;
}

.chatauth__link {
  color: #577ee9;
  text-decoration: none;
  transition: all 400ms ease-in-out;
}

.chatauth__link:hover {
  color: #7c9df8;
}

@media screen and (max-width: 575px) {
  .chatauth {
    padding: 10px;
  }
  .chatauth__card {
    padding: 25px 20px;
    border-radius: 15px;
  }
}

/* End */
/* /local/components/logicloud/chat.assets/chat-counter.css?17955025517756 */
/* /local/templates/chat.admin/template_styles.css?17955025513734 */
