/* CCM Reviews — tipografía de la tienda: cuerpo 12px, títulos 16px peso 500 */

.ccmr-wrap, .ccmr-gwrap {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #222;
	/* Alineado a la izquierda aunque el widget de Elementor centre su contenido */
	text-align: left;
}
/* Ancho de lectura cómodo, pegado a la izquierda (no estirado a toda la columna) */
#ccm-reviews.ccmr-wrap {
	max-width: 720px;
	margin-left: 0;
	margin-right: auto;
}

/* Blindaje contra la alineación centrada del contenedor de Elementor */
#ccm-reviews.ccmr-wrap,
#ccm-reviews .ccmr-title,
#ccm-reviews .ccmr-summary,
#ccm-reviews .ccmr-summary-top,
#ccm-reviews .ccmr-summary-score,
#ccm-reviews .ccmr-list,
#ccm-reviews .ccmr-card,
#ccm-reviews .ccmr-summary-btnwrap,
#ccm-reviews .ccmr-pagination {
	text-align: left;
	justify-content: flex-start;
}
#ccm-reviews .ccmr-summary-top { align-items: flex-start; }
.ccmr-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 14px;
}

/* Resumen — estilo Mercado Libre: promedio grande + barras de distribución */
.ccmr-summary { display: block; margin: 0 0 20px; }
.ccmr-summary-top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin: 0 0 16px; }

