/**
 * Eatalia Menu Composer — CSS boutique
 * v2.0.0
 */

/* ── Conteneur de composition ── */
.emc-composition {
	margin: 8px 0 4px;
}

.emc-composition[data-emc-state="empty"] {
	display: none;
}

/* ── Messages (chargement / erreur) ── */
.emc-msg {
	padding: 10px 14px;
	font-size: 13px;
	color: #666;
}

.emc-msg--error {
	color: #b32d2e;
}

/* ── Bouton accordéon « Personnaliser cette pizza » ── */
.emc-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e3463c;
	border-radius: 10px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: left;
	transition: background 0.12s ease;
}

.emc-toggle:hover {
	background: #fff6f5;
}

.emc-toggle-icon {
	font-size: 18px;
	flex: 0 0 auto;
}

.emc-toggle-label {
	flex: 1 1 auto;
}

.emc-toggle-caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #e3463c;
	transition: transform 0.15s ease;
}

.emc-toggle.is-open .emc-toggle-caret {
	transform: rotate(180deg);
}

/* ── Corps de la composition ── */
.emc-body {
	border: 1px solid #e3463c;
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 10px 14px;
}

/* On masque le tableau de prix natif de YITH à l'intérieur de la
   composition injectée (le menu a déjà son propre tableau). */
.emc-body #wapo-total-price-table {
	display: none;
}

/* ── Harmonisation des titres dans la composition ── */
.emc-body .wapo-addon-title,
.emc-body .wapo-addon-title span,
.emc-supplements .wapo-addon-title,
.emc-supplements .wapo-addon-title span {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	text-transform: none !important;
}

.emc-body .yith-wapo-addon,
.emc-supplements .yith-wapo-addon {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

/* ── Bloc fusionné « Suppléments » ── */
.emc-supplements .emc-supplements-addon {
	border-bottom: none;
}

.emc-merged-addon {
	border-bottom: none !important;
}

/* Conteneur d'options des addons fusionnés (ex-`options-container`,
   renommé pour échapper au toggle en cascade de YITH). */
.emc-options-wrap {
	display: block !important;
	padding: 0 4px 8px 4px;
}

/* Sous-titre discret de chaque ancien bloc (Fromages, Viandes…). */
.emc-sub-title {
	margin: 14px 0 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #777;
}

.emc-merged-addon:first-child .emc-sub-title {
	margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.emc-toggle {
		font-size: 14px;
		padding: 10px 12px;
	}
	.emc-body {
		padding: 8px 10px;
	}
}

/* ── Encadré de diagnostic (?emc_debug=1) ── */
.emc-debug {
	margin: 0 0 8px;
	padding: 8px 10px;
	background: #1e1e1e;
	color: #6cf;
	font-family: monospace;
	font-size: 11px;
	line-height: 1.5;
	border-radius: 6px;
	word-break: break-word;
}
