.whatsapp_cta{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 352px;
    height: 224px;
    bottom: 0;
    right: 0;
    box-sizing: border-box;
    z-index: 100;
    pointer-events: none;
}

.whatsapp_button{
    box-shadow: 8px 8px 8px #000;
    box-sizing: border-box;
    z-index: 300;
    pointer-events: all;
}

.whatsapp_hover{
    position: relative;
    top: 16px;
    left: 32px;
    z-index: 1;
    opacity: 0;
    box-sizing: border-box;
}

.hover_text{
    font-family: sans-serif;
    font-size: 14.4px;
    color: #fff;
    background-color: #2c8c28;
    border-radius: 14px;
    width: 60%;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    box-shadow: 4.8px 4.8px 32px #000;
    box-sizing: border-box;
}

.whatsapp_form{
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: #2c8c28;
    padding: 4.8px 8px;
    border-radius: 14px;
    transition: 1s;
    opacity: 0;
    display: flex;
    box-shadow: 4.8px 4.8px 32px #000;
    box-sizing: border-box;
    pointer-events: all;
}

.form_container{
    flex-grow: 1;
    box-sizing: border-box;
}

.form_text{
    position: relative;
    resize: none;
    overflow: hidden;
    height: 95%;
    width: 85%;
    background-color: #2c8c28;
    color: #fff;
    font-family: sans-serif;
    outline: 0;
    border-radius: 4px;
    border: 0;
    border-bottom: 2px solid #fff;
    padding: 14.4px 16px;
    font-size: 17.6px;
    box-sizing: border-box;
}

.form_container .form_text:focus{
    outline: 0;
    border: 0;
    border-bottom: 2px solid #fff;
}

.form_container .form_text::placeholder{
    color: #999999;
    font-family: inherit;
}

.form_checkbox{
    position: absolute;
    opacity: 0;
    top: 40%;
    right: 18%;
    width: 72px;
    height: 72px;
    z-index: 350;
    cursor: pointer;
    box-sizing: border-box;
    pointer-events: all;
}

.form_checkbox:checked{
    position: absolute;
    top: -2%;
    left: 80%;
}

.form_checkbox:hover ~ .whatsapp_hover, .hover_text{
    animation: grow .6s ease-out forwards;
}

.form_checkbox:checked ~ .whatsapp_hover, .hover_text{
    z-index: -1;
    visibility: hidden;
}

.form_checkbox:not(:checked) ~ .whatsapp_hover, .hover_text{
    z-index: 1;
    visibility: visible;
}

.form_checkbox:checked ~ .whatsapp_form{
    opacity: 1;
    visibility: visible;
}

.form_checkbox:not(:checked) ~ .whatsapp_form{
    visibility: hidden;
}

.form_checkbox:checked ~ .whatsapp_button{
    position: absolute;
    animation: moveUp .4s ease-out forwards;
}

.form_checkbox:not(:checked) ~ .whatsapp_button{
    position: absolute;
    top: 0;
    right: 0;
    animation: moveDown .4s .4s ease-out forwards;
}

.iconchat{
    position: absolute;
    width: 64px;
    height: 64px;
    top: 5%;
    right: 20%;
    z-index: 320;
    box-sizing: border-box;
}

.send_label{
    position: absolute;
    top: 75%;
    right: 3%;
    cursor: pointer;
    box-sizing: border-box;
}

.send_label input{
    display: none;
    box-sizing: border-box;
}

.icon_send{
    width: 32px;
    height: 32px;
    z-index: 20;
    fill: #fff;
    box-sizing: border-box;
}

.bg-black{
    color: #fff;
    background-color: #000000 !important;
}

.bg-white{
    color: #000;
    fill: #000 !important;
    border-color: #000 !important;
    background-color: #fff !important;
}

.bg-gray{
    color: #fff;
    background-color: #676767 !important;
}

.bg-green{
    color: #fff;
    background-color: #2c8c28 !important;
}

.bg-orange{
    color: #fff;
    background-color: #ed3a17 !important;
}

.bg-yellow{
    color: #000;
    fill: #000 !important;
    border-color: #000 !important;
    background-color: #ffea63 !important;
}

.bg-red{
    color: #fff;
    background-color: #e31414 !important;
}

.bg-blue{
    color: #fff;
    background-color: #2997f0 !important;
}

.bg-purple{
    color: #fff;
    background-color: #702ec1 !important;
}

@keyframes grow{
    0%{
        opacity: 0;
        flex-grow: 0;
    }

    16%{
        opacity: 0;
    }

    100%{
        opacity: 1;
        flex-grow: 1;
    }
}

@keyframes moveUp{
    0%{
        position: absolute;
        top: 43%;
        right: 20%;
    }

    100%{
        position: absolute;
        top: 0%;
        right: 0;
    }
}

@keyframes moveDown{
    0%{
        position: absolute;
        top: 0%;
        right: 0;
    }

    100%{
        position: absolute;
        top: 43%;
        right: 20%;
    }
}

/* para mobile */
@media (max-width: 768px) {

    .whatsapp_cta{
        width: 100px;
        height: 100px;
    }

    #form_checkbox{
        display: none;
    }
    
    .icon{
        position: absolute;
        width: 64px;
        height: 64px;
        top: 30%;
        right: 0%;
        z-index: 320;
        box-sizing: border-box;
        transform: scale(.8);
    }

    .form_checkbox:checked ~ .whatsapp_form{
        visibility: hidden;
        opacity: 0;
    }

    .form_checkbox:hover ~ .whatsapp_hover, .hover_text{
        visibility: hidden;
        opacity: 0;
    }
    
    @keyframes moveDown{
        0%{
        position: absolute;
        top: 0;
        right: 0;
    }

        100%{
        position: absolute;
        top: 20%;
        right: 5%;
        }
    }
}

/* 
     This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>

        Developed by Alexsander Alves (https://github.com/sashaclimax)
        The developer does not claim any copyright related to whatsappButton.js plugin since it is an open-source software
*/