#closeopen {
	position: absolute;
	top:10px;
	right: 10px;
}

#closeopen2 {
	position: absolute;
	top:10px;
	right: 10px;
}
.cons_open {background: #64a1c8; color: #FFF; text-align: center; padding:4px 7px; text-decoration: none; font-weight: bold; border-radius: 30px;
		position:fixed; top: 300px; right:0px;
		z-index: 100000;
} 
#close:hover { background: #fff36b; color: #000000; }

#consult {position:fixed; right:0;bottom:0;  background: rgba(0,0,0,0.0); z-index: 99999;-webkit-transition: opacity 400ms ease-in; -moz-transition: opacity 400ms ease-in; transition: opacity 400ms ease-in; display:none; }
/*.modalDialog:target { display:block; pointer-events: auto; } */
/* pointer-events:none; */
 
#consult > div {width: 300px;
	background: #fff;
	height: auto;
	position:absolute;
	bottom:0px;
	z-index: 99999;

}

.zagolovokmodal{font-weight: bold; font-size:20px;}
.textmodal{font-size:14px;}


.chat_block {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 300px;
	height: 380px;
	/*border: 1px solid #006d9a;*/
	box-sizing: border-box;
	-webkit-box-shadow: -1px -2px 37px -10px rgba(196,196,196,1);
	-moz-box-shadow: -1px -2px 37px -10px rgba(196,196,196,1);
	box-shadow: -1px -2px 37px -10px rgba(196,196,196,1);
    margin-right: 20px;
    z-index:-1;
    padding-top:10px;

}

.cons_button {
	position: fixed;
	bottom:0;
	right: 20px;
	width: 300px;
 	height: 40px;
 	background-color: #002c3e;
 	vertical-align: top;
 	border-radius: 35px 0 0 0;
 	-webkit-box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
	-moz-box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
	box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
	z-index: 999;
}

.cons_close{
	background-image: url(images/close.png);
	height: 25px;
	width: 25px;
}

.head_chat{
	width: 300px;
 	height: 68px;
 	background-color: #002c3e;
 	vertical-align: top;
 	border-radius: 35px 0 0 0;
 	-webkit-box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
	-moz-box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
	box-shadow: -1px -2px 37px 2px rgba(196,196,196,1);
    transform: translateY(-20px);
}

.chat_photo {
	background-image: url(/images/kons.png); 
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	height: 50px;
	width: 50px;
	border-radius: 50%;
	margin-left: 13px;
	margin-top: 10px;
	display: inline-block;
}
.hello_people {
	color: #a9d4e6;
	display: inline-block;
	width: 70%;
	float: right;
	margin-top: 15px;
    margin-right: 10px;
}


#messages{
	box-sizing: border-box;
	margin: 0 auto;
    	width: 93%;
    	height:250px;
    	overflow:auto;
    	border:none;
    	margin-bottom: 15px;
}
.konsultant {
	background-color: #a9d4e6;
	color: #000;
	padding: 10px;
	width: 75%;
	margin-bottom: 10px;
	box-sizing: border-box;
	position: relative;
	float:right;
}
.konsultantnewmsg {
	background-color: #ff1612;
	color: #fff;
	padding: 10px;
	width: 75%;
	margin-bottom: 10px;
	box-sizing: border-box;
	position: relative;
	float:right;
}
/*.konsultant::after {
    content: ''; 
    position: absolute;
    right: -15px; top: 5%;
    border: 5px solid transparent;
    border-left: 20px solid #a9d4e6;
}
*/
.klient {
	background-color: #006d9a;
	color: #fff;
	padding: 10px;
	width: 75%;
	margin-bottom: 10px;
	box-sizing: border-box;
	float:left;
}
/*.klient::after {
    content: ''; 
    position: absolute;
    right: -30px; top: 5%;
	border: 10px solid transparent;	
	border-right: 10px solid #006d9a;
}*/

#name_to_send{

	padding: 10px;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #002c3e;
	margin-bottom: 10px;
}
#mess_to_send {

	padding: 10px;
	box-sizing: border-box;
	width: 90%;
	border: 1px solid #002c3e;
}

.mes_block{
	position: relative;
	margin: 10px;
}
.sent {
	position: absolute;
	border: none;
	right: 0;
	bottom: 0;
	background: url(/images/sent.jpg) no-repeat;
	height: 37px;
	width: 31px;
}

