#qechaticon{
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 60px;
	height: 60px;
	box-shadow: 0px 0px 18px 3px rgba(0, 0, 0, 0.35);
	border-radius: 30px;
	background: #fff;
	z-index: 1000;
}
@media (max-width: 600px ){
	#qechaticon{
		bottom: 30px;
		right: 30px;
	}
}
#qechaticon a img{
	display: block;
	border-radius: 30px;
}

#qechaticon #closechaticon{
	display: none;
}
#qechaticon #showchaticon{
	display: block;
	width: 100%;
	height: 100%;
}

#qechaticon.qechatboxshown #closechaticon{
	display: block;
	width: 100%;
	height: 100%;
}
#qechaticon.qechatboxshown #showchaticon{
	display: none;
}

#qechaticon.qechatboxshown span.chatcount,
#qechaticon.qechatboxshown span.firstchat{
	display: none !important;
}

#qechatbox{ 
    width: 350px;
	height: 500px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 7px 6px 1px rgba(0,0,0,.16);
	border-radius: 10px;
	position: fixed;
	bottom: 110px;
	right: 30px;
	z-index: 999999;
	background: #fff;
	display: none;
}

#qechatbox #chathead{
    background: #6f1113;
    height: 56px;
    color: #fff;
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
}
#qechatbox #chatheadlogo{
    background: url(../images/logo.jpg) no-repeat;
    background-size: 100% 100%;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 14px;
    margin-left: 20px;
}
#chathead #chatheadtext{
    margin-left: 20px;
    font-size: 20px;
}

#chathead #chatheadtext img{
	width: auto;
	height: auto;
}
#qechatbox #qechattextbox{ 
    display: flex; 
    flex-grow: 1; 
    align-items: center;
    max-height: 50px;
    padding: 10px; 
    flex-direction: row;
    min-height: 40px;
    border-top: 1px solid #e7ebee;
}

#qechatbox #qechatbody{ 
    flex-grow: 1; 
    flex-direction: column;
    overflow: auto;
    height: 77%;
	overflow-x: hidden;
}

@media (max-height: 545px ){
	#qechatbox #qechatbody{ 
		height: 70%;
	}
}
@media (max-height: 425px ){
	#qechatbox #qechatbody{ 
		height: 62%;
	}
}
#qechattextbox input[type="text"]{ 
    display: flex; 
    flex-grow: 1;
    border: none;
	font-size: 18px;
}
#qechattextbox input[type="button"]{ 
    max-width: 100px;
    margin-right: 10px;
    background: #fff url(../images/send.png) no-repeat;
    width: 30px;
    height: 30px;
    border: none;
    text-indent: -9999px;
    cursor: pointer;
    background-position: center -36px;
}

#qechattextbox input[type="button"]:hover{
    background-position: center 5px;
}

.qe-chat-message{
    padding: 10px 10px 10px 10px;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    min-height: 32px;
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: center left;
}
.qe-chat-message .chat-avatar{
    width: 28px;
    height: 28px;
    border-radius: 14px;
    margin-left: 12px;
    background-size: 100% 100% !important;
    background-position: center center !important;
    border: 1px solid #aaa;
}
.qe-chat-message .chat-text{
    margin-left: 20px;
    width: 80%;
	font-family: sans-serif;
}
.qe-chat-message.bot-message .chat-avatar{
    background: url(../images/logo.jpg) no-repeat;
}

.qe-chat-message.user-message{
    flex-direction: row-reverse;
}

.qe-chat-message.user-message .chat-text{
    background: #6f0f13;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
}
.qe-chat-message.user-message .chat-avatar{
    background: url(../images/avatar.png) no-repeat;
}

.qe-chat-message.message-choices{
	padding-top: 0;
	width: 80%;
  	margin-left: 25px;
}

.qe-chat-message.message-choices a{
	padding: 5px;
	border: 1px solid #6f1113;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: 8px;
	border-radius: 10px;
	font-size: 14px;
}

.qe-chat-message.message-choices a:hover{
	background: #6f1113;
	color: #fff;
}

