/* Floating contact buttons on the right edge, same look as the bar on nucos.vn.
   Stays below the product popup (z-index 99999). */
.nj-contact-bar {
    position: fixed;
    right: 0;
    bottom: 5%;
    z-index: 9999;
}

.nj-contact-btn {
    position: relative;
    display: block;
    width: 90px;
    height: 90px;
    margin-top: -5px;
}

.nj-contact-pulse {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 65px;
    height: 65px;
    border: 2px solid transparent;
    border-radius: 50%;
    background-color: #e46b85;
    box-shadow: 0 0 0 0 #e46b85;
    opacity: .7;
    animation: nj-contact-zoom 1.3s infinite;
}

.nj-contact-icon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e46b85;
    animation: nj-contact-shake 1s infinite ease-in-out;
}

.nj-contact-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 27px;
    max-height: 25px;
    transform: translate(-50%, -50%);
}

.nj-contact-btn--facebook .nj-contact-icon img {
    max-width: 40px;
    max-height: 40px;
}

@keyframes nj-contact-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 nj-contact-shake {
    0%, 50%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-25deg); }
    20%, 40% { transform: rotate(25deg); }
}
