/* * * * * * * * * * * * *
 *
 *
 * CHAT : Popup Box
 *
 *
 * * * * * * * * * * * * */

 @media only screen and (max-width: 767px) {
	.popup-box {
		display: block !important;
		position: fixed;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		z-index: 1000 !important;
		background-color: transparent;
	}
	.chat-window {
		bottom: 0;
		float: right;
		width: 100%;
		margin: 0px 0px 0px 0px;
	}
	.msg_container_base {
		background: #fff;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
		max-height: 85vh;
		overflow-x: hidden;
	}
	.msg_container .avatar {
		position: inherit;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
	}
}

@media only screen and (min-width: 768px) {
	.popup-box {
		display: none;
		position: fixed;
		bottom: 1px;
		right: 100px;
		height: 450px;
		width: 330px;
		background-color: transparent;
		z-index: 100;
	}
	.chat-window {
		bottom: 0;
		border: 1px solid #f4f4f4;
		position: fixed;
		float: right;
		width: 330px;
		margin: 0px 0px 0px 0px;
		z-index: 100;
	}
	.msg_container_base {
		background: #fff;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
		max-height: 330px;
		overflow-x: hidden;
		border: none !important;
	}
	.msg_container .avatar {
		position: relative;
		padding: 0px 0px 0px 0px;
		margin: 0px 0px 0px 0px;
	}
}

.popup-box .popup-head {
	position: relative !important;
	background-color: #234C7B;
	padding: 10px;
	color: white;
	font-weight: normal;
	font-size: 14px;
	clear: both;
	z-index: 99999999 !important;
	border-radius: 10px 10px 0px 0px !important;
}

.popup-head:hover {
	cursor: pointer;
}

.popup-box .popup-head .popup-head-left {
	float: left;
}

.popup-box .popup-head .popup-head-right {
	float: right;
	opacity: 0.5;
}

.popup-box .popup-head .popup-head-right a {
	text-decoration: none;
	color: inherit;
}

.popup-box .popup-messages {
	height: 100%;
	overflow-y: hidden;
	background: #fff !important;
}


/* * * * * * * * * * * * *
 *
 *
 * CHAT : PopUp Content
 *
 *
 * * * * * * * * * * * * */

.chat-window>div>.panel {
	border-radius: 5px 5px 0 0;
	border-color: #fff;
	padding:0px 0px 0px 0px; 
	margin: 0px 0px 0px 0px;
}

.icon_minim {
	padding: 2px 10px;
}

.top-bar {
	background: #666;
	color: white;
	padding: 10px;
	position: relative;
	overflow: hidden;
}

.msg_received {
	padding-left: 0;
	margin-left: 0;
}

.msg_sent {
	margin-right: 0;
}

.msg_container {
	word-break: break-all;
	padding: 5px;
	overflow: hidden;
	display: flex;
    word-break: break-all;
    border: none;
}

.msg_sent_bg {
	background: #64b5f6;
}

.msg_received_bg {
	background: #e0e0e0;
}x

.msg_container .messages {
	max-width: 100%;
	min-width: 50px;
}

.msg_container .messages>p {
	font: normal 14px Arial, Georgia, serif;
	line-height: 1.2;
	letter-spacing: 0.03em !important;
	margin: 0 0 0.2rem 0;
}

.emoji-icon {
	font-size: 17px !important;
	padding: 0 !important;
}

.msg_container .messages>time {
	font: normal 11px Georgia, serif;
	color: #ccc;
}

.msg_container .avatar img {
	display: block;
	width: 100%;
}

.msg_container .avatar img {
	min-width: 30px;
	max-width: 50px;
	height: auto;
}

.base_received .avatar {
	margin: 5px 7px 0px 0px;
}

.base_sent .avatar {
	margin: 5px 15px 0px 0px;
}

