/**
 * kd-forms PHOTOS — the kdauctions.com uploader box (AssetUploader.tsx).
 *
 * KDA spec, translated: rounded-xl (12px) 2px DASHED border, p-6 (24px),
 * centred; drop line text-sm #9CA3AF; hint text-xs #6B7280; "Choose Files"
 * pill in the accent colour; file list text-xs with ● amber / ✓ green / ✕ red.
 * KDM blue #32adfb stands in for KDA amber, with WHITE button text like every
 * KDM button (Shannon 11/16; hover #1593e3 from kd-header kd-buttons.css).
 *
 * Two tones: DARK on the hub (/sell-your-machines/, which already wears the KDA
 * look) and LIGHT on the brand/category seller pages, whose form is white.
 *
 * `html body` prefix + !important on the few properties the theme forces
 * (button radius/background/padding): the theme's own rules are !important.
 */

/* The original slot inputs: hidden, still inside the <form>, still submitted. */
html body .kdf-up-hidden {
	display: none !important;
}

html body .kdf-up {
	margin: 0 0 4px;
	text-align: left;
}

html body .kdf-up__zone {
	position: relative;
	box-sizing: border-box;
	padding: 24px;
	border: 2px dashed #333333;
	border-radius: 12px;
	background: #141414;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease;
}
html body .kdf-up__zone:hover,
html body .kdf-up__zone.is-drag {
	border-color: #32adfb;
}
html body .kdf-up__zone:focus {
	outline: none;
}
html body .kdf-up__zone:focus-visible {
	outline: 2px solid #32adfb;
	outline-offset: 2px;
}

/* The real picker: present (so .click() works everywhere) but invisible. */
html body .kdf-up__input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

html body .kdf-up__drop {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	color: #9ca3af !important;
}
html body .kdf-up__hint {
	margin: 4px 0 0 !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: #6b7280 !important;
}
html body .kdf-up__btn {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 16px;
	border-radius: 6px;
	background: #32adfb;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color .15s ease;
}
html body .kdf-up__zone:hover .kdf-up__btn {
	background: #1593e3;
}

html body .kdf-up__list {
	list-style: none !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
}
html body .kdf-up__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: 12px;
	line-height: 1.5;
	list-style: none !important;
}
html body .kdf-up__item::before {
	content: none !important; /* the theme bullets li */
}
html body .kdf-up__left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
html body .kdf-up__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: rgba(255, 255, 255, .6);
}
html body .kdf-up__state {
	flex-shrink: 0;
	color: rgba(255, 255, 255, .4);
}
html body .kdf-up__item.is-uploading .kdf-up__mark {
	color: #32adfb;
	animation: kdf-up-pulse 1.2s ease-in-out infinite;
}
html body .kdf-up__item.is-done .kdf-up__mark,
html body .kdf-up__item.is-done .kdf-up__name {
	color: #4ade80;
}
html body .kdf-up__item.is-error .kdf-up__mark,
html body .kdf-up__item.is-error .kdf-up__name {
	color: #f87171;
}
html body .kdf-up__rm {
	flex-shrink: 0;
	margin: 0 !important;
	padding: 0 4px !important;
	min-width: 0 !important;
	height: auto !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, .4) !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	cursor: pointer;
}
html body .kdf-up__rm:hover {
	color: #ffffff !important;
}
html body .kdf-up__note {
	margin: 8px 0 0 !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	color: #32adfb !important;
}

@keyframes kdf-up-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
	html body .kdf-up__item.is-uploading .kdf-up__mark {
		animation: none;
	}
}

/* ---------- LIGHT: the white seller-page form ---------- */
html body .kdf-up--light .kdf-up__zone {
	border-color: #c4ccd3;
	background: #ffffff;
}
html body .kdf-up--light .kdf-up__zone:hover,
html body .kdf-up--light .kdf-up__zone.is-drag {
	border-color: #32adfb;
}
html body .kdf-up--light .kdf-up__drop {
	color: #5b656d !important;
}
html body .kdf-up--light .kdf-up__hint {
	color: #7b858d !important;
}
html body .kdf-up--light .kdf-up__name {
	color: #1d2429;
}
html body .kdf-up--light .kdf-up__state,
html body .kdf-up--light .kdf-up__rm {
	color: #7b858d !important;
}
html body .kdf-up--light .kdf-up__rm:hover {
	color: #1d2429 !important;
}
html body .kdf-up--light .kdf-up__item.is-done .kdf-up__mark,
html body .kdf-up--light .kdf-up__item.is-done .kdf-up__name {
	color: #2b6450;
}
html body .kdf-up--light .kdf-up__item.is-error .kdf-up__mark,
html body .kdf-up--light .kdf-up__item.is-error .kdf-up__name {
	color: #9d3f28;
}
html body .kdf-up--light .kdf-up__note {
	color: #0f79c4 !important;
}

/* The hub's sell layout put the slots in a dashed panel of its own; the drop
 * area replaces it, so the panel's padding/border would double up. */
html body #sm-1form .kdf-up {
	margin-top: 4px;
}
