/*

====================================================
* 	[Master Stylesheet]
	
	Theme Name :  CERAM
	Version    :  1.1
	Author     :  Ceram Graphic
	Author URI :  http://ceram-graphic.ir

====================================================


*/

.main-section{
    /*width: 439px;*/
    position: fixed;
    /*right: -102px;*/
    bottom: -400px;
    border-top-right-radius: 5mm;
    border-top-left-radius: 5mm;
    z-index: 1000000 !important;
    padding-top: 10px !important;
    padding-right: 0px!important;
}
.first-section{
    background-color: #188801;
    border-top-right-radius: 5mm;
    border-top-left-radius:5mm;
    height: 40px!important;
}

.first-section p{
    color:#fff;
    margin:0px;
    padding: 8px 0px;
}

.first-section p:hover{
    color:#fff;
    cursor: pointer;
}

.right-first-section{
    text-align: right !important;
    color:#fff !important;
    font-size: 15px !important;
    padding: 12px 3px !important;
}

.right-first-section i:hover{
    color:#fff;
}

.first-section:hover{
    cursor: pointer;
}
.open-more{
    bottom:0px;
    transition:0.7s;

}
.close-more{
    bottom: -400px;
    transition:0.7s;

}
#openchatboxballon {
    transition:0.7s;
}
.border-chat{
    border:1px ;
    margin: 0px;
    border-top-right-radius: 5mm;
    border-top-left-radius:5mm;

}
.chat-section ul li{
    list-style: none;
    margin-top:10px;
    position: relative;
    width: 100%;
}
.chat-section{

    overflow-y:scroll;
    height:300px;
    overflow-x: hidden;
}
.chat-section ul{
    padding: 0px;
}
.second-section{
    padding: 0px;
    margin: 0px;
    background-color: #F3F3F3;
    height: 300px;
}
.left-chat,.right-chat{
    overflow: hidden;
    width: 25%;
}
.left-chat p,.right-chat p{
    background-color:#FD8468;
    padding: 10px;
    color:#fff;
    border-radius: 5px;
    float:left;
    width:60%;
    margin-bottom:20px;
}
.left-chat span,.right-chat span{
    position: absolute;
    left:70px;
    top:60px;
    color:#B7BCC5;
}
.right-chat span{
    left:45px;
}
.right-chat p{
    float:right;
    background-color: #FFFFFF;
    color:#FD8468;
}

.third-section{
    border-top: 1px solid #EEEEEE;
}
.text-bar input{
    width:20%;
    margin-left:-15px;
    padding:10px 10px;
    border:1px solid #fff;
}
.text-bar a i{
    background-color:#FD8468;
    color:#fff;
    width:20px;
    height:30px;
    padding:7px 0px;
    border-radius: 50%;
    text-align: center;
}

.chatli{
    margin-bottom: 5px;
    overflow: hidden;
}

.userchouter .chatli {
    display: flex;
    flex-flow: row nowrap;
}

.custommerchouter .chatli {
    display: flex;
    flex-flow: row-reverse nowrap;
}

.txtmsg{
    width: 100%;
    float: left;
    border-style: solid;
    resize: none;
    margin-bottom: 1%;
    height: 43px;
    border-radius: 5px;
    text-align: right;
    font-size: small;
    color: #292929;
}



/*custommerch css*/


.custommerch{
    float: right;
    color : #000000;
    width: 100%;
    background-color: #dfeecf;
    border-radius: 5px;
    /* box-shadow: 0 0 6px #B2B2B2; */
    display: inline-block;
    padding: 8px 19px;
    position: relative;
    vertical-align: top;
    margin: 0px 3px;
    border-color: #cdecb0;
    word-break: break-all;
    text-align: right;
    font-size: small;
}

.custommerch::before {
    float:right;
    color : #000000;
    background-color: #dfeecf;
    content: "\00a0";
    display: block;
    height: 19px;
    /*position: absolute;*/
    position:relative;
    left: 26px;
    top: 1px;
    transform:         rotate( 205deg ) skew( -35deg );
    -moz-transform:    rotate( 205deg ) skew( -35deg );
    -ms-transform:     rotate( 205deg ) skew( -35deg );
    -o-transform:      rotate( 205deg ) skew( -35deg );
    -webkit-transform: rotate( 205deg ) skew( -35deg );
    width:  20px;
    /*box-shadow: -2px 2px 2px 0 rgba( 178, 178, 178, .4 );*/
}