.base_received>.msg_container .avatar:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border: 5px solid #FFF;
	border-left-color: rgba(0, 0, 0, 0);
	border-bottom-color: rgba(0, 0, 0, 0);
}

.base_sent {
	justify-content: flex-end;
	align-items: flex-end;
}

.base_sent>.msg_container .avatar:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 0;
	border: 5px solid white;
	border-right-color: transparent;
	border-top-color: transparent;
	box-shadow: 1px 1px 2px rgba(black, 0.2); /*not quite perfect but close*/
}

.msg_sent>time {
	float: right;
}

/* .msg_container_base::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background-color: #F5F5F5;
}

.msg_container_base::-webkit-scrollbar {
	width: 12px;
	background-color: #F5F5F5;
}

.msg_container_base::-webkit-scrollbar-thumb {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
	background-color: #555;
} */

.btn-group.dropup {
	position: fixed;
	left: 0px;
	bottom: 0;
}

.video-icon {
	padding: 5px 5px;
	border: 1px solid white;
	border-radius: 50%;
	margin: 0px 10px;
}

.chat-window {
	background:white;
	padding:0px 0px 0px 0px; 
	margin: 0px 0px 0px 0px;
}

.chat-window>div {
	background:orange;
	padding:0px 0px 0px 0px; 
	margin: 0px 0px 0px 0px;
}

.msg_container_base {
	padding:0px 0px 0px 0px; 
	margin: 0px 0px 0px 0px;
}

.msg_container_base>div {
	padding:0px 0px 0px 0px; 
	margin: 0px 0px 0px 0px;
}

.form-input {
	display:flex; 
	margin-bottom: 0px;
}

.form-input>div {
	color:#9E9E9E;
}

.form-input>textarea {
	border:none; overflow:auto;resize:none;
}

.form-input>i {
	justify-content:center; 
	align-items:center; 
	display:flex; 
	color: #0683ff; 
	font-size:25px; 
	padding: 10px 10px 10px 10px;
	margin: 5px 5px 5px 5px;
}

.form-input>i:hover {
	cursor: pointer;
  	color: #33c5d2;
}

.popup-head-left>a {
	color:#BFCAD1;
}

#sentMessage > .link-color {
	color: #f5f5f5;
}

#sentMessage > .link-color:hover {
	color: #4dd0e1;
}

#receivedMessage > .link-color {
	color: #000;
}

#receivedMessage > .link-color:hover {
	color: #1976d2;
}

/* CUSTOM CSS */
#sentMessage {
	color: #fff;
	font-size: 1.3rem !important;
	border-radius: 15px !important;
	letter-spacing: 1px !important;
	word-spacing: -1px !important;
	line-height: 1.5 !important;
	white-space: pre-wrap !important;
  	word-break: break-word !important;
	margin-left: 100px !important;
}

#receivedMessage {
	font-size: 1.3rem !important;
	border-radius: 15px !important;
	letter-spacing: 1px !important;
	word-spacing: -1px !important;
	line-height: 1.5 !important;
	white-space: pre-wrap !important;
  	word-break: break-word !important;
	margin-right: 70px !important;
}

#sentText {
	word-wrap: break-word !important;
	white-space: initial !important;
}

#receivedText {
	white-space: initial !important;
	margin: 3px;

}

#sentTime {
	font-size: 9px !important;
	margin-left: 60px !important;
	color: #9e9e9e;
}

#receivedTime {
	font-size: 9px !important;
	margin-left: 15px !important;
	color: #9e9e9e;
}

.tra-icon {
	display: block;
	transition: 0.5s;
}

.tra-hover:hover .tra-icon {
	display: block;
}

.chat-header-desc {
	cursor: pointer; 
	color:#000 !important; 
	text-decoration: none !important; 
	word-wrap: break-word !important;
	font-size: 14px;
    font-weight: 300;
}

/* CUSTOM CSS */

.chat-header-title {
	padding: 16px 0px 16px 0px !important;
	background-color: #234C7B !important;
}

