/* ==========================================================================
   1. CẤU HÌNH KHUNG CHUNG (HOTLINE & ZALO)
   ========================================================================== */
.hotline-phone-ring-wrap {
  position: fixed;
  bottom: 30px; /* Vị trí gốc của Phone 1 */
  right: 0;
  z-index: 999;
}
.hotline-phone-ring {
  position: relative;
  visibility: visible;
  background-color: transparent;
  width: 110px;
  height: 110px;
  cursor: pointer;
  z-index: 11;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transition: visibility .5s;
  left: 0;
  bottom: 0;
  display: block;
}
.hotline-phone-ring-circle {
  width: 85px;
  height: 85px;
  top: 10px;
  left: 10px;
  position: absolute;
  background-color: transparent;
  border-radius: 100%;
  border: 2px solid #e60808;
  -webkit-animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
  animation: phonering-alo-circle-anim 1.2s infinite ease-in-out;
  transition: all .5s;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  opacity: 0.5;
}
.hotline-phone-ring-circle-fill {
  width: 55px;
  height: 55px;
  top: 26px;
  left: 26px;
  position: absolute;
  background-color: rgba(230, 8, 8, 0.7);
  border-radius: 100%;
  border: 2px solid transparent;
  -webkit-animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
  animation: phonering-alo-circle-fill-anim 2.3s infinite ease-in-out;
  transition: all .5s;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}
.hotline-phone-ring-img-circle {
  background-color: #e60808;
  width: 33px;
  height: 33px;
  top: 37px;
  left: 37px;
  position: absolute;
  background-size: 20px;
  border-radius: 100%;
  border: 2px solid transparent;
  -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotline-phone-ring-img-circle .pps-btn-img {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.hotline-phone-ring-img-circle .pps-btn-img img {
  width: 20px;
  height: 20px;
}
.hotline-bar {
  position: absolute;
  background: #E88A25;
  background: -webkit-linear-gradient(left, #d40000, #E88A25);
  background: -o-linear-gradient(right, #d40000, #E88A25);
  background: -moz-linear-gradient(right, #d40000, #E88A25);
  background: linear-gradient(to right, #d40000, #E88A25);
  height: 40px;
  min-width: 170px;
  line-height: 40px;
  border-radius: 3px;
  padding: 0 10px;
  background-size: 100%;
  cursor: pointer;
  transition: all 0.8s;
  -webkit-transition: all 0.8s;
  z-index: 9;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50px !important;
  border: 2px solid white;
  right: 33px;
  bottom: 37px;
}
.hotline-bar > a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  text-indent: 10px;
  white-space: nowrap;
  display: block;
  letter-spacing: 1px;
  line-height: 38px;
  font-family: Arial;
}
.hotline-bar > a:hover,
.hotline-bar > a:active {
  color: #fff;
}

/* ==========================================================================
   2. ĐỊNH VỊ TỌA ĐỘ TRÊN MÁY TÍNH (DESKTOP) - CÁCH NHAU ĐỀU 75PX
   ========================================================================== */

/* vị trí 1: Phone 1 mặc định bottom: 30px */

/* Vị trí 2: Phone 2 nằm trên Phone 1 */
.hotline-phone-ring-wrap.hotline-phone-ring-wrap-phone2 {
  bottom: 105px !important;
}

/* Vị trí 3: Zalo 1 nằm trên Phone 2 */
.hotline-phone-ring-wrap.hotline-phone-ring-wrap-custom {
  bottom: 180px !important;
}

/* Vị trí 4: Zalo 2 nằm trên cùng */
.hotline-phone-ring-wrap.hotline-phone-ring-wrap-zalo2 {
  bottom: 255px !important;
}

/* ==========================================================================
   3. CẤU HÌNH MÀU SẮC ĐẶC TRƯNG CHO 2 ICON ZALO (MÀU XANH)
   ========================================================================== */
/* Zalo 1 màu xanh */
.hotline-phone-ring-wrap-custom .hotline-phone-ring-circle-fill {
  background-color: #0182ca;
}
.hotline-phone-ring-wrap-custom .hotline-phone-ring-img-circle {
  background-color: #0182ca;
}
.hotline-phone-ring-wrap-custom .hotline-bar {
  background: linear-gradient(to right, #0182ca, #afdcf5);
}
.hotline-phone-ring-wrap-custom .hotline-phone-ring-circle {
  border: 2px solid #0182ca;
}

/* Zalo 2 màu xanh */
.hotline-phone-ring-wrap-zalo2 .hotline-phone-ring-circle-fill,
.hotline-phone-ring-wrap-zalo2 .hotline-phone-ring-img-circle {
  background-color: #0182ca !important;
}
.hotline-phone-ring-wrap-zalo2 .hotline-bar {
  background: linear-gradient(to right, #0182ca, #afdcf5) !important;
}
.hotline-phone-ring-wrap-zalo2 .hotline-phone-ring-circle {
  border: 2px solid #0182ca !important;
}

/* ==========================================================================
   4. TỐI ƯU HIỂN THỊ TRÊN ĐIỆN THOẠI (MOBILE) - CÁCH NHAU ĐỀU 60PX
   ========================================================================== */
@media(max-width: 767px){
  /* Ẩn thanh chữ trên Mobile để đỡ vướng màn hình */
  .hotline-bar {
    display: none !important;
  }

  /* Vị trí 1: Phone 1 trên Mobile */
  .hotline-phone-ring-wrap {
    bottom: 50px !important;
  }
  
  /* Vị trí 2: Phone 2 trên Mobile */
  .hotline-phone-ring-wrap.hotline-phone-ring-wrap-phone2 {
    bottom: 110px !important;
  }
  
  /* Vị trí 3: Zalo 1 trên Mobile */
  .hotline-phone-ring-wrap.hotline-phone-ring-wrap-custom {
    bottom: 170px !important;
  }
  
  /* Vị trí 4: Zalo 2 trên Mobile */
  .hotline-phone-ring-wrap.hotline-phone-ring-wrap-zalo2 {
    bottom: 230px !important;
  }
}

/* ==========================================================================
   5. HIỆU ỨNG KIỂU XOAY (ANIMATIONS)
   ========================================================================== */
@-webkit-keyframes phonering-alo-circle-anim {
  0% { -webkit-transform: rotate(0) scale(0.5) skew(1deg); opacity: 0.1; }
  30% { -webkit-transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.5; }
  100% { -webkit-transform: rotate(0) scale(1) skew(1deg); opacity: 0.1; }
}
@-webkit-keyframes phonering-alo-circle-fill-anim {
  0% { -webkit-transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
  50% { -webkit-transform: rotate(0) scale(1) skew(1deg); opacity: 0.6; }
  100% { -webkit-transform: rotate(0) scale(0.7) skew(1deg); opacity: 0.6; }
}
@-webkit-keyframes phonering-alo-circle-img-anim {
  0% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
  10% { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
  20% { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
  30% { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
  40% { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
  50% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
  100% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
}