/* Visually hide the native file input while keeping it accessible/focusable via the linked label */
.e-form-file-upload-base {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Style the correctly linked label as the visible "button" */
label[for="file-upload"] {
	cursor: pointer;
	transition: background-color 0.3s ease, outline 0.1s ease;
}

label[for="file-upload"].arminum-focus-visible {
	background-color: var(--text-clr);
	color: var(--primary-clr);
}

.arminum-file-upload-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	column-gap: var(--medium-gap);
}

.arminum-file-upload-item {
	display: flex;
	align-items: center;
	justify-content: start;
	gap: var(--small-gap);
	font-size: 1rem;
}

.arminum-file-upload-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	order: 2;
}

[type=button].arminum-file-upload-remove {
	background: none;
	border: 1px solid var(--text-clr);
	border-radius: 100vw;
	color: var(--text-clr);
	height: 26px;
	width: 26px;
	aspect-ratio: 1;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

[type=button].arminum-file-upload-remove:hover,
[type=button].arminum-file-upload-remove:focus-visible {
	color: var(--primary-clr);
	background: var(--text-clr);
}