.chat-header-hover:hover {
	color: #64b5f6 !important;
}

.chat-box-field {
	height: 50px;
}


.message-text {
	min-height: 1em; /* prevent height collapsing when there is no text */
	max-height: 35px;
	width: 100%;
	align-content: center;
	outline: none;
	overflow: hidden;
	overflow-y:scroll;
}
  
.message-wrapper {
	width: 85%;
	border: 1px solid #f4f4f4;
	background-color: #f2f2f2;
	padding: 10px; /* the container will keep the padding untouched */
	max-height: 80px; /* added padding to the height of the .message-text */
	border-radius: 15px !important;
}

#sendChat {
	font-size: 20px;
	color: #1976d2;
}

#sendChat:hover {
	color: #42a5f5;
	cursor: pointer;
}

#adminGrouChatContainer {
	max-height: 80px;
}

#sentText .link-color-url {
	color: #fff;
}

#receivedText .link-color-url {
	color: #000;
}

.message-text:empty::before {
	content: attr(data-placeholder);
	color: gray;
}

.message-wrapper:hover {
	cursor: text;
}

#chatName:hover {
	cursor: default;
}

.hover-cursor-pointer {
	cursor: pointer !important;
}

.close-disabled {
	pointer-events: none !important;
	cursor: default !important;
}

.chat-msg-container {
	display: flex;
	flex-direction: column-reverse; /* 'column' for start, 'column-reverse' for end */
	overflow-y: scroll; /* or overflow-y: auto ... */
	height: 73% !important;
}

.vertical-scroll {
	overflow-y: scroll !important; 
	overflow-y: overlay !important; 
}

.small-label-text {
	font-size: 11px !important;
	color: #9e9e9e;
}

.is-chat-minimize {
	display: none !important;
	/* transition: d-none 1s; */
}

.is-chat-maximize {
	display: block;
}

.msg-widget {
	position: fixed;
    bottom: 0;
    right: 0;
    margin-right: 9px;
    z-index: 99999;
}

.msg-widget:hover {
	cursor: pointer;
}

.close-widget-msg {
	position: absolute;
	top: 0;
	right: 2px !important;
	height: 15px;
	width: 15px;
	background-color: #fff;
	border-radius: 50%;
}

#userwayAccessibilityIcon {
	margin-right: -3px;
}

.msg-widget-img {
	width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
}

.popover {
	width: 300px;
	border-radius: 0.25rem !important;
}

.last {
	color: orange;
}

.minimize-center {
	margin-top: -11px !important;
}

.show-convo-btn {
	display: block !important;
}

.hide-convo-btn {
	display: none !important;
}

#dotWave {
	height: 25px !important;
	width: 45px !important;
	border-radius: 15px !important;
	margin-left: 35px !important;
}

.dot {
	width: 5px;
	height: 5px;
	border-radius: 50% !important;
	margin-right: 3px;
	background: #303131;
	animation: wave 1.3s linear infinite;
}

.dot:nth-child(2) {
	animation-delay: -1.1s;
}

.dot:nth-child(3) {
	animation-delay: -0.9s;
}

@keyframes wave {
	0%,
	60%,
	100% {
		transform: initial;
	}

	30% {
		transform: translateY(-7px);
	}
}
.message-not-sent {
	color: red !important;
}

.chat-chatlist-placeholder-container {
	text-align:center;
	margin-left: -1.4em;
	margin-top:1em;
}

.chat-chatlist-placeholder {
	font-size: 14px;
	color:#8ea3b6;
}

.message-not-sent {
	color: red !important;
}

.role-text {
	font-size: 9px;
    padding: 2px 7px !important;
    color: #337AB7 !important; 
    background-color: #337AB71A !important;
}

.chat-avatar-profile {
	border-radius: 50% !important;
	width: 45px;
	height: 45px;
}

