/** ANIMATIONS **/
@keyframes loadingMessage {
    to {
        background-color: #151515;
    }
}

.whatsFlutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: Montserrat, sans-serif;
}

.whatsFlutuante-chat {
    width: 360px;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: rgb(0 0 0 / 10%) 0px 12px 24px 0px;
    margin-bottom: 16px;
    visibility: hidden;
    opacity: 1;
}
.whatsFlutuante-chat:not(.aberto){
    display: none;
}

@keyframes fadeinout {
    0% {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

}

.whatsFlutuante-chat.aberto {
    opacity: 1;
    visibility: visible;
}

.fadeIn {
    animation: fadeinout 1s ease-in 1;
}

.whatsFlutuante-chat.fadeOut {
    opacity: 0;
    visibitily: hidden;
    display: none;
    transform: translate3d(0, 50px, 0);
    transition: all 1s ease-in;
}

.whatsFlutuante-chat-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 20px;
    background-color: #095e54;
}

.whatsFlutuante-btnClose {
    position: absolute;
    top: 11px;
    right: 13px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.whatsFlutuante-btnClose:hover::before,
.whatsFlutuante-btnClose:hover::after {
    background-color: rgb(228, 226, 226);
}

.whatsFlutuante-btnClose::before {
    position: absolute;
    bottom: calc(50% - 0px);
    right: calc(50% - 7px);
    content: "";
    width: 14px;
    height: 3px;
    background-color: #6b9e98;
    transform: rotate(45deg);
    transition: background-color 0.6s ease;
}

.whatsFlutuante-btnClose::after {
    position: absolute;
    bottom: calc(50% - 0px);
    right: calc(50% - 7px);
    content: "";
    width: 14px;
    height: 3px;
    background-color: #6b9e98;
    transform: rotate(-45deg);
    transition: background-color 0.6s ease;
}

.whatsFlutuante-chat-header-boxImg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    background-color: #E85229;
    border-radius: 50%;
}

.whatsFlutuante-chat-header-boxImg::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #4ad504;
    border-radius: 50%;
    bottom: 0px;
    right: 2px;
    border: 2px solid #095e54;
}

.whatsFlutuante-chat-header-boxImg img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.whatsFlutuante-chat-heade-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #FFF;
}

.whatsFlutuante-chat-body {
    position: relative;
    padding: 20px 20px 32px;
    background-color: #e6ddd4;
    z-index: 1;
}

.whatsFlutuante-chat-body-img {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
}

.whatsFlutuante-chat-body-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 30px;
    border-radius: 23px;
    background-color: #FFF;
    box-shadow: rgb(0 0 0 / 13%) 0px 1px 0.5px;
}

.esfera {
    width: 6px;
    height: 6px;
    background-color: #a6a5aa;
    border-radius: 50%;
    animation-name: loadingMessage;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-direction: reverse;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

.esfera:not(:last-child) {
    margin-right: 4px;
}

.esfera-one {
    animation-delay: 0.3s;
}

.esfera-two {
    animation-delay: 0.6s;
}

.esfera-three {
    animation-delay: 0.8s;
}

.whatsFlutuante-chat-body-balao {
    position: relative;
    padding: 7px 14px 6px;
    max-width: 215px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: rgb(0 0 0 / 13%) 0px 1px 0.5px;
    display: none;
}

.whatsFlutuante-chat-body-balao::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -6px;
    width: 14px;
    height: 14px;
    background-color: #FFF;
    transform: rotate(45deg);
}

.whatsFlutuante-chat-body-title {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: #E85229;
}

.whatsFlutuante-chat-body-message {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 19px;
    color: #111111;
}

.whatsFlutuante-chat-body-hora {
    text-align: end;
    font-size: 12px;
    line-height: 16px;
    color: #888888;
    margin: 0;
}

.whatsFlutuante-chat-bottom {
    padding: 20px;
    background-color: #FFF;
}

.whatsFlutuante-chat-a {
    display: block;
    text-decoration: none;
}

.whatsFlutuante-chat-botao {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 32px;
    border-radius: 20px;
    background-color: #4fce5d;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.whatsFlutuante-chat-botao:hover {
    background-color: #71ca7b;
}

.whatsFlutuante-chat-botao svg {
    margin-right: 8px;
}

.whatsFlutuante-chat-bottom-texto {
    font-size: 15px;
    font-weight: 700;
    color: #FFF;
}

.whatsFlutuante-backgroundIcone {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    margin: 0 0 0 auto;
    background-color: #4fce5d;
    cursor: pointer;
    transition: transform 0.3s ease-in,
        background-color 0.3s ease-out;
}

.whatsFlutuante-backgroundIcone:hover {
    transform: scale(1.1);
    background-color: #68cc74;
}

@media (max-width: 767px) {
    .whatsFlutuante {
        z-index: 10;
    }
}

@media (max-width: 400px) {
    .whatsFlutuante-chat {
        width: 310px;
    }
}

@media (max-width: 350px) {
    .whatsFlutuante-chat {
        width: 290px;
    }

}
