/* ========================================================================
   MineJobs Modern Reviews / Comments UI
   ===================================================================== */

.mj-review-panel,
.comments-area {
	--mjrv-blue: #1677ff;
	--mjrv-blue-2: #58a0ff;
	--mjrv-text: #0f2742;
	--mjrv-muted: #72839a;
	--mjrv-border: #dbe9ff;
	--mjrv-soft: #f6faff;
	--mjrv-soft-2: #edf6ff;
	--mjrv-gold: #f6a800;
	--mjrv-danger: #d84343;
	direction: rtl;
	text-align: right;
	font-family: inherit;
}

.mj-review-panel {
	width: 100%;
	padding: 0;
	margin: 0 auto;
}

.mj-review-card,
.comments-area {
	position: relative;
	padding: 28px;
	border-radius: 30px;
	border: 1px solid var(--mjrv-border);
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
	box-shadow: 0 24px 60px rgba(22, 119, 255, .07);
	overflow: visible;
}

.mj-review-card + .mj-review-card {
	margin-top: 22px;
}

.mj-review-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
}

.mj-review-head__title {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.mj-review-head__icon {
	width: 48px;
	height: 48px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(22,119,255,.12), rgba(88,160,255,.2));
	color: var(--mjrv-blue);
	font-size: 20px;
	flex: 0 0 auto;
}

.mj-review-head h3,
.comments-area .comments-title,
.comments-area #reply-title,
.comments-area .comment-reply-title {
	margin: 0 0 7px;
	font-size: 24px;
	line-height: 1.45;
	font-weight: 950;
	color: var(--mjrv-text);
	letter-spacing: -.02em;
}

.mj-review-head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	font-weight: 750;
	color: var(--mjrv-muted);
}

.mj-review-score {
	min-width: 220px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	padding: 13px 16px;
	border-radius: 20px;
	border: 1px solid var(--mjrv-border);
	background: var(--mjrv-soft);
}

.mj-review-score__label {
	font-size: 12px;
	font-weight: 900;
	color: var(--mjrv-muted);
}

.mj-review-score__stars {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.mj-review-score__text {
	font-size: 12px;
	line-height: 1.7;
	font-weight: 850;
	color: var(--mjrv-text);
}

.mj-review-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.mj-review-list:empty {
	display: none;
}

.mj-review-item,
.noo-list-comment .comment-item,
.comments-area .comment,
.comments-area .pingback,
.comments-area .trackback {
	position: relative;
	padding: 18px 20px;
	border-radius: 22px;
	border: 1px solid var(--mjrv-border);
	background: #fff;
	box-shadow: 0 12px 30px rgba(15, 39, 66, .045);
	list-style: none;
}

.mj-review-item__top,
.noo-list-comment .comment-head,
.comments-area .comment-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.mj-review-item__subject,
.noo-list-comment .comment-head .subject,
.comments-area .comment-author .fn {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	font-weight: 950;
	color: var(--mjrv-text);
}

.mj-review-item__date,
.noo-list-comment .comment-head time,
.comments-area .comment-metadata,
.comments-area .comment-meta time {
	font-size: 12px;
	font-weight: 800;
	color: var(--mjrv-muted);
	white-space: nowrap;
}

.mj-review-item__meta,
.noo-list-comment .comment-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.mj-review-item__author,
.noo-list-comment .user-name {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mjrv-soft);
	color: var(--mjrv-muted);
	font-size: 12px;
	font-weight: 850;
}

.mj-review-item__content,
.noo-list-comment .comment-content,
.comments-area .comment-content {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: #34465d;
	font-weight: 650;
}

.mj-review-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	padding: 18px;
	border: 1px dashed var(--mjrv-border);
	border-radius: 22px;
	background: var(--mjrv-soft);
	color: var(--mjrv-muted);
	font-weight: 850;
	text-align: center;
	margin: 0;
}

.mj-review-form-card {
	margin-top: 24px;
	padding: 24px;
	border-radius: 28px;
	border: 1px solid var(--mjrv-border);
	background: linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.mj-review-form-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.mj-review-form-head h4 {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: 950;
	color: var(--mjrv-text);
}

.mj-review-form-head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	font-weight: 750;
	color: var(--mjrv-muted);
}

.mj-review-form-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 13px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--mjrv-border);
	color: var(--mjrv-blue);
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.mj-review-form,
.noo-form-comment,
.noo-form-resume-comment,
.comments-area .comment-form {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px 16px;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	float: none !important;
	clear: both;
}

.mj-review-form > *,
.noo-form-comment > *,
.noo-form-resume-comment > *,
.comments-area .comment-form > * {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box;
}

.mj-review-field,
.noo-form-comment .noo-comment-item,
.noo-form-resume-comment .noo-comment-item,
.comments-area .comment-form-author,
.comments-area .comment-form-email,
.comments-area .comment-form-url,
.comments-area .comment-form-comment,
.comments-area .comment-form-cookies-consent {
	grid-column: span 6;
}

