.bcs-search-wrap {
	position: relative;
	width: 100%;
	max-width: 480px;
}

.bcs-search-form {
	display: flex;
	align-items: stretch;
	border: 1px solid #d9d9e3;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.bcs-search-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: none;
	outline: none;
	padding: 10px 14px;
	font-size: 14px;
	background: transparent;
}

.bcs-search-button {
	flex: 0 0 auto;
	border: none;
	background: #4F39D3;
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bcs-search-button:hover {
	background: #3f2db0;
}

.bcs-results-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e4e4ec;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(20, 20, 40, 0.12);
	z-index: 9999;
	max-height: 420px;
	overflow-y: auto;
}

.bcs-loading,
.bcs-no-results {
	padding: 16px;
	font-size: 14px;
	color: #666;
	text-align: center;
}

.bcs-results-list {
	list-style: none;
	margin: 0;
	padding: 6px;
}

.bcs-result-item {
	border-bottom: 1px solid #f0f0f5;
}

.bcs-result-item:last-child {
	border-bottom: none;
}

.bcs-result-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	transition: background 0.15s ease;
}

.bcs-result-link:hover {
	background: #f7f7fc;
}

.bcs-result-image {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: #f2f2f7;
}

.bcs-result-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bcs-result-title {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bcs-result-sku {
	font-size: 12px;
	color: #888;
}

.bcs-result-price {
	font-size: 13px;
	color: #4F39D3;
	font-weight: 600;
}

.bcs-view-all {
	display: block;
	text-align: center;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #4F39D3;
	text-decoration: none;
	border-top: 1px solid #f0f0f5;
}

.bcs-view-all:hover {
	text-decoration: underline;
}

/* En pantallas chicas: mismo diseño inline, solo se achica el texto/padding
   para que quepa mejor en columnas angostas del header. */
@media (max-width: 480px) {
	.bcs-search-wrap {
		max-width: 100%;
		min-width: 60px; /* nunca colapsa a 0 aunque la columna de Elementor sea muy angosta */
	}

	.bcs-search-form {
		min-width: 0;
	}

	.bcs-search-input {
		padding: 8px 8px;
		font-size: 12px;
	}

	.bcs-search-button {
		padding: 0 10px;
	}

	.bcs-search-button svg {
		width: 15px;
		height: 15px;
	}
}

@media (max-width: 360px) {
	.bcs-search-input {
		padding: 8px 6px;
		font-size: 11px;
	}

	.bcs-search-button {
		padding: 0 8px;
	}
}
