.htmlchatframe, .htmlchatframe body {
    background-color: #f9f9f9;
    background-image: url('') !important;
    @import url('https://fonts.googleapis.com/css?family=Ubuntu');
    font-family: 'Ubuntu', "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;

}

.htmlchatframe{
	margin-top: 0px !important;
	background-color: white !important;
}

#chatAutoFrame {
    max-height:none !important;
}

/* M E S S A G E S */
#messageArea {
    
    /*border-bottom: solid 1px #d8d5d5;*/
	overflow: hidden;
}

.chat {
    list-style: none;
    background: none;
    padding: 0;
    margin: 0;
	font-family: Ubuntu,"Helvetica Neue",Arial,sans-serif;
	height: 340px;
    overflow-y: auto;
}

.chat li {
    padding: 8px;
    padding: 0.5rem;
    font-size: 1.0rem;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    color: #000000;
}

.visitor {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    -ms-grid-row-align: flex-end;
    align-items: flex-end;
}

.visitor .msg {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    border-top-right-radius: 2px;
}

.chatbot .msg {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    border-top-left-radius: 2px;
}

.msg {
    word-wrap: break-word;
    min-width: 50px;
    max-width: 80%;
    padding: 5px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    background: #dae1e7;
}

.msg p {
    color:#000;
    margin: 0 0 0.2rem 0;
	font-size: 14px;
	font-family: 'Ubuntu', "Helvetica Neue", Arial, sans-serif !important;
}

.msg .time {
    font-size: 0.7rem;
    color: #7d7b7b;
    margin-top: 3px;
    float: right;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* I N P U T */

.textarea {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 95%;
    height: 55px;
    z-index: 99;
    background-color: #fff;
    border: none;
    outline: none;
    padding-left: 15px;
    padding-right: 15px;
    color: #000000;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(250,250,250,0.8);
}

.textarea:focus {
   /* background: white;*/
    /*box-shadow: 0 -6px 12px 0px rgba(235,235,235,0.95);*/
    transition: 0.4s;
}

#autoChatRoot {
    background:#FFF;
}

#autoChatRoot a.banner {
    position: fixed;
    bottom: 5px;
    right: 10px;
    height: 12px;
    z-index: 99;
    outline: none;
    color: #777;
    font-size: 10px;
    text-align: right;
    font-weight: 200;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

/* Loading Dot Animation */
div.loading-dots {
    position: relative;
}

div.loading-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    border-radius: 50%;
    background: #196eb4;
    animation: blink 1.4s ease-out infinite;
    animation-fill-mode: both;
}

div.loading-dots .dot:nth-child(2) {
    animation-delay: -1.1s;
}

div.loading-dots .dot:nth-child(3) {
    animation-delay: -0.9s;
}

div.loading-dots .dot-grey {
    background: rgb(120, 120, 120);
}

div.loading-dots .dot-sm {
    width: 6px;
    height: 6px;
    margin-right: 2px;
}

div.loading-dots .dot-md{
    width: 12px;
    height: 12px;
    margin-right: 2px;
}

div.loading-dots .dot-lg {
    width: 16px;
    height: 16px;
    margin-right: 3px;
}

@keyframes blink {
    0%, 100% {
        opacity: 0.2;
    }

    20% {
        opacity: 1.0;
    }
}

#autoChatRoot .btn {
    display: block;
    padding: 5px;
    border-radius: 5px;
    margin: 5px;
    min-width: 100px;
    background-color: #408591;
    cursor: pointer;
    color: white;
    text-align: center;
}

#autoChatRoot.mobile {
    height: 100%;
}

.htmlchatframe #userText{
	height:43px !important;
    padding-right: 0px !important;
	padding-left: 15px !important;
    width: 85% !important;
    background: #f9f9f9 !important;
	margin-bottom: 0px !important;
	border: none !important;
	font-size: 14px !important;
	bottom: 3px !important;
}

.htmlchatframe #userText:focus{
	box-shadow: none !important;
    outline: none !important;
}

.chat li.visitor .msg{
	background: #c7c7c7;
}

.chat_final{
    /*background: #74aa41;*/
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.chat_final{
    color: black !important;
}

.chname{
    color: #5ba0d0;
}


.mobile #userText {
    margin-bottom: 15px;
    width: 85%;
    padding-right: 0px;
    padding-left: 5px;
}
.mobile #userText:focus {
    border:none !important;
    outline: none !important;
}
.mobile #messageArea{
    border-bottom: none !important;
}

.mobile .chat{
    height: calc(100% - 95px) !important;
}

@media only screen and (max-height: 360px) {
	.mobile .chat{
		height: 300px !important;
	}
}

#autoChatRoot .banner{
	display: none;
}

.plane{
	position: absolute;
    z-index: 9999;
    width: 25px;
    right: 10px;
    bottom: 10px;
	cursor: pointer;
}

#autoChatRoot #chatfoot .logo{
	border-bottom: solid 1px #d8d5d5;
	margin: 0px;
    padding-bottom: 0px;
    text-align: center;
}

.chat::-webkit-scrollbar-track{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

.chat::-webkit-scrollbar{
	width: 6px;
	background-color: #F5F5F5;
}

.chat::-webkit-scrollbar-thumb{
	background-color: #b5b5b5;
}

.mobile .plane{
	bottom: 13px;
	position: fixed;
}

.mobile #chatfoot {
	position: fixed;
    width: 100%;
    bottom: 0;
	background: #f9f9f9;
	margin-bottom: 0;
}

.mobile #chatfoot .logo{
	padding-bottom:15px;
}

.chat li.indicator ~ li.indicator{
	display: none;
}

