/**
 * WC Logo Upload – Frontend Styles
 *
 * @package WC_Logo_Upload
 */

.wclu-upload-wrapper {
	margin: 1.5em 0;
	padding: 0;
}

.wclu-upload-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 0.95em;
}

.wclu-upload-hint {
	margin: 0 0 0.8em;
	font-size: 0.82em;
	color: #666;
}

/* Dropzone */
.wclu-dropzone {
	position: relative;
	border: 2px dashed #c4c4c4;
	border-radius: 6px;
	padding: 1.8em 1.2em;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	background: #fafafa;
}

.wclu-dropzone:hover,
.wclu-dropzone.wclu-dragover {
	border-color: #2563eb;
	background-color: #eff6ff;
}

.wclu-dropzone.wclu-has-file {
	border-style: solid;
	border-color: #22c55e;
	background-color: #f0fdf4;
	cursor: default;
}

/* Hidden file input */
.wclu-file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.wclu-has-file .wclu-file-input {
	display: none;
}

/* Dropzone text */
.wclu-dropzone-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	color: #888;
	font-size: 0.9em;
	pointer-events: none;
}

.wclu-dropzone-text .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #aaa;
}

.wclu-has-file .wclu-dropzone-text {
	display: none;
}

/* Preview */
.wclu-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8em;
	flex-wrap: wrap;
}

.wclu-preview-name {
	font-weight: 600;
	color: #166534;
	font-size: 0.9em;
	word-break: break-all;
}

.wclu-remove-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #dc2626;
	border-radius: 50%;
	background: #fff;
	color: #dc2626;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.15s ease;
	z-index: 3;
	padding: 0;
}

.wclu-remove-btn:hover {
	background: #dc2626;
	color: #fff;
}

/* Thumbnail preview for images */
.wclu-preview-thumb {
	max-width: 80px;
	max-height: 60px;
	border-radius: 4px;
	border: 1px solid #ddd;
}
