.wceas-wrapper {
	position: relative;
	width: 100%;
}

.wceas-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.wceas-input {
	width: 100%;
	padding: 12px 72px 12px 16px;
	border: 1px solid #dcdcde;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wceas-input::-webkit-search-decoration,
.wceas-input::-webkit-search-cancel-button,
.wceas-input::-webkit-search-results-button,
.wceas-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.wceas-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.wceas-wrapper .wceas-submit,
.wceas-wrapper .wceas-clear {
	position: absolute;
	right: 8px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin: 0;
	cursor: pointer;
	padding: 6px 8px;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wceas-wrapper .wceas-submit:hover,
.wceas-wrapper .wceas-clear:hover {
	color: #000;
	background: transparent !important;
}

.wceas-wrapper .wceas-clear,
.wceas-wrapper [hidden] {
	display: none !important;
}

.wceas-wrapper.has-value .wceas-submit {
	display: none !important;
}

.wceas-wrapper.has-value .wceas-clear {
	display: flex !important;
}

.wceas-spinner {
	position: absolute;
	right: 44px;
	width: 16px;
	height: 16px;
	border: 2px solid #e0e0e0;
	border-top-color: #2271b1;
	border-radius: 50%;
	display: none;
	animation: wceas-spin 0.7s linear infinite;
}

.wceas-spinner.is-active {
	display: block;
}

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

.wceas-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	display: none;
	overflow: hidden;
}

.wceas-results.is-open {
	display: block;
}

.wceas-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 360px;
	overflow-y: auto;
}

.wceas-item + .wceas-item {
	border-top: 1px solid #f0f0f0;
}

.wceas-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.wceas-link:hover {
	background-color: #f8f9fa;
}

.wceas-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.wceas-info {
	flex: 1;
	min-width: 0;
}

.wceas-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wceas-price {
	font-size: 13px;
	color: #d63638;
	margin-top: 3px;
}

.wceas-price del {
	color: #888;
	margin-right: 6px;
}

.wceas-empty {
	padding: 16px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.wceas-view-all {
	display: block;
	text-align: center;
	padding: 10px 14px;
	background: #f6f7f7;
	border-top: 1px solid #e5e5e5;
	font-size: 13px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
}

.wceas-view-all:hover {
	background: #eef2f6;
}
