/* Product reviews — ecom layout. List/reply/carousel selectors stay for sample templates + JS. */
.comment-box {
	background: #fff;
	border: 1px solid #eef0f4;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(8, 24, 74, .06);
	padding: 22px 22px 14px;
}
.comment-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.comment-head__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--color-main);
}
.comment-head__meta {
	margin: 4px 0 0;
	font-size: 13px;
	color: #7a8190;
}
.comment-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--color-submain);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(60, 163, 12, .28);
}
.comment-btn i { font-size: 12px; }
.comment-btn:hover, .comment-btn:focus {
	background: #2f8a08;
	color: #fff;
}
.comment-btn--ghost {
	background: #fff;
	color: var(--color-main);
	border: 1px solid #e6e8ee;
	box-shadow: none;
}
.comment-btn--ghost:hover, .comment-btn--ghost:focus {
	background: #f6f7fb;
	color: var(--color-main);
	border-color: var(--color-main);
}
.comment-btn.is-open, .comment-btn.is-open:hover, .comment-btn.is-open:focus {
	background: #fff;
	color: var(--color-main);
	border: 1px solid #e6e8ee;
	box-shadow: none;
}
.comment-summary {
	display: grid;
	grid-template-columns: 180px minmax(180px, 1fr);
	gap: 16px 28px;
	align-items: center;
	padding: 18px 20px;
	margin-bottom: 16px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #08184a 0%, #12306e 100%);
	color: #fff;
}
.comment-summary__score { text-align: center; }
.comment-point { font-size: 48px; font-weight: 800; line-height: 1; color: #fff; }
.comment-point span { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.55); margin-left: 2px; }
.comment-count { margin-top: 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.comment-summary .comment-star { margin: 8px 0 6px; }
.comment-summary .comment-star .star-icon { color: rgba(255,255,255,.28); }
.comment-summary .comment-star span .star-icon { color: #f5b301; }
.comment-summary .comment-progress .progress { background: rgba(255,255,255,.16); }
.comment-summary .progress-num,
.comment-summary .progress-total { color: rgba(255,255,255,.78); }
.comment-star {
	font-size: 0;
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin: 8px 0 4px;
}
.comment-star span {
	display: block;
	position: absolute;
	top: 0; left: 0; bottom: 0;
	z-index: 1;
	overflow: hidden;
	text-align: left;
	white-space: nowrap;
}
.comment-star .star-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 0 1px;
	vertical-align: top;
	color: #d8dbe3;
}
.comment-star .star-icon:nth-child(1) { margin-left: 0; }
.comment-star span .star-icon { color: #f5b301; }
.comment-progress {
	width: 100%;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.comment-progress:last-child { margin-bottom: 0; }
.comment-progress .progress {
	height: 10px;
	margin: 0 10px;
	width: calc(100% - 86px);
	border-radius: 99px;
	background: #f0f1f5;
	overflow: hidden;
}
.comment-progress .progress-bar.has-rate { background-color: #f5b301; border-radius: 99px; }
.comment-progress .progress-num { font-size: 12px; width: 36px; color: #666; flex-shrink: 0; }
.comment-progress .progress-num .star-icon { width: 10px; height: 10px; color: #f5b301; margin-left: 2px; vertical-align: -1px; }
.comment-progress .progress-total { font-size: 12px; font-weight: 600; color: #888; width: 40px; text-align: right; flex-shrink: 0; }

.comment-write {
	display: none;
	padding: 16px;
	margin-bottom: 16px;
	border: 1px dashed #d7dbe6;
	border-radius: 14px;
	background: #f7f8fc;
}
.comment-show { display: block !important; }
.comment-form__row { margin-bottom: 14px; }
.comment-form__label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #3a3f4b; }
.comment-form .form-control {
	height: 46px;
	padding: 10px 14px;
	border: 1px solid #e6e8ee;
	border-radius: 10px;
	background: #f6f7fb;
	font-size: 14px;
	color: #1b1f2a;
}
.comment-form textarea.form-control { height: auto; min-height: 96px; resize: vertical; }
.comment-form .form-control:focus {
	background: #fff;
	border-color: var(--color-main);
	box-shadow: 0 0 0 4px rgba(8, 24, 74, .08);
}
.comment-form__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}
.comment-form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.review-rating-star { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-rating-star-icon .star-icon {
	width: 28px;
	height: 28px;
	margin: 0 2px;
	cursor: pointer;
	color: #d8dbe3;
	vertical-align: middle;
}
.review-rating-star-icon .star-icon.star-not-empty,
.review-rating-star-icon .star-icon.is-hover { color: #f5b301; }
.review-rating-star-icon .star-icon:nth-child(1) { margin-left: 0; }
.review-rating-hint { font-size: 13px; font-weight: 600; color: var(--color-main); }
.review-rating-star-input.hidden { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.comment-empty {
	padding: 28px 8px 20px;
	text-align: center;
	font-size: 14px;
	color: #7a8190;
}
.comment-lists { padding: 0 0 8px; }
.comment-load-more-control { padding: 8px 0 12px; }

.comment-item {
	margin: 0 0 12px;
	padding: 16px;
	border: 1px solid #eef0f4;
	border-radius: 14px;
	background: #f8f9fc;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.comment-item:last-child { margin-bottom: 0; border-bottom: 1px solid #eef0f4; }
.comment-item-poster { width: 44px; flex-shrink: 0; }
.comment-item-letter {
	border-radius: 50%;
	background: #12306e;
	color: #fff;
	width: 44px; height: 44px;
	line-height: 44px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	display: block;
	text-align: center;
}
.comment-item-letter.letter-0 { background: #08184a; }
.comment-item-letter.letter-1 { background: #3ca30c; }
.comment-item-letter.letter-2 { background: #1d4ed8; }
.comment-item-letter.letter-3 { background: #c2410c; }
.comment-item-letter.letter-4 { background: #7c3aed; }
.comment-item-information { min-width: 0; flex: 1; }
.comment-item-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 6px;
}
.comment-item-name {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--color-main);
	text-transform: capitalize;
}
.comment-item-posttime { font-size: 12px; color: #8b90a0; font-weight: 400; }
.comment-item-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comment-item-star.comment-star { display: block; margin: 0; }
.comment-item-star.comment-star .star-icon { width: 14px; height: 14px; }
.comment-item-score {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 99px;
	background: #fff7e6;
	color: #b45309;
	font-size: 12px;
	font-weight: 800;
}
.comment-item-title {
	display: block;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	color: #1b1f2a;
}
.comment-item-content {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #4a4f5c;
}
.comment-item-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 2px;
}
.comment-react { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.btn-react-comment {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
	padding: 4px 10px;
	border: 1px solid #dce1ea;
	border-radius: 99px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-main);
	line-height: 1;
}
.btn-react-comment:hover, .btn-react-comment:focus {
	border-color: var(--color-submain);
	color: var(--color-submain);
	background: #f3fbf0;
}
.btn-react-comment.is-on {
	background: #f3fbf0;
	border-color: var(--color-submain);
	color: var(--color-submain);
}
.btn-react-comment__icon { font-size: 14px; line-height: 1; }
.btn-react-comment__count { font-size: 12px; font-weight: 800; }
.btn-reply-comment {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid #dce1ea;
	border-radius: 99px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-main);
	text-decoration: none;
}
.btn-reply-comment:hover, .btn-reply-comment:focus {
	color: #fff;
	background: var(--color-submain);
	border-color: var(--color-submain);
}
.btn-reply-comment.active { color: #888; background: #fff; border-color: #e6e8ee; }

.comment-replies {
	position: relative;
	background: #f8f9fb;
	border: 1px solid #eef0f4;
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 12px;
}
.comment-replies:before, .comment-replies:after { content: ""; position: absolute; }
.comment-replies:before { z-index: 1; top: -8px; left: 16px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #f8f9fb; }
.comment-replies:after { top: -9px; left: 15px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 9px solid #eef0f4; }
.comment-replies-item { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.comment-replies-item:last-child { margin-bottom: 0; }
.comment-replies-letter {
	width: 32px; height: 32px; line-height: 32px;
	font-size: 11px; border-radius: 50%; background: #e8eaef; color: #6b6f7a;
	text-transform: uppercase; display: block; font-weight: 700; text-align: center; flex-shrink: 0;
}
.comment-replies-letter.admin { position: relative; background-color: var(--color-main); text-indent: 9999px; overflow: hidden; }
.comment-replies-letter.admin:before {
	content: "QTV"; text-indent: 0; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 9px;
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.comment-replies-info { min-width: 0; flex: 1; }
.comment-replies-name { font-weight: 700; margin-bottom: 2px; font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.comment-replies-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 99px;
	background: var(--color-main);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}
.comment-replies-content { font-size: 13px; line-height: 1.5; color: #4a4f5c; }
.comment-replies [class*="btn-load-more-"] { border: 0; outline: none; padding: 8px 0 0; background: transparent; color: var(--color-main); font-weight: 600; font-size: 13px; }
#form-reply { display: none; margin-top: 12px; }
#form-reply.comment-show { display: block; }
#form-reply textarea.form-control { margin-bottom: 10px; }

.comment-media { margin: 2px 0 4px; }
.comment-media__hint { font-size: 12px; font-weight: 400; color: #7a8190; }
.comment-drop-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.comment-drop-grid,
.comment-video-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}
.comment-drop-previews { display: contents; }
.comment-drop-add,
.comment-drop-preview,
.comment-drop-tile__media {
	width: 88px;
	height: 88px;
	border-radius: 12px;
	background: #fff;
}
.comment-drop-add {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	border: 1.5px dashed #d7dbe6;
	color: var(--color-main);
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
}
.comment-drop-add i { font-size: 18px; color: var(--color-submain); }
.comment-drop-add:hover,
.comment-drop-add.is-drag { border-color: var(--color-submain); background: #f3fbf0; }
.comment-drop-add.is-full { display: none; }
.comment-drop-preview {
	position: relative;
	overflow: hidden;
	border: 1px solid #e6e8ee;
}
.comment-drop-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-drop-preview__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(8, 24, 74, .72);
	color: #fff;
	line-height: 18px;
	font-size: 14px;
	padding: 0;
	cursor: pointer;
}
.comment-drop-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	cursor: pointer;
	min-width: 88px;
}
.comment-drop-tile span {
	font-size: 12px;
	font-weight: 600;
	color: #3a3f4b;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.comment-drop-tile__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1.5px dashed #d7dbe6;
	color: #8b90a0;
}
.comment-drop-tile__media i { font-size: 18px; }
.comment-drop-tile__media img {
	display: none;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.comment-drop-tile__media img[src]:not([src=""]) { display: block; z-index: 1; }
.comment-drop-tile:hover .comment-drop-tile__media,
.comment-drop-tile.drag-over .comment-drop-tile__media {
	border-color: var(--color-submain);
	background: #f3fbf0;
}
.comment-drop-tile--wide { flex: 1; min-width: 180px; }
.comment-drop-tile--wide span {
	max-width: none;
	width: 100%;
	min-height: 88px;
	display: flex;
	align-items: center;
	padding: 0 16px;
	border: 1.5px dashed #d7dbe6;
	border-radius: 12px;
	background: #fff;
	color: #7a8190;
	font-weight: 600;
}
.comment-drop-tile--wide:hover span { border-color: var(--color-submain); background: #f3fbf0; color: var(--color-main); }

.comment-item-media {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}
.comment-item-media__item {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #eef0f4;
	border: 1px solid #e6e8ee;
	flex-shrink: 0;
}
.comment-item-media__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.comment-item-media__item:hover { border-color: var(--color-main); }
.comment-item-media__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 24, 74, .32);
	color: #fff;
}
.comment-item-media__play i { font-size: 14px; margin-left: 2px; }

@media only screen and (max-width: 767px) {
	.comment-box { padding: 16px 14px 4px; border-radius: 10px; }
	.comment-head { flex-direction: column; align-items: stretch; }
	.comment-btn { width: 100%; }
	.comment-summary { grid-template-columns: 1fr; text-align: center; }
	.comment-summary__bars { text-align: left; }
	.comment-form__grid { grid-template-columns: 1fr; }
	.comment-form__actions { flex-direction: column-reverse; }
	.comment-form__actions .comment-btn { width: 100%; }
	.comment-video-grid { flex-direction: column; }
	.comment-drop-tile--wide { min-width: 0; }
	.comment-item { padding: 14px; }
	.comment-item-poster, .comment-item-letter { width: 38px; height: 38px; line-height: 38px; }
	.comment-item-letter { font-size: 12px; }
	.comment-item-media__item { width: 64px; height: 64px; }
}
