/* File: wp-content/plugins/dd-floating-contact/assets/css/floating-contact.css */

/* =========================
 * BOX LIÊN HỆ DESKTOP
 * ======================= */
.contact-box-bottom {
  position: fixed;
  bottom: 85px;
  z-index: 10000;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  transform: scale(0.7);
  -webkit-transition: left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition: left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, right, transform;

  /* xếp dọc 3 item */
  display: inline-flex;
  flex-direction: column;
}

/* Trượt bên phải */
.contact-box-bottom-right {
  right: -130px;
}
.contact-box-bottom-right:hover {
  right: 10px;
}
.contact-box-bottom-right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: auto;
  width: 20px;
}

/* Trượt bên trái (mirror) */
.contact-box-bottom-left {
  left: -130px;
}
.contact-box-bottom-left:hover {
  left: 10px;
}
.contact-box-bottom-left::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  right: auto;
  width: 20px;
}

/* Hover chung: giữ scale */
.contact-box-bottom:hover {
  transform: scale(0.7);
}

/* Animation vào màn hình */
@-webkit-keyframes backInLeft {
  0% {
    opacity: 0.7;
    -webkit-transform: translateX(-2000px) scale(0.7);
    transform: translateX(-2000px) scale(0.7);
  }
  80% {
    opacity: 0.7;
    -webkit-transform: translateX(0) scale(0.7);
    transform: translateX(0) scale(0.7);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes backInLeft {
  0% {
    opacity: 0.7;
    -webkit-transform: translateX(-2000px) scale(0.7);
    transform: translateX(-2000px) scale(0.7);
  }
  80% {
    opacity: 0.7;
    -webkit-transform: translateX(0) scale(0.7);
    transform: translateX(0) scale(0.7);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.animate__backInLeft {
  -webkit-animation-name: backInLeft;
  animation-name: backInLeft;
}

/* Item bên trong */
.contact-box-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  margin-bottom: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  color: #000;
  width: auto;
  max-width: 260px; /* có thể chỉnh 240–280 tuỳ ý */
}

/* Icon vòng tròn */
.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 38px;
  border: 1px solid #e5e5e5 !important;
  border-radius: 999px;
  margin-right: 10px;
  overflow: hidden;
}
.contact-icon-box img {
  max-width: 100%;
  max-height: 100%;
}
.contact-icon-box i {
  color: #ed1b24 !important;
}
.contact-info span {
  color: #868686;
  font-size: 12px;
  display: block;
}

.contact-icon-box {
  animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

@keyframes phone-vr-circle-fill {
  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);
  }
}

.nut-chat-facebook .contact-icon-box

/* Bên phải: icon nằm ngoài bên phải */
.contact-box-bottom-right .contact-box-wrapper {
  flex-direction: row;
}

.contact-box-bottom-right .contact-icon-box {
  margin-right: 10px !important;
  margin-right: 0;
  animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

.contact-box-bottom-left .contact-box-wrapper {
  flex-direction: row-reverse;
}

.contact-box-bottom-left .contact-icon-box {
  margin-left: 10px !important;
  margin-right: 0;
}

.contact-box-bottom-left .contact-info {
  text-align: right;
}

/* =========================
 * FIXED RIGHT MENU (MOBILE)
 * ======================= */
.fixed-right-menu {
  position: fixed;
  left: 5px;
  bottom: 30px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.fixed-right-menu.active {
  display: none;
}

.fixed-right-menu.active a {
  animation: phone-vr-circle-fill 1s infinite ease-in-out;
}
.fixed-right-menu a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25a0f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.fixed-right-menu a .zalo-icon img,
.fixed-right-menu a img {
  max-width: 28px;
  max-height: 28px;
}

/* =========================
 * FOOTER CONTACT (MOBILE)
 * ======================= */
#azt-contact-footer-outer {
  position: fixed;
  width: 100%;
  z-index: 100 !important;
  bottom: 0;
  display: none;
}
#azt-contact-footer:after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: url(../img/mb-footer-bg.svg);
  background-color: unset;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
  box-shadow: unset;
  height: 65px;
  width: 100%;
  margin-left: 0;
  margin-bottom: 0;
  left: 0;
  bottom: 0;
  z-index: -1;
}
#azt-contact-footer {
  border-bottom: 15px solid #fff;
  display: flex;
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding-top: 5px;
}
#azt-contact-footer > a {
  position: relative;
  display: block;
  width: 25%;
  text-align: center;
  padding: 11px 0 0px 0;
  color: #313131;
}
#azt-contact-footer span {
  display: block;
}
.azt-contact-footer-btn-label {
  padding: 0px 2px 0 2px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}
#azt-contact-footer > a img {
  height: 30px;
  width: 30px;
}
#azt-contact-footer-btn-center {
  position: relative;
  background: transparent !important;
}
#azt-contact-footer-btn-center .azt-contact-footer-btn-label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}
#azt-contact-footer-btn-center .azt-contact-footer-btn-label > span {
  padding: 0px 8px;
  background-image: linear-gradient(92.83deg, #47b7f9 0, #006ef2f2 100%);
  border-radius: 30px;
  color: white;
  display: inline-block;
}
.azt-contact-footer-btn-center-icon {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  background-image: linear-gradient(92.83deg, #47b7f9 0, #006ef2f2 100%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: -28px;
  text-align: center;
  box-shadow: rgb(0 0 0 / 15%) 0 -3px 10px 0px;
  border: 2px solid #fff;
}
.azt-contact-footer-btn-center-icon img {
  max-width: 20px;
  height: auto !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.phone-vr-circle-fill {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 0 #0e68c8;
  border: 2px solid transparent;
  transition: all 0.5s;
  animation: zoom 1.3s infinite;
}
@keyframes zoom {
  0% {
  }
  70% {
    box-shadow: 0 0 0 15px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* =========================
 * RESPONSIVE
 * ======================= */
@media only screen and (max-width: 850px) {
  #azt-contact-footer-outer {
    display: block;
  }
  .contact-box-bottom.animate__backInLeft {
    display: none;
  }
  .fixed-right-menu.active {
    display: flex;
  }
}