/* ==========================================================================
   FoodJot Comment Kit — 2026-11-23
   Scope: #comments / .fj-comment-kit only. Nothing global is restyled.
   ========================================================================== */

/* --- Encouragement line -------------------------------------------------- */
#comments .fj-comment-kit__encouragement {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #faf7f1;
	border: 1px solid #efe6d6;
	border-left: 3px solid #e0a72b;
	border-radius: 10px;
	color: #1a1916;
	font-size: 15px;
	line-height: 1.55;
}

#comments .comment-form .comment-notes {
	color: #6b665c;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 18px;
}

#comments .comment-form .comment-notes .required {
	color: #c9a227;
}

/* --- Field layout: two columns on desktop -------------------------------- */
#comments .fj-comment-kit .row > .col-sm-6 {
	float: none;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
}

#comments .fj-comment-kit .form-group-url {
	grid-column: 1 / -1;
}

/* --- Field groups, labels, icons ----------------------------------------- */
#comments .fj-comment-kit__field {
	margin: 0 0 18px;
	padding: 0;
}

#comments .fj-comment-kit__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	color: #1a1916;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

#comments .fj-comment-kit__label .asterik {
	margin-left: 2px;
	color: #c9a227;
}

#comments .fj-comment-kit__icon {
	flex: 0 0 auto;
	color: #c9a227;
}

/* --- Inputs -------------------------------------------------------------- */
#comments .fj-comment-kit .form-control {
	display: block;
	width: 100%;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	background-color: #ffffff;
	border: 1px solid #e6dfd2;
	border-radius: 10px;
	box-shadow: none;
	color: #1a1916;
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#comments .fj-comment-kit .form-control::placeholder {
	color: #9a9488;
	font-style: normal;
	opacity: 1;
}

#comments .fj-comment-kit .form-control:focus {
	background-color: #ffffff;
	border-color: #e0a72b;
	box-shadow: 0 0 0 3px rgba(224, 167, 43, 0.22);
	outline: 0;
}

#comments .fj-comment-kit textarea.form-control {
	min-height: 132px;
	resize: vertical;
}

/* --- Cookie consent ------------------------------------------------------ */
#comments .fj-comment-kit .form-group-cookie {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 2px 0 22px;
	padding: 0;
}

#comments .fj-comment-kit .form-group-cookie input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #c9a227;
}

#comments .fj-comment-kit .form-group-cookie label {
	margin: 0;
	color: #6b665c;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

/* --- Star rating (form) -------------------------------------------------- */
#comments .fj-comment-kit__rating {
	margin: 4px 0 20px;
	padding: 16px 18px;
	background: #faf7f1;
	border: 1px solid #efe6d6;
	border-radius: 12px;
}

#comments .fj-comment-kit__rating-title {
	display: block;
	margin: 0 0 10px;
	color: #6b665c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

#comments .fj-comment-kit__stars {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

#comments .fj-comment-kit__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: #d9d2c4;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

#comments .fj-comment-kit__star:hover {
	background: rgba(224, 167, 43, 0.10);
}

#comments .fj-comment-kit__star:hover,
#comments .fj-comment-kit__star.is-hover,
#comments .fj-comment-kit__star.is-selected {
	color: #e0a72b;
}

#comments .fj-comment-kit__star:focus-visible {
	outline: 2px solid #c9a227;
	outline-offset: 2px;
}

#comments .fj-comment-kit__star .fj-comment-kit__star-icon {
	display: block;
	width: 28px;
	height: 28px;
	pointer-events: none;
}

/* --- Submit button ------------------------------------------------------- */
#comments .comment-form #submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 30px;
	background-color: #e0a72b;
	border: 1px solid #e0a72b;
	border-radius: 10px;
	box-shadow: none;
	color: #1a1916;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#comments .comment-form #submit:hover,
#comments .comment-form #submit:focus {
	background-color: #c9a227;
	border-color: #c9a227;
	box-shadow: 0 6px 14px rgba(201, 162, 39, 0.28);
	color: #1a1916;
	outline: 0;
	transform: translateY(-1px);
}

#comments .comment-form #submit:active {
	box-shadow: none;
	transform: translateY(0);
}

/* --- Comment list: author, date, reply ----------------------------------- */
#comments .comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 4px;
	color: #1a1916;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

#comments .comment-author img.avatar,
#comments .comment-author .avatar {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border: 1px solid #efe6d6;
	border-radius: 50%;
	object-fit: cover;
}

#comments .comment-author .fn {
	margin: 0;
	color: #1a1916;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

#comments .comment-author a {
	color: #1a1916;
	text-decoration: none;
}

#comments .comment-author a:hover {
	color: #a3811f;
}

#comments .comment-metadata {
	margin: 0 0 14px;
	color: #6b665c;
	font-size: 12px;
	font-style: normal;
	line-height: 1.4;
}

#comments .comment-metadata a {
	color: #6b665c;
	text-decoration: none;
}

#comments .comment-metadata a:hover {
	color: #a3811f;
}

#comments .comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 16px;
	background: transparent;
	border: 1px solid #e0a72b;
	border-radius: 999px;
	color: #a3811f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#comments .comment-reply-link::before {
	content: none;
}

#comments .comment-reply-link:hover,
#comments .comment-reply-link:focus {
	background-color: #e0a72b;
	border-color: #e0a72b;
	color: #1a1916;
	text-decoration: none;
}

/* --- Comment list: read-only rating row ---------------------------------- */
#comments .fj-comment-rating {
	margin: 12px 0 0;
}

#comments .fj-comment-rating__stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

#comments .fj-comment-rating__star {
	display: block;
	width: 18px;
	height: 18px;
}

#comments .fj-comment-rating__star.is-full {
	color: #e0a72b;
}

#comments .fj-comment-rating__star.is-empty {
	color: #c9c0ad;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 600px) {
	#comments .fj-comment-kit .row > .col-sm-6 {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	#comments .fj-comment-kit .form-group-url {
		grid-column: auto;
	}

	#comments .fj-comment-kit__field {
		margin-bottom: 14px;
	}

	#comments .comment-form #submit {
		display: flex;
		width: 100%;
		min-height: 48px;
	}

	#comments .fj-comment-kit__rating {
		padding: 14px;
	}

	#comments .fj-comment-kit__stars {
		gap: 4px;
	}

	#comments .fj-comment-kit__star {
		width: 46px;
		height: 46px;
		min-width: 46px;
	}

	#comments .comment-reply-link {
		min-height: 44px;
		padding: 10px 18px;
	}

	#comments .fj-comment-kit .form-group-cookie input[type="checkbox"] {
		width: 22px;
		height: 22px;
	}
}

/* Avatar inside the comment body (theme passes avatar_size=0) */
.fj-comment-avatar {
    float: left;
    margin: 0 14px 8px 0;
    line-height: 0;
}
.fj-comment-avatar .fj-comment-avatar__img,
.fj-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 2px #f3ecdd;
}
@media (max-width: 600px) {
    .fj-comment-avatar { margin-right: 10px; }
    .fj-comment-avatar .fj-comment-avatar__img,
    .fj-comment-avatar img { width: 40px; height: 40px; }
}
