/* Messenger Widget */
.messenger-container {
  position: fixed;
  z-index: 998;
  bottom: 170px;
  right: 55px;
}

/* Основная кнопка (зеленая) */
.messenger-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  border: none;
}

.messenger-main-btn:hover {
  transform: scale(1.1);
  background: #128C7E;
}

.messenger-main-btn:active {
  transform: scale(0.95);
}

.messenger-main-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Всплывающие кнопки - скрыты по умолчанию */
.messenger-buttons {
  position: absolute;
  bottom: 70px;
  right: 5px;
  display: none;
  flex-direction: column;
  gap: 12px;
}

/* Показываем когда есть класс open (для мобильных и JS) */
.messenger-container.open .messenger-buttons,
.messenger-container.show .messenger-buttons {
  display: flex;
}

/* Кнопки мессенджеров */
.messenger-btn {
  display: block;
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.messenger-btn:hover {
  transform: scale(1.1);
}

.messenger-btn:active {
  transform: scale(0.95);
}

.messenger-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .messenger-container {
    bottom: 55px;
    right: 20px;
  }
  
  .messenger-main-btn {
    width: 56px;
    height: 56px;
  }
  
  .messenger-main-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .messenger-buttons {
    bottom: 65px;
    right: 3px;
    gap: 10px;
  }
  
  .messenger-btn {
    width: 45px;
    height: 45px;
  }
}