/* ---- Main Container for Buttons ---- */
.fixed-contact-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* ---- General Button Styles ---- */
.fbc-button {
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fbc-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ---- Messenger & Zalo Image Styles ---- */
.fbc-messenger img,
.fbc-zalo img {
    width: 55px;
    height: 55px;
    display: block;
    border-radius: 50%; /* Bo tròn nếu ảnh tải lên là ảnh vuông */
    object-fit: cover;
}

/* ---- Phone Button Styles ---- */
.fbc-phone {
    display: flex;
    align-items: center;
    background-color: var(--fbc-phone-bg, #9f4b38);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    /* === UPDATED: Thay đổi hiệu ứng === */
    animation: ring-animation 2.5s infinite ease-in-out;
}

.fbc-phone-icon {
    width: 35px;
    height: 35px;
    background-color: white;
    color: var(--fbc-phone-bg, #9f4b38);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.fbc-phone-icon i {
    font-size: 16px;
}

/* === UPDATED: Định nghĩa Animation Keyframes mới cho hiệu ứng rung lắc === */
@keyframes ring-animation {
  0% { transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  10% { transform: scale(1.1) rotate(3deg); }
  20% { transform: scale(1.1) rotate(-3deg); }
  30% { transform: scale(1.1) rotate(3deg); }
  40% { transform: scale(1.1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(0); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
  /* Đoạn nghỉ giữa các lần lặp */
  70% { transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
}


/* ---- Responsive for Mobile Devices ---- */
@media (max-width: 768px) {
    .fixed-contact-buttons {
        left: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .fbc-messenger img,
    .fbc-zalo img {
        width: 48px;
        height: 48px;
    }

    .fbc-phone {
        padding: 8px 15px 8px 8px;
        font-size: 14px;
    }

    .fbc-phone-icon {
        width: 32px;
        height: 32px;
    }
}

