/* =========================================================
   12. COMENTARIOS — CHEF CHAPÍN
   ========================================================= */

/* Contenedor externo que ya utiliza la página de receta */
.cc-single-recipe__comments {
	width: min(calc(100% - 56px), 980px);
	max-width: 980px;
	margin: 0 auto;
	padding: 0 0 60px;
	box-sizing: border-box;
}

/* Nueva plantilla comments.php */
.cc-single-recipe__comments .cc-comments {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Título */
.cc-single-recipe__comments .cc-comments__header {
	margin: 0 0 24px;
	padding: 0;
}

.cc-single-recipe__comments .cc-comments__title {
	margin: 0 !important;
	padding: 0 !important;
	color: #20241E;
	font-size: 24px !important;
	font-weight: 700;
	line-height: 1.25;
}

/* Lista */
.cc-single-recipe__comments .cc-comments__list {
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none;
}

.cc-single-recipe__comments .cc-comments__list > li {
	margin: 0 0 18px !important;
	padding: 24px !important;
	border: 1px solid #E1E5D5;
	border-radius: 12px;
	background: #FFFFFF;
	box-sizing: border-box;
}

/* Autor */
.cc-single-recipe__comments .comment-author {
	margin: 0 0 4px;
}

.cc-single-recipe__comments .comment-author .fn {
	color: #20241E;
	font-size: 15px;
	font-weight: 700;
}

/* Fecha */
.cc-single-recipe__comments .comment-metadata {
	margin: 0 0 14px;
}

.cc-single-recipe__comments .comment-metadata a {
	color: #7A8274;
	font-size: 12px;
	text-decoration: none;
}

/* Texto */
.cc-single-recipe__comments .comment-content {
	color: #4F584B;
	font-size: 16px;
	line-height: 1.7;
}

.cc-single-recipe__comments .comment-content p {
	margin: 0 0 10px;
}

/* Responder / editar */
.cc-single-recipe__comments .reply,
.cc-single-recipe__comments .comment-edit-link {
	margin-top: 12px;
}

.cc-single-recipe__comments .comment-reply-link,
.cc-single-recipe__comments .comment-edit-link {
	color: #5F7800;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.cc-single-recipe__comments .comment-reply-link:hover,
.cc-single-recipe__comments .comment-edit-link:hover {
	color: #4E6400;
}

/* Formulario */
.cc-single-recipe__comments .cc-comments__form {
	margin: 20px 0 0 0;
	padding: 28px;
	border: 1px solid #E1E5D5;
	border-radius: 12px;
	background: #FFFFFF;
	box-sizing: border-box;
}

.cc-single-recipe__comments .cc-comments__form .comment-reply-title {
	margin: 0 0 8px !important;
	color: #20241E;
	font-size: 24px !important;
	font-weight: 700;
	line-height: 1.25;
}

.cc-single-recipe__comments .cc-comments__notes {
	margin: 0 0 20px;
	color: #7A8274;
	font-size: 14px;
	line-height: 1.6;
}

/* Campos */
.cc-single-recipe__comments .cc-comments__form p {
	margin: 0 0 16px;
}

.cc-single-recipe__comments .cc-comments__form label {
	display: block;
	margin: 0 0 7px;
	color: #424A3F;
	font-size: 14px;
	font-weight: 600;
}

.cc-single-recipe__comments .cc-comments__form input[type="text"],
.cc-single-recipe__comments .cc-comments__form input[type="email"],
.cc-single-recipe__comments .cc-comments__form textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #D9DFCD;
	border-radius: 8px;
	background: #FFFFFF;
	color: #424A3F;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}

.cc-single-recipe__comments .cc-comments__form textarea {
	min-height: 160px;
	resize: vertical;
}

.cc-single-recipe__comments .cc-comments__form input:focus,
.cc-single-recipe__comments .cc-comments__form textarea:focus {
	border-color: #87A800;
	outline: none;
	box-shadow: 0 0 0 3px rgba(95, 120, 0, .10);
}

/* Botón */
.cc-single-recipe__comments .cc-comments__form .form-submit {
	margin: 6px 0 0;
}

.cc-single-recipe__comments .cc-comments__submit {
	display: inline-block;
	padding: 11px 20px;
	border: 0;
	border-radius: 7px;
	background: #5F7800;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.cc-single-recipe__comments .cc-comments__submit:hover {
	background: #4E6400;
}

/* Paginación */
.cc-single-recipe__comments .cc-comments__pagination {
	margin: 0 0 28px;
	text-align: center;
}

.cc-single-recipe__comments .cc-comments__pagination a {
	color: #5F7800;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

/* Comentarios cerrados */
.cc-single-recipe__comments .cc-comments__closed {
	color: #7A8274;
	font-size: 15px;
}

/* Ocultar estrellas del comentario individual.
   La valoración principal permanece en el Hero. */
.cc-single-recipe__comments .wprm-comment-rating {
	display: none !important;
}

/* =========================================================
   WPRM — OCULTAR RESUMEN DE ESTRELLAS EN COMENTARIOS
   ========================================================= */

.wprm-user-rating-summary {
    display: none !important;
}

.cc-comments__submit {
    background: #5F7800 !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 7px !important;
}

.cc-comments__submit:hover {
    background: #4E6400 !important;
}
/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {

	.cc-single-recipe__comments {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 16px 40px;
	}

	.cc-single-recipe__comments .cc-comments__title {
		font-size: 22px !important;
	}

	.cc-single-recipe__comments .cc-comments__list > li {
		padding: 20px !important;
		border-radius: 10px;
	}

	.cc-single-recipe__comments .comment-content {
		font-size: 15px;
		line-height: 1.65;
	}

	.cc-single-recipe__comments .cc-comments__form {
		padding: 20px;
		border-radius: 10px;
	}

	.cc-single-recipe__comments .cc-comments__form .comment-reply-title {
		font-size: 22px !important;
	}

	.cc-single-recipe__comments .cc-comments__form textarea {
		min-height: 145px;
	}

	.cc-single-recipe__comments .cc-comments__submit {
		width: auto;
		max-width: 100%;
	}

}
