.jinsom-chat-popup {
	overflow: hidden;
}

.jinsom-chat-popup .layui-layer-close {
	position: relative;
	width: 16px;
	height: 16px;
	line-height: 18px;
	margin-left: 10px;
	text-align: center;
	font-size: 16px;
	cursor: pointer;
	color: #000;
	right: 0;
	top: 0;
	background-color: transparent;
	border: none;
	padding: 0;
	font-weight: 400;
}

.jinsom-chat-popup .layui-layer-close:hover {
	background-color: transparent;
}

.jinsom-chat-container {
	display: flex;
	position: relative;
	height: 100%;
}

.jinsom-chat-left {
	width: 240px;
	height: 100%;
	position: relative;
	border-right: 1px solid #eaeaea;
}

.jinsom-chat-search {
	height: 60px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	width: 100%;
}

.jinsom-chat-search input {
	background-color: rgb(232 232 232 / 40%);
	padding: 5px 8px;
	border-radius: 2px;
	min-width: 60%;
	flex: 1;
	line-height: 18px;
}

.jinsom-chat-search button {
	padding: 5px 8px;
	line-height: 18px;
	background-color: rgb(232 232 232 / 40%);
	border-radius: 2px;
	cursor: pointer;
	font-size: 12px;
}

.jinsom-chat-user-list {
	background-color: rgb(232 232 232 / 20%);
	height: calc(100% - 60px);
	overflow-x: hidden;
	overflow-y: auto;
}

.jinsom-chat-user-list::-webkit-scrollbar {
	width: 2px;
}

.jinsom-chat-item {
	gap: 10px;
	cursor: pointer;
	padding: 8px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
}

.jinsom-chat-item.top {
	background-color: rgb(0 0 0 / 2%);
}

.jinsom-chat-item.this,
.jinsom-chat-item:hover {
	background-color: rgb(0 0 0 / 5%);
}

.jinsom-chat-item .avatar-box {
	width: 40px;
	height: 40px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	border: 1px solid hsl(0deg 0% 0% / 10%);
}

.jinsom-chat-item .avatar-box .user-top {
	position: absolute;
	background-color: #07c160;
	color: #fff;
	font-size: 10px;
	padding: 0px 2px;
	border-radius: 2px;
	top: -5px;
	left: -5px;
}

.jinsom-chat-item .avatar-box .unread-count {
	position: absolute;
	background-color: #ff3b30;
	color: #fff;
	font-size: 10px;
	top: -5px;
	left: 25px;
	padding: 2px;
	min-width: 12px;
	height: 12px;
	line-height: 1;
	display: flex;
	border-radius: 15px;
	align-items: center;
	justify-content: center;
}

.jinsom-chat-item .avatar img {
	width: 100%;
	height: 100%;
}

