/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

@-webkit-keyframes phonering-cricle {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(0.5) skew(1deg);
    -webkit-opacity: 0.1;
  }

  50% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(0.7) skew(1deg);
    -webkit-opacity: 0.5;
  }

  100% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(1) skew(1deg);
    -webkit-opacity: 0.1;
  }
}

@-webkit-keyframes phonering-circle-fill {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(0.7) skew(1deg);
    opacity: 0.6;
  }

  50% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(1) skew(1deg);
    opacity: 0.6;
  }

  100% {
    -webkit-transform: translate(-50%, -50%) rotate(0) scale(0.7) skew(1deg);
    opacity: 0.6;
  }
}

.list-shortcut-desktop {
  position: fixed;
  z-index: 9999999;
  right: 20px;
  bottom: 50%;
  transform: translatey(50%);
}

.list-shortcut-desktop > a {
  border-radius: 50%;
  box-shadow: 0 0 25px 0 rgba(100, 97, 97, 0.3);
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
}

.list-shortcut-desktop .zalo {
  background-image: url(/wp-content/uploads/2025/11/Group-168797.png);
}

.list-shortcut-desktop .mess {
  background-image: url(/wp-content/uploads/2025/11/Group-168796.png);
}

.list-shortcut-desktop .call {
  background-image: url(/wp-content/uploads/2025/11/Group-168798.png);
  position: relative;
}

.list-shortcut-desktop .call:before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 107, 17, 0.7);
  border-radius: 100%;
  border: 2px solid transparent;
  -webkit-animation: phonering-circle-fill 2.3s infinite ease-in-out;
  animation: phonering-circle-fill 2.3s infinite ease-in-out;
  transition: all 0.5s;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  z-index: -1;
}

.list-shortcut-desktop .call:after {
  content: "";
  width: 75px;
  height: 75px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  border-radius: 100%;
  border: 2px solid var(--theme-color);
  background-color: transparent;
  -webkit-animation: phonering-cricle 1.2s infinite ease-in-out;
  animation: phonering-cricle 1.2s infinite ease-in-out;
  transition: all 0.5s;
  opacity: 0.5;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

/* 1. Mặc định ẩn khối mobile */
.list-shortcut-mobile {
    display: none; 
}

/* 2. Trên Mobile (dưới 768px): Ẩn Desktop và Hiện Mobile */
@media (max-width: 768px) {
    /* ẨN KHỐI DESKTOP */
    .list-shortcut-desktop {
        display: none !important; 
    }

    /* HIỆN KHỐI MOBILE VÀ TÙY CHỈNH */
    .list-shortcut-mobile {
        display: flex; /* Hiện khối Mobile */
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #007bff; /* Thay màu này bằng màu bạn muốn */
        padding: 10px 0;
        z-index: 9999999; /* Cần Z-index cao */
    }

    .list-shortcut-mobile a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        flex: 1;
        text-align: center;
        /* Thêm style cho icon nếu dùng Font Awesome */
        display: flex; 
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .list-shortcut-mobile a i {
        font-size: 20px;
    }

    /* Đảm bảo các thuộc tính animation của desktop KHÔNG bị áp dụng cho mobile */
}
.contact-button {
    display: inline-block;
    background-color: #ff4d4d;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.contact-button:hover {
    background-color: #cc0000;
}