/* .post-related {width: 100%} */

/* START PHẦN BÌNH LUẬN */
.main-comment {width: calc(75% - 15px)}
.sidebar-comment {width: 25%}

li.comment {
	margin-bottom: 15px;
	width: 100% !important;
}

.children li:last-child {margin-bottom: 0}

.avatar, .author, .footer-cm, .content-cm span {
	user-select: none;
}

.avatar {
	width: 38px;
	border-radius: 50%;
	height: 38px !important;
	z-index: 9;
	-webkit-box-pack: center !important;
	justify-content: center !important;
	align-items: center;
	display: flex;
	color: #fff;
	font-size: 19px;
	text-align: center;
	line-height: 10px;
	overflow: hidden;
	font-family: Fraunces,sans-serif !important;
	text-transform: uppercase;
}

.comment-form .avatar {
	background-image: url(icon/user.svg);
	border: 1px solid #c4c4c4;
	opacity: 0.6;
}

img.avatar {border: 1px solid #dedede;background: #fff}
form img.avatar {visibility: hidden}

.children .avatar {
	width: 25px;
	height: 25px !important;
	font-size: 12px;
}

.comment-bd {
	padding: 10px;
	border-radius: 16px;
	background: #f0f2f5;
	width: calc(100% - 45px);
}

.high-light {background: #fff2bd}

.children .comment-bd {width: calc(100% - 30px)}

.comment-bd .content-cm {
	font-size: 0.85em;
	margin-top: 10px;
	line-height: 28px;
}

.content-cm span {
	color: #454dbb;
	cursor: pointer;
}

.comment-bd > div:first-child {
	font-weight: 600;
	font-size: 0.75em;
	position: relative;
	width: max-content;
}

.commentlist .star {
	position: absolute;
	right: 12px;
	top: 10px;
}

.author.author-sm::before {
	content: "SM";
	background: #f9d957;
	font-size: 8px;
	padding: 0px 4px;
	border-radius: 11px;
	position: absolute;
	line-height: 12px;
	font-weight: bold;
	right: -22px;
}

.footer-cm {
	margin-top: 15px;
}

.footer-cm > span {
	font-size: 12px;
	color: #7377b9;
	cursor: pointer;
	margin-right: 15px;
}

span.date {color: #909090}

.count-like {
	float: right;
	background: #fff;
	padding: 2px 4px;
	border-radius: 15px;
	text-align: right;
	box-shadow: rgba(0,0,0,.07) 0px 2px 4px;
	line-height: 12px;
}

.count-like::before {
	content: "";
	width: 15px;
	height: 15px;
	background-size: cover;
	margin-right: 3px !important;
	display: inline-block;
	vertical-align: middle;
	background-image: url(icon/like-cm.svg);
}


.comment .children li {
	margin-top: 15px;
	padding-left: 45px;
	position: relative;
}

.comment .children .children li {padding-left: 30px}

.parent::after {
	content: "";
	width: 24px;
	height: calc(100% + 12px);
	position: absolute;
	left: 18px;
	top: 0;
	z-index: 1;
	border-left: 1px solid #e1e1e1;
	border-bottom: none;
}

.commentlist .children .parent::after, .commentlist .children .children li::after {
	left: 12px;
	width: 15px;
}

.comment .children {
	overflow: hidden;
	width: 100% !important;
}

.commentlist .children li::after {
	content: "";
	width: 24px;
	height: calc(400% + 30px);
	position: absolute;
	left: 18px;
	top: calc(-400% - 12px);
	z-index: 1;
	border-left: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	border-radius: 0px 0px 0px 12px;
}

.comment-form {border-radius: 14px}

.comment-form .comment-bd {
	padding: 0;
	background: none;
}

.comment-form input, .comment-form textarea {
	border-radius: 11px;
	border: none;
	font-size: 15px;
}

.comment-form textarea {
	width: 100%;
	margin-bottom: 10px;
	background: #f0f2f5;
	min-height: 90px;
	padding-right: 40px;
}

.comment-form input {width: calc(50% - 5px)}

.submit-cm {
	width: 100%;
}

.rating-cm {
	padding: 0px 8px;
	border-radius: 11px;
}

.rating-cm .star, .rating-cm .star span {
	width: 160px;
	background-size: calc(160px / 5);
	height: 27px;
	cursor: pointer;
}

.rating-cm .star {
	display: flex;
	align-self: center;
}

.comment-form .submit-form {
	border-radius: 11px;
}

.listimg.img-list {width: 100%}

.add-img {
	height: 22px;
	width: 22px;
	background-image: url(icon/add-img.svg);
	display: inline-block;
	background-repeat: no-repeat;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 99;
	opacity: 0.5;
	cursor: pointer;
}

.add-img:hover {opacity: 1}

.list-img {display: flex}

input.image-cm {display: none !important}

.list-img > div {
	position: relative;
	margin-right: 10px;
	margin-top: 15px;
}

.item-img-cm, .add-img-wide {
	background-repeat: no-repeat;
	background-size: cover;
	height: 80px;
	width: 80px;
	border-radius: 3px;
	position: relative;
	border: 1px solid #c6c6c6;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 30px;
	cursor: pointer;
	color: #b5b5b5;
}

.item-img-cm:hover, .add-img-wide:hover {border: 1px solid #565656}

.comment-form.typing {
	background: #f0f2f5;
	padding: 10px;
}

.main-comment > .comment-form {
	transition: 0.3s all;
}

.typing.comment-form .avatar {
	width: 28px;
	height: 28px !important;
}
/* .typing.comment-form .comment-bd {
	width: calc(100% - 35px);
} */

.comment-form input, .comment-form .rating-cm, .comment-form .submit-form {
	display: none;
}

li .comment-form .rating-cm {
	visibility: hidden !important;
}

.comment-form.typing input, .typing .rating-cm, .typing textarea {
	display: inherit;
	background: #fff;
	z-index: 99;
}
.typing .submit-form {display: inherit}

.footer-cm .comment-form.typing {
	padding: 0;
	margin-top: 25px;
}

.footer-cm .comment-form {
	display: none;
	width: 100% !important;
}

.footer-cm .comment-bd {width: 100%}

.footer-cm .avatar {display: none}

.footer-cm .comment-bd::after {
	content: "";
	border-bottom: 15px solid #fff;
	border-left: 15px solid rgba(0,0,0,0);
	border-right: 15px solid rgba(0,0,0,0);
	position: absolute;
	left: 9px;
	top: -13px;
	color: #645f5f;
	z-index: 9;
}

.submit-form .lds-ring {
	width: 19px;
	height: 19px;
	margin-left: 8px;
}

/* Khóa khi đã đăng nhập */
.logged .comment-form.typing input, .logged .rating-cm {
	color: red !important;
	pointer-events: none;
}

.backg-a {background-color: #145b54;}
.backg-b {background-color: #155e5e;}
.backg-c {background-color: #166262;}
.backg-d {background-color: #176666;}
.backg-e {background-color: #186969;}
.backg-f {background-color: #197d6d;}
.backg-g {background-color: #1a8071;}
.backg-h {background-color: #1b8375;}
.backg-i {background-color: #1c8679;}
.backg-j {background-color: #1d8a7d;}
.backg-k {background-color: #1e8d81;}
.backg-l {background-color: #1f9085;}
.backg-m {background-color: #209389;}
.backg-n {background-color: #21968d;}
.backg-o {background-color: #229a91;}
.backg-p {background-color: #239d95;}
.backg-q {background-color: #24a099;}
.backg-r {background-color: #25a39d;}
.backg-s {background-color: #26a6a1;}
.backg-t {background-color: #27aaa5;}
.backg-u {background-color: #28ada9;}
.backg-v {background-color: #29b1ad;}
.backg-w {background-color: #2ab5b1;}
.backg-x {background-color: #2bb9b5;}
.backg-y {background-color: #2cbeb9;}
.backg-z {background-color: #2dc2bd;}

/* Thêm ảnh vào comment */
.img-list {
	width: 100%;
	margin-top: 20px;
	cursor: pointer;
}
.img-list img {
	margin-right: 10px;
	margin-bottom: 10px;
	border-radius: 10px;
	max-width: 100px;
	max-height: 100px;
}
/* Thêm ảnh vào comment */

/* Ảnh trong comment */
a.thumbnail-url {
	width: 100%;
	max-width: 310px;
	margin-top: 20px;
	border-radius: 10px;
	padding-bottom: 5px;
	display: block;
	background: #fff;
	overflow: hidden;
}
.entry-link {
	padding: 9px;
	line-height: 18px;
}
.thumbnail-url span:nth-child(1) {
	font-weight: 600;
	color: #5d63bd;
	font-size: 14px;
}

.thumbnail-url span:nth-child(2) {
	font-size: 0.7em;
	color: #6f6f6f;
	margin-top: 8px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	overflow: hidden;
}

/* Ảnh trong comment */

.comment_approved_1 .approved{
	display: none;
}

.comment_approved_0 .content-cm {
	filter: blur(3px) !important;
	pointer-events: none !important;
	user-select: none !important;
}
.comment_approved_0 .footer-cm {
	visibility: hidden !important;;
}
.comment_approved_0 > div > div::before {
	content: "Pending";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 9999;
	transform: translate(-50%,-50%) rotate(-17deg);
	border: 3px dashed red;
	text-align: center;
	line-height: 30px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: red;
	font-size: 21px;
	padding: 0px 12px;
	border-radius: 5px;
	mix-blend-mode: multiply;
}

span.remove, span.edit {
	display: none;
}

/* ĐÃ ĐĂNG NHẬP */
.logged .comment_approved_0 .content-cm {filter: blur(0px) !important}
.logged .comment_approved_0 .footer-cm {visibility: visible !important}

.logged span.remove,
.logged span.edit {display: initial !important}

/* END PHẦN BÌNH LUẬN */
