#chat-section{
	position: fixed;
	bottom: 80px;
	width: auto;
	height: auto;
	right: 20px;
	overflow:hidden;
	z-index:999999;
	min-width: 65px;
	min-height: 65px;
	filter: drop-shadow(0 0 20px rgba(23,23,23,0.5));
}
.hide-chat{
	position: absolute;
	top: 35px;
	right: 35px;
}
#chat-section[dir="rtl"] .hide-chat{
    position: absolute;
	top: 35px;
    right: unset;
    left: 35px;
}
#chat-ico{
	position: absolute;
	bottom: 0;
	right: 0;
	border-radius: 50%;
	width: 65px;
	height: 65px;
	background-color: #0066FF;
	background-image: linear-gradient(to right, #0066FF 0%, #0044FF 100%);
	color: #fff;
}
#chat-ico > img{
	display: block;
	width: 35px;
	height: 35px;
	margin: auto;
	padding: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
#conv-counter{
    display:none;
    position:absolute;
    top:0%;
    left:0%;
    transform:trnaslate(-50%,-50%);
    background:red;
    color:#fff;
    padding:1px 5px;
    font-size:12px;
    border-radius:3px;
    overflow:hidden;
    z-index:9999;
}
.conv-counter-{
    display:none;
    position:absolute;
    top:5px;
    right:5px;
    background:red;
    color:#fff;
    padding:1px 5px;
    font-size:12px;
    border-radius:3px;
    overflow:hidden;
    z-index:9999;
}
#chat-container{
	display: none;
	width: 100%;
	background-color:#fff;
	border-radius: 20px;
}
#chat-content{
	width: 350px;
	height: 560px;
	border-radius: 20px;
	padding-bottom:5px;
	overflow: hidden;
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	display: flex;
	flex-direction: column;
	position: relative;
}
#chat-more-box{
	position: absolute;
	width: 100%;
	max-height: 590px;
	overflow-y: scroll;
	z-index: 9999;
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	background-color: #fff;
	padding: 20px;
	display: none;
}
#chat-more-box-content{
	display: flex;
	flex-wrap: wrap;
}
#chat-more-box::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgb(211, 219, 229);
}
#chat-more-box::-webkit-scrollbar {
    width: 3px;
}
#hide-more-box{
	position: absolute;
	width: 20px;
	height: 20px;
	top: 15px;
	right: 15px;
	color: rgba(23,23,23,0.5);
}
#empty-line{
	width: 100%;
	text-align: center;
	padding: 30px 0;
	color: rgba(23,23,23,0.5);
}
#chat-top{
	width: 100%;
	height: 120px;
	background-size: 370px auto;
	background-image: url(/assets/img/svg/bg.svg);
	filter: drop-shadow(0 0 20px rgba(23,23,23,0.25));
	padding: 20px;
	border-radius: 20px;
	position: absolute;
	z-index: 999;
}
#friends-top{
    width: 95%;
	display: flex;
	float:right;
}
.chat-top-img{
	margin: 10px 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	box-shadow: 0px 2px 5px rgba(255,255,255,0.55);
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
}
.chat-top-support{
	margin: 10px 0;
	width: 50px;
	height: 50px;
	display: flex;
	border-radius: 50%;
	justify-content: center;
	align-items: center;
	color: #fff;
}
#chat-top-more{
	margin: 10px 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	box-shadow: 0px 2px 5px rgba(255,255,255,0.55);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	color: #fff;
	line-height: 10px;
}
#chat-top-more > svg{
	width: 25px;
	height: 25px;
}
.chat-tip{
	margin: 0 5px;
	position: relative; 
	white-space: nowrap;
	border-radius:50%;
}
.chat-tooltip{
	display: none;
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background-color: rgba(255, 255, 255, 0.85);
	top: calc(100%);
	left: 5%;
	color: #000;
	font-size: 10px;
	border-radius: 2px;
	z-index: 999;
	padding: 2px 5px;
}
.chat-tooltip.group{
	width:250px;
	white-space: normal;
}
.chat-tooltip::after {
	content: " ";
	position: absolute;
	bottom: 100%;
	left: 50%;
	-ms-transform: translate(-50%, 0%);
	transform: translate(-50%, 0%);
	border-width: 5px;
	border-style: solid;
	border-color: transparent  transparent rgba(255, 255, 255, 0.85) transparent;
}
.chat-tip:hover > .chat-tooltip{
	display: block;
}
#chat-top-user{
	padding: 14px;
	color: #fff;
}
#chat-top-user > div:nth-child(1){
	font-size: 12px;
}
#chat-top-user > div:nth-child(2){
	margin: 5px 0;
	font-size: 18px;
}


#chat-back{
    position: absolute;
	top: 15px;
	left: 15px;
}
#chat-body,#conv-body{
    display: flex;
  flex-direction: column;
	flex-grow: 1;
	padding: 120px 10px 0 10px;
	overflow: scroll;
}
#chat-body::-webkit-scrollbar,#conv-body::-webkit-scrollbar{
  display: none;
}

#chat-body,#conv-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  position:relative;
}

#chat-bottom{
    position:relative;
	width: 100%;
	background-color: #fff;
	padding-top: 10px;
	min-height: 100px;
	filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
}
#chat-form{
	display: flex;
	align-items: center;
	padding: 8px 10px 0 20px;
}
#chat-form > textarea{
	width: calc(100% - 60px);
	border: 0;
	outline: 0;
	resize: none;
	min-height: 25px;
	font-size: 16px;
	-ms-overflow-style: none;
  	scrollbar-width: none;
  	color: rgba(0, 0, 0, 0.65);
}
#chat-form > textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);;
  opacity: 1;
}

