.new-layout-contact-wrapper {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 20px 15px 80px 15px;
  z-index: 1000;
}
.new-layout-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.new-layout-contact-item {
  position: relative;
  background-color: #545454;
  border-radius: 50%;
  width: 56px;
  height: 56px;
}
.new-layout-contact-item-toggle {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  &.active {
    .new-layout-contact-item-toggle-icon-active {
      display: none;
    }
    .new-layout-contact-item-toggle-icon-inactive {
      display: flex;
    }
  }
}

.new-layout-contact-item-toggle-icon-active {
  font-size: 28px;
  line-height: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  cursor: pointer;
}
.new-layout-contact-item-toggle-icon-inactive {
  font-size: 28px;
  line-height: 56px;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  cursor: pointer;
}
.new-layout-contact-social {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 0;
  left: 0;
  cursor: pointer;
  pointer-events: none;
}

.new-layout-contact-item-toggle:hover .new-layout-contact-item-toggle-icon-active,
.new-layout-contact-item-toggle:hover .new-layout-contact-item-toggle-icon-inactive {
  color: #6cb8ff !important;
}

.new-layout-contact-social.active {
  display: block;
  pointer-events: auto;
}

.new-layout-contact-social.active .ic_zalo,
.new-layout-contact-social.active .ic_tel,
.new-layout-contact-social.active .ic_mess,
.new-layout-contact-social.active .ic_tiktok,
.new-layout-contact-social.active .ic_youtube {
  display: flex !important;
  animation: social-pop 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes social-pop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.social-icon {
  width: 56px;
  height: 56px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic_zalo {
  display: none;
  position: absolute;
  top: -70px;
  left: 0;
  z-index: 2;
}

.ic_tel {
  display: none;
  position: absolute;
  top: -60px;
  left: -60px;
  z-index: 2;
}

.ic_mess {
  display: none;
  position: absolute;
  top: 0px;
  left: -85px;
  z-index: 2;
}

.ic_tiktok {
  display: none;
  position: absolute;
  top: 65px;
  left: 0px;
  z-index: 2;
}

.ic_youtube {
  display: none;
  position: absolute;
  top: 60px;
  left: -60px;
  z-index: 2;
}

.new-layout-contact-scroll-top {
  position: absolute;
  top: -50px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0px);
  transition: all 0.3s ease-in-out;
}

.new-layout-contact-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-20px);
}

.new-layout-contact-social.active ~ .new-layout-contact-scroll-top {
  top: -120px;
}

.new-layout-contact-scroll-top-button {
  width: 56px;
  height: 56px;
  background-color: #545454;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.new-layout-contact-scroll-top-button:hover {
  background-color: #545454;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  .iconsax {
    color: #6cb8ff !important;
  }
}

.new-layout-contact-scroll-top-button .iconsax {
  font-size: 24px;
  color: #fff;
}