/*userch css*/

.custommerchouter{
    padding-left: 10px!important;
}

.userchouter{
    padding-right: 10px !important;
}


.userch::before {
    background-color: #b9deda;
    color : #000000;
    content: "\00a0";
    display: block;
    height: 16px;
    position: absolute;
    top: 11px;
    transform:         rotate( 29deg ) skew( -35deg );
    -moz-transform:    rotate( 29deg ) skew( -35deg );
    -ms-transform:     rotate( 29deg ) skew( -35deg );
    -o-transform:      rotate( 29deg ) skew( -35deg );
    -webkit-transform: rotate( 29deg ) skew( -35deg );
    width:  20px;
    /*box-shadow: -2px 2px 2px 0 rgba( 178, 178, 178, .4 );*/
    left: -9px;
}

.userch{

    background-color: #b9deda;
    color : #000000;
    border-radius: 5px;
    box-shadow: 0 0 6px #B2B2B2;
    display: inline-block;
    padding: 10px 17px;
    position: relative;
    vertical-align: top;
    margin: 0px 4px;
    border-color: #cdecb0;
    width: 100%;
    word-break: break-all;
    font-size: small;



}

.listchat{
}


.loader {
    border: 5px solid #3498db;
    border-radius: 50%;
    border-top: 5px solid #ffffff;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.cancelsndfile{
    height: 30px!important;
    background-color: transparent !important;
    background-image: url("../images/close.png") !important;
    background-repeat: no-repeat!important;
    background-position: center!important;
    background-size: 30%;
    position: absolute;
    top: 5px!important;
    left:  214px;
    color: transparent!important;
    z-index: 1000000;
}
.tt{
    height: 45px!important;
    width: 15%;
    background-color: transparent !important;
    background-image: url("../../assetsOld/images/paperpin.png") !important;
    background-repeat: no-repeat!important;
    background-position: center!important;
    background-size: 40%;
    font-size: 16px !important;
    color: transparent!important;
    z-index: 1000000;
}

.tt :hover {
    cursor: pointer!important;
}

input[type="file"] {
    display: none !important;
}

.downloadfileitem
{
    display: block !important;
    height: 30px!important;
    background-color: transparent !important;
    background-image: url("../../achat/image/download.png") !important;
    background-repeat: no-repeat!important;
    background-position: center!important;
    background-size: 20%;
    border-style: solid!important;
    color: transparent!important;
}
.divleft{
    text-align: left!important;
}
.divright{
    text-align: right!important;
}
.dirltr{
    direction: ltr!important;
}
.dirrtl{
    direction: rtl!important;
}

.hasborder{
    border-style: solid;
    border-width: 2px;
}

.nopadding{
    padding: 0px!important;
}


.chatavatarcustommer {
    width: 40px;
    height: 40px;
    display: block;
    margin: auto;
}

.chatavataruser {
    width: 40px;
    height: auto;
    display: block;
    margin-right: auto;
}


.visitorAll{
    height: 360px;
    margin-top: 40px;
    background-color: #d1d1d1;
    border-bottom: solid;
    border-left: solid;
    border-top: solid;
    border-right:none ;
    border-width: 1px;
    padding-top: 30px;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    color: white;
    overflow-x: hidden;
    text-align: center;

}
.visitordiv{
    background-color: #2b542c;
    overflow: hidden;
    border-radius: 50%;
    margin-top: 2px;
}
.visitorspan{
    font-size: 10px;margin-top: -20px
}

.visitoravatar
{
    height: 40px;width: 40px
}
.floatleft{
    float: left!important;
}
.floatright{
    float: right!important;
}

.downloaddiv {
    width: 75%;
}

.chatmaxminbtn{
    margin-top: 5px!important;
    font-size: 1.5em!important;
    color: #eaeaea !important;
    margin-top: 10px!important;
}

.sndmsgsection{
    background-color: #fff !important;
    overflow: hidden!important;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}
.snd_msg_button{
    background-image: url("/assets/images/send_message.png") !important;
    background-repeat: no-repeat!important;
    background-position: center!important;
    background-size: 20%!important;
    height: 48px !important;
    position: absolute!important;
}

.openChatBox {
    z-index: 100000;
    position: fixed;
    right: 5px;
    bottom: 5px;
}

.openChatBox > div img {
    width: 50px;
    height: 50px;
}

