/* Hiệu ứng bơm phồng gây chú ý cho nút chính */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(255,87,34,0.8); }
  100% { transform: scale(1); box-shadow: none; }
}

#tdgm-contact-container {
  position: fixed;
  bottom: 10%; /* đặt cao hơn để các nút nổi lên phía trên */
  right: 5%;
  display: flex;
  flex-direction: column-reverse; /* các nút nằm dưới nút chính, khi bật class 'show' sẽ chuyển lên trên */
  align-items: center;
  z-index: 9999;
}

/* Gây chú ý hài hòa hơn, giảm kích thước nút chính */
#tdgm-contact-container .tdgm-main-btn {
  margin: 0px !important;
  background-color: #ffc822;
  border: none;
  padding: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tắt hiệu ứng khi hover (có thể bỏ hoặc giữ) */
#tdgm-contact-container .tdgm-main-btn:hover {
  animation: none;
}

/* Ban đầu các nút liên hệ ẩn, sẽ chuyển qua trạng thái nổi lên */
#tdgm-contact-container .tdgm-hidden {
  opacity: 0;
  transform: translateY(20px); /* dịch xuống để khi bật lên, trông nổi lên */
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute; /* nổi trên */
  bottom: 70px; /* cách nút chính 70px để tràn lên */
  pointer-events: none; /* không nhận click khi ẩn */
  z-index: 998;
}

/* Khi class 'show' bật, các nút nổi lên và chuyển động mượt */
#tdgm-contact-container.show .tdgm-hidden {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 767px) {
  #tdgm-contact-container.tdgm-mobile-only {
    display: flex !important;
  }
}
@media (min-width: 768px) {
  #tdgm-contact-container.tdgm-mobile-only {
    display: none !important;
  }
}