/* Quick Support Buttons */
#quick_support {
  position: fixed;
  z-index: 100;
  transition: 0.5s all;
  text-align: center;
  width: 150px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Position variations */
#quick_support.quick-support-top-right {
  top: 120px;
  right: 12px;
}

#quick_support.quick-support-middle-right {
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

#quick_support.quick-support-bottom-right {
  bottom: 20px;
  right: 12px;
}

/* Hide on mobile option */
#quick_support.quick-support-hide-mobile {
  display: none;
}

@media (min-width: 769px) {
  #quick_support.quick-support-hide-mobile {
    display: flex;
  }
}

#quick_support a {
  display: flex;
  background-color: #fff;
  height: 45px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  right: 0;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.right_ic {
  width: calc(100% - 45px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.right_ic span {
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.right_ic strong {
  font-size: 14px;
  width: 100%;
  display: block;
  line-height: 1;
  margin-top: 5px;
}

/* Hotline Button */
.social-hl.social-hlc {
  border-radius: 9px;
  background: linear-gradient(90deg, #1bad2a 0%, #097728 100%);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.social-hl.social-hlc:before {
  content: "";
  background-image: url("/wp-content/themes/yenanphuc/images/PhoneCall.svg");
  display: inline-block;
  width: 33px;
  height: 33px;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 10px;
}

/* Messenger Button */
.social-hl.social-msg {
  box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.15);
  border-radius: 9px;
  box-sizing: border-box;
  border-style: solid;
  border-width: 3px;
  border: 3px solid transparent;
  background: linear-gradient(#fff 0 0) padding-box,
    linear-gradient(to right, #2482ff, #903dff, #ff5c76) border-box;
}

.social-hl.social-msg:before {
  content: "";
  background-image: url("/wp-content/themes/yenanphuc/images/mesf.png");
  display: inline-block;
  width: 33px;
  height: 33px;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 10px;
}

.right_ic_chat {
  width: calc(100% - 45px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: -webkit-linear-gradient(#2482ff, #903dff, #ff5c76);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 500;
}

/* Zalo Button */
.social-hl.social-zalo {
  border-radius: 9px;
  background: linear-gradient(90deg, #3379f2 0%, #0848b6 100%);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.social-hl.social-zalo:before {
  content: "";
  background-image: url("/wp-content/themes/yenanphuc/images/zalo.png");
  display: inline-block;
  width: 33px;
  height: 33px;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 10px;
}

.social-hl.social-zalo strong {
  margin-top: 0px;
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  #quick_support {
    top: 80px;
    right: 8px;
    width: 130px;
  }

  #quick_support a {
    height: 40px;
  }

  .right_ic span {
    font-size: 11px;
  }

  .right_ic strong {
    font-size: 13px;
  }

  .right_ic_chat {
    font-size: 18px;
  }

  .social-hl.social-hlc:before,
  .social-hl.social-msg:before,
  .social-hl.social-zalo:before {
    width: 28px;
    height: 28px;
    margin-left: 8px;
  }
}
@media screen and (max-width: 1512px) {
  .header-left,
  .header-right {
    display: none;
  }

  .right_ic_chat,
  .right_ic {
    transition: 0.5s all;
    opacity: 0;
    height: 0px;
  }

  #quick_support a {
    width: 45px;
    transition: 0.5s all;
  }

  #quick_support {
    width: 45px;
  }

  .social-hl:before {
    margin-left: 5px !important;
  }

  #quick_support:hover {
    width: 150px !important;
  }

  #quick_support:hover a {
    width: 150px;
  }

  #quick_support:hover a .right_ic,
  #quick_support:hover a .right_ic_chat {
    opacity: 1;
    height: auto;
    transition: 1.5s all;
  }
}
