/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.chat-floating-wrapper {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 25px; /* Tăng khoảng cách để không va sóng */
}

/* Nút chat dùng chung */
.chat-button {
  width: 52px;
  height: 52px;
  position: relative;
}

.chat-button a {
  display: block;
  width: 100%;
  height: 100%;
}

.chat-button img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Hiệu ứng sóng tổng quát */
.chat-button::before,
.chat-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ripple 2.2s infinite ease-out;
  z-index: 1;
  opacity: 0.6;
}

.chat-button::after {
  animation-delay: 0.6s;
}

/* Keyframe ripple */
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hover */
.chat-button:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 104, 255, 0.4);
}

/* MÀU SÓNG RIÊNG TỪNG NÚT */
.chat-button.zalo img {
  border-color: #118cff;
}
.chat-button.zalo::before {
  background: rgba(17, 140, 255, 0.2);
}
.chat-button.zalo::after {
  background: rgba(17, 140, 255, 0.15);
}

.chat-button.messenger img {
  border-color: #0099FF;
}
.chat-button.messenger::before {
  background: rgba(0, 153, 255, 0.2);
}
.chat-button.messenger::after {
  background: rgba(0, 153, 255, 0.15);
}

.chat-button.hotline img {
  border-color: #4CAF50;
}
.chat-button.hotline::before {
  background: rgba(76, 175, 80, 0.2);
}
.chat-button.hotline::after {
  background: rgba(76, 175, 80, 0.15);
}

/* Responsive */
@media (min-width: 689px) and (max-width: 991px) {
  .chat-button {
    width: 45px;
    height: 45px;
  }
  .chat-floating-wrapper {
    gap: 20px;
  }
}

@media (max-width: 688px) {
  .chat-button {
    width: 42px;
    height: 42px;
  }
  .chat-floating-wrapper {
    gap: 18px;
  }
}