/**
 * Aiforya B2B Wholesale — affichage front des tarifs de gros.
 * Badge « Prix de gros » + table des paliers de quantité sur la fiche produit.
 * Styles neutres, sans dépendance externe, compatibles RTL (propriétés logiques).
 */

.aiforya-wholesale-pricing {
	margin: 1em 0;
	padding: 0.85em 1em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
}

.aiforya-wholesale-badge {
	display: inline-block;
	margin-block-end: 0.5em;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: #0b5cad;
	color: #fff;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.aiforya-wholesale-unit {
	margin: 0.3em 0 0;
	font-size: 0.92em;
	opacity: 0.85;
}

.aiforya-wholesale-tiers {
	width: 100%;
	margin-block-start: 0.75em;
	border-collapse: collapse;
	font-size: 0.92em;
}

.aiforya-wholesale-tiers caption {
	margin-block-end: 0.4em;
	font-weight: 600;
	text-align: start;
}

.aiforya-wholesale-tiers th,
.aiforya-wholesale-tiers td {
	padding: 0.45em 0.6em;
	text-align: start;
	border-block-end: 1px solid rgba(0, 0, 0, 0.08);
}

.aiforya-wholesale-tiers thead th {
	font-weight: 600;
	border-block-end-width: 2px;
}

.aiforya-wholesale-tiers tbody tr:last-child th,
.aiforya-wholesale-tiers tbody tr:last-child td {
	border-block-end: none;
}

@media (prefers-color-scheme: dark) {
	.aiforya-wholesale-pricing {
		border-color: rgba(255, 255, 255, 0.16);
		background: rgba(255, 255, 255, 0.04);
	}

	.aiforya-wholesale-tiers th,
	.aiforya-wholesale-tiers td {
		border-block-end-color: rgba(255, 255, 255, 0.12);
	}
}
