/* Styles du plugin Mon Affiliation Amazon */

/* Mention de disclosure affiliation */
.maa-disclosure {
	font-size: 0.85em;
	color: #555;
	background: #f5f5f5;
	border-left: 3px solid #ff9900;
	padding: 0.75em 1em;
	margin: 0 0 1.5em;
}

/* Tableau comparatif */
.maa-comparatif-wrapper {
	overflow-x: auto;
	margin: 1.5em 0;
}

.maa-comparatif-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.maa-comparatif-table th,
.maa-comparatif-table td {
	text-align: left;
	padding: 0.75em 1em;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.maa-comparatif-table thead th {
	background: #f7f7f7;
	font-weight: 600;
}

.maa-col-produit {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	min-width: 140px;
}

.maa-thumb {
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

.maa-nom {
	font-weight: 600;
}

.maa-col-carac ul {
	margin: 0;
	padding-left: 1.2em;
}

.maa-col-carac li {
	margin-bottom: 0.25em;
}

.maa-prix {
	font-weight: 600;
	font-size: 1.05em;
	display: block;
}

.maa-prix-note {
	display: block;
	color: #777;
	font-size: 0.75em;
	margin-top: 0.25em;
	line-height: 1.3;
}

/* Bouton d'appel à l'action */
.maa-btn {
	display: inline-block;
	white-space: nowrap;
	padding: 0.6em 1.2em;
	background: #ff9900;
	color: #111;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.15s ease-in-out;
}

.maa-btn:hover,
.maa-btn:focus {
	background: #e88a00;
	color: #111;
}

/* Fiche produit détaillée */
.maa-produit-card {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1.5em;
	margin: 1.5em 0;
}

.maa-produit-image {
	max-width: 220px;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.maa-produit-info {
	flex: 1 1 240px;
	min-width: 240px;
}

.maa-produit-nom {
	margin-top: 0;
}

.maa-produit-carac {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.maa-produit-carac li {
	margin-bottom: 0.25em;
}

.maa-produit-prix {
	margin-bottom: 1em;
}

/* Petit écran : tableau comparatif présenté en cartes empilées */
@media (max-width: 640px) {
	.maa-comparatif-table {
		min-width: 0;
	}

	.maa-comparatif-table thead {
		display: none;
	}

	.maa-comparatif-table,
	.maa-comparatif-table tbody,
	.maa-comparatif-table tr,
	.maa-comparatif-table td {
		display: block;
		width: 100%;
	}

	.maa-comparatif-table tr {
		border: 1px solid #e0e0e0;
		border-radius: 6px;
		margin-bottom: 1em;
		padding: 0.5em 1em;
	}

	.maa-comparatif-table td {
		border-bottom: none;
		padding: 0.4em 0;
	}

	.maa-comparatif-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 0.75em;
		font-weight: 600;
		color: #888;
		text-transform: uppercase;
	}

	.maa-comparatif-table td[data-label=""]::before {
		content: none;
	}
}
