.wase-search-wrap {
	position: relative;
	max-width: 100%;
}

.wase-input-inner {
	position: relative;
	display: flex;
	align-items: center;
}

.wase-search-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wase-search-input:focus {
	border-color: #999;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.wase-icon-slot {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	font-size: 16px;
	line-height: 1;
}

.wase-icon-left .wase-icon-slot {
	left: 14px;
}

.wase-icon-right .wase-icon-slot {
	right: 14px;
}

.wase-icon-left .wase-search-input {
	padding-left: 40px;
}

.wase-icon-right .wase-search-input {
	padding-right: 40px;
}

.wase-search-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Loading spinner */
.wase-spinner {
	position: absolute;
	right: 14px;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: rgba(0, 0, 0, 0.55);
	border-radius: 50%;
	display: none;
	animation: wase-spin 0.6s linear infinite;
}

.wase-icon-right .wase-spinner {
	right: 40px;
}

.wase-search-wrap.is-loading .wase-spinner {
	display: block;
}

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

/* Results dropdown */
.wase-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 420px;
	overflow-y: auto;
	display: none;
	padding: 6px;
}

.wase-search-wrap.is-open .wase-results {
	display: block;
}

.wase-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

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

.wase-result-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.wase-result-title {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wase-result-price {
	font-size: 13px;
	margin-top: 2px;
}

.wase-result-price ins {
	text-decoration: none;
}

.wase-no-results,
.wase-error {
	padding: 14px 10px;
	font-size: 14px;
	color: #777;
	text-align: center;
}

.wase-view-all {
	display: block;
	text-align: center;
	padding: 10px;
	font-size: 13px;
	font-weight: 600;
	border-top: 1px solid #eee;
	margin-top: 4px;
	text-decoration: none;
}

.wase-out-of-stock {
	font-size: 11px;
	color: #c0392b;
	margin-left: 6px;
}