.qe-chat-message #upload_photos{
	margin-top: 10px;
}

.qe-chat-message #upload_photos a{ 
	display: inline-block;
	padding: 5px 10px;
	background: #6f0f13;
	color: #fff;
	border-radius: 5px;
}

#qe-loading{
    text-align: center;
    margin-top: 100px;
}
#qe-chat-loading{
    background: url(../images/loading.gif) no-repeat;
    background-position: 40px center;
    min-height: 40px;
}
#qechattextbox input[type="text"]:focus{
    outline: 0;
}

#qechatbox #chathead #closechat{
	position: absolute;
	right: 20px;
	font-size: 22px;
	cursor: pointer;
}

#qechatbox #chathead #chatoptions{
	position: absolute;
	right: 10px;
	font-size: 22px;
	cursor: pointer;
	display: inline-block;
}

#qechatbox #chathead #chatoptions #chatoptionbtn{
	width: 12px;
    display: inline-block;
    overflow: hidden;
    margin-right: 10px;
	margin-top: 10px;
}

#qechatbox #chathead #chatoptions #chatoptionbtn:after{
	content: '\2807';
  	font-size: 35px;
}

#qechatbox #chathead #chatoptions #chatoptionchoices{
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid #aaa;
	width: 120px;
	top: 42px;
	right: 10px;
}

#qechatbox #chathead #chatoptions #chatoptionchoices ul{
	margin: 0;
	padding: 0;
}

#qechatbox #chathead #chatoptions #chatoptionchoices ul li{
	list-style-type: none;
}
#qechatbox #chathead #chatoptions #chatoptionchoices ul li:hover{
	background-color: #f2f2f2;
}

#qechatbox #chathead #chatoptions #chatoptionchoices ul li:first-child{
	border-bottom: 1px solid #aaa;
}

#qechatbox #chathead #chatoptions #chatoptionchoices ul li a{
	font-size: 16px;
	padding: 5px;
	display: inline-block;
	width: 100%;
}

#qechaticon .firstchat{
	position: absolute;
	background: #fff;
	font-size: 16px;
	padding: 5px 10px;
	width: 250px;
	left: -260px;
	bottom: 0px;
	border-radius: 10px;
	box-shadow: 0 2px 10px 2px rgba(0,0,0,.40);
	cursor: pointer;
}

#qechaticon .firstchat .closefirstchatpopup{
	position: absolute;
	top: 6px;
	padding: 1px 8px 3px;
	border-radius: 14px;
	line-height: 20px;
	background: #b11b1e;
	left: -30px;
	display: block;
	font-size: 20px;
}
#qechaticon .firstchat .closefirstchatpopup a{
	display: block;
	color: #fff;
}
#qechaticon .chatcount{
	background: red;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	padding: 0px 9px 0px 8px;
	border-radius: 12px;
	position: absolute;
	top: -8px;
	right: -4px;
}

.system-message{
	background: #fff3c4;
	text-align: center;
	display: block;
}

.system-message .system-text{
	text-align: center;
}

div.qe-chat-message.agenttyping{
	font-size: 13px;
	color: #aaa;
}

#qedropzone{
	border: 1px dashed rgba(0,0,0,.3);
  	padding: 5px;
}

.dropzone#qedropzone .dz-preview{
	border: 1px solid #f2f2f2;
	padding: 2px;
	overflow: hidden;
	margin: 5px;
}

.dropzone#qedropzone .dz-preview .dz-image{
	width: 100px;
	height: 100px;
}

.chat-photos a{
	display: inline-block;
	border: 1px solid #f2f2f2;
	margin-left: 10px;
	padding: 5px;
}

.chat-photos a img{
	width: 80px;
	height: 80px;
}

.qe-chat-message .chat-text a{
	text-decoration: underline;
}

#qenophotos{
	font-size: 15px;
	font-weight: 400;
	background: none;
	color: #6f1113;
	border: 1px solid #6f1113;
	border-radius: 3px;
}