.upload-ui {
	--upload-content-width: 700px;
}

.upload-ui #file-upload-wrapper {
	margin-top: 14px;
	width: min(var(--upload-content-width), 100%);
	padding: 26px 22px;
	border: 1px solid rgba(201, 155, 71, 0.24);
	border-radius: 10px;
	background:
		radial-gradient(circle at top right, rgba(55, 135, 226, 0.16), transparent 30%),
		linear-gradient(180deg, rgba(26, 36, 46, 0.95), rgba(33, 24, 19, 0.96));
	color: #f5ecdd;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.18);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.upload-ui #file-upload-wrapper:hover {
	border-color: rgba(201, 155, 71, 0.38);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 40px rgba(0, 0, 0, 0.24);
	cursor: pointer;
}

.upload-ui #file-upload-wrapper > svg {
	height: 56px;
	width: 56px;
	margin: 10px auto 12px;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.upload-ui #upltitle,
.upload-ui #uplstatus {
	display: block;
	color: #f5ecdd;
}

.upload-ui #upltitle {
	font-size: 1.02rem;
	letter-spacing: 0.02em;
}

.upload-ui #uplstatus {
	font-size: 1rem;
}

.upload-ui #progress-container {
	display: none;
	margin-top: 10px;
	width: 100%;
	background: rgba(0, 0, 0, 0.32);
	border-radius: 10px;
	overflow: hidden;
}

.upload-ui #progress-bar {
	width: 0%;
	height: 20px;
	background: linear-gradient(90deg, #8a6730 0%, #c99b47 100%);
	border-radius: 10px;
	transition: width 0.4s ease-in-out;
}

.upload-ui .upl-success {
	background:
		radial-gradient(circle at top right, rgba(143, 174, 157, 0.18), transparent 28%),
		linear-gradient(180deg, rgba(22, 40, 31, 0.96), rgba(29, 24, 19, 0.96)) !important;
	color: #f5ecdd !important;
}

.upload-ui .upl-maybe {
	background:
		radial-gradient(circle at top right, rgba(201, 155, 71, 0.18), transparent 28%),
		linear-gradient(180deg, rgba(45, 36, 21, 0.96), rgba(29, 24, 19, 0.96)) !important;
	color: #f5ecdd !important;
}

.upload-ui .upl-fail {
	background:
		radial-gradient(circle at top right, rgba(216, 106, 87, 0.2), transparent 28%),
		linear-gradient(180deg, rgba(48, 23, 20, 0.96), rgba(29, 24, 19, 0.96)) !important;
	color: #f5ecdd !important;
}

.upload-processing-message {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.upload-processing-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(201, 155, 71, 0.35);
	border-top-color: #c99b47;
	border-radius: 50%;
	animation: upload-spin 0.85s linear infinite;
}

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