.wc-spu-field {
	margin: 0 0 1.25em;
	max-width: 34em;
}

.wc-spu-label {
	display: block;
	font-weight: 600;
	margin-bottom: .4em;
}

.wc-spu-input {
	display: block;
	width: 100%;
	padding: .7em;
	border: 1px dashed currentColor;
	border-radius: 4px;
	background: transparent;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.wc-spu-input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* The button replaces the raw input only when the browser can rebuild a
   FileList, so a fallback browser keeps a working native control. */
.wc-spu-choose {
	display: none;
}

.wc-spu-enhanced .wc-spu-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wc-spu-enhanced .wc-spu-choose {
	display: inline-block;
	padding: .6em 1.2em;
	border: 1px dashed currentColor;
	border-radius: 4px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.wc-spu-enhanced .wc-spu-choose:hover {
	border-style: solid;
}

.wc-spu-enhanced .wc-spu-input:focus-visible + .wc-spu-choose {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wc-spu-choose.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}

.wc-spu-list {
	list-style: none;
	margin: .75em 0 0;
	padding: 0;
}

.wc-spu-item {
	display: flex;
	align-items: center;
	gap: .6em;
	padding: .55em .7em;
	margin: 0 0 .4em;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 4px;
	font-size: .9em;
}

.wc-spu-item-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wc-spu-item-size {
	flex: 0 0 auto;
	opacity: .65;
	font-size: .9em;
}

.wc-spu-remove {
	flex: 0 0 auto;
	width: 1.6em;
	height: 1.6em;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(128, 128, 128, .18);
	color: inherit;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
}

.wc-spu-remove:hover {
	background: #b32d2e;
	color: #fff;
}

.wc-spu-remove:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wc-spu-help {
	margin: .5em 0 0;
	font-size: .85em;
	opacity: .75;
}

.wc-spu-error {
	margin: .5em 0 0;
	font-size: .9em;
	color: #b32d2e;
	display: none;
}

.wc-spu-field.has-error .wc-spu-error {
	display: block;
}

.wc-spu-field.has-error .wc-spu-input,
.wc-spu-field.has-error .wc-spu-choose {
	border-color: #b32d2e;
}
