body.modal-chat-open {
	overflow: hidden;
	position: fixed;
}

.box-chat-pasgo {
	position: fixed;
	bottom: 0;
	height: auto;
	right: 10px;
	width: 296px;
	border-top: 3px solid #d2d6de;
	background: #f7f8fa;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
	overflow-x: hidden;
	z-index: 10000;
}

	.box-chat-pasgo.box-success {
		border-top-color: #00a65a;
	}

	.box-chat-pasgo.collapsed-box .box-body, .box-chat-pasgo.collapsed-box .box-footer {
		display: none;
	}

	.box-chat-pasgo.height-control .box-body {
		max-height: 300px;
		overflow: auto;
	}

	.box-chat-pasgo.box-solid {
		border-top: 0;
	}

		.box-chat-pasgo.box-solid > .box-header .btn.btn-default {
			background: transparent;
		}

		.box-chat-pasgo.box-solid > .box-header .btn:hover, .box-chat-pasgo.box-solid > .box-header a:hover {
			background: rgba(0, 0, 0, 0.1);
		}

		.box-chat-pasgo.box-solid.box-default > .box-header {
			color: #444;
			background: #d2d6de;
			background-color: #d2d6de;
		}

			.box-chat-pasgo.box-solid.box-default > .box-header a, .box-chat-pasgo.box-solid.box-default > .box-header .btn {
				color: #444;
			}

		.box-chat-pasgo.box-solid.box-info > .box-header {
			color: #fff;
			background: #00c0ef;
			background-color: #00c0ef;
		}

			.box-chat-pasgo.box-solid.box-info > .box-header a, .box-chat-pasgo.box-solid.box-info > .box-header .btn {
				color: #fff;
			}

		.box-chat-pasgo.box-solid.box-success {
			border: 1px solid #00a65a;
		}

			.box-chat-pasgo.box-solid.box-success > .box-header {
				color: #fff;
				background: #00a65a;
				background-color: #00a65a;
			}

				.box-chat-pasgo.box-solid.box-success > .box-header a, .box-chat-pasgo.box-solid.box-success > .box-header .btn {
					color: #fff;
				}

		.box-chat-pasgo.box-solid > .box-header > .box-tools .btn {
			border: 0;
			box-shadow: none;
		}

		.box-chat-pasgo.box-solid[class*='bg'] > .box-header {
			color: #fff;
		}

	.box-chat-pasgo .box-group > .box-chat-pasgo {
		margin-bottom: 5px;
	}

.box-header:before, .box-body:before, .box-footer:before, .box-header:after, .box-body:after, .box-footer:after {
	content: " ";
	display: table;
}

.box-header:after, .box-body:after, .box-footer:after {
	clear: both;
}

.box-header {
	color: #444;
	display: block;
	padding: 10px 10px;
	position: relative;
	text-align: left;
	background-color: #f6f6f6;
}

	.box-header.with-border {
		border-bottom: 1px solid #c1c1c1;
	}

.collapsed-box .box-header.with-border {
	border-bottom: none;
}

.box-header > .fa, .box-header > .glyphicon, .box-header > .ion, .box-header .box-title {
	display: inline-block;
	font-size: 16px;
	margin: 0;
	line-height: 1;
}

.box-header > .fa, .box-header > .glyphicon, .box-header > .ion {
	margin-right: 5px;
}

.box-header > .box-tools {
	position: absolute;
	right: 10px;
	top: 5px;
}

	.box-header > .box-tools [data-toggle="tooltip"] {
		position: relative;
	}

	.box-header > .box-tools.pull-right .dropdown-menu {
		right: 0;
		left: auto;
	}

.btn-box-tool {
	padding: 5px;
	font-size: 12px;
	background: transparent;
	color: #97a0b3;
}

	.btn-box-tool i {
		font-style: normal;
	}

	.open .btn-box-tool, .btn-box-tool:hover {
		color: #606c84;
	}

	.btn-box-tool.btn:active {
		box-shadow: none;
	}

.box-body {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
	padding: 10px;
}

.no-header .box-body {
	border-top-right-radius: 3px;
	border-top-left-radius: 3px;
}

.box-footer {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
	border-top: 1px solid #f4f4f4;
	padding: 10px 10px 5px 10px;
	background-color: #fff;
}

.direct-chat .box-body {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	position: relative;
	overflow-x: hidden;
	padding: 0;
}

.direct-chat-messages {
	-webkit-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	transform: translate(0, 0);
	padding: 10px;
	height: 300px; /*phần content*/
	overflow: auto;
}

.direct-chat-msg, .direct-chat-text {
	display: block;
}

