/**
 * Stealth Form — frontend drop zone styles
 *
 * Applied to file inputs with data-wplf-dropzone="true".
 * Dashed border, rounded corners, drag-over highlight,
 * has-file state, accessible hidden input.
 */

.wplf-dropzone {
	border: 2px dashed #b0b0b0;
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	position: relative;
}

.wplf-dropzone--dragover {
	border-color: #0073aa;
	background-color: rgba(0, 115, 170, 0.04);
}

.wplf-dropzone--has-file {
	border-style: solid;
	border-color: #0073aa;
}

/**
 * Visually hidden but accessible to assistive tech.
 * Not display:none — screen readers can still reach it.
 */
.wplf-dropzone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wplf-dropzone__instructions {
	margin: 0 0 1rem;
	color: #666;
}

.wplf-dropzone__button {
	cursor: pointer;
}

.wplf-dropzone__file-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.wplf-dropzone__file-info[hidden] {
	display: none;
}

.wplf-dropzone__file-name {
	font-weight: 500;
	word-break: break-all;
}

.wplf-dropzone__remove {
	cursor: pointer;
	color: #b32d2e;
	background: none;
	border: none;
	text-decoration: underline;
	font-size: inherit;
	padding: 0;
}

.wplf-dropzone__remove:hover,
.wplf-dropzone__remove:focus-visible {
	color: #8b1a1b;
}

.wplf-dropzone__error {
	color: #b32d2e;
	margin: 0.5rem 0 0;
}

/**
 * Hide drag instructions on touch devices.
 * pointer: coarse is more reliable than UA sniffing.
 */
@media (pointer: coarse) {
	.wplf-dropzone__instructions {
		display: none;
	}
}