#chat-form > textarea:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.35);;
}

#chat-form > textarea::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.35);;
}
#chat-form > textarea::-webkit-scrollbar {
  display: none;
}
#chat-form > button{
	width: 50px;
	height: 50px;
	background-color: #0066FF;
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	border: 0;
	outline: 0;
	border-radius: 50%;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	rotate: 45deg;
}
.chat-line{
	position: relative;
	
}
.support-line{
    animation: supportMsg 0.5s ease-in-out;
}
@keyframes supportMsg {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}
.chatBotItems{
    width:100%;
    padding: 8px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
}
.chatBotItem{
    display:inline-block;
    border-radius:3px;
    padding: 3px 8px;
    border:1px solid rgba(255,255,255,0.5);
    box-shadow: 0px 0px 3px rgba(23,23,23,0.15);
    transition:0.25s;
    margin: 5px;
}
.chatBotItem:hover{
    color:#ccc;
    background-color:#fff;
    transform:scale(1.1);
    cursor:pointer;
}
.line-content{
    display:flex;
	justify-content: left;
}
.img-from{
    width:25px;
    height:25px;
    border-radius:50%;
    overflow:hidden;
    margin:10px 5px;
}
.img-from > img{
    width:100%;
    height:100%;
}
.chat-from,.chat-to,.chat-to-fix{
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	margin:  8px;
	border-radius: 8px;
	padding: 8px;
	font-size: 14px;
	width: 90%;
}
.chat-from{
    width:calc(90% - 25px);
}
.chat-to,.chat-to-fix{
	background-color: #0066FF;
	color: #fff;
	margin-left: calc(10% - 8px);
}
.chat-line-date,.chat-line-action{
	display: none;
	width: 100%;
	text-align: center;
	color: #ccc;
	font-size: 12px;
}
.chat-line-action{
    display:block;
}
#chat-tools{
	display: flex;
	column-gap:10px;
	padding: 0 20px;
}
.chat-tool.activeTool{
    color:blue;
}
.chat-tool:hover{
    cursor:pointer;
    opacity:0.85;
}
.chat-tool-label{
    font-size:20px;
}
.chat-file-app{
    font-size:18px;
}
.chat-file-app > i{
    font-size:120px;
}
.chat-file-name{
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:5px;
}
#filePreview{
    max-width:100%;
    max-height:280px;
    padding: 0 5px;
    margin-top: 25px;
}
#filePreview > image,#filePreview > video,#filePreview > iframe{
    max-width:250px;
    max-height:250px;
}
#emoji-box,.chat-modal-box{
    display:none;
    position:absolute;
    bottom:100px;
    right:0;
    z-index:999999;
    background-color:#fff;
    box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
    width:98%;
    margin:0 1%;
    height:300px;
    overflow:hidden;
}
#emoji-content{
    width:100%;
    height:300px;
    overflow:scroll;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
}
.chat-modal-content{
    width:100%;
    height:300px;
    overflow:scroll;
    padding: 0 5px;
}
#emoji-content > span{
    margin:5px;
}
#emoji-content > span{
    background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}
.chat-modal-item{
    width:100%;
    margin:5px 0;
    padding:5px 8px;
    background-color: rgba(0, 0, 0, 0.15);
}
.chat-modal-item:hover{
	cursor: pointer;
    opacity:0.85;
}
.conv-line{
	position: relative;
}
.conv-line{
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	margin:  8px 8px;
	border-radius: 8px;
	padding: 8px;
	font-size: 14px;
	width: calc(100% - 16px);
	display: flex;
	max-height: 77px;
}
.conv-user{
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.conv-user > .conv-user-img{
	width: 55px;
	height: 55px;
	border-radius: 50%;
	box-shadow: 0px 2px 5px rgba(255,255,255,0.55);
	
	color: #fff;
}
.conv-content{
	padding: 5px 8px;
}
.conv-content-head{
	font-size: 16px;
	margin-bottom: 5px;
	max-width: 150px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 30px;
}
.chat-top-name{
    max-width: 150px;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2; /* This will truncate the content after 2 lines */
    text-overflow: ellipsis;
}
.conv-content-body{
	display: flex;
}
.conv-msg{
	font-size: 12px;
	max-width: 130px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 30px;
}
.conv-content-body > span{
	margin: 0 16px;
	display: inline-block;
	font-size: 12px;
	color:rgba(23,23,23,0.45);
}
.message-img{
	min-width: 100%;
	max-width: 100%;
	min-height: 250px;
	max-height: 250px;
	box-shadow: 0px 0px 20px rgba(23,23,23,0.15);
	border-radius: 8px;
}

.message-audio{
    min-width: 100%;
	max-width: 100%;
}
.message-audio > source{
    min-width: 100%;
	max-width: 100%;
}
#loadMoreMsgs{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:8px 12px;
    font-size:16px;
    color:rgba(0,0,0,0.5);
    transition:0.15s;
}
#loadMoreMsgs:hover{
    cursor:pointer;
    transform:scale(1.15);
    color:rgba(0,0,0,0.85);
}
#typing {
  width: 5em;
  height: 2em;
  position: relative;
  padding: 10px;
  margin-left: 5px;
  background: #e6e6e6;
  border-radius: 20px;
}

.typing__dot {
  float: left;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #8d8c91;
  border-radius: 50%;
  opacity: 0;
  animation: loadingFade 1s infinite;
}

.typing__dot:nth-child(1) {
  animation-delay: 0s;
}

.typing__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingFade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}