/*
 * LC Médical — Comptoir : trust bars (do_action('lc_trust_bar', 'hero5' | 'footer4' | 'pdp')).
 * A ruled list: a hairline above and below, hairline dividers between claims, content-sized columns. No boxes, no icons,
 * no bright-blue frames (those belong to drawer labels and pulls).
 */

.lc-trust {
	--lc-trust-rule: var(--lc-line-strong);
	--lc-trust-divide: var(--lc-line);
}

.lc-trust.lc-on-dark {
	--lc-trust-rule: rgb(255 255 255 / 0.34);
	--lc-trust-divide: rgb(255 255 255 / 0.16);
}

.lc-trust__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	border-block: 1px solid var(--lc-trust-rule);
}

.lc-trust__item {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.2em;
	min-inline-size: 0;
	padding: var(--lc-s-4) var(--lc-s-5);
	border-inline-start: 1px solid var(--lc-trust-divide);
}

.lc-trust__item:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.lc-trust__item:last-child {
	padding-inline-end: 0;
}

.lc-trust__title {
	font-family: var(--lc-font-label);
	font-size: var(--lc-fs-sm);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--lc-ink);
}

.lc-trust__text {
	font-family: var(--lc-font-text);
	font-size: var(--lc-fs-sm);
	font-weight: 400;
	line-height: 1.35;
	color: var(--lc-ink-muted);
}

.lc-trust__note {
	margin: var(--lc-s-3) 0 0;
	font-size: var(--lc-fs-xs);
	line-height: 1.5;
	color: var(--lc-ink-muted);
	max-inline-size: var(--lc-measure);
}

.lc-trust__note + .lc-trust__note {
	margin-block-start: var(--lc-s-1);
}

/* Home: five claims along the counter, each as wide as its words. */
@media (min-width: 1000px) {
	.lc-trust--hero5 .lc-trust__list {
		flex-wrap: nowrap;
	}

	.lc-trust--hero5 .lc-trust__item {
		padding-inline: var(--lc-s-5);
	}

	.lc-trust--hero5 .lc-trust__item:first-child {
		padding-inline-start: 0;
	}

	.lc-trust--hero5 .lc-trust__item:last-child {
		padding-inline-end: 0;
	}
}

/* Footer: four claims on the dark lacquer. */
.lc-trust--footer4 .lc-trust__item {
	padding-block: var(--lc-s-3);
}

.lc-trust--footer4 .lc-trust__title {
	color: #fff;
	font-size: var(--lc-fs-xs);
}

.lc-trust--footer4 .lc-trust__text {
	font-size: var(--lc-fs-xs);
	line-height: 1.3;
	color: var(--lc-text-muted);
}

.lc-trust--footer4 .lc-trust__note {
	margin-block-start: var(--lc-s-2);
	color: var(--lc-text-muted);
}

/* Below 1000px: two columns of rows (hairline between rows). */
@media (max-width: 999.98px) {
	.lc-trust--hero5 .lc-trust__list,
	.lc-trust--footer4 .lc-trust__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-block-end: 0;
	}

	.lc-trust--hero5 .lc-trust__item,
	.lc-trust--footer4 .lc-trust__item {
		padding: var(--lc-s-3) var(--lc-s-4);
		border-inline-start: 0;
		border-block-end: 1px solid var(--lc-trust-divide);
	}

	.lc-trust--hero5 .lc-trust__item:nth-child(odd),
	.lc-trust--footer4 .lc-trust__item:nth-child(odd) {
		padding-inline-start: 0;
		border-inline-end: 1px solid var(--lc-trust-divide);
	}

	.lc-trust--hero5 .lc-trust__item:nth-child(even),
	.lc-trust--footer4 .lc-trust__item:nth-child(even) {
		padding-inline-end: 0;
	}

	/* An odd last claim spans the row. */
	.lc-trust--hero5 .lc-trust__item:last-child:nth-child(odd),
	.lc-trust--footer4 .lc-trust__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		border-inline-end: 0;
	}
}

@media (max-width: 479.98px) {
	.lc-trust--hero5 .lc-trust__list,
	.lc-trust--footer4 .lc-trust__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.lc-trust--hero5 .lc-trust__item,
	.lc-trust--footer4 .lc-trust__item {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.1em var(--lc-s-3);
		padding-inline: 0;
		border-inline-end: 0 !important;
	}
}

/* Product page: compact claims under the buy button, ruled, no frames. */
.lc-trust--pdp .lc-trust__list {
	flex-direction: column;
	flex-wrap: nowrap;
}

.lc-trust--pdp .lc-trust__item {
	flex: none;
	padding: var(--lc-s-2) 0;
	border-inline-start: 0;
	border-block-end: 1px solid var(--lc-trust-divide);
}

.lc-trust--pdp .lc-trust__item:last-child {
	border-block-end: 0;
}

.lc-trust--pdp .lc-trust__title {
	font-size: var(--lc-fs-xs);
}
