/**
 * Campo de busca de máquinas com autocomplete — shortcode [wb_busca].
 *
 * Estilos herdados do bloco de código que vivia no template Header do Bricks,
 * mais o selo de código do produto (.wbs-cod).
 */

.wbs-wrap {
	position: relative;
	width: 240px;
	max-width: 100%;
	z-index: 9999;
}

.wbs-box {
	position: relative;
}

.wbs-inp {
	width: 100%;
	height: 42px;
	padding: 0 16px 0 40px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color .2s;
}

.wbs-inp:focus {
	border-color: #f97316;
}

.wbs-lupa {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #94a3b8;
	pointer-events: none;
}

.wbs-drop {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	z-index: 99999;
	max-height: 380px;
	overflow-y: auto;
}

.wbs-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #1a1a1a;
	border-bottom: 1px solid #f1f5f9;
	transition: background .15s;
}

.wbs-item:hover,
.wbs-item.wbs-on {
	background: #fff7f0;
}

.wbs-item img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.wbs-ttl {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.wbs-ttl mark {
	background: none;
	color: #f97316;
	font-weight: 700;
}

/* Código do produto — discreto, só para o cliente confirmar o item. */
.wbs-cod {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	letter-spacing: .02em;
}

.wbs-msg {
	margin: 0;
	padding: 14px;
	font-size: 13px;
	color: #64748b;
}

.wbs-ver {
	display: block;
	padding: 11px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #f97316;
	text-decoration: none;
	text-align: center;
	background: #fff7f0;
}

.wbs-ver:hover {
	background: #ffedd5;
}
