/* Button Contact VR - style (giữ nguyên giao diện gốc homeprint.vn) */

/* Đồng bộ font với web hiện tại: kế thừa font từ theme, không ghi đè */
#button-contact-vr,
#button-contact-vr * {
    font-family: inherit;
}

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

/* Vị trí: mặc định bên phải, có thể đổi sang trái trong admin */
#button-contact-vr.bcvr-right { right: 0; }
#button-contact-vr.bcvr-left  { left: 0; }

#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;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility .5s;
    left: 0;
    bottom: 0;
    display: block;
}

.phone-vr-circle-fill {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    box-shadow: 0 0 0 0 #c31d1d;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all .5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
}

.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;
    -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

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

.phone-vr-img-circle img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    width: auto;
    box-shadow: none;
    border: 0;
}

/* Zalo - màu xanh */
#zalo-vr .phone-vr-circle-fill {
    box-shadow: 0 0 0 0 #2196F3;
    background-color: rgba(33, 150, 243, 0.7);
}
#zalo-vr .phone-vr-img-circle {
    background-color: #2196F3;
}

#gom-all-in-one .button-contact {
    transition: 1.6s all;
    -moz-transition: 1.6s all;
    -webkit-transition: 1.6s all;
}

/* Keyframes */
@-webkit-keyframes phone-vr-circle-fill {
    0%   { -webkit-transform: rotate(0) scale(1) skew(1deg); }
    10%  { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
    20%  { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
    30%  { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
    40%  { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
    50%  { -webkit-transform: rotate(0) scale(1) skew(1deg); }
    100% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
}
@keyframes phone-vr-circle-fill {
    0%   { transform: rotate(0) scale(1) skew(1deg); }
    10%  { transform: rotate(-25deg) scale(1) skew(1deg); }
    20%  { transform: rotate(25deg) scale(1) skew(1deg); }
    30%  { transform: rotate(-25deg) scale(1) skew(1deg); }
    40%  { transform: rotate(25deg) scale(1) skew(1deg); }
    50%  { transform: rotate(0) scale(1) skew(1deg); }
    100% { transform: rotate(0) scale(1) skew(1deg); }
}
@-webkit-keyframes zoom {
    0%   { transform: scale(.9); }
    70%  { transform: scale(1); box-shadow: 0 0 0 15px transparent; }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 transparent; }
}
@keyframes zoom {
    0%   { transform: scale(.9); }
    70%  { transform: scale(1); box-shadow: 0 0 0 15px transparent; }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 transparent; }
}
