/* 首页即时消息弹窗 iframe：按设计图重排消息页 */
.im-sidebar-search,
.im-toolbar-extra {
	display: none;
}

html.im-embed,
body.im-embed {
	height: 100%;
	margin: 0;
	overflow: hidden !important;
	background: #f4f4f4;
}

body.im-embed .header,
body.im-embed .footer,
body.im-embed .crumbs,
body.im-embed .index-header-bar,
body.im-embed .scanorcode,
body.im-embed .container-bottom-pop,
body.im-embed .container-content-pop,
body.im-embed #container-content-pop2,
body.im-embed .container-top-li:nth-child(4),
body.im-embed .container-top-li-icon,
body.im-embed .feed {
	display: none !important;
}

body.im-embed .im-sidebar-search,
body.im-embed .im-toolbar-extra {
	display: flex;
}

body.im-embed .container {
	width: 100% !important;
	max-width: none !important;
	min-height: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #f4f4f4 !important;
	overflow: hidden !important;
}

body.im-embed .container-text {
	position: relative !important;
	left: 0 !important;
	margin: 0 !important;
	transform: none !important;
	display: grid !important;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-rows: 48px 40px minmax(0, 1fr);
	width: 100% !important;
	height: 100% !important;
	background: #fff;
	overflow: hidden !important;
}

body.im-embed .im-sidebar-search {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 6;
	box-sizing: border-box;
	width: 100%;
	padding: 6px 12px;
	background: #fff;
	border-right: 1px solid #eee;
}

body.im-embed .im-sidebar-search-inner {
	display: flex;
	align-items: center;
	width: 100%;
	height: 36px;
	padding: 0 12px;
	background: #f4f4f4;
	border: 1px solid #ececec;
	border-radius: 6px;
}

body.im-embed .im-sidebar-search-inner svg {
	flex-shrink: 0;
	color: #999;
}

body.im-embed .im-sidebar-search input {
	flex: 1;
	min-width: 0;
	height: 36px;
	margin-left: 8px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 13px;
	color: #333;
}

body.im-embed .container-top {
	grid-column: 1;
	grid-row: 2;
	position: relative !important;
	z-index: 6;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: 40px !important;
	padding: 0 6px !important;
	margin: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	border-right: 1px solid #eee;
	border-bottom: 1px solid #f0f0f0;
}

body.im-embed .container-top-li {
	position: relative;
	width: auto !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 8px;
	border: none !important;
	background: transparent !important;
	color: #666 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

body.im-embed .container-top-li + .container-top-li {
	margin-left: 0 !important;
}

body.im-embed .container-top-li .container-top-li-name {
	margin-left: 0 !important;
}

body.im-embed .container-top-li.activeo {
	color: #2b7de9 !important;
	font-weight: 600 !important;
}

body.im-embed .container-top-li.activeo::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 0;
	height: 2px;
	background: #2b7de9;
	border-radius: 2px;
}

body.im-embed .container-top-li-pop {
	top: 6px !important;
	right: 2px !important;
}

body.im-embed .container-bottom {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	position: relative;
	display: grid !important;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-rows: 48px 40px minmax(0, 1fr);
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	align-items: stretch !important;
	overflow: hidden !important;
}

body.im-embed .container-bottom-left,
body.im-embed .container-bottom-left1 {
	grid-column: 1;
	grid-row: 3;
	position: relative !important;
	left: auto !important;
	top: auto !important;
	z-index: 3;
	box-sizing: border-box;
	width: 100% !important;
	height: 100% !important;
	padding: 8px 0 !important;
	margin: 0 !important;
	background: #fff !important;
	border-right: 1px solid #eee !important;
	box-shadow: none !important;
}

body.im-embed .container-bottom-left ul:empty::after,
body.im-embed .container-bottom-left1 ul:empty::after {
	content: "暂无会话，登录后将在此显示平台客服";
	display: block;
	padding: 28px 16px;
	font-size: 12px;
	line-height: 1.6;
	color: #999;
	text-align: center;
}

body.im-embed .container-bottom-left ul li,
body.im-embed .container-bottom-left1 ul li {
	padding: 10px 12px;
	border-bottom: none;
}

body.im-embed .container-bottom-left ul li.activeB,
body.im-embed .container-bottom-left1 ul li.activeB,
body.im-embed .container-bottom-left ul li:hover,
body.im-embed .container-bottom-left1 ul li:hover,
body.im-embed .im-sys-li.im-sys-li-active,
body.im-embed .im-sys-li:hover {
	background: #eef6ff;
}

body.im-embed .container-bottom-left-icon,
body.im-embed .container-bottom-left-icon img {
	border-radius: 50% !important;
}

body.im-embed .container-bottom-left-content {
	min-height: 48px;
	padding: 6px 0;
}

