/* ============================================================
 * Nelb WCMP — Ricerca (icona + overlay / campo inline)
 * Brand Macchedil: primario #FE3F12, scuro #212121.
 * ============================================================ */

.nelb-search { display: inline-flex; }

/* --- Pulsante lente (default: cerchio bianco, lente arancio) --- */
.nelb-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	color: #FE3F12;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
	line-height: 0;
}
.nelb-search-toggle svg { width: 20px; height: 20px; display: block; }

/* --- Overlay a tutta pagina --- */
.nelb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(33, 33, 33, .96);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.nelb-search-overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }

.nelb-search-overlay-inner {
	position: relative;
	width: 100%;
	max-width: 680px;
	transform: translateY(-10px);
	transition: transform .2s ease;
}
.nelb-search-overlay[aria-hidden="false"] .nelb-search-overlay-inner { transform: translateY(0); }

.nelb-search-overlay-close {
	position: absolute;
	top: -46px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #FFFFFF;
	cursor: pointer;
	line-height: 0;
	opacity: .85;
	transition: opacity .15s ease;
}
.nelb-search-overlay-close:hover { opacity: 1; }

.nelb-search-overlay-title {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 14px;
}

/* --- Campo inline (scheda prodotto) --- */
.nelb-search-inline { display: block; }
.nelb-search-inline.is-boxed {
	background: #FFFFFF;
	border: 1px solid #EDEDED;
	border-radius: 12px;
	padding: 18px 20px;
}
.nelb-search-inline-title {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 15px;
	color: #212121;
	margin: 0 0 4px;
}
.nelb-search-inline-sub {
	font-family: 'Gudea', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #4A4A4A;
	margin: 0 0 12px;
}

/* --- Form ricerca nativa (fallback quando FiboSearch non c'è) --- */
.nelb-search-form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}
.nelb-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1.5px solid #E0E0E0;
	border-radius: 10px;
	font-family: 'Gudea', sans-serif;
	font-size: 15px;
	color: #212121;
	background: #FFFFFF;
	outline: none;
	transition: border-color .15s ease;
}
.nelb-search-input::placeholder { color: #9A9A9A; }
.nelb-search-input:focus { border-color: #FE3F12; }
.nelb-search-submit {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: #FE3F12;
	color: #FFFFFF;
	cursor: pointer;
	line-height: 0;
	transition: background .15s ease;
}
.nelb-search-submit:hover { background: #E5380F; }

/* Overlay: form nativo un po' più grande */
.nelb-search-overlay .nelb-search-input { height: 56px; font-size: 17px; }
.nelb-search-overlay .nelb-search-submit { width: 56px; height: 56px; }

/* --- FiboSearch dentro i nostri contenitori: larghezza piena --- */
.nelb-search-field .dgwt-wcas-search-wrapp { width: 100%; max-width: 100%; }
