.sp-smart-post-search-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.sp-smart-post-search-form {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	.sp-smart-post-search-input-wrapper {
		flex: 1;
		display: flex;
		align-items: center;
		height: 100%;
	}
	.sp-smart-post-search-input,
	.sp-smart-post-search-input:hover,
	.sp-smart-post-search-input:focus {
		border: none;
		caret-color: inherit;
		text-decoration: none;
		outline: none;
		box-shadow: none;
		width: 100%;
		height: 100%;
		background: transparent;
	}

	.sp-smart-post-search-loader {
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(-50%);
		width: 20px;
		z-index: 4;
	}
}
.sp-smart-post-search-wrapper {
	.sp-smart-post-search-button {
		display: flex;
		align-items: center;
		height: 100%;
		cursor: pointer;
		.sp-smart-post-search-icon {
			width: 20px;
			height: 20px;
		}
		&:hover {
			.sp-smart-post-search-icon {
				transition: all 0.3s ease;
			}
		}
	}
}
.sp-smart-post-search-overlay {
	display: none;
	&::after {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background-color: transparent;
		z-index: 1;
		margin: auto;
	}
	&.smart-search-result-layout-three::after {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background-color: #39393978;
		z-index: 1;
		margin: auto;
	}
}
.sp-smart-post-search-popup {
	z-index: 2;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: all 0.3s;
	position: absolute;
	width: 100%;
	&--active {
		opacity: 1 !important;
		visibility: visible !important;
		padding: 24px;
		// position: absolute;
		// left: 0;
		// right: 0;
		// margin: auto;
		z-index: 9999;

		.sp-smart-post-search-results {
			padding: 0;
			margin: 0;
			position: static;
		}
		.smart-search-result-layout-three {
			padding: 24px 0px;
		}
	}
	.sp-smart-post-popup-heading {
		margin: 0;
		padding: 0;
		font-size: 20px;
		line-height: 1.2;
		font-weight: 600;
	}
	.sp-smart-post-popup-close-icon {
		position: absolute;
		right: 10px;
		top: 0px;
		cursor: pointer;
	}
}
.sp-smart-post-search-results {
	background: #ffffff;
	box-sizing: border-box;
	z-index: 999;
	overflow-x: hidden;
	overflow-y: scroll;
	scrollbar-width: none;
	padding: 24px;
	position: absolute;
	top: 100%;
	display: none;
	&--show {
		display: block;
	}
	.sp-smart-post-search-list {
		display: grid;
		.sp-smart-post-search-loader {
			display: flex;
			justify-content: center;
			align-items: center;
		}
		.sp-smart-post-search-item {
			cursor: pointer;
			display: flex;
			overflow: hidden;
			.sp-smart-post-search-item-img {
				overflow: hidden;
				flex-shrink: 0;
				img {
					object-fit: cover;
				}
			}
			.sp-smart-post-search-item-title {
				margin: 0;
				display: flex;
				flex-direction: column;
			}
			.sp-smart-post-search-item-desc {
				display: flex;
				flex-direction: column;
			}
		}
		.sp-smart-post-search-empty {
			margin-top: 16px;
			padding: 6px;
		}
	}
}

.sp-smart-post-search-input,
.sp-smart-post-search-input::-webkit-input-placeholder {
	font-size: 14px;
	line-height: 1.2;
}
.sp-smart-post-wrapper {
	position: relative;
	.sp-smart-post-search-select {
		position: relative;
		.sp-smart-post-search-dropdown-icon {
			pointer-events: none;
			position: absolute;
			right: 12px;
			top: 61%;
			transform: translateY(-50%);
			svg {
				path {
					fill: currentColor;
				}
			}
		}
		select,
		select:hover,
		select:focus {
			background-color: transparent;
			background-image: none;
			margin: 0;
			border: none !important;
			outline: none;
			color: currentColor;
			box-shadow: none;
			font-size: 14px;
			line-height: 1.2;
			padding: 0 35px 0 8px;
			text-align: right;
			width: fit-content;
			height: 100%;
			white-space: nowrap;
			text-overflow: ellipsis;
			-webkit-appearance: none;
		}
	}

	.sp-smart-post-search-trigger {
		.sp-smart-post-search-trigger-button {
			background: transparent;
			border: none;
			cursor: pointer;
		}
	}
}
.sp-smart-post-search-load-more {
	.sp-smart-post-search-load-more-button {
		font-size: 14px;
		line-height: 1.2;
		font-weight: 400;
		text-transform: capitalize;
		background: transparent;
		border: none;
		text-decoration: underline;
		cursor: pointer;
	}
}

.sp-smart-post-search-item-title {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;
	text-transform: capitalize;
	text-decoration: none;
}
.sp-smart-post-search-wrapper {
	.sp-smart-post-excerpt {
		font-size: 14px !important;
		line-height: 1.2;
	}
}

.sp-smart-post-meta-list {
	display: flex;
	align-items: center;
	gap: 4px;
}
.sp-smart-post-meta {
	font-weight: 400;
	font-size: 13px;
	line-height: 1.2;
}
.sp-smart-post-categories {
	display: flex;
	align-items: center;
	gap: 4px;
}
.sp-smart-post-category {
	font-size: 12px;
	line-height: 1.2;
	font-weight: 400;
}
mark.sp-smart-post-search-highlight {
	background: transparent !important;
	text-decoration: underline !important;
}
.wp-block-sp-smart-post-show-smart-search {
	z-index: 4 !important;
}