#messenger-chat-button {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #0084ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

#messenger-chat-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

#messenger-popup {
    position: fixed;
    bottom: 150px;
    right: 20px;
    background: #ffffff;
    color: #000;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 14px;
    max-width: 240px;
    z-index: 9999;
    opacity: 1;
    transform: translateY(0);
    white-space: nowrap;
}

#messenger-popup::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 26px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

@media screen and (max-width: 768px) {
    #messenger-chat-button {
        position: fixed;
        bottom: 110px;
        right: 20px;
        background-color: #0084ff;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        cursor: pointer;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-8px);
        }
        60% {
            transform: translateY(-4px);
        }
    }

    #messenger-chat-button svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

    #messenger-popup {
        position: fixed;
        bottom: 190px;
        right: 20px;
        background: #ffffff;
        color: #000;
        padding: 10px 14px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        font-size: 14px;
        max-width: 240px;
        z-index: 9999;
        opacity: 1;
        transform: translateY(0);
        white-space: nowrap;
    }

    #messenger-popup::after {
        content: "";
        position: absolute;
        bottom: -10px;
        right: 26px;
        border-width: 10px 10px 0 10px;
        border-style: solid;
        border-color: #ffffff transparent transparent transparent;
    }
}