/* Stack Elementor upload label above the dropzone */
.elementor-field-type-upload.elementor-field-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.elementor-field-type-upload.elementor-field-group > .elementor-field-label {
	margin-bottom: 0.5rem;
}

.elementor-field-type-upload.elementor-field-group > .cewh-dropzone {
	width: 100%;
}

.cewh-dropzone {
	position: relative;
	width: 100%;
	border: 2px dashed #C1B52E;
	background: #FBF8E8;
	border-radius: 6px;
	padding: 1rem 1rem 0.75rem;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cewh-dropzone.is-dragover {
	background: #F7F0C8;
	border-color: #4A4612;
}

.cewh-dropzone__hint {
	font-size: 0.95rem;
	color: #4A4612;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.cewh-dropzone__count {
	font-size: 0.85rem;
	color: #6E6A45;
	margin-bottom: 0.75rem;
	min-height: 1.1em;
}

.cewh-dropzone__previews {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cewh-dropzone__item {
	position: relative;
	width: 104px;
	background: #fff;
	border: 1px solid #E5E2C8;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(42, 40, 24, 0.06);
}

.cewh-dropzone__item img {
	display: block;
	width: 104px;
	height: 130px;
	object-fit: contain;
	background: #F7F6EC;
	/* Prefer upright orientation when the browser supports it */
	image-orientation: from-image;
}

.cewh-dropzone__caption {
	font-size: 0.65rem;
	line-height: 1.2;
	padding: 0.3rem 0.35rem;
	color: #4A4612;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cewh-dropzone__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(42, 40, 24, 0.78);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.cewh-dropzone__remove:hover {
	background: #b42318;
}

.cewh-dropzone__msg {
	font-size: 0.8rem;
	color: #b42318;
	margin-top: 0.5rem;
	min-height: 1.1em;
}

.cewh-dropzone__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	opacity: 0 !important;
}
