/* Mobile always first */
.live-chat {
    position: fixed;
    width: 200px;
    height: 150px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
}
.live-chat img {
	max-width: 75%;
}
.live-chat div {
	position: fixed;
    right: 7px;
    width: 90px;
    height: 90px;
    background-color: #387ec4;
    border-radius: 50%;
    bottom: 1px;
}
.live-chat div img {
	max-width: 54%;
    margin: 22px;
}

.live-chat-engage {
	width: 290px;
	height: 200px;
	position: fixed;
	right: 22px;
	bottom: 23px;
	display: none;
	z-index: 1;
}
.live-chat-engage div.text, .live-chat-engage-opened {
    font-family: 'Lato', sans-serif !important;
}
.live-chat-engage div.text {
    background: #2095F2;
    width: 192px;
    font-size: .9em;
    text-align: center;
    padding: .7rem;
    border-radius: 5px;
    position: absolute;
    bottom: 41px;
}
.live-chat-engage div:not(.text) {
	position: relative;
	height: 213px;
}
.live-chat-engage div:not(.text) img {
    position: absolute;
}
img.icon-rep {
	max-width: 64px;
    border-radius: 50%;
    right: 0;
    bottom: 41px;
}
.live-chat-engage:hover {
	cursor: pointer;
}
.live-chat-engage-opened {
	background-color: rgba(0,0,0,.65);
	width: 350px;
	height: 400px;
	position: fixed;
    right: 0px;
    bottom: 23px;
    border-radius: 1rem;
    display: none;
    z-index: 1;
}
.live-chat-engage-opened div.header {
	font-size: 13px;
    text-align: center;
    padding: 1rem 0 2rem;
}
.live-chat *, .live-chat-engage *, .live-chat-engage-opened * {
	color: white;
}
.live-chat-engage-opened div.header span {
	text-align: right;
	padding: 1rem;
	cursor: pointer;
	position: absolute;
    right: 2px;
    top: 0;
}
.live-chat-engage-opened div.body {
	padding-left: 1rem;
}
.live-chat-engage-opened div.body div:nth-child(1) {
	width: 70%;
	float: left;
}
.live-chat-engage-opened div.body > div:nth-child(2) {
	width: 30%;
	float: right;
}
.live-chat-engage-opened div.body > div:nth-child(2) img {
	max-width: 52px;
	right: 15px;
   	position: absolute;
}
.live-chat-engage-opened div.body div:nth-child(1) span.agent-name {
	position: absolute;
    padding-left: 7px;
    font-size: 16px;
    font-weight: bolder;
}
.live-chat-engage-opened div.body div:nth-child(1) span.agent-pos {
	position: absolute;
    padding-top: 19px;
    padding-left: 7px;
    font-size: 12px;
}
.live-chat-engage-opened div.body > div:nth-child(3) {
	float: left;
    width: 95%;
    margin-top: 20px
}
.live-chat-engage-opened div.body > div:nth-child(3) span:nth-child(1) {
	opacity: 0.5;
    font-size: 12px;
    font-weight: 300;
    padding-bottom: 2px;
    display: block;
}
.live-chat-engage-opened div.body > div:nth-child(3) span:nth-child(2) {
	color: #5A6975;
    background: #fff;
    border-radius: 1.3rem 1.4rem 1.4rem .3rem;
    padding: .9rem 1.1rem;
    width: auto;
    display: inline-block;
    margin-bottom: .125rem !important;
}
div.footer-chat {
	float: left;
    position: absolute;
    bottom: 36px;
    width: 93%;
    padding: 0 12px;
}
div.footer-chat button {
	background: #387ec3;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
div.init-chat	{
	background: white;
    margin: 0 2rem;
    border-radius: 6px;
}
div.init-chat div.form {
	text-align: center;
    padding-top: 60px;
}
div.init-chat div.form img {
	max-width: 80px;
}
div.init-chat div.form p {
	color: #5A6976;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}
div.init-chat label {
	font-size: 12px;
   	font-weight: 300;
   	color: #5A6976;
}
div.init-chat div.form input {
    border: 1px solid #C7D1D9;
    border-radius: 3px;
    background-clip: padding-box;
    background-color: #fff;
    padding: 8px 6px;
    width: 95%;
}
div.init-chat div.form div:not(input) {
	text-align: left;
	padding: 0 1rem;
}
div.init-chat div.form div:nth-child(2) {
	margin-top: 1.1rem;
}
div.init-chat div.form div:nth-child(3) {
	background: #387ec3;
    margin-top: 2rem;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    text-align: center;
    cursor: pointer;
}
div.init-chat div.form div:nth-child(3) button {
	background: transparent;
    border: 0;
    padding: 1rem;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}
@media only screen and (min-width: 1024px) {
	.live-chat {
	    position: fixed;
	    width: 200px;
	    height: 150px;
	    right: 22px;
	    bottom: 22px;
	}
	.live-chat img {
		max-width: 74%;
	}
	.live-chat div {
		position: fixed;
	    right: 7px;
	    width: 70px;
	    height: 70px;
	    background-color: #387ec4;
	    border-radius: 50%;
	    bottom: 1px;
	}
	.live-chat div img {
		max-width: 45%;
	    margin: 19px;
	}
	.live-chat-engage {
		width: 290px;
		height: 200px;
		position: fixed;
		right: 22px;
		bottom: 23px;
		display: none;
	}
	.live-chat-engage div.text, .live-chat-engage-opened {
	    font-family: 'Lato', sans-serif !important;
	}
	.live-chat-engage div.text {
	    background: #2095F2;
	    width: 192px;
	    font-size: .9em;
	    text-align: center;
	    padding: .7rem;
	    border-radius: 5px;
	    position: absolute;
	    bottom: 41px;
	}
	.live-chat-engage div:not(.text) {
		position: relative;
		height: 213px;
	}
	.live-chat-engage div:not(.text) img {
	    position: absolute;
	}
	img.icon-rep {
		max-width: 64px;
	    border-radius: 50%;
	    right: 0;
	    bottom: 41px;
	}
	.live-chat-engage:hover {
		cursor: pointer;
	}
	.live-chat-engage-opened {
		background-color: rgba(0,0,0,.65);
		width: 336px;
		height: 540px;
		position: fixed;
	    right: 21px;
	    bottom: 23px;
	    border-radius: 1rem;
	    display: none;
	}
	.live-chat-engage-opened div.header {
		font-size: 13px;
	    text-align: center;
	    padding: 1rem 0 2rem;
	}
	.live-chat *, .live-chat-engage *, .live-chat-engage-opened * {
		color: white;
	}
	.live-chat-engage-opened div.header span {
		text-align: right;
		padding: 1rem;
		cursor: pointer;
		position: absolute;
	    right: 2px;
	    top: 0;
	}
	.live-chat-engage-opened div.body {
		padding-left: 1rem;
	}
	.live-chat-engage-opened div.body div:nth-child(1) {
		width: 70%;
		float: left;
	}
	.live-chat-engage-opened div.body > div:nth-child(2) {
		width: 30%;
		float: right;
	}
	.live-chat-engage-opened div.body > div:nth-child(2) img {
		max-width: 52px;
		right: 15px;
    	position: absolute;
	}
	.live-chat-engage-opened div.body div:nth-child(1) span.agent-name {
		position: absolute;
	    padding-left: 7px;
	    font-size: 16px;
	    font-weight: bolder;
	}
	.live-chat-engage-opened div.body div:nth-child(1) span.agent-pos {
		position: absolute;
	    padding-top: 19px;
	    padding-left: 7px;
	    font-size: 12px;
	}
	.live-chat-engage-opened div.body > div:nth-child(3) {
		float: left;
	    width: 95%;
	    margin-top: 20px
	}
	.live-chat-engage-opened div.body > div:nth-child(3) span:nth-child(1) {
		opacity: 0.5;
	    font-size: 12px;
	    font-weight: 300;
	    padding-bottom: 2px;
	    display: block;
	}
	.live-chat-engage-opened div.body > div:nth-child(3) span:nth-child(2) {
		color: #5A6975;
	    background: #fff;
	    border-radius: 1.3rem 1.4rem 1.4rem .3rem;
	    padding: .9rem 1.1rem;
	    width: auto;
	    display: inline-block;
	    margin-bottom: .125rem !important;
	}
	div.footer-chat {
		float: left;
		position: absolute !important;
    	left: inherit !important;
		top: inherit !important;
	    position: absolute;
	    bottom: 36px;
	    width: 93%;
	    padding: 0 12px;
	}
	div.footer-chat button {
		background: #387ec3;
	    width: 100%;
	    padding: 12px;
	    border: 0;
	    border-radius: 6px;
	    font-size: 14px;
	    cursor: pointer;
	}
	div.init-chat	{
		background: white;
	    margin: 0 2rem;
	    border-radius: 6px;
	}
	div.init-chat div.form {
		text-align: center;
	    padding-top: 60px;
	}
	div.init-chat div.form img {
		max-width: 80px;
	}
	div.init-chat div.form p {
		color: #5A6976;
	    font-size: 14px;
	    line-height: 20px;
	    text-align: center;
	    padding-left: 10px;
	    padding-right: 10px;
	}
	div.init-chat label {
		font-size: 12px;
    	font-weight: 300;
    	color: #5A6976;
	}
	div.init-chat div.form input {
	    border: 1px solid #C7D1D9;
	    border-radius: 3px;
	    background-clip: padding-box;
	    background-color: #fff;
	    padding: 8px 6px;
	    width: 95%;
	}
	div.init-chat div.form div:not(input) {
		text-align: left;
		padding: 0 1rem;
	}
	div.init-chat div.form div:nth-child(2) {
		margin-top: 1.1rem;
	}
	div.init-chat div.form div:nth-child(3) {
		background: #387ec3;
	    margin-top: 2rem;
	    border-bottom-left-radius: 6px;
	    border-bottom-right-radius: 6px;
	    text-align: center;
	    cursor: pointer;
	}
	div.init-chat div.form div:nth-child(3) button {
		background: transparent;
	    border: 0;
	    padding: 1rem;
	    width: 100%;
	    cursor: pointer;
	    font-size: 14px;
	}
}
