/* Inline Live Search – Basisstile. Bewusst zurückhaltend gehalten, damit
   sich das Suchfeld leicht an das eigene Theme anpassen lässt. */

.inls-search {
	position: relative;
	width: 100%;
/*	max-width: 420px;*/
	font-size: 16px;
	    padding-right: 10px;
}

.inls-input-wrap {
	position: relative;
}

.inls-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 36px 10px 14px;
	font-size: inherit;
	line-height: 1.4;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.inls-spinner {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid #ccc;
	border-top-color: #555;
	border-radius: 50%;
	animation: inls-spin 0.6s linear infinite;
}

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

.inls-results,
.inls-results-enhanced {
	position: absolute;
	z-index: 9999;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.12 );
	max-height: 60vh;
	overflow-y: auto;
}

.inls-results-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.inls-result-item {
	border-bottom: 1px solid #f0f0f0;
}

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

.inls-result-link {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
}

.inls-result-item.is-active .inls-result-link,
.inls-result-link:hover,
.inls-result-link:focus {
	background: #f5f7fa;
}

.inls-result-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.inls-result-badge {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 6px;
	border-radius: 3px;
	background: #eee;
	color: #555;
}

.inls-badge-pdf {
	background: #fde8e8;
	color: #a83232;
}

.inls-badge-post {
	background: #e8f1fd;
	color: #2b5fa8;
}

.inls-badge-page {
	background: #e9f7ec;
	color: #2f7d43;
}

.inls-result-excerpt {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

.inls-result-excerpt mark {
	background: #fff2a8;
	color: inherit;
	padding: 0 1px;
}

.inls-status {
	padding: 12px 14px;
	color: #666;
	font-size: 14px;
}

.inls-status.inls-error {
	color: #a83232;
}
