.wcspu-upload-card {
	position: relative;
	display: grid;
	gap: .85rem;
	margin: 1rem 0;
	padding: 1rem;
	overflow: hidden;
	border: 1px solid #d7dee8;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(248, 250, 252, .94), rgba(241, 245, 249, .96)),
		repeating-linear-gradient(90deg, rgba(15, 23, 42, .04) 0, rgba(15, 23, 42, .04) 1px, transparent 1px, transparent 14px);
	box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
	color: #111827;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wcspu-upload-card.is-dragging {
	transform: translateY(-1px);
	border-color: #0f766e;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, .13), 0 16px 34px rgba(15, 23, 42, .12);
}

.wcspu-upload-card.has-error {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.wcspu-upload-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: .85rem;
	align-items: center;
}

.wcspu-upload-copy {
	display: grid;
	gap: .18rem;
	min-width: 0;
}

.wcspu-upload-copy strong {
	color: #0f172a;
	font-size: 1rem;
	font-weight: 900;
}

.wcspu-upload-copy span {
	color: #475569;
	font-size: .9rem;
	font-weight: 650;
	line-height: 1.35;
}

.wcspu-upload-copy em {
	color: #64748b;
	font-size: .78rem;
	font-style: normal;
	font-weight: 750;
}

.wcspu-printer {
	position: relative;
	width: 4.35rem;
	height: 3.65rem;
	border: 2px solid #94a3b8;
	border-radius: 8px;
	background: #e2e8f0;
	box-shadow: inset 0 -12px 0 rgba(148, 163, 184, .22);
}

.wcspu-printer-rail,
.wcspu-printer-head,
.wcspu-printer-bed,
.wcspu-printer-print {
	position: absolute;
	display: block;
}

.wcspu-printer-rail {
	left: .48rem;
	right: .48rem;
	top: .72rem;
	height: .18rem;
	border-radius: 999px;
	background: #64748b;
}

.wcspu-printer-head {
	left: .72rem;
	top: .42rem;
	width: .82rem;
	height: .72rem;
	border-radius: 4px;
	background: #0f766e;
	animation: wcspu-print-head 1.5s ease-in-out infinite alternate;
}

.wcspu-printer-bed {
	left: .58rem;
	right: .58rem;
	bottom: .52rem;
	height: .32rem;
	border-radius: 999px;
	background: #475569;
}

.wcspu-printer-print {
	left: 1.4rem;
	right: 1.4rem;
	bottom: .84rem;
	height: .68rem;
	border-radius: 6px 6px 2px 2px;
	background: linear-gradient(180deg, #14b8a6, #0f766e);
	animation: wcspu-print-grow 1.1s ease-in-out infinite alternate;
}

.wcspu-file-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: .78rem 1rem;
	border: 1px dashed #94a3b8;
	border-radius: 8px;
	background: rgba(255, 255, 255, .78);
	color: #0f172a;
	font-weight: 900;
	cursor: pointer;
	text-align: center;
	transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.wcspu-file-button:hover {
	border-color: #0f766e;
	background: #f0fdfa;
	color: #0f766e;
}

.wcspu-file-button input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.wcspu-file-name {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	padding: .36rem .62rem;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
	font-size: .82rem;
	font-weight: 800;
	overflow-wrap: anywhere;
}

.wcspu-upload-card.has-file .wcspu-file-name {
	background: #dcfce7;
	color: #166534;
}

.wcspu-error {
	min-height: 1.1rem;
	color: #b42318;
	font-size: .85rem;
	font-weight: 800;
}

.wcspu-uploading {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: .85rem;
	align-items: center;
	justify-content: center;
	padding: 1.15rem;
	background: rgba(226, 232, 240, .92);
	backdrop-filter: blur(3px) grayscale(.25);
	opacity: 0;
	pointer-events: none;
	transform: scale(.985);
	transition: opacity .16s ease, transform .16s ease;
	z-index: 3;
}

.wcspu-upload-card.is-uploading > :not(.wcspu-uploading) {
	filter: grayscale(1);
	opacity: .3;
}

.wcspu-upload-card.is-uploading .wcspu-uploading {
	opacity: 1;
	transform: scale(1);
}

.wcspu-uploading-ring {
	width: 3.15rem;
	height: 3.15rem;
	border: .32rem solid rgba(15, 118, 110, .18);
	border-top-color: #0f766e;
	border-radius: 50%;
	animation: wcspu-spin .75s linear infinite;
}

.wcspu-uploading strong,
.wcspu-uploading span {
	display: block;
}

.wcspu-uploading strong {
	color: #0f172a;
	font-weight: 950;
}

.wcspu-uploading span {
	color: #475569;
	font-size: .88rem;
	font-weight: 750;
}

.wcspu-form-uploading button[type="submit"] {
	filter: grayscale(.7);
}

@keyframes wcspu-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes wcspu-print-head {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(2.1rem);
	}
}

@keyframes wcspu-print-grow {
	from {
		height: .35rem;
	}

	to {
		height: 1.1rem;
	}
}

@media (max-width: 520px) {
	.wcspu-upload-main,
	.wcspu-uploading {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.wcspu-printer,
	.wcspu-uploading-ring {
		justify-self: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcspu-printer-head,
	.wcspu-printer-print,
	.wcspu-uploading-ring,
	.wcspu-upload-card,
	.wcspu-file-button {
		animation: none;
		transition: none;
	}
}