.direct-chat-msg {
	margin-bottom: 15px;
}

	.direct-chat-msg:before, .direct-chat-msg:after {
		content: " ";
		display: table;
	}

	.direct-chat-msg:after {
		clear: both;
	}

.direct-chat-text {
	border-radius: 5px;
	position: relative;
	padding: 4px 5px;
	background: #d2d6de;
	border: 1px solid #d2d6de;
	margin: 1px 0 0 46px;
	color: #333333;
	font-size: 13px;
	text-align: justify;
	padding: 7px 10px;
	word-wrap: break-word;
}

	.direct-chat-text:after, .direct-chat-text:before {
		position: absolute;
		right: 100%;
		top: 12px;
		border: solid transparent;
		border-right-color: #d2d6de;
		content: ' ';
		height: 0;
		width: 0;
		pointer-events: none;
	}

	.direct-chat-text:after {
		border-width: 5px;
		margin-top: -5px;
	}

	.direct-chat-text:before {
		border-width: 6px;
		margin-top: -6px;
	}

.left .direct-chat-text {
	float: left;
	width: 86%;
	margin-left: 10px;
	margin-right: 0px;
	word-wrap: break-word;
}

.left .direct-chat-img {
	float: left;
	margin-left: -5px;
}

.left .lef-time {
	margin-right: 10px;
}

.right .direct-chat-text {
	float: right;
	width: 86%;
	margin-right: 10px;
	margin-left: 0px;
}

	.right .direct-chat-text:after, .right .direct-chat-text:before {
		right: auto;
		left: 100%;
		border-right-color: transparent;
		border-left-color: #d2d6de;
	}

.right .direct-chat-timestamp {
	margin-left: 10px;
}

.direct-chat-img {
	border-radius: 50%;
	float: left;
	width: 30px;
	height: 30px;
}

.right .direct-chat-img {
	float: right;
	margin-right: -5px;
}

.direct-chat-info {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
}

.direct-chat-name {
	font-weight: 600;
}

.direct-chat-timestamp {
	color: #8c9290;
	font-size: 10px;
	margin-top: 5px;
}

.direct-chat-info .right > .direct-chat-text {
	background: #00c0ef;
	border-color: #00c0ef;
	color: #fff;
}

	.direct-chat-info .right > .direct-chat-text:after, .direct-chat-info .right > .direct-chat-text:before {
		border-left-color: #00c0ef;
	}

.direct-chat-success .right > .direct-chat-text {
	background: #00a65a;
	border-color: #00a65a;
	color: #fff;
	word-wrap: break-word;
}

	.direct-chat-success .right > .direct-chat-text:after, .direct-chat-success .right > .direct-chat-text:before {
		border-left-color: #00a65a;
	}

.show-box-chat {
	position: fixed;
	opacity: 0;
	visibility: hidden;
	text-align: center;
	z-index: 99;
	background-image: url(/Assets/Images/webp/chat-now-red-v1.webp);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	color: #fff;
	width: 57px;
	min-height: 54px;
	line-height: 54px;
	right: 8px;
	font-size: 1.5em;
	bottom: -25px;
	padding-top: 2px;
	border-radius: 5px;
	transition: all .5s ease-in-out;
	transition-delay: .2s
}

	.show-box-chat:hover {
		background-image: url(/Assets/Images/webp/chat-now-green-v1.webp);
		background-repeat: no-repeat;
		background-size: contain;
		background-position: center;
		color: #fff;
		transition: all .2s ease-in-out;
		transition-delay: 0
	}

	.show-box-chat.show {
		visibility: visible;
		cursor: pointer;
		opacity: 1;
		bottom: 110px !important;
		right: 12px;
	}

	.show-box-chat div.number-message {
		display: none;
		position: absolute;
		height: 25px;
		width: 25px;
		text-align: center;
		border-radius: 50%;
		background: #00a1ff;
		z-index: 999;
		font-size: 13px;
		right: -5px;
		top: -9px;
		overflow: hidden;
	}

.pasgo-footer {
	float: right;
	padding: 6px 6px 0px 0px;
	color: #ea1c06;
	font-weight: bold;
	font-size: 11.5px;
	font-style: italic;
}

	.pasgo-footer a {
		color: red;
	}

		.pasgo-footer a:hover {
			color: #337ab7;
		}

#box-typing {
	float: left;
	width: 100%;
	padding: 0px 10px;
	color: #616362;
	font-size: 13px;
	font-style: italic;
	position: absolute;
	bottom: 0px;
	background-color: #f7f8fa;
	padding-bottom: 0px;
}

