/* CCM Questions — layout Mercado Libre, tipografía de la tienda, rojo CCM */

.ccmq-wrap { font-size: 12px; font-weight: 400; line-height: 1.5; color: #222; text-align: left; }
.ccmq-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 14px; }

/* Ancho de lectura cómodo, pegado a la izquierda (igual que las reseñas) */
#ccm-questions.ccmq-wrap { max-width: 720px; margin-left: 0; margin-right: auto; }
/* Blindaje contra el centrado del contenedor de Elementor */
#ccm-questions.ccmq-wrap,
#ccm-questions .ccmq-title,
#ccm-questions .ccmq-form,
#ccm-questions .ccmq-list,
#ccm-questions .ccmq-pair,
#ccm-questions .ccmq-viewall-wrap { text-align: left; justify-content: flex-start; }

/* Avisos */
.ccmq-notice { border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; font-size: 12px; }
.ccmq-notice--ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.ccmq-notice--error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }

/* Formulario (input grande + botón al lado, como ML) */
.ccmq-form { margin: 0 0 18px; }
.ccmq-form-row { display: flex; gap: 10px; margin: 0 0 8px; }
.ccmq-input { flex: 1; border: 1px solid #ccc; border-radius: 6px; padding: 11px 14px; font-size: 13px;
	color: #222; box-sizing: border-box; min-width: 0; }
.ccmq-input:focus { outline: none; border-color: #d32f2f; }
.ccmq-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	background: #d32f2f; color: #fff; border: 0; border-radius: 7px;
	padding: 0 22px; font-size: 14px; font-weight: 500; cursor: pointer; }
.ccmq-btn:hover { background: #b71c1c; }
.ccmq-btn-icon { flex: 0 0 auto; }
/* Aviso "iniciar sesión" (cuando el visitante no está logueado) */
.ccmq-login-note { background: #f7f7f7; border: 1px solid #ececec; border-radius: 8px;
	padding: 14px 16px; margin: 0 0 18px; font-size: 13px; color: #555; }
.ccmq-login-link { color: #d32f2f; font-weight: 600; text-decoration: none; }
.ccmq-login-link:hover { text-decoration: underline; }

/* Honeypot fuera de pantalla */
.ccmq-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }

/* Pares pregunta/respuesta — separados por líneas, como Mercado Libre */
.ccmq-list { display: flex; flex-direction: column; gap: 0; margin: 0 0 10px;
	border-top: 1px solid #ececec; }
.ccmq-pair { padding: 14px 0; border-bottom: 1px solid #ececec; }
.ccmq-q { font-weight: 600; color: #222; margin: 0 0 6px; }
.ccmq-a { display: flex; gap: 8px; }
.ccmq-a-branch { color: #bbb; flex: 0 0 auto; line-height: 1.5; }
.ccmq-a-body { min-width: 0; }
.ccmq-a-text { margin: 0 0 2px; color: #555; }
.ccmq-a-date { color: #999; font-size: 11px; }
/* Dentro del modal las líneas también aplican */
.ccmq-dialog-body .ccmq-list { border-top: 0; }
.ccmq-dialog-body .ccmq-pair:last-child { border-bottom: 0; }

/* Ver todas */
.ccmq-viewall-wrap { margin: 0; }
.ccmq-viewall { background: none; border: 0; padding: 0; color: #d32f2f; font-size: 13px;
	font-weight: 500; cursor: pointer; text-decoration: none; }
.ccmq-viewall:hover { text-decoration: underline; }

/* Modal */
.ccmq-dialog { width: min(680px, 92vw); max-height: 82vh; border: 0; border-radius: 10px;
	padding: 0; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.ccmq-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.ccmq-dialog-head { display: flex; align-items: center; justify-content: space-between;
	padding: 18px 22px 10px; }
.ccmq-dialog-title { font-size: 20px; font-weight: 500; margin: 0; }
.ccmq-close { background: none; border: 0; font-size: 24px; line-height: 1; color: #d32f2f;
	cursor: pointer; padding: 2px 6px; }
.ccmq-dialog-body { padding: 6px 22px 22px; overflow-y: auto; max-height: calc(82vh - 64px);
	font-size: 12px; line-height: 1.5; color: #222; }

@media (max-width: 520px) {
	.ccmq-form-row { flex-direction: column; }
	.ccmq-btn { padding: 11px 22px; }
	.ccmq-input--email { max-width: 100%; }
}
