#button-contact-vr {
    position: fixed;
    bottom: 60px;
    right: 0;
    z-index: 99999;
}

#contact-vr-toggle {
    cursor: pointer;
    display: block;
    width: 100px;
    height: 100px;
    transition: transform .3s ease, opacity .3s ease;
    margin-left: auto;
}

#contact-vr-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: tx-bounce 2s ease-in-out infinite;
}

@keyframes tx-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

#gom-all-in-one {
    transform: scale(0.8);
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity .3s ease, transform .3s ease, max-height .3s ease;
}

#button-contact-vr.is-open #contact-vr-toggle img {
    animation: none;
}

#button-contact-vr.is-open #contact-vr-toggle {
    transform: scale(0.7);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

#button-contact-vr.is-open #gom-all-in-one {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    max-height: 500px;
}

#button-contact-vr .button-contact {
    position: relative;
    margin-top: -5px;
}

#button-contact-vr .button-contact .phone-vr {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    left: 0;
    bottom: 0;
    display: block;
    margin-left: auto;
}

#button-contact-vr .phone-vr-circle-fill {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    box-shadow: none;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    transform-origin: 50% 50%;
    animation: phone-vr-pulse 1.2s ease-in-out infinite;
}

@keyframes phone-vr-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

#button-contact-vr .phone-vr-img-circle {
    background-color: #e60808;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#button-contact-vr .phone-vr-img-circle a {
    display: block;
    line-height: 37px;
}

#button-contact-vr .phone-vr-img-circle img {
    max-width: 25px;
    max-height: 25px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#button-contact-vr #zalo-vr .phone-vr-circle-fill {
    box-shadow: none;
    background-color: rgba(33, 150, 243, 0.7);
}

#button-contact-vr #zalo-vr .phone-vr-img-circle {
    background-color: #2196F3;
}

#button-contact-vr #messenger-vr .phone-vr-circle-fill {
    box-shadow: none;
    background-color: rgba(106, 79, 254, 0.5);
}

#button-contact-vr #messenger-vr .phone-vr-img-circle {
    background-color: #6a4ffe;
}

#button-contact-vr #messenger-vr .phone-vr-img-circle img {
    max-width: 100%;
    max-height: 100%;
}

#button-contact-vr #close-vr .phone-vr-circle-fill {
    background-color: rgba(100, 100, 100, 0.5);
}

#button-contact-vr #close-vr .phone-vr-img-circle {
    background-color: #666;
}

#button-contact-vr #close-vr .phone-vr-img-circle span {
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    font-weight: bold;
    display: block;
    text-align: center;
}

@media (max-width: 849px) {
    #contact-vr-toggle {
        width: 86px;
        height: 86px;
    }

    #button-contact-vr .button-contact .phone-vr {
        width: 76px;
        height: 76px;
    }

    #button-contact-vr .phone-vr-circle-fill {
        width: 55px;
        height: 55px;
        top: 11px;
        left: 11px;
    }

    #button-contact-vr .phone-vr-img-circle {
        width: 34px;
        height: 34px;
        line-height: 34px;
        top: 21px;
        left: 21px;
    }

    #button-contact-vr .phone-vr-img-circle a {
        line-height: 31px;
    }

    #button-contact-vr .phone-vr-img-circle img {
        max-width: 21px;
        max-height: 21px;
    }

    #button-contact-vr #close-vr .phone-vr-img-circle span {
        font-size: 22px;
        line-height: 34px;
    }

    #gom-all-in-one {
        transform-origin: bottom right;
    }

    #button-contact-vr.is-open #gom-all-in-one {
        transform: scale(0.9);
    }
}

@media (min-width: 850px) {
    #button-contact-vr {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
    }

    #button-contact-vr.is-open {
        transform: translateY(-50%);
    }

    #contact-vr-toggle {
        width: 150px;
        height: 150px;
    }

    #gom-all-in-one {
        transform-origin: center right;
    }
}
