/* FirmaJet — isolated company reviews (fj-rv)
 * Scoped styles only. Do not depend on pages.css / main.css comment rules.
 */

.fj-rv {
	--fj-rv-border: #e8edf3;
	--fj-rv-muted: #64748b;
	--fj-rv-text: #0f172a;
	--fj-rv-bg: #ffffff;
	--fj-rv-soft: #f8fafc;
	--fj-rv-primary: var(--fj-color-primary, #dc2626);
	--fj-rv-star: #f59e0b;
	--fj-rv-radius: 12px;
	display: block;
	margin: 0;
	padding: 1rem;
	background: var(--fj-rv-bg);
	border: 1px solid var(--fj-rv-border);
	border-radius: var(--fj-rv-radius);
	scroll-margin-top: calc(var(--fj-header-h, 64px) + var(--fj-csingle-nav-h, 48px) + 0.75rem);
	isolation: isolate;
	overflow: visible;
}

.fj-rv *,
.fj-rv *::before,
.fj-rv *::after {
	box-sizing: border-box;
}

.fj-rv__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.fj-rv__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--fj-rv-text);
	letter-spacing: -0.02em;
}

.fj-rv__write {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.35rem 0.7rem;
	border-radius: 8px;
	background: var(--fj-rv-primary);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
}

.fj-rv__write:hover {
	filter: brightness(0.96);
	color: #fff !important;
}

.fj-rv__summary {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 0.95rem;
	margin-bottom: 1rem;
	border-radius: 10px;
	background: var(--fj-rv-soft);
	border: 1px solid var(--fj-rv-border);
}

.fj-rv__score {
	display: flex;
	align-items: baseline;
	gap: 0.15rem;
	flex-shrink: 0;
	min-width: 4.25rem;
}

.fj-rv__score-num {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--fj-rv-text);
}

.fj-rv__score-of {
	font-size: 0.8rem;
	font-weight: 650;
	color: var(--fj-rv-muted);
}

.fj-rv__summary-meta {
	min-width: 0;
	flex: 1;
}

.fj-rv__stars {
	display: flex;
	align-items: center;
	line-height: 0;
}

.fj-rv__stars .fj-rating {
	gap: 0.1rem;
}

.fj-rv__stars .fj-rating__value {
	display: none;
}

.fj-rv__stars .fj-rating__star svg {
	width: 15px;
	height: 15px;
}

.fj-rv__count {
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: var(--fj-rv-muted);
	line-height: 1.35;
}

.fj-rv__hint {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
	color: var(--fj-rv-muted);
}

.fj-rv__closed,
.fj-rv-empty {
	margin: 0 0 1rem;
	padding: 0.85rem 0.95rem;
	border-radius: 10px;
	background: var(--fj-rv-soft);
	border: 1px dashed var(--fj-rv-border);
	font-size: 0.875rem;
	color: var(--fj-rv-muted);
	text-align: center;
}

/* List */
.fj-rv-comments {
	margin: 0;
	padding: 0;
	border: 0;
}

.fj-rv-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.fj-rv-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fj-rv-item__card {
	padding: 0.85rem 0.9rem;
	border: 1px solid var(--fj-rv-border);
	border-radius: 10px;
	background: #fff;
}

.fj-rv-item__head {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.55rem;
}

.fj-rv-item__avatar,
.fj-rv-item__avatar img {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}

.fj-rv-item__meta {
	min-width: 0;
	flex: 1;
}

.fj-rv-item__row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.fj-rv-item__author {
	font-style: normal;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--fj-rv-text);
}

.fj-rv-item__score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	padding: 0.1rem 0.35rem;
	border-radius: 6px;
	background: color-mix(in srgb, var(--fj-rv-primary) 10%, #fff);
	color: var(--fj-rv-primary);
	font-size: 0.72rem;
	font-weight: 800;
}

.fj-rv-item__stars {
	margin-top: 0.2rem;
}

.fj-rv-item__stars .fj-rating__value {
	display: none;
}

.fj-rv-item__stars .fj-rating__star svg {
	width: 12px;
	height: 12px;
}

.fj-rv-item__date {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.72rem;
	color: var(--fj-rv-muted);
}