/* Bloque del promedio (izquierda) */
.ccmr-summary-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; }
.ccmr-summary-score .ccmr-avg { font-size: 44px; font-weight: 600; line-height: 1; color: #222; }
.ccmr-summary-score .ccmr-stars { font-size: 16px; }
.ccmr-summary-score .ccmr-count { color: #999; font-size: 12px; }

/* Barras de distribución (derecha) */
.ccmr-dist { flex: 1 1 240px; min-width: 200px; max-width: 360px; display: flex; flex-direction: column; gap: 5px; }
.ccmr-dist-row { display: flex; align-items: center; gap: 8px; }
.ccmr-dist-label { flex: 0 0 auto; width: 10px; text-align: right; color: #666; font-size: 12px; }
.ccmr-dist-track { flex: 1 1 auto; height: 8px; background: #ececec; border-radius: 5px; overflow: hidden; }
.ccmr-dist-fill { display: block; height: 100%; background: #d32f2f; border-radius: 5px; }
.ccmr-dist-n { flex: 0 0 auto; width: 24px; text-align: right; color: #999; font-size: 11px;
	font-variant-numeric: tabular-nums; }

/* Estado vacío + botón */
.ccmr-first { margin: 0 0 12px; color: #666; font-size: 13px; line-height: 1.5; }
.ccmr-summary-btnwrap { margin: 0; }
.ccmr-summary-btn { display: inline-block; background: #d32f2f; color: #fff; font-size: 14px; font-weight: 500;
	padding: 8px 18px; border-radius: 7px; text-decoration: none; line-height: 1.4; border: 0; cursor: pointer; }
.ccmr-summary-btn:hover { background: #b71c1c; color: #fff; }

/* Divisor entre el resumen y las opiniones (como ML) */
.ccmr-summary { padding-bottom: 20px; border-bottom: 1px solid #ececec; }
.ccmr-summary--empty { border-bottom: 0; padding-bottom: 0; }
.ccmr-list-title { font-size: 15px; font-weight: 600; color: #222; margin: 18px 0 4px; }

@media (max-width: 520px) {
	.ccmr-summary-top { gap: 18px; }
	.ccmr-dist { max-width: none; }
}

/* Estrellas (lectura) */
.ccmr-stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.ccmr-star { color: #d5d5d5; }
.ccmr-star.is-filled { color: #d32f2f; }

/* Listado — separado por líneas, como Mercado Libre (no cajas) */
.ccmr-list { display: flex; flex-direction: column; gap: 0; margin: 0 0 8px; }
.ccmr-card { border: 0; border-top: 1px solid #ececec; border-radius: 0; padding: 16px 0; }
.ccmr-card:first-child { border-top: 0; padding-top: 8px; }
.ccmr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.ccmr-card-stars .ccmr-stars { font-size: 14px; }
.ccmr-card .ccmr-date { color: #999; font-size: 11px; flex: 0 0 auto; }
.ccmr-content { margin: 0 0 6px; color: #333; }
.ccmr-author { display: block; color: #999; font-size: 11px; }

/* Paginación */
.ccmr-pagination { display: flex; gap: 6px; margin: 0 0 16px; }
.ccmr-page { display: inline-block; min-width: 26px; text-align: center; padding: 4px 6px;
	border: 1px solid #ddd; border-radius: 4px; color: #222; text-decoration: none; }
.ccmr-page.is-current { background: #222; color: #fff; border-color: #222; }

/* Pop-up del formulario (abre desde "Escribir una reseña") */
.ccmr-dialog { width: min(520px, 92vw); max-height: 86vh; border: 0; border-radius: 10px;
	padding: 0; box-shadow: 0 10px 40px rgba(0,0,0,.25); font-size: 12px; line-height: 1.5; color: #222; }
.ccmr-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.ccmr-dialog-head { display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px 8px; }
.ccmr-dialog-title { font-size: 18px; font-weight: 500; margin: 0; }
.ccmr-dialog-close { background: none; border: 0; font-size: 24px; line-height: 1; color: #d32f2f;
	cursor: pointer; padding: 2px 6px; }
.ccmr-dialog-body { padding: 4px 22px 22px; overflow-y: auto; max-height: calc(86vh - 60px); }

/* Fade-in al abrir */
@keyframes ccmr-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ccmr-backdrop-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.ccmr-dialog[open] { animation: ccmr-fade-in .25s ease-out; }
.ccmr-dialog[open]::backdrop { animation: ccmr-backdrop-in .25s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.ccmr-dialog[open], .ccmr-dialog[open]::backdrop { animation: none; }
}

/* Formulario (dentro del pop-up) */
.ccmr-form-wrap { border-top: 0; padding-top: 0; }
.ccmr-form-title { font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.ccmr-field { margin: 0 0 10px; }
.ccmr-field label, .ccmr-label { display: block; font-weight: 500; margin: 0 0 4px; }
.ccmr-hint { font-weight: 400; color: #999; }
/* Especificidad alta a propósito: el Kit de Elementor estiliza input/textarea
   (incl. :hover) con selectores .elementor-kit-N y pisaba estos campos. */
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="text"],
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="email"],
.ccmr-wrap .ccmr-form-wrap .ccmr-field textarea {
	width: 100%; max-width: 420px; padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px;
	font-size: 12px; color: #222; background: #fff; box-sizing: border-box;
	transition: border-color .12s ease; box-shadow: none;
}
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="text"]:hover,
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="email"]:hover,
.ccmr-wrap .ccmr-form-wrap .ccmr-field textarea:hover {
	border-color: #b5b5b5; background: #fff; color: #222; box-shadow: none;
}
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="text"]:focus,
.ccmr-wrap .ccmr-form-wrap .ccmr-field input[type="email"]:focus,
.ccmr-wrap .ccmr-form-wrap .ccmr-field textarea:focus {
	outline: none; border-color: #d32f2f; background: #fff; color: #222; box-shadow: none;
}
.ccmr-note { color: #999; margin: 0 0 10px; }
.ccmr-as { margin: 0 0 10px; }
.ccmr-btn {
	display: inline-block; background: #d32f2f; color: #fff; border: 0; border-radius: 4px;
	padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.ccmr-btn:hover { background: #b71c1c; color: #fff; }
.ccmr-btn--outline { background: transparent; color: #d32f2f; border: 1px solid #d32f2f; }
.ccmr-btn--outline:hover { background: #d32f2f; color: #fff; }

/* Honeypot: fuera de pantalla (no display:none, algunos bots lo detectan) */
.ccmr-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }

/* Estrellas clicables: DOM en orden 5→1 + row-reverse => llenado visual izq→der */
.ccmr-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.ccmr-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ccmr-rate label { color: #d5d5d5; font-size: 26px; line-height: 1; cursor: pointer; transition: color .12s; }
.ccmr-rate input:checked ~ label,
.ccmr-rate label:hover,
.ccmr-rate label:hover ~ label { color: #d32f2f; }

/* Bloque Google */
.ccmr-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ccmr-gcard { border: 1px solid #eee; border-radius: 6px; padding: 12px; background: #fff; }
.ccmr-gcard-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.ccmr-gicon { flex: 0 0 auto; }
.ccmr-gname { font-weight: 500; }
.ccmr-gtext { margin: 6px 0; }
.ccmr-gdate { color: #999; }
.ccmr-gmore { margin: 0; }