.mj-review-field--full,
.mj-review-rating-grid,
.noo-form-comment .mj-review-rating-grid,
.noo-form-resume-comment .mj-review-rating-grid,
.noo-form-comment > .col-md-12,
.noo-form-resume-comment > .col-md-12,
.comments-area .comment-form-comment,
.comments-area .form-submit,
.comments-area .logged-in-as,
.comments-area .comment-notes {
	grid-column: 1 / -1;
}

.mj-review-field label,
.comments-area .comment-form label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 900;
	color: var(--mjrv-text);
}

.mj-review-form input[type="text"],
.mj-review-form input[type="email"],
.mj-review-form input[type="url"],
.mj-review-form textarea,
.noo-form-comment input[type="text"],
.noo-form-comment input[type="email"],
.noo-form-comment input[type="url"],
.noo-form-comment textarea,
.noo-form-resume-comment input[type="text"],
.noo-form-resume-comment input[type="email"],
.noo-form-resume-comment input[type="url"],
.noo-form-resume-comment textarea,
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
	width: 100% !important;
	min-height: 56px;
	border-radius: 18px !important;
	border: 1px solid var(--mjrv-border) !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 14px 16px !important;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.8;
	color: var(--mjrv-text) !important;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
	direction: rtl;
	text-align: right;
}

.mj-review-form textarea,
.noo-form-comment textarea,
.noo-form-resume-comment textarea,
.comments-area .comment-form textarea {
	min-height: 160px;
	resize: vertical;
}

.mj-review-form input:focus,
.mj-review-form textarea:focus,
.noo-form-comment input:focus,
.noo-form-comment textarea:focus,
.noo-form-resume-comment input:focus,
.noo-form-resume-comment textarea:focus,
.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
	border-color: rgba(22,119,255,.72) !important;
	box-shadow: 0 0 0 4px rgba(22,119,255,.08) !important;
}

.mj-review-rating-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mj-review-rating-card,
.noo-form-comment .container-rating,
.noo-form-resume-comment .container-rating {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 13px 15px !important;
	border-radius: 18px;
	border: 1px solid var(--mjrv-border);
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 39, 66, .035);
}

.noo-form-comment .container-rating,
.noo-form-resume-comment .container-rating {
	width: 100% !important;
}

.noo-form-comment .row,
.noo-form-resume-comment .row {
	margin: 0 !important;
	display: contents;
}

.noo-form-comment .row > *,
.noo-form-resume-comment .row > * {
	padding: 0 !important;
	width: auto !important;
}

.noo-form-comment .noo-comment-item.col-md-9,
.noo-form-resume-comment .noo-comment-item.col-md-9 {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.noo-form-comment .noo-comment-item.col-md-3,
.noo-form-resume-comment .noo-comment-item.col-md-3 {
	grid-column: 1 / -1;
}

.mj-review-rating-card__label,
.noo-form-comment .container-rating span,
.noo-form-resume-comment .container-rating span {
	font-size: 13px;
	font-weight: 950;
	line-height: 1.6;
	color: var(--mjrv-text);
}

.mj-review-rating-card .noo-rating,
.noo-form-comment .container-rating .noo-rating,
.noo-form-resume-comment .container-rating .noo-rating,
.noo-list-comment .noo-rating,
.mj-review-score .noo-rating,
.mj-review-item .noo-rating {
	float: none !important;
	display: inline-flex !important;
	align-items: center;
	direction: ltr;
	white-space: nowrap;
}

.mj-review-rating-card .noo-rating img,
.noo-form-comment .container-rating .noo-rating img,
.noo-form-resume-comment .container-rating .noo-rating img,
.noo-list-comment .noo-rating img,
.mj-review-score .noo-rating img,
.mj-review-item .noo-rating img {
	margin: 0 1px !important;
	vertical-align: middle;
}

.noo-form-comment .hide,
.noo-form-resume-comment .hide,
.mj-review-form .hide {
	display: none !important;
}

.mj-review-actions,
.noo-form-comment #button,
.noo-form-resume-comment #button,
.comments-area .form-submit {
	grid-column: 1 / -1;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.mj-review-submit,
.noo-form-comment .noo-submit,
.noo-form-resume-comment .noo-review-submit,
.comments-area .form-submit input[type="submit"],
.comments-area .submit,
#entry-comment-submit {
	width: 100% !important;
	min-height: 58px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: 0 !important;
	border-radius: 19px !important;
	background: linear-gradient(135deg, var(--mjrv-blue), var(--mjrv-blue-2)) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 950;
	box-shadow: 0 18px 36px rgba(22,119,255,.20) !important;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
	text-decoration: none !important;
}

.mj-review-submit:hover,
.noo-form-comment .noo-submit:hover,
.noo-form-resume-comment .noo-review-submit:hover,
.comments-area .form-submit input[type="submit"]:hover,
.comments-area .submit:hover,
#entry-comment-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 22px 44px rgba(22,119,255,.26) !important;
	opacity: .97;
}

