.ltck-consult-float,
.ltck-consult-float * {
	box-sizing: border-box;
}

.ltck-consult-float .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.ltck-consult-float {
	position: fixed;
	right: 24px;
	/* 避开主题右下角 .ltck-backtop 返回顶部按钮（bottom:24px, 高 44px）。 */
	bottom: 84px;
	z-index: 10000;
	font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.ltck-consult-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 132px;
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 24px;
	background: #ff5c2e;
	box-shadow: 0 8px 24px rgba(255, 92, 46, .35);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.ltck-consult-toggle:hover,
.ltck-consult-toggle:focus-visible {
	background: #e04a20;
	outline: 2px solid rgba(255, 255, 255, .5);
	outline-offset: -4px;
}

.ltck-consult-panel {
	position: absolute;
	right: 0;
	bottom: 60px;
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: min(640px, calc(100vh - 120px));
	overflow: hidden;
	border: 1px solid #e3e1da;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(23, 26, 31, .16);
	color: #1e2228;
}

.ltck-consult-panel[hidden],
.ltck-consult-chat[hidden] {
	display: none;
}

.ltck-consult-panel > header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 12px 16px 12px 20px;
	background: #1c2128;
	border-bottom: 2px solid #ff5c2e;
	color: #fff;
}

.ltck-consult-panel > header strong,
.ltck-consult-panel > header small {
	display: block;
}

.ltck-consult-panel > header strong {
	font-size: 18px;
	line-height: 1.4;
}

.ltck-consult-panel > header small {
	margin-top: 2px;
	color: rgba(255, 255, 255, .65);
	font-size: 12px;
}

.ltck-consult-close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 32px;
	cursor: pointer;
}

.ltck-consult-close:hover,
.ltck-consult-close:focus-visible {
	background: rgba(255, 255, 255, .1);
	outline: none;
}

.ltck-consult-body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	background: #fff;
}

.ltck-consult-start {
	width: 100%;
	padding: 20px;
	overflow-y: auto;
}

.ltck-consult-start > p:first-child {
	margin: 0 0 16px;
	color: #565d66;
	font-size: 14px;
	line-height: 1.7;
}

.ltck-consult-start label {
	display: block;
	margin-bottom: 12px;
	color: #1e2228;
	font-size: 13px;
	font-weight: 600;
}

.ltck-consult-start input[type="text"],
.ltck-consult-start textarea,
.ltck-consult-send textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #e3e1da;
	border-radius: 6px;
	background: #fff;
	color: #1e2228;
	font: inherit;
	font-weight: 400;
	line-height: 1.5;
	resize: vertical;
}

.ltck-consult-start input[type="text"]::placeholder,
.ltck-consult-start textarea::placeholder,
.ltck-consult-send textarea::placeholder {
	color: #9aa0a8;
}

.ltck-consult-start input[type="text"]:focus,
.ltck-consult-start textarea:focus,
.ltck-consult-send textarea:focus {
	border-color: #ff5c2e;
	box-shadow: 0 0 0 2px rgba(255, 92, 46, .12);
	outline: none;
}

.ltck-consult-start .ltck-consult-consent {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: #565d66;
	font-size: 12px;
	font-weight: 400;
}

.ltck-consult-consent input {
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: #ff5c2e;
}

.ltck-consult-start > button,
.ltck-consult-send button {
	min-height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: #ff5c2e;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 40px;
	cursor: pointer;
}

.ltck-consult-start > button:hover,
.ltck-consult-send button:hover {
	background: #e04a20;
}

.ltck-consult-start > button:disabled,
.ltck-consult-send button:disabled {
	cursor: wait;
	opacity: .65;
}

.ltck-consult-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ltck-consult-chat {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	flex-direction: column;
	width: 100%;
}

.ltck-consult-messages {
	flex: 1 1 auto;
	min-height: 0;
	padding: 16px;
	overflow-y: auto;
	background: #f9f8f6;
}

.ltck-consult-message {
	display: flex;
	margin-bottom: 12px;
	flex-direction: column;
	align-items: flex-end;
}

.ltck-consult-message.is-staff {
	align-items: flex-start;
}

.ltck-consult-message-label {
	margin: 0 3px 3px;
	color: #9aa0a8;
	font-size: 10px;
	line-height: 1.4;
}

.ltck-consult-message p {
	max-width: 84%;
	margin: 0;
	padding: 10px 13px;
	border-radius: 12px 4px 12px 12px;
	background: #ff5c2e;
	color: #fff;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
}

.ltck-consult-message.is-staff p {
	border-radius: 4px 12px 12px;
	background: #fff;
	border: 1px solid #e3e1da;
	box-shadow: 0 1px 3px rgba(23, 26, 31, .05);
	color: #1e2228;
}

.ltck-consult-message time {
	margin-top: 4px;
	color: #9aa0a8;
	font-size: 10px;
}

.ltck-consult-send {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #e3e1da;
	background: #fff;
}

.ltck-consult-send textarea {
	flex: 1 1 auto;
	min-height: 42px;
	max-height: 100px;
	margin: 0;
	resize: none;
}

.ltck-consult-info {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid #e3e1da;
	background: #fff;
	color: #565d66;
	font-size: 11px;
}

.ltck-consult-status {
	min-height: 18px;
	margin: 7px 0 0;
	color: #b42318;
	font-size: 12px;
	line-height: 1.5;
}

.ltck-consult-send + .ltck-consult-status {
	position: absolute;
	left: -9999px;
}

.ltck-consult-chat > .ltck-consult-status {
	flex: 0 0 auto;
	margin: 0;
	padding: 0 12px 8px;
	background: #fff;
}

.ltck-consult-panel > footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 16px;
	border-top: 1px solid #e3e1da;
	background: #f4f3ef;
	color: #565d66;
	font-size: 11px;
}

.ltck-consult-panel > footer a {
	flex: 0 0 auto;
	color: #ff5c2e;
	font-weight: 600;
	text-decoration: none;
}

.ltck-consult-panel > footer a:hover {
	color: #e04a20;
}

@media (min-width: 768px) {
	.back-to-top.fixed-back-to-top {
		right: 65px;
		bottom: 88px;
	}
}

@media (max-width: 767px) {
	.ltck-consult-float {
		right: 12px;
		bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.back-to-top.fixed-back-to-top {
		right: 14px !important;
		bottom: calc(132px + env(safe-area-inset-bottom)) !important;
	}

	.ltck-consult-toggle {
		min-width: 54px;
		width: 54px;
		height: 54px;
		padding: 0;
		border-radius: 50%;
		font-size: 20px;
	}

	.ltck-consult-toggle > span:last-child {
		position: absolute;
		left: -9999px;
	}

	.ltck-consult-panel {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		height: min(78vh, 680px);
		border-width: 1px 0 0;
		border-radius: 14px 14px 0 0;
	}

	.ltck-consult-panel > footer {
		padding-bottom: calc(9px + env(safe-area-inset-bottom));
	}

	.ltck-consult-start {
		padding: 18px;
	}

	.ltck-consult-start input[type="text"],
	.ltck-consult-start textarea,
	.ltck-consult-send textarea {
		font-size: 16px;
	}
}