.fj-rv-item__body {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--fj-rv-text);
	overflow-wrap: anywhere;
}

.fj-rv-item__body p {
	margin: 0 0 0.4rem;
}

.fj-rv-item__body p:last-child {
	margin-bottom: 0;
}

.fj-rv-item__pending {
	margin: 0 0 0.45rem;
	padding: 0.35rem 0.5rem;
	border-radius: 6px;
	background: #fff7ed;
	color: #c2410c;
	font-size: 0.75rem;
	font-weight: 650;
}

.fj-rv-item__foot {
	margin-top: 0.45rem;
}

.fj-rv-item__foot a {
	font-size: 0.75rem;
	font-weight: 650;
	color: var(--fj-rv-muted);
}

/* Form */
.fj-rv-respond {
	margin: 0;
	padding: 0.95rem;
	border: 1px solid var(--fj-rv-border);
	border-radius: 10px;
	background: var(--fj-rv-soft);
}

.fj-rv-respond .comment-reply-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--fj-rv-text);
}

.fj-rv-respond .comment-reply-title small {
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.fj-rv-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.7rem;
	margin: 0;
}

.fj-rv-form > p,
.fj-rv-form .fj-rv-field,
.fj-rv-form .fj-rv-rate,
.fj-rv-form .form-submit {
	margin: 0;
	grid-column: 1 / -1;
}

.fj-rv-field label,
.fj-rv-rate__label {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--fj-rv-text);
}

.fj-rv-form input[type="text"],
.fj-rv-form input[type="email"],
.fj-rv-form textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.7rem 0.75rem;
	border: 1px solid var(--fj-rv-border);
	border-radius: 8px !important;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
	color: var(--fj-rv-text);
	appearance: none;
}

.fj-rv-form textarea {
	min-height: 6.5rem;
	resize: vertical;
	line-height: 1.45;
}

.fj-rv-form input:focus,
.fj-rv-form textarea:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--fj-rv-primary) 45%, var(--fj-rv-border));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fj-rv-primary) 12%, transparent);
}

.fj-rv-rate {
	padding: 0.75rem 0.8rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--fj-rv-border);
}

.fj-rv-rate__stars {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	flex-wrap: wrap;
}

.fj-rv-rate__btn {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.2rem;
	margin: 0;
	cursor: pointer;
	color: #cbd5e1;
	line-height: 0;
	border-radius: 6px;
}

.fj-rv-rate__btn .lucide {
	width: 28px;
	height: 28px;
	fill: currentColor;
	stroke: none;
}

.fj-rv-rate__btn.is-active,
.fj-rv-rate__btn.is-preview,
.fj-rv-rate__btn:hover {
	color: var(--fj-rv-star);
}

.fj-rv-rate.is-invalid {
	border-color: var(--fj-rv-primary);
	animation: fj-rv-shake 0.35s ease;
}

@keyframes fj-rv-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}

.fj-rv-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.65rem;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 8px !important;
	background: var(--fj-rv-primary);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 750;
	cursor: pointer;
}

.fj-rv-submit:hover {
	filter: brightness(0.96);
}

.fj-rv .fj-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Kill legacy comment chrome inside reviews */
.fj-rv .fj-csingle-section__head,
.fj-rv .fj-csingle-panel__body {
	all: unset;
	display: contents;
}

.fj-rv #respond {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.fj-rv .logged-in-as,
.fj-rv .comment-notes,
.fj-rv .comment-form-cookies-consent {
	display: none !important;
}

@media (min-width: 640px) {
	.fj-rv {
		padding: 1.15rem 1.25rem;
	}

	.fj-rv__title {
		font-size: 1.15rem;
	}

	.fj-rv__summary {
		padding: 1rem 1.1rem;
		gap: 1.1rem;
	}

	.fj-rv__score-num {
		font-size: 2.35rem;
	}

	.fj-rv-form {
		grid-template-columns: 1fr 1fr;
	}

	.fj-rv-form .fj-rv-field--full,
	.fj-rv-form .comment-form-comment,
	.fj-rv-form .fj-rv-rate,
	.fj-rv-form .form-submit {
		grid-column: 1 / -1;
	}

	.fj-rv-submit {
		width: auto;
		min-width: 10rem;
	}
}
