/*
	Chat popup style
*/

#nanoRepProxyContainer {
	right: 20px !important;
	display: none !important;
}

/*Desktop Version*/
div#chatRequest {
	position: fixed;
	bottom: 0%;
	right: 0px;
	transition: all 0.5s;
	display: block;
	color: white;
	cursor: pointer;
	visibility: visible;
	opacity: 1;
	text-align: center;
	z-index: 1000000;
	width: 80px;
	height: 80px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% auto;
	display: none;
}

div#chatRequest.offline {
	background-image: url("/wp-content/themes/angelsense/images/chat-widget/chat-icon.png");
}

div#chatRequest.online {
	background-image: url("/wp-content/themes/angelsense/images/chat-widget/Call-button.png");
}

div#chatRequest img {
	display: block;
	width: 100%;
	height: auto;
}

div#chatRequest.hide {
	opacity: 0;
	visibility: hidden;
}

body.app div#chatRequest {
	display: none;
}

div#chatRequest div {
	display: block;
	background-color: #fea565;
	position: relative;
	padding-left: 0.5em;
}

div#chatRequest div p {
	font-weight: 600;
}

div#chat_popup {
	position: fixed;
	bottom: -100%;
	right: 20px;
	z-index: 100000000;
	visibility: hidden;
	transition: all 0.5s;
	color: #424443;
	box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.45);
	border-radius: 12px;
}

div#chat_popup.show {
	bottom: 20px;
	visibility: visible;
}

div#chat_popup.open {
	left: 0%;
}

.message.show {
	display: block;
	position: absolute;
	top: 70%;
	left: 1em;
	z-index: 100000000;
	color: black;
	width: 300px;
	color: white;
	font-weight: 700;
}

div#chat_popup a.remove {
	position: absolute;
	top: 0.2em;
	right: 0.2em;
	width: 1em;
	height: 1em;
	z-index: 100000;
	background-color: transparent;
	background-image: url(/wp-content/themes/angelsense/images/chat-widget/x-chat.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% auto;
	padding: 0.7em;
	border-radius: 50%;
	outline: 0;
}

div#chat_popup div.agent {
	display: block;
	padding: 0.5em 1em 0.5em 0.5em;
}

div#chat_popup div.content {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	background-color: rgba(69, 69, 69, 0.95);
	color: white;
	border-radius: 12px;
	padding: 0em 0.5em 0em 0em;
}

div#chat_popup div.agent {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

div#chat_popup div.agent img {
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	width: 75px;
	height: 75px;
}

div#chat_popup div.agent div {
	padding: 0em 0.5em 0em 1em;
}

div#chat_popup div.agent div h2 {
	font-weight: 600;
	margin-bottom: 0em;
	font-size: 20px;
	color: white;
}

div#chat_popup div.agent div p {
	font-weight: 400;
	color: white;
	font-size: 16px;
	margin: 0.1em 0em;
}

div#chat_popup div.agent > div span.status {
	color: white;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	font-size: 14px;
}

div#chat_popup div.agent > div span.status a {
	text-decoration: underline;
	color: white;
}

div#chat_popup div.agent > div span.status:before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 10px;
	height: 10px;
	background-color: #3efb62;
	border-radius: 50%;
	border: 1px solid white;
	margin: -0.1em 0.2em 0em 0em;
	-webkit-animation: blink 1s linear 0s infinite alternate;
	animation: blink 1s linear 0s infinite alternate;
}

div#chat_popup.offline div.agent > div span.status:before {
	background-color: #fbb336;
	-webkit-animation: none;
	animation: none;
}

@-webkit-keyframes blink {
	from {background-color: #00bc32}
	to{ background-color: #00ff44; }
}

/* Standard syntax */
@keyframes blink {
	from {background-color: #00bc32}
	to{ background-color: #00ff44; }
}

div#chat_popup div.wrap {
	position: relative;
	left: -15px;
}

div#chat_popup div.wrap div.step {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	width: auto;
	border-bottom: none;
}

div#chat_popup div.wrap a {
	display: block;
	width: 70px;
	position: relative;
	top: 5px;
}

div#chat_popup div.wrap a img {
	display: block;
	width: 100%;
	height: auto;
}

/*
	Mobile Version
*/

body.mobile div#chat_popup {
	right: 50%;
	-webkit-transform: translateX(50%);
	transform: translateX(50%);
	width: 95%;
}

body.div#chat_popup {
	right: 0;
}

body.mobile div#chat_popup div.wrap a {
	width: 60px;
}

body.mobile div#chat_popup div.agent div {
	white-space: nowrap;
	padding: 0em 0.5em 0em 0.5em;
}

body.mobile div#chat_popup div.wrap {
	left: 0;
}

@media only screen and (max-width: 375px) {
	div#chat_popup div.agent div h2 {
		font-size: 18px;
	}

	div#chat_popup div.agent div p {
		font-size: 14px;
	}
}

@media only screen and (max-width: 325px) {

	body.mobile div#chat_popup div.wrap a {
		width: 50px;
	}

	div#chat_popup div.agent div h2 {
		font-size: 16px;
	}

	div#chat_popup div.agent div p {
		font-size: 12px;
	}

	div#chat_popup div.agent img {
		width: 60px;
		height: 60px;
	}
}