.jinsom-chat-item .info {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jinsom-chat-item .info .name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.jinsom-chat-item .info .name font {
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	flex: 1;
}

.jinsom-chat-item .info .name span {
	color: #999;
	font-size: 12px;
}

.jinsom-chat-item .info .msg {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	color: #666;
	line-height: 20px;
	height: 20px;
}

.jinsom-chat-item .info .msg .jinsom-emoji {
	width: 24px;
	height: 24px;
}

.jinsom-chat-header {
	height: 50px;
	line-height: 50px;
	padding-left: 20px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid hsl(0deg 0% 0% / 10%);
}

.jinsom-chat-header-cursor-move {
	height: 50px;
	flex: 1;
}

.jinsom-chat-right {
	flex: 1;
}

.jinsom-chat-sidebar {
	width: 60px;
	border-right: 1px solid hsl(0deg 0% 0% / 10%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 10px 5px;
}

.jinsom-chat-sidebar .sidebar-head {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.jinsom-chat-sidebar .sidebar-head .user-info {
	width: 40px;
	height: 40px;
	position: relative;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li {
	width: 40px;
	height: 40px;
	padding: 5px;
	border-radius: 4px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li.on {
	color: #07c160;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li:hover {
	background-color: hsl(0deg 0% 0% / 10%);
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li i {
	font-size: 20px;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li .all-unread-count {
	position: absolute;
    top: 0;
    right: 0;
    background-color: #ff3b30;
    color: #fff;
    font-size: 10px;
    padding: 2px;
    min-width: 12px;
    height: 12px;
    line-height: 1;
    display: flex;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
	opacity: 0;
	visibility: hidden;
}

.jinsom-chat-sidebar .sidebar-head .chat-menu li .all-unread-count:not(:empty) {
	opacity: 1;
	visibility: visible;
}

.jinsom-chat-content-container {
	height: calc(100% - 240px);
	overflow-x: hidden;
	overflow-y: auto;
}

.jinsom-chat-content-container::-webkit-scrollbar {
	width: 4px;
}

.jinsom-chat-content-container .chat-box {
	display: flex;
	padding: 15px 20px;
}

.jinsom-chat-content-container .chat-box:last-child {
	padding-bottom: 40px;
}

.jinsom-chat-content-container .chat-box.self {
	flex-direction: row-reverse;
}

.jinsom-chat-content-container .chat-box .avatarimg {
	margin-right: 15px;
}

.jinsom-chat-content-container .chat-box.self .avatarimg {
	margin-right: 0;
	margin-left: 15px;
}

.jinsom-chat-content-container .chat-box .avatarimg > a {
	display: block;
	width: 40px;
	height: 40px;
	position: relative;
}

.jinsom-chat-content-container .chat-box .chat-info {
	max-width: 80%;
}

.jinsom-chat-content-container .chat-box.self .user-info {
	text-align: right;
}

.jinsom-chat-content-container .chat-box .user-info {
	margin-bottom: 10px;
}

.jinsom-chat-content-container .chat-box .chat-content {
	background-color: #eee;
	padding: 10px;
	border-radius: 8px;
	color: #333;
	word-break: break-word;
	line-height: 24px;
	position: relative;
	display: inline-block;
	min-width: 10px;
	min-height: 24px;
	margin-bottom: 5px;
}

.jinsom-chat-content-container .chat-box .chat-content img:not(.jinsom-emoji) {
	max-width: 150px;
	max-height: 50%;
	border-radius: 8px;
	display: block;
}

.jinsom-chat-content-container .chat-box.self .chat-content {
	background-color: #46c47c;
	color: #fff;
	float: right;
}

.jinsom-chat-content-container .chat-box.img .chat-content,
.jinsom-chat-content-container .chat-box.redbag .chat-content,
.jinsom-chat-content-container .chat-box.share .chat-content {
	padding: 0;
	background-color: #ffff;
}

.jinsom-chat-content-container .chat-box.img .chat-content:before,
.jinsom-chat-content-container .chat-box.redbag .chat-content:before,
.jinsom-chat-content-container .chat-box.share .chat-content:before {
	display: none;
}

.jinsom-chat-content-container .chat-box.self.img .chat-content {
	text-align: right;
}

.jinsom-chat-content-container .chat-box .chat-content:before {
	content: '';
	position: absolute;
	left: -10px;
	top: 15px;
	width: 0;
	height: 0;
	border-style: solid dashed dashed;
	border-color: #eee transparent transparent;
	overflow: hidden;
	border-width: 12px;
	z-index: -1;
}

.jinsom-chat-content-container .chat-box.self .chat-content:before {
	border-color: #46c47c transparent transparent;
	right: -10px;
	left: inherit;
}

.jinsom-chat-content-container .chat-box .chat-quote {
	background-color: #f1f1f1;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	color: #888;
	max-height: 32px;
	overflow: hidden;
	clear: both;
}

.jinsom-chat-content-container .chat-box > i.error {
	color: #fb2519;
	margin-right: 5px;
	display: flex;
	align-items: center;
}

.jinsom-chat-content-container .chat-box.tips {
	display: block;
	text-align: center;
}

.jinsom-chat-content-container .chat-box.tips .chat-tips-content {
	display: inline-block;
	margin: auto;
	background-color: #d5d5d5;
	padding: 4px 15px;
	font-size: 12px;
	border-radius: 20px;
	color: #fff;
	word-break: break-word;
}

.jinsom-chat-content-container .chat-box.tips.time .chat-tips-content {
	background-color: #fff;
	color: #999;
}

.jinsom-chat-content-container .audio-detail-msg {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.jinsom-chat-content-container .audio-detail-msg .seconds {
	padding-right: 5px;
}

.jinsom-chat-content-container .audio-detail-msg .audio-style {
	display: flex;
	align-items: center;
	padding-right: 10px;
}

.jinsom-chat-content-container .audio-detail-msg .small {
	border: 3px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .audio-detail-msg .middle {
	width: 16px;
	height: 16px;
	margin-left: -11px;
	opacity: 1;
	border: 2px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .audio-detail-msg .large {
	width: 24px;
	height: 24px;
	margin-left: -19px;
	opacity: 1;
	border: 2px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .chat-box.self .audio-detail-msg {
	flex-direction: row-reverse;
}

.jinsom-chat-content-container .self .audio-detail-msg .audio-style {
	flex-direction: row-reverse;
}

.jinsom-chat-content-container .self .audio-detail-msg .small {
	border: 3px solid #fff;
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .self .audio-detail-msg .middle {
	width: 16px;
	height: 16px;
	margin-right: -11px;
	margin-left: 0;
	opacity: 1;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .self .audio-detail-msg .large {
	width: 24px;
	height: 24px;
	margin-right: -19px;
	margin-left: 0;
	opacity: 1;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-content-container .audio-detail-msg .play .middle {
	animation: show2 1.2s ease-in-out infinite;
}

.jinsom-chat-content-container .audio-detail-msg .play .large {
	animation: show3 1.2s ease-in-out infinite;
}

@keyframes show2 {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes show3 {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	60% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

.jinsom-chat-content-container .file .chat-content,
.jinsom-chat-content-container .file.self .chat-content {
	display: flex;
	align-items: center;
	background-color: #fff;
	border: 1px solid #f5f5f5;
}

.jinsom-chat-content-container .file .chat-content:before,
.jinsom-chat-content-container .file.self .chat-content:before,
.jinsom-chat-content-container .chat-box.location .chat-content:before {
	border-color: transparent;
}

.jinsom-chat-content-container .file .chat-content .file-info {
	color: #333;
	margin-right: 20px;
}

.jinsom-chat-content-container .file .chat-content .file-icon em {
	font-size: 30px;
	color: #ccc;
}

.jinsom-chat-content-container .file .chat-content .file-info span {
	display: block;
}

.jinsom-chat-content-container .file .chat-content .file-info .file-name {
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 50%;
}

.jinsom-chat-content-container .file .chat-content .file-info .file-size {
	font-size: 12px;
	color: #8e8e8e;
}

.jinsom-chat-content-container .chat-box.video .chat-content,
.jinsom-chat-content-container .chat-box.video.self .chat-content {
	background-color: #fff;
	border: 1px solid #f5f5f5;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
}

.jinsom-chat-content-container .chat-box.video .chat-content:before,
.jinsom-chat-content-container .chat-box.video.self .chat-content:before {
	border-color: transparent;
}

.jinsom-chat-content-container .chat-box.video .video-info {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-flow: column;
	background: rgb(0 0 0 / 20%);
}

.jinsom-chat-content-container .chat-box.video .video-info.loading .chat-loading {
	border: 2px solid #fff;
	border-top-color: rgba(0, 0, 0, .2);
	border-right-color: rgba(0, 0, 0, .2);
	border-bottom-color: rgba(0, 0, 0, .2);
}

.jinsom-chat-content-container .chat-box.video .video-info.loading .progress {
	margin-top: 25px;
}

.jinsom-chat-content-container .chat-box.video .video-info.play i {
	font-size: 35px;
	opacity: .8;
	color: #dbdada;
}

.jinsom-chat-content-container .chat-box.video .chat-content:hover .video-info.play i {
	opacity: 1;
	color: #fff;
}

.jinsom-chat-content-container .chat-box.video .video-info .jinsom-more-loading {
	margin: 0;
}

.jinsom-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content {
	background: 0 0;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jinsom-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content i {
	font-size: 14px;
	margin-right: 5px;
	color: #d75e5e;
}

.jinsom-chat-content-container .chat-box.tips.receive-redbag .chat-tips-content span {
	color: #ff9500;
	margin-left: 5px;
}

.jinsom-chat-content-container .chat-box .chat-content .video-dom {
	position: relative;
}

.jinsom-chat-content-container .chat-box .chat-content .video-dom .seconds {
	position: absolute;
	right: 6px;
	font-size: 12px;
	bottom: 12px;
	color: #fff;
}

.jinsom-chat-content-container .chat-box.location .chat-content {
	background-color: #f1f1f1;
	border: 1px solid #f2f2f2;
	padding: 0;
	width: 240px;
}

.jinsom-chat-content-container .chat-box.location .location-top {
	padding: 5px 8px;
	box-sizing: border-box;
	background-color: #fff;
}

.jinsom-chat-content-container .chat-box.location .location-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #333;
}

.jinsom-chat-content-container .chat-box.location .location-address {
	font-size: 12px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jinsom-chat-content-container .chat-box.location .chat-content img {
	width: 100%;
	max-width: inherit;
	border-radius: 0 0 4px 4px;
	height: 80px;
	object-fit: cover;
}

.jinsom-chat-bar {
	border-top: 1px solid #ebebeb;
	height: 38px;
	position: relative;
	padding: 0 20px;
	display: flex;
	align-items: center;
}

.jinsom-chat-bar > div {
	display: flex;
	height: 38px;
	align-items: center;
}

.jinsom-chat-bar .bar-left {
	flex: 1;
}

.jinsom-chat-bar > div i {
	padding: 0 10px;
	cursor: pointer;
	line-height: 38px;
}

.jinsom-chat-footer {
	position: relative;
	height: 140px;
}

.jinsom-chat-footer .emoji-editor {
	width: 100% !important;
	padding: 5px 10px 0 20px !important;
	height: 100px !important;
	line-height: 20px !important;
	overflow: auto;
	resize: none;
	background: #ffffff;
}

.jinsom-chat-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	position: absolute;
	right: 20px;
	bottom: 0;
}

.jinsom-chat-btn button {
	line-height: 32px;
	padding: 0 20px;
	background-color: #e7e7e7;
	border-radius: 3px;
	cursor: pointer;
}

.jinsom-chat-btn button:hover,
.jinsom-chat-search button:hover {
	opacity: 0.8;
}

.jinsom-chat-content-scroll-bottom {
	position: absolute;
	right: 0;
	top: -50px;
	height: 20px;
	padding: 16px 12px;
	line-height: 20px;
	font-size: 12px;
	background-color: #ffffff;
	border-radius: 16px 0 0 16px;
	color: #07c160;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
}

.jinsom-chat-video-popup {
	background-color: transparent;
	box-shadow: none;
}

.jinsom-chat-video-popup .layui-layer-content {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chat-video-box {
	width: 100%;
	min-height: 100px;
	max-height: 90%;
}

.chat-video-box .art-video-player {
	display: block !important;
	width: 100% !important;
}

.chat-video-box video {
	object-fit: cover;
}

/* 聊天历史 */
.jinsom-chat-history-container {
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	padding: 8px 16px;
}

.jinsom-chat-history-container li:has(> .history-item-recall) {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #999;
}

.jinsom-chat-history-container li:not(:has(> .history-item-recall)) {
	display: grid;
	grid-template-columns: 40px 1fr 70px;
	gap: 10px;
}

.jinsom-chat-history-container li {
	width: 100%;
	padding: 8px 0;
	border-bottom: 1px solid hsl(0deg 0% 0% / 5%);
}

.jinsom-chat-history-container .history-item-avatar {
	width: 40px;
	height: 40px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 2px;
	border: 1px solid hsl(0deg 0% 0% / 10%);
}

.jinsom-chat-history-container .history-item-center {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.jinsom-chat-history-container .history-chat-content {
	word-wrap: break-word;
	word-break: break-all;
	flex-shrink: 1;
}

.jinsom-chat-history-container .history-chat-content img:not(.jinsom-emoji) {
	max-width: 150px;
	border-radius: 8px;
	cursor: pointer;
}

.jinsom-chat-history-container .history-chat-time,
.jinsom-chat-history-container .history-user-name {
	font-size: 12px;
	color: #999;
}

.jinsom-chat-history-container .history-chat-content .video-dom {
	position: relative;
	width: 150px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}

.jinsom-chat-history-container .history-chat-content .video-dom .seconds {
	position: absolute;
	right: 6px;
	font-size: 12px;
	bottom: 12px;
	color: #fff;
}

.jinsom-chat-history-container .history-chat-content .video-info {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-flow: column;
	background: rgb(0 0 0 / 20%);
}

.jinsom-chat-history-container .history-chat-content .video-info.loading .chat-loading {
	border: 2px solid #fff;
	border-top-color: rgba(0, 0, 0, .2);
	border-right-color: rgba(0, 0, 0, .2);
	border-bottom-color: rgba(0, 0, 0, .2);
}

.jinsom-chat-history-container .history-chat-content .video-info.loading .progress {
	margin-top: 25px;
}

.jinsom-chat-history-container .history-chat-content .video-info.play i {
	font-size: 35px;
	opacity: .8;
	color: #dbdada;
}

.jinsom-chat-history-container .history-chat-content:hover .video-info.play i {
	opacity: 1;
	color: #fff;
}

.jinsom-chat-history-container .history-chat-content .video-info .jinsom-more-loading {
	margin: 0;
}

.jinsom-chat-history-container .history-chat-content .chat-location-box {
	background-color: #f1f1f1;
	border: 1px solid #f2f2f2;
	border-radius: 8px;
	overflow: hidden;
}

.jinsom-chat-history-container .history-chat-content .location-top {
	padding: 5px 8px;
	box-sizing: border-box;
	background-color: #fff;
}

.jinsom-chat-history-container .history-chat-content .location-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #333;
}

.jinsom-chat-history-container .history-chat-content .location-address {
	font-size: 12px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jinsom-chat-history-container .history-chat-content .chat-location-box img {
	max-width: 100%;
	border-radius: 0;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg {
	display: flex;
	align-items: center;
	cursor: pointer;
	background-color: #eee;
	padding: 5px 10px;
	border-radius: 4px;
	color: #333;
	position: relative;
	min-width: 10px;
	min-height: 24px;
	max-width: 50%;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg .seconds {
	padding-right: 5px;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg .audio-style {
	display: flex;
	align-items: center;
	padding-right: 10px;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg .small {
	border: 3px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg .middle {
	width: 16px;
	height: 16px;
	margin-left: -11px;
	opacity: 1;
	border: 2px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}

.jinsom-chat-history-container .history-chat-content .audio-detail-msg .large {
	width: 24px;
	height: 24px;
	margin-left: -19px;
	opacity: 1;
	border: 2px solid #4c4c4c;
	border-top-color: transparent;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 50%;
	box-sizing: border-box;
}