.wksearch {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

.wksearch-field {
	position: relative;
	margin: 0;
}

.wksearch .wksearch-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.95em 4em 0.95em 1.4em;
	font-size: 1.05em;
	color: #555;
	border: 1px solid #e3e3e3;
	border-radius: 999px !important;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wksearch-input::placeholder {
	color: #b9b9b9;
}

.wksearch-input:focus {
	outline: none;
	border-color: #e8836a;
	box-shadow: 0 0 0 3px rgba(232, 131, 106, 0.18);
}

/* Coral ronde zoekknop */
.wksearch-button {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8836a;
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}

.wksearch-button:hover {
	background: #df6f54;
}

.wksearch-button:active {
	transform: translateY(-50%) scale(0.94);
}

.wksearch-icon {
	width: 20px;
	height: 20px;
}

.wksearch-spinner {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
}

.wksearch--loading .wksearch-icon {
	opacity: 0;
}

.wksearch--loading .wksearch-spinner {
	display: block;
	animation: wksearch-spin 0.7s linear infinite;
}

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

.wksearch-results {
	list-style: none;
	margin: 0.4em 0 0;
	padding: 0.3em;
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	max-height: 60vh;
	overflow-y: auto;
	display: none;
}

.wksearch--open .wksearch-results {
	display: block;
}

.wksearch-result a {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.5em;
	border-radius: 8px;
	text-decoration: none;
	color: #222;
}

.wksearch-result a:hover,
.wksearch-result a:focus {
	background: #f4f7f4;
}

.wksearch-result img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: #f3f3f3;
}

.wksearch-result-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wksearch-name {
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wksearch-meta {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.82em;
	color: #777;
}

.wksearch-meta .amount,
.wksearch-meta .woocommerce-Price-amount {
	color: #4caf50;
	font-weight: 600;
}

.wksearch-sku {
	color: #aaa;
	font-size: 0.92em;
}

.wksearch-empty {
	padding: 0.8em 0.7em;
	color: #888;
	font-size: 0.9em;
	text-align: center;
}
