/**
 * Chat
 * =========================================== */
.widget-chat .widget-content {
	padding: 12px 10px 15px;
}
.widget-chat .widget-title {
	border-bottom: 1px solid #e3e4e8;
}
.utp-switch-chat {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	height: 25px;
	border-radius: 25px;
	background-color: #e3e4e8;
	font-size: 13px;
}
.utp-switch-chat > .item {
	padding: 1px;
	white-space: nowrap;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.utp-switch-chat > .current {
	width: auto;
	flex: 1; 
}
.utp-switch-chat > .item .item-icon {
	display: inline-block;
	vertical-align: middle;
	width: 25px;
	height: 25px;
	background-color: #32373c;
	border-radius: 50%;
	position: relative;
}
.utp-switch-chat > .current .item-icon,
.utp-switch-chat > .item:hover .item-icon {
	background-color: #0073aa;
}
.utp-switch-chat > .current .item-icon {
	width: 31px;
	height: 31px;
	margin-top: -3px;
	margin-bottom: -3px;
}
.utp-switch-chat > .item .item-label {
	display: inline-block;
	vertical-align: middle;
	width: 0;
	overflow: hidden;
	font-weight: bold;
}
.utp-switch-chat > .current .item-label {
	width: auto;
	margin-left: 5px;
}
.utp-switch-chat > .item .item-icon [class^="icon-"],
.utp-switch-chat > .item .item-icon i {
	position: relative;
	color: #fff;
	width: 100%;
	line-height: 25px;
	font-size: 12px;
	padding-left: 1px;
	text-align: center;
}
.utp-switch-chat > .current .item-icon [class^="icon-"],
.utp-switch-chat > .current .item-icon i {
	line-height: 31px;
	font-size: 14px;
}
.utp-switch-chat > .item .item-icon .item-badge {
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
	bottom: 100%;
	line-height: 1;
	pointer-events: none;
	margin-bottom: -2px;
}
.utp-switch-chat > .item .item-icon .item-badge .badge {
	font-weight: normal;
	font-size: 11px;
	padding: 2px 5px;
	min-width: 15px;
	background-color: #f56e28;
}
.utp-chats {
	font-size: 13px;
}
.utp-chat-item {
	display: none;
	padding: 20px 0 0;
}
.utp-chat-item.active {
	display: block;
}
.utp-chat-history {
	max-height: 300px;
	overflow-y: auto;
	padding: 0 10px 15px;
}
.utp-chat-history > div:before,
.utp-chat-history > div:after {
	content: '';
	display: table;
	clear: both;
}
.utp-chat-history > div + div {
	margin-top: 15px;
}
.utp-chat-history .incoming-msg p,
.utp-chat-history .outgoing-msg p {
	border-radius: 3px;
	margin: 0;
	padding: 5px 10px;
	position: relative;
}
.utp-chat-history .incoming-msg p {
	float: left;
	background-color: #0073aa;
	color: #fff;
}
.utp-chat-history .outgoing-msg p {
	float: right;
	margin-right: 10px;
	background-color: #ebebeb;
}
.utp-chat-history .incoming-msg p:before,
.utp-chat-history .outgoing-msg p:before {
	width: 0;
	height: 0;
	content: '';
	position: absolute;
	top: 0;
}
.utp-chat-history .incoming-msg p:before {
	left: -10px;
	border-style: solid;
	border-width: 0px 13px 8px 0px;
	border-color: transparent #0073aa transparent transparent;
}
.utp-chat-history .outgoing-msg p:before {
	right: -10px;
	border-style: solid;
	border-width: 8px 13px 0px 0px;
	border-color: #ebebeb transparent transparent transparent;
}
.utp-chat-form {
	position: relative;
	margin-top: 10px;
}
.utp-chat-form .form-control {
	height: 46px;
	overflow-y: auto;
	padding-right: 40px;
	resize: none;
}
.utp-chat-form .btn {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	padding: 0;
	text-align: center;
	background-color: #0073aa;
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	position: absolute;
}
.utp-chat-form .btn:hover {
	background-color: #00b9eb;
}

/* Chat Rooms */
.utp-chat-rooms {
	display: flex;
	margin: 15px;
}
.utp-chat-rooms .chat-search {
	position: relative;
}
.utp-chat-rooms .chat-search:before {
	content: '\e800';
	font-family: "UTP Fonts";
	font-style: normal;
	font-weight: normal;
	position: absolute;
	top: 50%;
	margin-top: -10px;
	left: 11px;
	font-size: 14px;
	color: #82878c;
}
.utp-chat-rooms .chat-search-input {
	border-left-width: 15px;
	padding: 7px 10px 7px 30px;
	height: 32px;
	width: 100%;
	background-color: transparent;
	border: 0;
}
.utp-chat-rooms .chat-search-input:hover {
	box-shadow: 0 0 1px 0 #00a0d2;
}
.utp-chat-rooms .chat-search-input:focus {
	box-shadow: 0 0 0 1px #00a0d2;
	outline: none;
}
.utp-chat-rooms .chat-users {
	width: 50%;
	border: 1px solid #e3e4e8;
	background-color: #fff;
}
.utp-chat-rooms .chat-users.inactive {
	width: 25%;
	margin-right: -1px;
}
.utp-chat-rooms .chat-items {
	border-top: 1px solid #e3e4e8;
}
.utp-chat-rooms .chat-item {
	background-color: #fff;
	cursor: pointer;
	overflow: hidden;
}
.utp-chat-rooms .chat-users .chat-item {
	border-bottom: 1px solid #e3e4e8;
	border-left: 2px solid transparent;
}
.utp-chat-rooms .chat-item:hover {
	background-color: #f3f4f5;
}
.utp-chat-rooms .chat-item:last-child {
	border-bottom: 0;
}
.utp-chat-rooms .chat-users.inactive .chat-item {
	
}
.utp-chat-rooms .chat-item.active {
	opacity: 1;
	border-left: 2px solid #82878c;
	background-color: #f3f4f5;
}
.utp-chat-rooms .chat-item-sticky {
	position: sticky;
	top: 42px;
}
.utp-chat-rooms .chat-item-sticky:before {
	content: "\f08d";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 11px;
	border-radius: 50%;
	text-align: center;
	transform: rotate(45deg);
	background-color: #e3e4e8;
}
.utp-chat-rooms .chat-gravatar {
	margin: 9px 9px 9px 7px;
	float: left;
	width: 46px;
	height: 46px;
	overflow: hidden;
	border-radius: 50%;
}
.utp-chat-rooms .chat-answer .chat-gravatar {
	float: right;
	margin: 9px 7px 9px 9px;
}
.utp-chat-rooms .chat-content {
	padding-left: 65px;
	font-size: 12.5px;
	padding-right: 5px;
}
.utp-chat-rooms .chat-answer .chat-content {
	padding-left: 10px;
	padding-right: 65px;
}
.utp-chat-rooms .chat-content .user-name {
	padding: 6px 0 1px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.utp-chat-rooms .chat-text {
	color: #656565;
}
.utp-chat-rooms .chat-users .chat-text {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.utp-chat-rooms .chat-date {
	color: #949daf;
	padding-top: 2px;
	padding-bottom: 6px;
	font-size: 11px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.utp-chat-rooms .chat-dialogs {
	width: 50%;
	margin-left: 10px;
	border: 1px solid #e3e4e8;
	background-color: #fff;
	display: none;
}
.utp-chat-rooms .chat-dialog-form {
	padding: 10px;
	border-top: 1px solid #e3e4e8;
	margin-top: 10px;
}
.utp-chat-rooms .chat-dialog-form .form-group {
	margin-bottom: 10px;
}