/**
 * CBM French locale formatting.
 * Marker.io C2-632, C2-633: French labels for the native file input.
 *
 * The native control stays in the form and stays keyboard focusable; it is only
 * moved out of sight so the French label can take its place.
 */

.cbm-fr-file {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	flex-wrap: wrap;
}

.cbm-fr-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	border: 0;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.cbm-fr-file__btn {
	display: inline-block;
	padding: 0.45em 1em;
	border: 1px solid currentColor;
	border-radius: 4px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.cbm-fr-file input[type="file"]:focus + .cbm-fr-file__btn,
.cbm-fr-file input[type="file"]:focus-visible + .cbm-fr-file__btn {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.cbm-fr-file__name {
	font-size: 0.95em;
	opacity: 0.85;
}
