/* Floating Contact Buttons - Style */

.fcb-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Positions */
.fcb-pos-bottom-right {
    bottom: 20px;
    right: 20px;
}
.fcb-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}
.fcb-pos-top-right {
    top: 20px;
    right: 20px;
}
.fcb-pos-top-left {
    top: 20px;
    left: 20px;
}

/* Responsive Hidden Settings */
@media screen and (min-width: 769px) {
    .fcb-hide-desktop {
        display: none !important;
    }
}
@media screen and (max-width: 768px) {
    .fcb-hide-mobile {
        display: none !important;
    }
}

/* Button Base Styles */
.fcb-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease;
    animation: fcb-shake 2s infinite ease-in-out;
}

.fcb-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.fcb-btn .fcb-icon-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Specific Colors based on image */
.fcb-email { background-color: #0084ff; }
.fcb-zalo { background-color: #0068ff; }
.fcb-whatsapp { background-color: #25d366; }
.fcb-phone { background-color: #ed1c24; }
.fcb-telegram { background-color: #0088cc; }
.fcb-custom1, .fcb-custom2 { background-color: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Icons in custom buttons with white bg need bounds */
.fcb-custom1 .fcb-icon-img, 
.fcb-custom2 .fcb-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Ripple effect (behind buttons) */
.fcb-btn::before, .fcb-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: fcb-ripple 2s infinite ease-in-out;
}

/* specific ripples based on button color */
.fcb-email::before, .fcb-email::after { background-color: #0084ff; }
.fcb-zalo::before, .fcb-zalo::after { background-color: #0068ff; }
.fcb-whatsapp::before, .fcb-whatsapp::after { background-color: #25d366; }
.fcb-phone::before, .fcb-phone::after { background-color: #ed1c24; }
.fcb-telegram::before, .fcb-telegram::after { background-color: #0088cc; }
.fcb-custom1::before, .fcb-custom1::after,
.fcb-custom2::before, .fcb-custom2::after { background-color: #ccc; }

.fcb-btn::after {
    animation-delay: 1s;
}

/* Animations */
@keyframes fcb-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes fcb-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
}