.noo-form-comment .notice,
.noo-form-resume-comment .notice,
.mj-review-form .notice,
.comments-area .comment-form .form-allowed-tags {
	margin: 0 !important;
	font-size: 13px;
	line-height: 1.9;
	font-weight: 800;
	color: var(--mjrv-muted);
}

.mj-review-panel .must-log-in,
.comments-area .must-log-in,
.comments-area .logged-in-as,
.comments-area .comment-notes {
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--mjrv-soft);
	border: 1px solid var(--mjrv-border);
	font-size: 13px;
	line-height: 1.9;
	font-weight: 800;
	color: var(--mjrv-muted);
	margin: 0 0 16px !important;
}

.mj-review-panel .g-recaptcha,
.mj-review-panel .anr_captcha_field,
.mj-review-panel .wpcf7-recaptcha,
.comments-area .g-recaptcha,
.comments-area .anr_captcha_field,
.comments-area .wpcf7-recaptcha {
	max-width: 100%;
	overflow: hidden;
	transform-origin: right top;
}

.noo-list-comment,
.comments-area .comments-list,
.comments-area .comment-list {
	margin: 0 0 22px !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	gap: 14px;
}

.noo-box-reviewed {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.noo-review-voted {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	min-width: 260px;
	padding: 12px;
	border-radius: 16px;
	border: 1px solid var(--mjrv-border);
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 39, 66, .12);
	display: none;
}

.noo-box-reviewed:hover .noo-review-voted {
	display: block;
}

.noo-review-voted .line-vote {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #edf4ff;
	font-size: 12px;
	font-weight: 850;
	color: var(--mjrv-text);
}

.noo-review-voted .line-vote:last-child {
	border-bottom: 0;
}

.reviewed-box-icon {
	width: 30px;
	height: 30px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mjrv-soft);
	color: var(--mjrv-blue);
}

.comments-area .comment-author img.avatar {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	margin-left: 12px;
}

.comments-area .reply a,
.comments-area .comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mjrv-soft);
	color: var(--mjrv-blue) !important;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none !important;
}

.comments-area .children {
	margin: 14px 22px 0 0 !important;
	padding: 0 !important;
	list-style: none;
	display: grid;
	gap: 12px;
}

/* Tight integration with modern resume/company panels */
.mjrs-bottom-card--reviews .mj-review-card,
.mj-company-single-panel--reviews .mj-review-card {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.mjrs-bottom-card--reviews .mj-review-form-card,
.mj-company-single-panel--reviews .mj-review-form-card {
	margin-top: 20px;
}

@media (max-width: 991px) {
	.mj-review-head,
	.mj-review-form-head {
		flex-direction: column;
		align-items: stretch;
	}

	.mj-review-score {
		min-width: 0;
		width: 100%;
	}

	.mj-review-rating-grid,
	.noo-form-comment .noo-comment-item.col-md-9,
	.noo-form-resume-comment .noo-comment-item.col-md-9 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.mj-review-card,
	.comments-area,
	.mj-review-form-card {
		padding: 18px;
		border-radius: 22px;
	}

	.mj-review-form,
	.noo-form-comment,
	.noo-form-resume-comment,
	.comments-area .comment-form {
		grid-template-columns: 1fr;
	}

	.mj-review-field,
	.noo-form-comment .noo-comment-item,
	.noo-form-resume-comment .noo-comment-item,
	.comments-area .comment-form-author,
	.comments-area .comment-form-email,
	.comments-area .comment-form-url,
	.comments-area .comment-form-comment,
	.comments-area .comment-form-cookies-consent,
	.mj-review-field--full,
	.mj-review-rating-grid,
	.noo-form-comment > .col-md-12,
	.noo-form-resume-comment > .col-md-12,
	.comments-area .form-submit,
	.comments-area .logged-in-as,
	.comments-area .comment-notes {
		grid-column: 1 / -1;
	}

	.mj-review-rating-card,
	.noo-form-comment .container-rating,
	.noo-form-resume-comment .container-rating {
		align-items: flex-start;
		flex-direction: column;
	}

	.noo-review-voted {
		right: auto;
		left: 0;
		min-width: 230px;
	}
}

.mj-review-form > .g-recaptcha,
.mj-review-form > .anr_captcha_field,
.mj-review-form > .wpcf7-recaptcha,
.noo-form-comment > .g-recaptcha,
.noo-form-resume-comment > .g-recaptcha,
.noo-form-comment > .anr_captcha_field,
.noo-form-resume-comment > .anr_captcha_field {
	grid-column: 1 / -1;
}

.mj-review-panel .grecaptcha-badge {
	visibility: visible;
}