body.im-embed .container-bottom-right:not([style*="display: none"]):not([style*="display:none"]) {
	grid-column: 2;
	grid-row: 1 / -1;
	display: flex !important;
	flex-direction: column;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0;
	margin: 0 !important;
	background: #f4f4f4 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

body.im-embed .container-bottom-right1[style*="display: block"],
body.im-embed .container-bottom-right1[style*="display:block"] {
	grid-column: 2;
	grid-row: 1 / -1;
	display: flex !important;
	flex-direction: column;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 0;
	margin: 0 !important;
	background: #f4f4f4 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

body.im-embed .container-bottom-right-top {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	flex: 0 0 48px;
	flex-shrink: 0;
	box-sizing: border-box;
	height: 48px !important;
	padding: 0 16px !important;
	margin: 0 !important;
	background: #fff !important;
	border-bottom: 1px solid #eee;
	border-left: 1px solid #eee;
	z-index: 2;
}

body.im-embed .im-chat-scroll-wrap {
	flex: 1 1 0% !important;
	position: relative !important;
	min-height: 0 !important;
	height: auto !important;
	overflow: hidden !important;
	display: block !important;
	background: #f3f5f8;
}

body.im-embed .container-bottom-right-chat,
body.im-embed .container-bottom-right-chat1 {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	box-sizing: border-box;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 16px 8px 12px 12px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	background: #f3f5f8 !important;
}

body.im-embed .container-bottom-right-chat::-webkit-scrollbar,
body.im-embed .container-bottom-right-chat1::-webkit-scrollbar {
	width: 6px;
}

body.im-embed .container-bottom-right-chat::-webkit-scrollbar-thumb,
body.im-embed .container-bottom-right-chat1::-webkit-scrollbar-thumb {
	background: #c5c5c5;
	border-radius: 6px;
}

body.im-embed .container-bottom-right-chat #ckli:last-child,
body.im-embed .container-bottom-right-chat1 #ckli:last-child {
	margin-bottom: 8px !important;
}

body.im-embed .container-bottom-right-chat-li-1,
body.im-embed .container-bottom-right-chat-li-2 {
	align-items: flex-start;
	margin-top: 12px;
	gap: 8px;
}

body.im-embed .container-bottom-right-chat-li-1-img img,
body.im-embed .container-bottom-right-chat-li-2-img img {
	width: 34px !important;
	height: 34px !important;
	margin-left: 0 !important;
	border-radius: 50% !important;
	object-fit: cover;
	background: #e8e8e8;
}

body.im-embed .cu,
body.im-embed .cu1 {
	max-width: calc(100% - 50px);
}

body.im-embed .cu > div:first-child,
body.im-embed .cu1 > div:first-child {
	font-size: 11px !important;
	color: #9aa0a6 !important;
	margin-bottom: 4px !important;
	line-height: 1.2;
}

body.im-embed .cu-time,
body.im-embed .cu-time1 {
	margin-left: 6px;
	font-size: 11px;
	color: #c0c4c8;
}

body.im-embed .cu > div:first-child img {
	width: 28px !important;
	height: auto !important;
	margin-left: 4px;
	object-fit: contain;
}

body.im-embed .container-bottom-right-chat-li-1-chat {
	background: #fff !important;
	color: #333 !important;
	border-radius: 4px 16px 16px 16px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 8px 12px !important;
	max-width: min(280px, 100%);
	font-size: 13px;
	line-height: 1.55;
}

body.im-embed .container-bottom-right-chat-li-2-chat {
	background: #2b7de9 !important;
	color: #fff !important;
	border-radius: 16px 4px 16px 16px !important;
	padding: 8px 12px !important;
	max-width: min(280px, 100%);
	font-size: 13px;
	line-height: 1.55;
}

body.im-embed .container-bottom-right-chat-li-2-cu1-img img,
body.im-embed .container-bottom-right-chat-li-1-chat img,
body.im-embed .container-bottom-right-chat-li-2-chat img {
	max-width: 180px;
	border-radius: 8px;
}

body.im-embed .container-bottom-right-chat-pro-img {
	width: 220px;
	height: auto;
	min-height: 72px;
	padding: 8px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.im-embed .draw-right {
	color: #b0b0b0;
	font-size: 11px;
}

body.im-embed .container-bottom-right-center-card {
	left: auto !important;
	right: 16px;
	top: 12px;
	transform: none !important;
	width: 240px;
	height: auto;
	padding-bottom: 8px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body.im-embed .container-bottom-right-center-card-img,
body.im-embed .container-bottom-right-center-card-img img {
	width: 72px;
	height: 54px;
}

body.im-embed .container-bottom-right-center-card .aquiy {
	margin-top: 8px;
	height: 36px;
	color: #2b7de9;
	border-top: 1px solid #f0f0f0;
}

body.im-embed .container-bottom-right-bottom {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	flex: 0 0 auto;
	flex-shrink: 0;
	height: auto !important;
	background: #fff;
	border-top: 1px solid #eee;
}

body.im-embed .container-bottom-right-bottom > div:first-child {
	padding: 8px 14px 0 !important;
	gap: 10px;
}

body.im-embed .container-bottom-right-bottom > div:first-child img {
	width: 22px;
	height: 22px;
	cursor: pointer;
	opacity: 0.78;
}

body.im-embed .container-bottom-right-bottom > div:first-child img:hover {
	opacity: 1;
}

body.im-embed .container-bottom-right-bottom [id="imgText"] {
	margin: 0 !important;
	padding: 6px 14px 10px !important;
	align-items: flex-end !important;
	gap: 8px;
}

body.im-embed .container-bottom-right-bottom [id="imgText"] > div {
	margin-top: 0 !important;
}

body.im-embed #messageText1,
body.im-embed #messageText2 {
	flex: 1;
	min-height: 40px;
	max-height: 88px;
	padding: 8px 12px;
	background: #f5f6f8 !important;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
	overflow: hidden !important;
}

body.im-embed .container-bottom-right-bottom .quit,
body.im-embed .quit2 {
	margin: 0 0 0 8px !important;
	width: 68px;
	height: 32px;
	background: #2b7de9;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: none;
}

body.im-embed .im-toolbar-extra {
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 10px;
	padding: 0;
	border: none;
	background: transparent;
	color: #8a8a8a;
	cursor: pointer;
}

body.im-embed .im-toolbar-extra:hover {
	color: #555;
}

/* 系统消息：左侧列表 + 右侧通知卡片 */
body.im-embed .container-content-pop3[style*="display: flex"],
body.im-embed .container-content-pop3[style*="display:flex"] {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	position: relative !important;
	display: grid !important;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-rows: 48px 40px minmax(0, 1fr) auto;
	width: 100% !important;
	height: 100% !important;
	background: transparent;
	overflow: hidden;
	z-index: 4;
}

body.im-embed .container-content-pop3-read {
	position: absolute;
	right: 20px;
	top: 12px;
	z-index: 5;
	width: auto;
	justify-content: flex-end;
}

body.im-embed .container-content-pop3-read .read {
	margin: 0;
	width: auto;
	padding: 0 12px;
	line-height: 28px;
	border: 1px solid #d8d8d8;
	border-radius: 14px;
	background: #f3f3f3;
	color: #666;
	font-size: 12px;
}

body.im-embed .container-content-pop3-warp {
	grid-column: 1;
	grid-row: 3;
	width: 100%;
	height: auto !important;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	border-right: 1px solid #eee;
	padding: 6px 0 8px;
}

body.im-embed .container-content-right-extend-4 {
	grid-column: 1;
	grid-row: 4;
	position: relative !important;
	left: auto;
	right: auto;
	bottom: auto;
	height: auto;
	padding: 6px 4px;
	background: #fff;
	border-right: 1px solid #eee;
	justify-content: center;
}

body.im-embed .container-content-right-extend-4 .page {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

body.im-embed .container-content-right-extend-4 .page a {
	height: 22px;
	line-height: 22px;
	padding: 0 6px;
	margin: 1px;
	font-size: 12px;
}

body.im-embed .container-content-right-extend-4 .page a.ellipsis {
	cursor: default;
	border-color: transparent;
}

body.im-embed .im-sys-li {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 72px;
	margin: 0;
	padding: 8px 12px;
	gap: 10px;
	justify-content: flex-start;
}

body.im-embed .container-content-right-extend-4 .page a.prevPage,
body.im-embed .container-content-right-extend-4 .page a.nextPage,
body.im-embed .container-content-right-extend-4 .page a.page-num {
	color: #007BE5;
	border-color: #c5dcf7;
	cursor: pointer;
}

body.im-embed .im-sys-li .container-content-pop-li-pop {
	position: absolute;
	left: 44px;
	top: 10px;
	z-index: 1;
}

body.im-embed .im-sys-li-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f0f0;
}

body.im-embed .im-sys-li-avatar img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

body.im-embed .im-sys-li-main {
	flex: 1;
	min-width: 0;
}

body.im-embed .im-sys-li-title {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

body.im-embed .im-sys-li-sub {
	margin-top: 4px;
	font-size: 12px;
	color: #999;
}

body.im-embed .container-content-pop3-back {
	grid-column: 2;
	grid-row: 1 / -1;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 16px;
	box-sizing: border-box;
	background: #f4f4f4;
	overflow: auto;
}

body.im-embed .container-content-pop3-back[style*="display: flex"],
body.im-embed .container-content-pop3-back[style*="display:flex"] {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

body.im-embed .container-content-pop3-back .back {
	display: none !important;
}

body.im-embed .container-content-pop3-back .text {
	margin: 0;
	height: auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.im-embed .im-sys-card {
	width: min(420px, 92%);
	margin: 0;
	padding: 24px 28px 22px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	text-align: center;
}

body.im-embed .im-sys-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

body.im-embed .im-sys-card-time {
	margin-top: 14px;
	font-size: 12px;
	color: #999;
}

body.im-embed .im-sys-card-body {
	margin-top: 18px;
	font-size: 16px;
	font-weight: 700;
	color: #222;
	line-height: 1.7;
	word-break: break-word;
}

body.im-embed .im-sys-card-foot {
	margin-top: 18px;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

body.im-embed .m-emoji-wrapper {
	top: auto !important;
	bottom: 150px !important;
	z-index: 99999 !important;
}

body.im-embed .container-bottom-right-settings {
	height: auto;
	max-height: 90%;
}