#box-error {
	float: left;
	width: 100%;
	padding: 0px 10px;
	color: #616362;
	font-size: 13px;
	font-style: italic;
	text-align: center;
	padding-top: 5px;
	padding-bottom: 5px;
	position: absolute;
	background-color: #e3e3e3;
	z-index: 1;
}

#see-history-chat {
	text-align: center;
	font-size: 13px;
}

/*
     * Phần nhập thông tin người dùng
     */
#box-user-info {
	width: 100%;
	height: 93%;
	position: absolute;
	background-color: #f7f8fa;
	z-index: 999;
	top: 42px;
}

	#box-user-info .box-user-input {
		float: left;
		width: 100%;
		margin: 5px 0px;
	}

		#box-user-info .box-user-input span {
			float: left;
			margin-left: 10%;
			width: 80%;
			font-size: 13px;
			text-align: center;
		}

	#box-user-info .input-group {
		margin-top: 20px;
		display: block;
	}

	#box-user-info .form-control {
		margin-left: 10%;
		width: 80%;
		border-top-right-radius: 5px;
		border-bottom-right-radius: 5px;
		font-size: 13px;
	}

	#box-user-info .input-group-btn {
		float: right;
		margin-right: 10%;
	}

	#box-user-info .box-user-button {
		float: left;
		width: 100%;
		margin: 20px 0px;
	}

		#box-user-info .box-user-button #submit-info-client {
			float: left;
			width: 80%;
			margin-left: 10%;
			background-color: #449d44;
			display: inline-block;
			padding: 6px 12px;
			margin-bottom: 0;
			font-size: 14px;
			font-weight: normal;
			line-height: 1.42857143;
			text-align: center;
			white-space: nowrap;
			vertical-align: middle;
			-ms-touch-action: manipulation;
			touch-action: manipulation;
			cursor: pointer;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
			background-image: none;
			border: 1px solid transparent;
			border-radius: 4px;
			color: #ffffff;
		}

	#box-user-info #phone-error, #box-user-info #email-error, #user-info-error {
		float: left;
		margin-left: 10%;
		width: 80%;
		color: red;
		text-align: left;
		font-size: 11px;
		padding-top: 5px;
		padding-left: 5px;
	}

.pasgo-khung-chat {
	display: none;
}

.hide-forever {
	display: none !important;
}

#number-message {
	position: relative;
	top: -13px;
	margin: 0 auto;
	color: #fff;
	display: block;
	clear: both;
	float: left;
	width: 100%;
}

#number-message-in-detail, #number-message-in-kham-pha {
	position: absolute;
	height: 23px;
	width: 23px;
	text-align: center;
	border-radius: 50%;
	background: #d30606;
	z-index: 999;
	bottom: 35px;
	font-size: 11px;
	left: 50%;
	padding-top: 0px;
	color: #ffffff;
	display: none;
}

#message-client, #send-message {
	height: 40px;
	font-size: 16px;
	border-radius: 0px;
	box-shadow: none;
	-webkit-appearance: none;
	display: block;
	-webkit-box-shadow: none;
	-webkit-border-radius: 0px;
	-moz-appearance: none;
}

#send-message {
	color: #FFF;
	background: #00a659;
}
/*Ipad */
@media all and (min-width:768px) and (max-width:1024px) {
	.right .direct-chat-timestamp {
		margin-left: 9%;
	}

	.left .lef-time {
		margin-right: 9%;
	}

	#pasgo-chat-message {
		padding-left: 20px;
		padding-right: 20px;
	}

	.direct-chat-text {
		font-size: 15px;
	}

	.direct-chat-timestamp {
		font-size: 12px;
	}

	#box-typing, #box-error, #see-history-chat {
		font-size: 15px;
	}

	.direct-chat-info {
		font-size: 13px;
	}

	.direct-chat-img {
		width: 40px;
		height: 40px;
	}

	#box-user-info .box-user-input span {
		font-size: 15px;
	}

	#box-user-info .form-control {
		font-size: 15px;
	}

	#box-user-info #phone-error, #box-user-info #email-error, #user-info-error {
		font-size: 13px;
	}
}

.direct-chat-messages {
	-webkit-overflow-scrolling: touch !important;
	overflow-y: scroll !important;
	-webkit-overflow-scrolling: auto !important;
}

#pasgo-chat-message::-webkit-scrollbar {
	-webkit-appearance: none;
}

#pasgo-chat-message::-webkit-scrollbar {
	width: 4px;
}

#pasgo-chat-message::-webkit-scrollbar {
	height: 12px;
}

#pasgo-chat-message::-webkit-scrollbar-thumb {
	background-color: #616362;
	border-radius: 10px;
}

#pasgo-chat-message::-webkit-scrollbar-track {
	border-radius: 10px;
	background-color: transparent;
}
