.chat {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 15px;
	z-index:9990;	
	box-sizing: border-box;	
}

.chat-inactive {
	display: none;
}

.chat-window {
	width: 320px;
	height: 450px;
	display: none;
}

.chat .inactive-wrap {
	text-align: right;
}

.chat .inactive {
	position: relative;
	display: inline-block;
}

.chat .inactive .icon {
	display: inline-block;
	line-height: 1;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0px 0px 15px #aaa;
    background: #7b2a90;;
    overflow: hidden;
}

.chat .inactive .icon img {
	display: block;
	height: 30px;
	padding: 10px;
}

.chat .inactive .label {
	position: absolute;
	white-space: nowrap;
	bottom: 21px;
	background: #7b2a90;
	bottom: 18px;
	display: block;
	border-radius: 15px;
	border: 1px solid white;
	padding: 3px 15px 3px 50px;
	color: white;
	left: 15px;
	z-index: -1;	
}

.chat .inactive i {
    color: #7b2a90;
}

.chat-wrap {
	position: relative;
	width: 100%;
	height: 100%;	
	background: white;
	box-shadow: 0px 0px 15px #aaa;	
}

.chat-header {
	position: absolute;
	width:100%;
	padding: 5px 15px;
	background: #7b2a90;
	color: white;	
	z-index: 1;
	box-sizing: border-box;	
}

.chat-main-wrap {
	position: relative;
	height: 100%;
	padding: 35px 0 76px 0;
	background: #ebeef0;
	box-sizing: border-box;
}

.chat-main {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0 15px 15px 15px;
	overflow: auto;
	box-sizing: border-box;
}

.chat-main .chat-item {
	padding: 5px;
	border-radius: 5px;
	margin-bottom: 5px;
}


.chat-main .chat-intro {
	display: none;
}

.chat-main .chat-item small {
	display:block;
}

.chat-main .chat-q {
	background: white;
}

.chat-main .chat-a {
	margin-left: 25px;
}

.chat-input {
	position: absolute;
	bottom: 0;
	width: 100%;
}

.chat-input > div {
	position: relative;
	width: 100%;
	height: 100%;
}

.chat-input textarea {
	display: block;
	border: 0;
	width: 100%;
	height: 76px;
	padding: 10px;
	border: 1px solid #ebeef0;
	resize: none;
	padding-right: 50px;
}

.chat-input button {
	position: absolute;
	cursor: pointer;
	top: 0;
	right: 0;
	height: 100%;
	width:50px;
	background: none;
	border: 0;
}

.chat-input button img {
	width: 30px;
}

.chat .close {
    position: absolute;
    right: -18px;
    left: auto;
    top: -18px;
    display: block;
    overflow: visible;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    text-decoration: none;
    outline: 0;
    background: #7b2a90;
    border: 0;
    border-radius: 50%;
    color: white;
    z-index: 999;
}

.chat .close::before {
    font-family: Arial;
    font-size: 35px;
    line-height: 35px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 35px;
    content: "\00d7";
    text-align: center;
}

.chat .close:hover, .chat close:focus {
    color: white;
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}



@media (max-width: 768px) { 
	
	.chat-window {
		padding: 0;
		width: 100%;
		height: 100%;
		display: none;
	}

	.chat-window .remodal-close {
		top: 5px;
		right: 5px;
	}

	.chat .close {		
		top: -1px;
		right: 0;
	}

	.chat .inactive .label {
		display: none;
	}
}