#ac-comment-image-field {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 12px;
}

#ac-comment-image-field .ac-comment-image-tip {
	font-size: 12px;
	opacity: 0.65;
}

#ac-comment-image-field .btn {
	margin: 0;
}

.ac-comment-image-upload-preview {
	flex-basis: 100%;
	margin-top: 3px;
}

.ac-comment-image-upload-preview img {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 120px;
	border-radius: 6px;
	object-fit: contain;
}

#comments .comment-item.ac-comment-top-level .comment-item-left-wrapper,
.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-left-wrapper {
	width: 56px;
	margin-right: 15px;
}

#comments .comment-item.ac-comment-top-level .comment-item-avatar .avatar,
.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-avatar .avatar {
	width: 56px;
	height: 56px;
}

#comments .comment-item.ac-comment-top-level .comment-item-inner,
.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-inner {
	width: calc(100% - 71px);
}

#comments .comment-item.ac-comment-reply .comment-item-left-wrapper,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-left-wrapper {
	width: 30px;
	margin-top: 18px;
	margin-right: 10px;
}

#comments .comment-item.ac-comment-reply .comment-item-avatar .avatar,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-avatar .avatar {
	width: 30px;
	height: 30px;
}

#comments .comment-item.ac-comment-reply .comment-item-inner,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-inner {
	width: calc(100% - 40px);
	margin-top: 12px;
	padding-bottom: 10px;
}

#comments .comment-item.ac-comment-reply .comment-item-title,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-title {
	font-size: 14px;
}

#comments .comment-item.ac-comment-reply .comment-item-text,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-text {
	margin-bottom: 0.55rem;
	font-size: 14px;
	line-height: 1.65;
}

#comments .comment-item.ac-comment-reply .comment-info,
.shuoshuo-comments .comment-item.ac-comment-reply .comment-info {
	font-size: 11px;
}

.comment-list ul.children,
.shuoshuo-comments ul.children {
	box-sizing: border-box;
	width: calc(100% - 72px);
	margin: 10px 0 12px 72px;
	padding: 6px 10px 3px 12px;
	border-left: 3px solid var(--themecolor);
	border-radius: 0 8px 8px 0;
	background: rgba(45, 126, 255, 0.06);
}

.comment-list ul.children::before,
.shuoshuo-comments ul.children::before {
	display: block;
	margin: 0 0 4px 2px;
	color: var(--themecolor);
	font-size: 12px;
	font-weight: 600;
	content: "回复";
}

html.darkmode .comment-list ul.children,
html.darkmode .shuoshuo-comments ul.children {
	background: rgba(255, 255, 255, 0.07);
}

.comment-list ul.children ul.children,
.shuoshuo-comments ul.children ul.children {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.comment-list ul.children ul.children::before,
.shuoshuo-comments ul.children ul.children::before {
	display: none;
}

.comment-item.ac-reply-hidden {
	display: none !important;
}

.ac-reply-toggle-item {
	list-style: none !important;
	padding: 6px 0 5px 40px;
}

.ac-reply-toggle {
	padding: 3px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--themecolor);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ac-reply-toggle:hover,
.ac-reply-toggle:focus {
	opacity: 0.78;
}

.comment-item-text .ac-comment-image-wrap {
	display: block !important;
	clear: both;
	width: fit-content;
	max-width: 100%;
	margin-top: 10px;
}

.ac-comment-image-link {
	display: inline-block;
	max-width: 240px;
	margin-top: 8px;
	line-height: 0;
	border-radius: 7px;
	overflow: hidden;
}

.ac-comment-image-thumb {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto;
	max-width: 240px;
	max-height: 220px;
	border-radius: 7px;
	object-fit: contain;
}

.ac-comment-image-lightbox {
	display: none;
	position: fixed;
	z-index: 2000;
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(0, 0, 0, 0.82);
}

.ac-comment-image-lightbox.is-visible {
	display: flex;
}

.ac-comment-image-lightbox img {
	display: block;
	max-width: 95vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ac-comment-image-lightbox-close {
	position: absolute;
	top: 12px;
	right: 18px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 575.98px) {
	#ac-comment-image-field .ac-comment-image-tip {
		flex-basis: 100%;
	}

	.ac-reply-toggle-item {
		padding-left: 34px;
	}

	#comments .comment-item.ac-comment-top-level .comment-item-left-wrapper,
	.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-left-wrapper {
		width: 48px;
		margin-right: 10px;
	}

	#comments .comment-item.ac-comment-top-level .comment-item-avatar .avatar,
	.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-avatar .avatar {
		width: 48px;
		height: 48px;
	}

	#comments .comment-item.ac-comment-top-level .comment-item-inner,
	.shuoshuo-comments .comment-item.ac-comment-top-level .comment-item-inner {
		width: calc(100% - 58px);
	}

	#comments .comment-item.ac-comment-reply .comment-item-left-wrapper,
	.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-left-wrapper {
		width: 26px;
		margin-top: 16px;
		margin-right: 6px;
	}

	#comments .comment-item.ac-comment-reply .comment-item-avatar .avatar,
	.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-avatar .avatar {
		width: 26px;
		height: 26px;
	}

	#comments .comment-item.ac-comment-reply .comment-item-inner,
	.shuoshuo-comments .comment-item.ac-comment-reply .comment-item-inner {
		width: calc(100% - 32px);
	}

	.comment-list ul.children,
	.shuoshuo-comments ul.children {
		width: calc(100% - 42px);
		margin-left: 42px;
		padding-right: 6px;
		padding-left: 8px;
	}

	.ac-comment-image-thumb {
		max-width: 200px;
		max-height: 180px;
	}
}
