#button-contact-vr {
    position: fixed;
    bottom: 90px;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 99999;
}

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

#contact-vr-toggle:hover,
#contact-vr-toggle:focus-visible {
    transform: scale(1.04);
}

#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 {
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: opacity .18s ease, visibility 0s linear .18s;
}

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

#button-contact-vr.is-open #contact-vr-toggle {
    transform: translateX(10px) scale(0.72);
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
}

#button-contact-vr.is-open #gom-all-in-one {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .18s ease, visibility 0s linear;
}

#button-contact-vr .button-contact {
    position: relative;
    margin-top: -5px;
    opacity: 0;
    transform: translateY(16px) scale(0.82);
    transition: opacity .16s ease, transform .18s ease;
}

#button-contact-vr.is-open .button-contact {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-duration: .22s, .28s;
    transition-timing-function: ease, cubic-bezier(.2, .8, .2, 1.15);
}

#button-contact-vr.is-open #messenger-vr {
    transition-delay: 40ms;
}

#button-contact-vr.is-open #zalo-vr {
    transition-delay: 90ms;
}

#button-contact-vr.is-open #phone-vr {
    transition-delay: 140ms;
}

#button-contact-vr.is-open #close-vr {
    transition-delay: 190ms;
}

#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-img-circle {
    background-color: #ff8d2d;
    width: 48px;
    height: 48px;
    inset: 0;
    margin: auto;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    will-change: transform;
}

#button-contact-vr .phone-vr-img-circle a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: inherit;
    outline: none;
}

#button-contact-vr :where(#messenger-vr, #zalo-vr, #phone-vr) .phone-vr-img-circle:hover,
#button-contact-vr :where(#messenger-vr, #zalo-vr, #phone-vr) .phone-vr-img-circle:focus-within {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 4px rgba(255, 255, 255, .9);
}

#button-contact-vr :where(#messenger-vr, #zalo-vr, #phone-vr) .phone-vr-img-circle a:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .95);
}

#button-contact-vr .phone-vr-img-circle .contact-vr-icon {
    display: block;
    color: #fff;
    flex: 0 0 auto;
}

#button-contact-vr .phone-vr-img-circle .contact-vr-icon-messenger {
    width: 30px;
    height: 30px;
}

#button-contact-vr .phone-vr-img-circle .contact-vr-icon-zalo {
    width: 34px;
    height: 15px;
}

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

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

#button-contact-vr #messenger-vr .phone-vr-img-circle {
    background: linear-gradient(135deg, #168AFF 0%, #725BFF 48%, #FF4DB8 100%);
}

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

#button-contact-vr #close-vr .phone-vr-img-circle {
    background-color: #00d979;
    border: 0;
    box-shadow: none;
}

#button-contact-vr #close-vr .phone-vr-img-circle span {
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

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

    #button-contact-vr {
        width: 86px;
        height: 86px;
    }

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

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

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

    #button-contact-vr .phone-vr-img-circle .contact-vr-icon-messenger {
        width: 28px;
        height: 28px;
    }

    #button-contact-vr .phone-vr-img-circle .contact-vr-icon-zalo {
        width: 32px;
        height: 14px;
    }

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

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

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

    #button-contact-vr .button-contact {
        transform: translateY(10px) scale(0.88);
    }
}

@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;
    }

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

    #gom-all-in-one {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        transform-origin: center right;
    }
}

@media (prefers-reduced-motion: reduce) {
    #contact-vr-toggle,
    #contact-vr-toggle img,
    #gom-all-in-one,
    #button-contact-vr .button-contact,
    #button-contact-vr .phone-vr-img-circle {
        animation: none;
        transition: none;
    }

    #contact-vr-toggle:hover,
    #contact-vr-toggle:focus-visible,
    #button-contact-vr.is-open #contact-vr-toggle,
    #button-contact-vr .button-contact,
    #button-contact-vr.is-open .button-contact,
    #button-contact-vr :where(#messenger-vr, #zalo-vr, #phone-vr) .phone-vr-img-circle:hover,
    #button-contact-vr :where(#messenger-vr, #zalo-vr, #phone-vr) .phone-vr-img-circle:focus-within {
        transform: none;
    }

    #button-contact-vr.is-open #contact-vr-toggle {
        opacity: 0;
    }
}
