/**
 * Avis recettes — résumé note (carte) + slider latéral.
 * Style aligné sur les avis produits du thème PDC, mais self-contained.
 */

/* ─── Étoiles ─────────────────────────────────────────────── */
.pdc-recipe-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 0;
}
.pdc-recipe-star {
	width: 16px;
	height: 16px;
}
.pdc-recipe-star--full {
	fill: #f5a623;
}
.pdc-recipe-star--empty {
	fill: #d8d8d8;
}

/* ─── Résumé note dans l'en-tête de la carte ─────────────── */
.pdc-recipe-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 4px 0 10px;
	text-decoration: none;
	color: inherit;
}
.pdc-recipe-card__rating:hover {
	text-decoration: none;
}
.pdc-recipe-card__rating-avg {
	font-weight: 700;
	font-size: 15px;
}
.pdc-recipe-card__rating-count {
	font-size: 13px;
	color: #777;
}

/* ─── Section avis (bas de carte) ────────────────────────── */
/* Bloc avis : sous la carte recette, sans cadre (la bordure reste à la recette). */
.pdc-recipe-reviews {
	margin: 24px 0 0;
}

.pdc-recipe-reviews__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
}

.pdc-recipe-reviews__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px 28px;
	margin-bottom: 18px;
}
.pdc-recipe-reviews__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 26px;
}
.pdc-recipe-reviews__summary {
	display: flex;
	align-items: center;
	gap: 10px;
}
.pdc-recipe-reviews__avg {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}
.pdc-recipe-reviews__summary-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pdc-recipe-reviews__summary-meta .pdc-recipe-star {
	width: 18px;
	height: 18px;
}
.pdc-recipe-reviews__based {
	font-size: 12px;
	color: #777;
}

/* Barres de répartition par note (cliquables) */
.pdc-recipe-reviews__bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
}
.pdc-recipe-reviews__bar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 1px 4px;
	background: none;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	color: #555;
}
.pdc-recipe-reviews__bar-row:hover {
	background: #f6f6f6;
}
.pdc-recipe-reviews__bar-row.is-active {
	background: #fff5e6;
}
.pdc-recipe-reviews__bar-label {
	flex: 0 0 58px;
	text-align: left;
	white-space: nowrap;
}
.pdc-recipe-reviews__bar {
	flex: 1;
	height: 8px;
	background: #ececec;
	border-radius: 4px;
	overflow: hidden;
}
.pdc-recipe-reviews__bar-fill {
	display: block;
	height: 100%;
	background: #f5a623;
	border-radius: 4px;
}
.pdc-recipe-reviews__bar-count {
	flex: 0 0 24px;
	text-align: right;
	color: #888;
}

/* Filtres */
.pdc-recipe-reviews__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pdc-recipe-reviews__select {
	font-size: 13px;
	padding: 5px 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.pdc-recipe-reviews__no-results {
	margin: 8px 0 0;
	color: #777;
	font-style: italic;
}

/* ─── Grille scrollable horizontale ──────────────────────── */
.pdc-recipe-reviews__grid-wrapper {
	position: relative;
}
.pdc-recipe-reviews__grid {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 4px 2px 12px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.pdc-recipe-reviews__grid::-webkit-scrollbar {
	height: 6px;
}
.pdc-recipe-reviews__grid::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.pdc-recipe-reviews__item {
	flex: 0 0 300px;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.pdc-recipe-reviews__item-text {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	flex: 1;
}
.pdc-recipe-reviews__item-text p {
	margin: 0 0 8px;
}
.pdc-recipe-reviews__item-text p:last-child {
	margin-bottom: 0;
}
.pdc-recipe-reviews__item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid #f1f1f1;
	font-size: 12px;
	color: #777;
}
.pdc-recipe-reviews__item-author {
	font-weight: 700;
	color: #222;
}
.pdc-recipe-reviews__verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #2e7d32;
	font-weight: 600;
}

/* ─── Boutons de navigation ──────────────────────────────── */
.pdc-recipe-reviews__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #fff;
	color: #333;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: background 0.15s, opacity 0.15s;
}
.pdc-recipe-reviews__nav:hover {
	background: #f5f5f5;
}
.pdc-recipe-reviews__nav:disabled {
	opacity: 0;
	pointer-events: none;
}
.pdc-recipe-reviews__nav--left {
	left: -8px;
}
.pdc-recipe-reviews__nav--right {
	right: -8px;
}

@media (max-width: 600px) {
	.pdc-recipe-reviews__nav {
		display: none;
	}
	.pdc-recipe-reviews__item {
		flex-basis: 82%;
		max-width: 82%;
	}
}
