/* Recipe Rating — styles du bloc de notation visiteur */

.recipe-rating-block {
	background: #f9f9f9;
	padding: 25px;
	border-radius: 8px;
	margin: 30px 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
}

.recipe-rating-title {
	margin: 0 0 15px;
	font-size: 1.25em;
}

/* Affichage moyenne — étoiles superposées (gris en fond, doré au-dessus) */
.recipe-rating-display {
	margin-bottom: 10px;
}

.rr-stars {
	position: relative;
	display: inline-block;
	font-family: Arial, sans-serif;
	font-size: 28px;
	line-height: 1;
	letter-spacing: 2px;
}

.rr-stars-bg {
	color: #ddd;
}

.rr-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	color: #f5b301;
	overflow: hidden;
	white-space: nowrap;
	letter-spacing: 2px;
}

.recipe-rating-meta {
	margin: 10px 0 0;
}

.rr-avg {
	font-weight: bold;
	font-size: 1.2em;
}

.recipe-rating-empty {
	font-style: italic;
	color: #666;
	margin: 0;
}

/* Séparateur */
.recipe-rating-sep {
	border: 0;
	border-top: 1px solid #ddd;
	margin: 20px auto;
	max-width: 60%;
}

/* Zone de vote */
.recipe-rating-vote {
	margin-top: 15px;
}

.recipe-rating-prompt {
	margin: 0 0 10px;
	font-weight: 500;
}

.rr-vote-stars {
	display: inline-flex;
	gap: 2px;
}

.rr-vote-star {
	background: none;
	border: none;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 32px;
	line-height: 1;
	color: #ddd;
	padding: 0 4px;
	transition: color 0.15s ease, transform 0.1s ease;
}

.rr-vote-star.is-hover,
.rr-vote-star:hover,
.rr-vote-star:focus-visible {
	color: #f5b301;
}

.rr-vote-star:focus-visible {
	outline: 2px solid #f5b301;
	outline-offset: 2px;
	border-radius: 2px;
}

.rr-vote-star:active {
	transform: scale(0.95);
}

.rr-vote-star[disabled] {
	cursor: wait;
	opacity: 0.6;
}

.recipe-rating-thanks {
	color: #2e7d32;
	font-style: italic;
	margin: 0;
}

.recipe-rating-feedback {
	color: #c62828;
	margin: 10px 0 0;
	font-size: 0.95em;
}