.online-status {
	width: 12px;
	height: 12px;
	border-radius: 50% !important;
	background-color: #6abf69;
	bottom: 0px;
	right: 2px;
	z-index: 999;
}

.online-status-bg-placeholder {
	width: 16px;
    height: 16px;
    border-radius: 50% !important;
    background-color: #fff;
    bottom: -2px;
    right: 0px;
}

.offline-status-bg-placeholder {
	width: auto;
    height: auto;
    border-radius: 50% !important;
    background-color: #fff;
    bottom: 1px;
    right: 3px;
    font-size: 10px;
    color: #388e3c;
}

.message-badge-notif {
	position: absolute;
	top: -2px;
    left: -5px;
}

.chat-preview-font-size {
	font-size: 10px;
	color: #000;
    font-weight: 100;
}

.chat-contact-container {
	width: 300px;
}

.role-container {
	right: 55px;
}

.active-user-container {
	padding: 5px 2px !important;
}

.msg-hover-custom {
	padding: 5px 5px !important;
	background-color: transparent !important;
	transition: 0.3s;
}

.msg-hover-custom:hover {
	background-color: #eeeeee !important;
}

.bg-msg-request {
	background-color: #e1effe !important;
}

.msg_pending {
	color: #f7854a !important; 
}

.msg_in_progress {
	color: #1b64f2 !important;
}

.msg_canceled {
	color: #e02425 !important;
}

.msg_done {
	color: #52b534 !important;
}

.btn_cancel {
	border: 1px solid #e44041;
	background-color: #00000000;
	color: #e44041;
}

.btn_cancel:hover:enabled {
	border: none;
	border: 1px solid #e44041;
	background-color: #e44041 !important;
	color: #e1effe;
}

.btn_cancel_no {
	border: none;
	border: 1px solid #1b64f2;
	background-color: #1b64f2 !important;
	color: #ffffff;
}

.btn_cancel_yes {
	border: 1px solid #1b64f2;
	background-color: #00000000;
	color: #1b64f2;
}

.btn_cancel_no:hover {
	border: none;
	border: 1px solid #14429f;
	background-color: #14429f !important;
	color: #ffffff;
}

.btn_cancel_yes:hover {
	border: none;
	border: 1px solid #1b64f2;
	background-color: #1b64f2 !important;
	color: #ffffff;
}

.btn_cancel:disabled {
	border: 1px solid #1b64f2;
	background-color: #1b64f2;
	color: #e44040a2;
}

.btn_req_approved {
	border: 1px solid #1b64f2;
	background-color: #1b64f2;
	color: #e1effe;
	width: 80px;
    text-align: center;
}

.btn_req_approved:disabled {
	border: 1px solid #1b63f2a4;
	background-color: #1b63f2a4;
	color: #e1effe;
	width: 80px;
    text-align: center;
}

.btn_req_approved:hover:enabled {
	border: 1px solid #1446a9;
	background-color: #1446a9;
	color: #e1effe;
	width: 80px;
    text-align: center;
}

.btn_req_done {
	border: 1px solid #52b534;
	background-color: #00000000;
	color: #52b534;
	width: 80px;
    text-align: center;
}

.btn_req_admin_cancel {
	border: 1px solid #e44041;
	background-color: #00000000;
	color: #e44041;
	width: 80px;
    text-align: center;
}

.btn_req_admin_cancel:hover:enabled {
	border: 1px solid #e44041;
	background-color: #e44041;
	color: #e1effe;
	width: 80px;
    text-align: center;
}

.btn_req_done:hover:enabled {
	border: 1px solid #52b534;
	background-color: #52b534;
	color: #e1effe;
	width: 80px;
    text-align: center;
}

.btn_proceed {
    border: 1px solid #1b64f2;
    background-color: #1b64f2;
    border-radius: .75rem !important;
    color: #ffffff;
    width: 12rem;
  }

 .btn_proceed:hover {
    filter: brightness(85%);
 }