/* ---------- Search Filter Widget ---------- */
.csf-search-filter-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.csf-search-form {
	width: 100%;
	box-sizing: border-box;
}

.csf-input-group {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}

/* Button hidden hone par (Enter-only mode) input hi poori width le le */
.csf-search-form.csf-no-button .csf-input-group {
	gap: 0;
}

.csf-search-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: 1px solid #ddd;
	outline: none;
	font-size: 15px;
	background: #fff;
	color: #333;
	padding: 12px 16px;
	border-radius: 6px;
	box-sizing: border-box;
}

.csf-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 15px;
	transition: background-color .2s ease, color .2s ease;
}

.csf-search-btn:hover {
	background: #333;
}

.csf-search-icon {
	font-size: 16px;
	line-height: 1;
}

.csf-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	max-height: 320px;
	overflow-y: auto;
	z-index: 999;
}

.csf-suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f2f2f2;
}

.csf-suggestion-item:last-child {
	border-bottom: none;
}

.csf-suggestion-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.csf-suggestion-text {
	display: flex;
	flex-direction: column;
}

.csf-suggestion-title {
	font-size: 14px;
	font-weight: 500;
}

.csf-suggestion-type {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* ---------- Results Page (shortcode) ---------- */
.csf-results-wrapper {
	width: 100%;
}

.csf-results-count {
	margin-bottom: 20px;
	color: #666;
	font-size: 14px;
}

.csf-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.csf-result-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.csf-result-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.csf-result-thumb img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.csf-result-body {
	padding: 14px 16px;
}

.csf-result-type {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #999;
}

.csf-result-title {
	font-size: 17px;
	margin: 6px 0;
	color: #1a1a1a;
}

.csf-result-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.csf-no-results {
	color: #999;
	font-size: 15px;
}

.csf-pagination {
	display: flex;
	gap: 8px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.csf-pagination span,
.csf-pagination a {
	padding: 8px 14px;
	border: 1px solid #eee;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.csf-pagination .current {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
