/* ====== CSS GỐC ====== */
.nsp_thongtinlienhe .nsp_zalo,
.nsp_thongtinlienhe .nsp_taibanggia,
.nsp_thongtinlienhe .nsp_hotline {
  position: fixed;
  right: 10px;
  z-index: 999999;
  width: 185px;
  padding: 8px 10px 8px 20px;
  border-radius: 29px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  background: #f0ff00; /* Nền mặc định */
  border: 2px solid transparent; /* Viền trong suốt */
  background-clip: padding-box; /* Đảm bảo nền không ảnh hưởng đến viền */
  transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.nsp_thongtinlienhe .nsp_zalo {
  background: #f0ff00;
  color: #000000;
  bottom: 141px;
  margin-bottom: 10px;
}

.nsp_thongtinlienhe .nsp_taibanggia {
  background: #00d8ff;
  color: #000000;
  bottom: 75px;
  margin-bottom: 10px;
}

.nsp_thongtinlienhe .nsp_hotline {
  background: #FF3333;
  bottom: 20px;
}

.nsp_thongtinlienhe img {
  width: 30px;
  margin-right: 10px;
  margin-top: 2px;
  float: left;
  transition: transform 0.3s ease;
  animation: shake 0.5s ease-in-out infinite;
}

.nsp_thongtinlienhe span {
  float: left;
  padding-top: 5px;
  white-space: nowrap;
}

/* Hiệu ứng rung icon */
@keyframes shake {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-10deg); }
  50%  { transform: rotate(10deg); }
  75%  { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

/* Hover: nền trắng, chữ đen, bóng neon */
.nsp_thongtinlienhe .nsp_zalo:hover,
.nsp_thongtinlienhe .nsp_taibanggia:hover,
.nsp_thongtinlienhe .nsp_hotline:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 51, 51, 1),
              0 0 15px rgba(255, 51, 51, 1),
              0 0 12px rgba(0, 216, 255, 1);
  border-radius: 29px;
  border: 2px solid #ff3333;
}

.nsp_thongtinlienhe .nsp_zalo span,
.nsp_thongtinlienhe .nsp_hotline span,
.nsp_thongtinlienhe .nsp_taibanggia span {
  display: block;
  margin-top: 5px;
  white-space: nowrap;
}

/* ====== CSS MỚI — Khi bật ẩn chữ trên mobile (hide_text_mobile) ====== */
@media screen and (max-width: 768px) {
  /* Ẩn text */
  .nsp_thongtinlienhe span {
    display: none !important;
  }

  /* Chỉnh nút thành hình tròn, icon căn giữa */
  .nsp_thongtinlienhe a {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }

  /* Canh icon vào giữa */
  .nsp_thongtinlienhe img {
    margin: 0 !important;
    width: 28px !important;
    height: auto !important;
  }
}
