/* NJM Drive Upload — widget styling. Inherits font + colour from host page. */

.njm-du {
	display: block;
	margin: 1rem 0;
	font-family: inherit;
	color: inherit;
}

.njm-du__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8125rem;
}

.njm-du__file {
	display: block;
	width: 100%;
	padding: 0.875rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px dashed rgba(255, 255, 255, 0.2);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease;
}
.njm-du__file:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
}
.njm-du__file:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #50E69B);
	outline-offset: 2px;
}

.njm-du__status {
	margin-top: 0.625rem;
	font-size: 0.875rem;
	line-height: 1.5;
	min-height: 1.4em;
}

.njm-du__progress {
	margin-top: 0.5rem;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
}
.njm-du__progress-bar {
	height: 100%;
	width: 0%;
	background: var(--wp--preset--color--accent, #50E69B);
	transition: width 0.2s ease;
}

.njm-du.is-uploaded .njm-du__status {
	color: var(--wp--preset--color--accent, #50E69B);
}
