/*!
 * akrmed-messengers.css — плавающие иконки мессенджеров справа.
 * Стили взяты из NMO без переделки, чтобы виджет выглядел одинаково.
 */

.nmo-floating-messengers {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99970;
}

.nmo-floating-messengers__link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 24px rgba(5, 5, 21, .16);
  border: 1px solid rgba(5, 5, 21, .08);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}

.nmo-floating-messengers__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(5, 5, 21, .2);
}

.nmo-floating-messengers__link img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.nmo-floating-messengers__link--max img {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  border-radius: 9px;
}

/* visually-hidden подпись для screen-reader-ов */
.nmo-floating-messengers__link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* спрятать когда виден cookie-баннер чтобы не накладывались */
body:has(#cookieBanner:not([style*="display: none"]):not(.cli-hidden)) .nmo-floating-messengers {
  /* оставляем видимым — у акрмед cookie-плашка слева внизу, не пересекает иконки справа */
}

/* мобила */
@media (max-width: 767px) {
  .nmo-floating-messengers {
    right: 6px;
    top: 55%;
    gap: 8px;
  }
  .nmo-floating-messengers__link {
    width: 38px;
    height: 38px;
    box-shadow: 0 5px 14px rgba(5, 5, 21, .14);
  }
  .nmo-floating-messengers__link img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
  }
  .nmo-floating-messengers__link--max img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    border-radius: 7px;
  }
}

@media (max-width: 340px) {
  .nmo-floating-messengers {
    right: 4px;
    gap: 6px;
  }
  .nmo-floating-messengers__link {
    width: 32px;
    height: 32px;
  }
}
