/**
 * EÇ Logo Uploader — stilet publike.
 *
 * @package EC_Logo_Uploader
 * @author  Endrit Çitaku (EÇ) <endritqitaku@gmail.com>
 * @license Proprietary — All Rights Reserved © 2026 Endrit Çitaku (EÇ)
 */

.eclu-field {
	margin: 18px 0 22px;
	clear: both;
}

.eclu-field__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: inherit;
}

.eclu-field__label .required {
	color: #d3232f;
	border: 0;
	text-decoration: none;
}

.eclu-dropzone {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 46px;
	padding: 10px 16px;
	background: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease;
}

.eclu-dropzone:hover,
.eclu-dropzone:focus {
	background: #ebebeb;
	outline: none;
}

.eclu-dropzone.is-dragover {
	background: #e8f2ff;
	border-color: #2b7cff;
	border-style: dashed;
}

.eclu-dropzone.is-busy {
	opacity: .75;
	pointer-events: none;
}

.eclu-dropzone__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.eclu-dropzone__text {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #333;
	pointer-events: none;
}

.eclu-dropzone__spinner {
	display: none;
	width: 14px;
	height: 14px;
	margin-left: 10px;
	border: 2px solid rgba(0, 0, 0, .18);
	border-top-color: rgba(0, 0, 0, .6);
	border-radius: 50%;
	animation: eclu-spin .7s linear infinite;
}

.eclu-dropzone.is-busy .eclu-dropzone__spinner {
	display: inline-block;
}

@keyframes eclu-spin {
	to {
		transform: rotate(360deg);
	}
}

.eclu-field__desc,
.eclu-field__hint {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	opacity: .7;
}

.eclu-message {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	min-height: 0;
}

.eclu-message:empty {
	display: none;
}

.eclu-message.is-error {
	color: #b3242c;
}

.eclu-message.is-success {
	color: #1c7a3e;
}

.eclu-message.is-info {
	opacity: .8;
}

.eclu-file {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
}

.eclu-file__thumb {
	width: 46px;
	height: 46px;
	object-fit: contain;
	background: #fafafa;
	border-radius: 3px;
	flex: 0 0 auto;
}

.eclu-file__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.eclu-file__meta strong {
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eclu-file__meta small {
	font-size: 11px;
	opacity: .6;
}

.eclu-file__remove {
	flex: 0 0 auto;
	background: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	color: #b3242c;
}

.eclu-file__remove:hover {
	background: #fdf1f1;
	border-color: #e0b4b4;
}

/* --------------------------------------------------------------------------
   Overlay-i mbi foton e produktit
   -------------------------------------------------------------------------- */

.eclu-overlay {
	position: absolute;
	z-index: 30;
	pointer-events: none;
	display: none;
}

.eclu-overlay__box {
	position: absolute;
	transform-origin: center center;
}

/* Katërkëndëshi i perspektivës */
.eclu-overlay__quad {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eclu-overlay__logo {
	display: block;
	object-fit: contain;
	transform-origin: center center;
	/* Mbron nga rregullat globale të temave (p.sh. img{max-width:100%}) —
	   ndryshe rrotullimi 90° pritet dhe logoja del më e vogël se zona. */
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

.eclu-overlay,
.eclu-overlay__box,
.eclu-overlay__quad {
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-sizing: border-box;
}

/* Miniatura te shporta */
.eclu-cart-logo__img {
	max-width: 56px;
	max-height: 56px;
}
