/*========================================================

Project:  ChatPro - All in One Chat on Any Social Plateform jQuery Plugin
Author:  Black Theme
Released On:  25, Nov 2019
@version:  1.0
 
==========================================================*/

/* ChatPro Main Panel */ 
.cp-style3{
    font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0 auto;
    z-index: 999;
}
.cp-style3.cp-click{
    width: 560px;
}
.cp-style3 .cp-control{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
}
.cp-style3 .cp-control img{
    margin-top: -5px;
    width: 25px;
    transition: transform .5s;
}
.cp-style3 .cp-control img:hover{
    transform: scale(1.2);
}
.cp-style3 .cp-control .cp-btn{
    display: inline-block;
    position: fixed;
    padding: 8px 7px;
    bottom: 8px;
    left: 0;
    right: 0; 
    margin: 0 auto;   
    height: 50px;
    width: 50px;
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(12, 12, 12, 0.3);
    cursor: pointer;
    z-index: 9;
}
.cp-style3 .cp-control .cp-btn:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease-in-out, visibility .5s ease-in-out;
    background-position: center center;
    background-size: 29px;
    background-repeat: no-repeat;
    background-image: url('../../img/cp-icon/cp-chaticon.png');
}
.cp-style3 .cp-control .cp-btn:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hiddden;
    transition: opacity .5s ease-in-out, visibility .5s ease-in-out;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 18px;
    background-image: url('../../img/cp-icon/cp-close.png');
}
.cp-style3 .cp-control .cp-btn.open:after{
    opacity: 0;
    visibility: hiddden;
    transition: opacity .5s ease-in-out, visibility .5s ease-in-out;
}
.cp-style3 .cp-control .cp-btn.open:before{
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease-in-out, visibility .5s ease-in-out;
}
.cp-style3 .cp-control .cp-right{
    list-style: none;
    position: fixed;
    padding: 0 15px 0 35px;
    bottom: 10px;
    left: 300px;
    right: 0;
    margin: 0;
    margin-left: -25px;
    margin: 0 auto;  
    width: 300px;
    height: 45px;  
    border-radius: 20px;
    box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.2); 
    z-index: 1;
}
.cp-style3 .cp-control .cp-right li{
    display: inline-block;
    height: 100%;
    padding: 10px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px;
    opacity: 0;
}
.cp-style3 .cp-control .cp-left{
    position: fixed;
    padding: 0 35px 0 15px;
    bottom: 10px;
    left: 0;
    right: 300px;
    margin: 0;
    margin-right: -25px;
    margin: 0 auto;
    width: 300px;
    height: 45px;
    border-radius: 20px;
    box-shadow: 0px 2px 20px 2px rgba(0, 0, 0, 0.2);
    list-style: none;
    z-index: 1;
}
.cp-style3 .cp-control .cp-left li{
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px;
    height: 100%;
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    opacity: 0;
}
.cp-style3 .cp-control .cp-right, 
.cp-style3 .cp-control .cp-left{
    opacity: 0;
    visibility: hidden;
}
.open .cp-right{
    animation-name: rightslide;
    animation-duration: .5s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}
.open .cp-left{
    animation-name: leftslide;
    animation-duration: .5s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}
.open .cp-right li:nth-child(1),
.open .cp-right li:nth-child(3),
.open .cp-right li:nth-child(5), 
.open .cp-left li:nth-child(2),
.open .cp-left li:nth-child(4){
    animation-name: fadeIn;
    animation-duration: .3s;
    animation-delay: .4s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
}
.open .cp-right li:nth-child(2),
.open .cp-right li:nth-child(4), 
.open .cp-left li:nth-child(1),
.open .cp-left li:nth-child(3),
.open .cp-left li:nth-child(5){
    animation-name: fadeIn;
    animation-duration: .3s;
    animation-delay: .5s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
}

@keyframes 
rightslide{  
    from{
        opacity: 0;
        visibility: hidden;
        transform: translate(-30%, 0);
    }
    to{
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0);
    }
}

@keyframes 
leftslide{  
    from{
        opacity: 0;
        visibility: hidden;
        transform: translate(30%, 0);
    }
    to{
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0);
    }
}

@keyframes 
fadeIn{  
    from{
        opacity: 0;
    }

    to{ 
        opacity: 1; 
    }
}


/* Media Css for Smaller Device */
@media(max-width: 600px){

    .cp-style3 .cp-control .cp-right li,
    .cp-style3 .cp-control .cp-left li{
        padding: 10px 0;
    }
    .cp-style3 .cp-control img{
        width: 20px;
    }
    .cp-style3 .cp-control .cp-right{
        left: 173px;  
        width: 173px;
    }
    .cp-style3 .cp-control .cp-left{
        right: 173px;  
        width: 173px;
    }
}