.ajax-search-box-wrapper {
	margin: 32px 0 !important;
    max-width: unset !important;
}

.ajax-search-box-wrapper .ajax-search-box-form {
	margin-top: 40px;
	position: relative;
}

.ajax-search-box-wrapper .ajax-search-box-form input {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	height: 64px;
	width: 100%;
	padding: 8px 90px 8px 64px;
	font-family: Proxima Nova, sans-serif;
	font-size: 1.6rem;
	line-height: 2.4rem;
	color: #666666;
}

.ajax-search-box-wrapper .ajax-search-box-form input:focus {
	outline: none;
	box-shadow: 0px 8px 16px 0px #5b738b29, 0px 0px 2px 0px #5b738b29;
}

.ajax-search-box-wrapper .ajax-search-box-form input:focus + .ajax-search-box-icon {
	fill: #6e46ae;
}

.ajax-search-box-wrapper .ajax-search-box-form.ajax-search-box-filled .ajax-search-box-close {
	display: flex;
}

.ajax-search-box-wrapper .ajax-search-box-form.ajax-search-box-filled input {
	box-shadow: 0px 8px 16px 0px #5b738b29, 0px 0px 2px 0px #5b738b29;
}

.ajax-search-box-wrapper .ajax-search-box-icon {
	position: absolute;
	left: 16px;
	top: 12px;
	height: 40px;
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	fill: #000000;
	pointer-events: none;
}

.ajax-search-box-wrapper .ajax-search-box-icon svg {
	fill: inherit;
}

.ajax-search-box-wrapper .ajax-search-box-voice {
	position: absolute;
	right: 16px;
	top: 12px;
	height: 40px;
	width: 40px;
	display: none;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	cursor: pointer;
	fill: #230939;
	background: transparent;
	overflow: hidden;
}

.ajax-search-box-wrapper .ajax-search-box-voice.show {
	display: flex;
}

.ajax-search-box-wrapper .ajax-search-box-voice svg {
	fill: inherit;
	pointer-events: none;
	position: relative;
	z-index: 1;
}

.ajax-search-box-wrapper .ajax-search-box-voice.active::after {
	background-color: #e9e7f7;
	content: "";
	height: 8px;
	position: absolute;
	width: 8px;
	border-radius: 50%;
	transition: 0.3s;
	z-index: 0;
	animation: ajax-search-box-pulse 1s ease-in-out infinite;
}

.ajax-search-box-wrapper .ajax-search-box-close {
	position: absolute;
	right: 64px;
	top: 22px;
	height: 20px;
	width: 20px;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	cursor: pointer;
	display: none;
}

.ajax-search-box-wrapper .ajax-search-box-close svg {
	fill: #000000;
	pointer-events: none;
}

.ajax-search-box-results {
	position: absolute;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	width: 100%;
	top: 100%;
	margin-top: 8px;
	padding: 8px 0;
	box-shadow: 0px 8px 16px 0px #5b738b29, 0px 0px 2px 0px #5b738b29;
	background-color: #fff;
	max-height: 160px;
	overflow: auto;
	z-index: 9;
}

.ajax-search-box-results li {
	list-style-type: none;
}

.ajax-search-box-results li a {
	padding: 12px 24px;
	color: #212121;
	display: block;
	font-weight: 400;
}

.ajax-search-box-results li a:hover {
	background-color: #e9e7f7;
	text-decoration: none;
}

@media screen and (min-width: 768px) {
	.ajax-search-box-wrapper .ajax-search-box-form {
		margin-top: 48px;
	}

	.ajax-search-box-wrapper .ajax-search-box-voice:hover {
		background-color: #e9e7f7;
	}

	.ajax-search-box-results li a {
		padding: 12px 16px 12px 64px;
	}
}

@keyframes ajax-search-box-pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(5); }
	100% { transform: scale(1); }
}

/* Editor preview styles */
.ajax-search-box-editor .ajax-search-box-preview {
	border: 1px dashed #ccc;
	border-radius: 4px;
	padding: 12px 16px;
	background: #f9f9f9;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ajax-search-box-editor .ajax-search-box-placeholder {
	color: #999;
	font-size: 14px;
	flex: 1;
}

.ajax-search-box-editor .ajax-search-box-category {
	font-size: 11px;
	color: #aaa;
	background: #eee;
	padding: 2px 6px;
	border-radius: 3px;
}
