.et-db #et-boc .et-fb-modules-list li.el_ajax_search::before,
.et-db #et-boc .et-l .et-fb-modules-list li.el_ajax_search::before,
.et-db #et-boc .et_fb_saved_layouts_list li.el_ajax_search::before {
	font-family: dashicons;
	content: "\F13a";
}

#et-boc .et-l .el_ajax_search_active_parent,
#et-boc .et-l .el_ajax_search_active_parent,
.et_pb_row.el_ajax_search_active_parent,
.et_pb_column.el_ajax_search_active_parent {
	z-index: 9999;
}
.el_ajax_search {
	overflow: visible !important;
}
.el_ajax_search_wrap,
.el_ajax_search_field_wrap {
	position: relative;
	overflow: visible;
}

/* .el_ajax_search_icon:after {
	position: absolute;
	display: flex;
	align-items: center;
	padding: 0 10px;
	top: 50%;
	right: 10px;
	font-family: ETModules;
	font-size: 16px;
	color: #000;
	border: 0 solid #000;
	transform: translateY(-50%) scaleX(-1);
	content: "\55";
}
.el_ajax_clear_icon {
	display: none;
	position: absolute;
	cursor: pointer;
	top: 50%;
	right: 10px;
	font-family: ETModules;
	font-size: 20px;
	color: #000;
	transform: translateY(-50%);
	z-index: 3;
}
.el_ajax_search_loader .el_ajax_clear_icon,
.el_ajax_search_icon .el_ajax_clear_icon{
	right: 40px;
}
.el_has_text .el_ajax_clear_icon{
	display: inline;
} */
/* .el_ajax_search_loader:after {
	position: absolute;
	top: 50%;
	right: 10px !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.7);
	border-right-color: transparent !important;
	border-left-color: transparent !important;
	border-radius: 50%;
	width: 16px;
	height: 16px !important;
	background-color: transparent !important;
	font-family: inherit;
	transform: translate3d(0, -50%, 0);
	animation: dipl_rotation .8s linear infinite;
	content: '';
} */

.el_ajax_search .el-ajax-search-icon-wrap{
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	display: flex;
	align-items: stretch;
}
.el-ajax-search-icon-wrap .el_ajax_search_icon{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border: 0 solid #000;
}
.el-ajax-search-icon-wrap .el_ajax_search_icon:after{
	content: "U";
	font-family: ETModules;
	font-size: 16px;
	color: #000;
	transform: scaleX(-1);
}
.el_ajax_search_loader .el_ajax_search_icon:after{
	content: "";
	position: relative;
	top: calc( 50% - 8px );
	border: 1px solid rgba(0, 0, 0, 0.7);
	border-right-color: transparent !important;
	border-left-color: transparent !important;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-family: inherit;
	transform: translate3d(0, -50%, 0);
	animation: dipl_rotation .8s linear infinite;
}
.el-ajax-search-icon-wrap .el_ajax_clear_icon{
	display: none;
	cursor: pointer;
	align-items: center;
	margin-right: 5px;
	font-family: ETModules;
	padding: 5px;
	font-size: 18px;
	color: #000;
	border: 0 solid #000;
}
.el_has_text .el_ajax_clear_icon{
	display: flex;
}

.el_ajax_search .el_ajax_search_field{
	border-width: 1px;
	border-style: solid;
	border-color: #333;
	width: 100%;
	margin: 0;
	padding: 10px 35px 10px 10px;
	font-size: 16px;
	border-radius: 3px;

	transition: width 180ms linear;
	-webkit-transition: width 180ms linear;
}
/* Show Search Field on Icon Click: the field grows out of the icon. */
.el_ajax_search .el-icon-click-show-searchbar{
	text-align: right;
}
.el_ajax_search .el-icon-click-show-searchbar .el_ajax_search_icon{
	cursor: pointer;
}
.el_ajax_search .el-icon-click-show-searchbar .el_ajax_search_field{
	transition: width 180ms linear, opacity 180ms linear;
}
/* Hidden too, not just transparent: an invisible field could still be clicked, tabbed to and typed into.
   Visibility waits for the width animation when closing. */
.el_ajax_search .el-icon-click-show-searchbar:not( .el-icon-show-searchbar ) .el_ajax_search_field{
	width: 0;
	opacity: 0;
	visibility: hidden;
	transition: width 180ms linear, opacity 180ms linear, visibility 0s 180ms;
}
.el_ajax_search .el-icon-click-show-searchbar:not( .el-icon-show-searchbar ) .el_ajax_clear_icon{
	display: none;
}
/* Open Full-Screen Search on icon click: only the icon is in the page, the rest is in a modal <dialog>. */
.el_ajax_search .el_ajax_search_fullscreen_toggle{
	position: static;
	height: auto;
	justify-content: flex-end;
}
.el_ajax_search_fullscreen_toggle .el_ajax_search_icon{
	cursor: pointer;
}
/* The dialog is a command palette: one panel near the top holds the field and the results, over the blurred page.
   The module's design settings carry its order class and still win, except where a rule starts with
   "dialog.": those draw the panel's frame, and Divi 5 prints the field border, the results box background and the
   result background for every module, set or not. */
.el_ajax_search_fullscreen{
	--el-ajax-search-accent: #2ea3f2;
	background-color: rgba(0, 0, 0, 0.45);
}
/* Replaces the browser's centred box. */
.el_ajax_search_fullscreen[open]{
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 12vh 20px 20px;
	border: 0;
	color: inherit;
	overflow: hidden;
	overscroll-behavior: contain;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.el_ajax_search_fullscreen::backdrop{
	background: none;
}
/* The results scroll inside the panel, so the field stays in view. */
.el_ajax_search_fullscreen .el_ajax_search_wrap{
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 28px 56px -24px rgba(0, 0, 0, 0.35);
}
.el_ajax_search_fullscreen[open] .el_ajax_search_wrap{
	animation: el_ajax_search_panel_in 160ms ease-out;
}
@keyframes el_ajax_search_panel_in {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}
}
@media (prefers-reduced-motion: reduce) {
	.el_ajax_search_fullscreen[open] .el_ajax_search_wrap{
		animation: none;
	}
}
.el_ajax_search_fullscreen .el_ajax_search_field_wrap,
.el_ajax_search_fullscreen .el_ajax_search_pagination_wrap,
.el_ajax_search_fullscreen .el_ajax_search_result_link_wrap{
	flex: none;
}

/* Field row: search icon on the left, clear and close on the right. */
.el_ajax_search_fullscreen .el_ajax_search_field_wrap{
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.el_ajax_search_fullscreen .el_ajax_search_field{
	padding: 14px 92px 14px 46px;
	font-size: 18px;
	line-height: 1.5;
}
dialog.el_ajax_search_fullscreen .el_ajax_search_field_wrap .el_ajax_search_field{
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
/* Spans the row so the search icon can sit on the left; clicks go through to the field. */
.el_ajax_search_fullscreen .el-ajax-search-icon-wrap{
	left: 0;
	right: 48px;
	pointer-events: none;
}
.el_ajax_search_fullscreen .el-ajax-search-icon-wrap > *{
	pointer-events: auto;
}
.el_ajax_search_fullscreen .el-ajax-search-icon-wrap .el_ajax_search_icon{
	order: -1;
	margin-left: 13px;
	margin-right: auto;
}
/* Text here, not the icon font's cross. Divi 5 prints the icon's 20px for every module; its colour still applies. */
dialog.el_ajax_search_fullscreen .el_ajax_clear_icon{
	margin-right: 8px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
}
.el_ajax_search_fullscreen_close{
	position: absolute;
	top: 50%;
	right: 4px;
	width: 44px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	background: none;
	color: #666;
	font-family: ETModules;
	font-size: 20px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}
.el_ajax_search_fullscreen_close::before{
	content: "M";
}
.el_ajax_search_fullscreen_close:focus-visible{
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Results: the panel is their box. */
.el_ajax_search_fullscreen .el_ajax_search_pagination_wrap{
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background-color: transparent;
}
.el_ajax_search_fullscreen .el_ajax_search_results_wrap{
	position: relative;
	top: auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-top: 0;
}
.el_ajax_search_fullscreen .el_ajax_search_results_wrap .el_ajax_search_results{
	max-height: none;
	min-height: 0;
}
dialog.el_ajax_search_fullscreen .el_ajax_search_results{
	padding: 8px;
	background: transparent;
}
.el_ajax_search_fullscreen .el_ajax_search_item{
	position: relative;
	border-radius: 10px;
}
.el_ajax_search_fullscreen .el_ajax_search_results_wrap > .el_ajax_search_no_results{
	padding: 16px 18px;
}
.el_ajax_search_fullscreen .el_ajax_search_result_link_wrap .el_ajax_search_result_link_inner{
	height: 46px;
	margin-top: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	background-color: transparent;
}
dialog.el_ajax_search_fullscreen .el_ajax_search_isotope_item:hover .el_ajax_search_item{
	background-color: rgba(0, 0, 0, 0.03);
}
/* The picked result: a tint and a bar instead of the outline. The first colour is for browsers without color-mix(). */
dialog.el_ajax_search_fullscreen .el_ajax_search_isotope_item[aria-selected="true"] .el_ajax_search_item{
	outline: 0;
	background-color: rgba(46, 163, 242, 0.1);
	background-color: color-mix(in srgb, var(--el-ajax-search-accent) 10%, transparent);
}
/* Above the result's image and Layout 3's text panel (z-index 3), which would hide an inset shadow. */
dialog.el_ajax_search_fullscreen .el_ajax_search_isotope_item[aria-selected="true"] .el_ajax_search_item::after{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 4;
	width: 3px;
	background-color: var(--el-ajax-search-accent);
}
@media (max-width: 600px) {
	.el_ajax_search_fullscreen[open]{
		padding: 12px;
	}
	.el_ajax_search_fullscreen .el_ajax_search_wrap{
		border-radius: 12px;
	}
}

.el_ajax_search_item .el_ajax_search_post_type_label {
	margin-bottom: 2px;
}
.el_ajax_search_item .el_ajax_search_post_type_label > span{
	display: inline-block;
	border: 0 solid #000;
}

/* clears the 'X' from Internet Explorer */
.el_ajax_search input[type="search"]::-ms-clear,
.el_ajax_search input[type="search"]::-ms-reveal {
	display: none;
	width: 0;
	height: 0;
}
/* clears the 'X' from Chrome */
.el_ajax_search input[type="search"]::-webkit-search-decoration,
.el_ajax_search input[type="search"]::-webkit-search-cancel-button,
.el_ajax_search input[type="search"]::-webkit-search-results-button,
.el_ajax_search input[type="search"]::-webkit-search-results-decoration{
	-webkit-appearance:none;
}
.el_ajax_search_results_wrap{
	position: absolute;
	top: calc( 100% + 2px );
	left: 0;
	width: 100%;
	z-index: 9999;
}

.el_ajax_search_results{
	border-width: 0;
	border-style: solid;
	border-color: #333;
	background: #f1f1f1;
	overflow-y: scroll;
	padding: 10px;
}
.el-result-layout-layout1 .el_ajax_search_results{
	max-height: 250px;
}
.el-result-layout-layout2 .el_ajax_search_results,
.el-result-layout-layout3 .el_ajax_search_results{
	max-height: 350px;
}

.el_ajax_search .el_ajax_search_wrap .el_ajax_search_results{
	overflow-x: hidden;
	overflow-y: auto;
}

.el_ajax_search_item{
	background: #fff;
	width: 100%;
	overflow: hidden;
	border: 0 solid transparent;
}

.el_ajax_search_item p {
	padding-bottom: 5px;
}
.el_ajax_search_item:last-child {
	margin-bottom: 0;
}
.el_ajax_search_item .el_ajax_search_item_link{
	display: block;
	text-decoration: none;
}

.el-result-layout-layout1 .el_ajax_search_item .el_ajax_search_item_inner{
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}
.el-result-layout-layout1 .el_ajax_search_item_image .el_ajax_search_item_link{
	height: 100%;
}
.el_ajax_search_cart_form{
	margin-top: 7px;
}
.el_ajax_search_cart_form a{
	display: inline-block;
	text-decoration: none;
}
.el_ajax_search_cart_form button{
	display: inline-block;
	cursor: pointer;
}
.el_ajax_search_simple_add_to_cart_wrap{
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	align-items: center;
}
/* .el_ajax_search in front: the form has the woocommerce class, so Divi's .woocommerce .quantity (100px wide,
   no margin) matches too and won on load order. */
.el_ajax_search .el_ajax_search_cart_form .quantity{
	width: auto;
	margin-right: 15px;
}
/* Same height as Add to cart; Divi's 16px made the box taller. The "div" outweighs Divi's .woocommerce .quantity
   input.qty but not the module's Quantity Field padding setting, which has the order class in front. */
.el_ajax_search_cart_form div.quantity input.qty{
	padding: 7.5px;
}
.el_ajax_search_cart_form .wc-forward{
	margin-left: 10px;
}

.el-result-layout-layout1 .el_ajax_search_item .el_ajax_search_item_image{
	width: 85px;
	float: left;
	line-height: 0;
}
.el-result-layout-layout2 .el_ajax_search_item .el_ajax_search_item_image,
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_image{
	width: 100%;
}
.el-result-layout-layout2 .el_ajax_search_item_link {
	height: 100%;
}
.el_ajax_search_item_image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.el-result-layout-layout2 .el_ajax_search_item_image,
.el-result-layout-layout3 .el_ajax_search_item_image{
	height: 300px;
}

.el_ajax_search_only_featured_image .el_ajax_search_item_image {
	width: 100%;
}

.el_ajax_search_item .el_ajax_search_item_content {
	padding: 10px;
}
.el-result-layout-layout1 .el_ajax_search_item .el_ajax_search_item_image + .el_ajax_search_item_content{
	/* width: calc(100% - 85px);
	float: left; */
	flex: 1;
}
.el-result-layout-layout2 .el_ajax_search_item .el_ajax_search_item_content,
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_content{
	width: 100%;
}
.el-result-layout-layout3 .el_ajax_search_item_inner{
	position: relative;
}
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_content{
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: rgba( 0, 0, 0, 0.83 );
	color: #fff;
	z-index: 3;
}
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_content.el_ajax_item_no_image{
	position: relative;
}

.el_ajax_search_item .el_ajax_search_item_title{
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #000;
	padding-bottom: 5px;
}
.el_ajax_search_item .el_ajax_search_item_title:last-child{
	padding-bottom: 0;
}
.el_ajax_search_item .el_ajax_search_item_price{
	font-size: 16px;
	line-height: 1.2;
	color: #000;
}
.el_ajax_search_item .el_ajax_search_item_excerpt{
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	overflow-wrap: anywhere;
}
.el_ajax_search_isotope_item[aria-selected="true"] .el_ajax_search_item{
	outline: 2px solid currentColor;
	outline-offset: -2px;
}
/* Divi removes focus outlines site-wide (:focus { outline: 0 }). The browser's own ring stays visible on the
   black active page link too, and it's inset because result items clip their overflow. */
.el_ajax_search_wrap a:focus-visible,
.el_ajax_search_wrap .el_ajax_clear_icon:focus-visible,
.el_ajax_search_wrap .el_ajax_search_icon:focus-visible,
.el_ajax_search_fullscreen_toggle .el_ajax_search_icon:focus-visible{
	outline: 2px auto;
	outline-offset: -2px;
}
.el_ajax_search .el_ajax_search_screen_reader_text{
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.el_ajax_search_item .el_ajax_search_highlight{
	background-color: rgba(255, 213, 0, 0.45);
	color: inherit;
	padding: 0;
	border-radius: 2px;
}
.el_ajax_search_item .el_ajax_search_item_meta{
	padding-bottom: 5px;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
	overflow-wrap: anywhere;
}
.el_ajax_search_item .el_ajax_search_item_meta > span + span::before{
	content: "|";
	content: "|" / "";
	margin: 0 6px 0 2px;
}
/* Also beats WooCommerce's absolutely positioned .woocommerce span.onsale on shop pages. The !important ones answer
   Divi's own !important badge rules there (orange, 6px 18px), so the module's Sale Badge settings set them too. */
.el_ajax_search_item .el_ajax_search_item_sale_badge .onsale{
	position: static;
	display: inline-block;
	min-width: 0;
	min-height: 0;
	margin: 0 0 5px !important;
	padding: 2px 8px !important;
	border-radius: 3px;
	background-color: #e02b20 !important;
	color: #fff;
	font-size: 12px;
	font-weight: 600 !important;
	line-height: 1.5 !important;
}
.el_ajax_search_item .el_ajax_search_item_rating{
	padding-bottom: 5px;
}
.el_ajax_search_item .el_ajax_search_item_meta:last-child,
.el_ajax_search_item .el_ajax_search_item_rating:last-child{
	padding-bottom: 0;
}
.el_ajax_search_item .el_ajax_search_item_rating .star-rating{
	float: none;
	margin: 0;
}
/* The colour stops "Available on backorder" taking the theme's link colour from the result link around it. */
.el_ajax_search_item .el_ajax_search_item_stock .stock{
	margin: 0;
	padding: 3px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}
.el_ajax_search_item .el_ajax_search_item_stock .in-stock{
	color: #0f834d;
}
.el_ajax_search_item .el_ajax_search_item_stock .out-of-stock{
	color: #e2401c;
}
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_title,
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_price,
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_excerpt{
	color: #fff;
}
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_meta,
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_stock .stock{
	color: rgba( 255, 255, 255, 0.8 );
}
/* WooCommerce's green and red drop below 4.5:1 on the dark panel. */
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_stock .in-stock{
	color: #6fcf97;
}
.el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_stock .out-of-stock{
	color: #ff8a73;
}

.el_ajax_search_items {
	display: flex;
	flex-wrap: wrap;
}

.el_ajax_search_isotope_item {
	float: left;
}

.el_ajax_search_isotope_item:last-child {
	margin-bottom: 0;
}

/* Group Results by Post Type (Divi 5). */
.el_ajax_search_group{
	width: 100%;
}
.el_ajax_search_group + .el_ajax_search_group{
	margin-top: 10px;
}
.el_ajax_search_group_heading{
	padding: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
}
.el_ajax_search_group_count,
.el_ajax_search_tab_count{
	font-weight: 400;
}
.el_ajax_search_group_items{
	display: flex;
	flex-wrap: wrap;
}
/* Stays in view while the results scroll under it. */
.el_ajax_search_tabs{
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ddd;
	background: inherit;
}
.el_ajax_search_tab{
	margin: 0;
	padding: 4px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}
/* Beats the module's Tab colours, so they leave the selected tab as it is. */
.el_ajax_search .el_ajax_search_tabs .el_ajax_search_tab[aria-selected="true"]{
	border-color: #333;
	background: #333;
	color: #fff;
}
.el_ajax_search_wrap .el_ajax_search_tab:focus-visible{
	outline: 2px solid #2ea3f2;
	outline-offset: 2px;
}

/* No Results Suggestions (Divi 5): the No Result Text, heading, links and posts in one results box. */
.el_ajax_search_suggestions .el_ajax_search_no_results{
	margin-bottom: 10px;
}
.el_ajax_search_suggestions_heading{
	padding: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
}
.el_ajax_search_suggestion_links,
.el_ajax_search_suggestion_posts{
	width: 100%;
}
.el_ajax_search_suggestion_links + .el_ajax_search_suggestion_posts{
	margin-top: 10px;
}
.el_ajax_search_suggestion_posts{
	display: flex;
	flex-wrap: wrap;
}
.el_ajax_search_suggestion_link a{
	display: inline-block;
	padding: 2px 0;
	font-size: 14px;
	line-height: 1.5;
}
.el_ajax_search_suggestion_link[aria-selected="true"] a{
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.el_ajax_search_result_link_wrap {
	background-color: transparent;
	width: 100%;
	bottom: 0;
	text-align: center;
	left: 0;
	display: none;
	z-index: 9;
}
.el_ajax_search_result_link_wrap .el_ajax_search_result_link_inner{
	display: flex;
	height: 50px;
	line-height: 1;
	margin-top: 1px;
	padding: 10px 15px !important;
	align-items: center;
	justify-content: center;
	background-color: #f9f9f9;
}
.el_ajax_search_result_link{
	color: #000;
	text-decoration: none;
}

.el_ajax_search_pagination_wrap{
	position: relative;
	width: 100%;
	margin: 2px 0;
	text-align: center;
	display: flex;
	align-items: center;
	background-color: #fff;
}
.el_ajax_search_pagination_wrap .el_ajax_search_total_result{
	flex-grow: 1;
	text-align: left;
	padding: 5px 10px;
}
.el_ajax_search_pagination_wrap .el_ajax_search_pagination{
	list-style: none;
	padding: 5px 10px;
	margin: 0;
	line-height: normal;
	flex-grow: 1;
}
.el_ajax_search_pagination_wrap .el_ajax_search_total_result + .el_ajax_search_pagination{
	flex-grow: 0;
}
.el_ajax_search_total_result > span{
	font-weight: bold;
}
.el_ajax_search_pagination li{
	display: inline-block;
	margin-right: 10px;
}
.el_ajax_search_pagination li:last-child{
	margin-right: 0;
}
.el_ajax_search_pagination li a{
	display: block;
	text-decoration: none;
	padding: 4px 10px;
	font-size: 16px;
	line-height: 1.5;
	background-color: #f4f4f4;
	color: #000;
}
.el_ajax_search_pagination li.disabled a{
	opacity: 0.7;
}
.el_ajax_search_pagination li.active a{
	background-color: #000;
	color: #fff;
}

@keyframes dipl_rotation {
	from {
		-webkit-transform: translate3d(0, -50%, 0)rotate(0deg);
		transform: translate3d(0, -50%, 0)rotate(0deg);
	}
	to {
		-webkit-transform: translate3d(0, -50%, 0)rotate(360deg);
		transform: translate3d(0, -50%, 0)rotate(360deg);
	}
}

/* Result Style: Refined. :where() adds no weight, so each rule weighs the same as the one above it overrides and
   wins by coming later, while a module's design settings (they carry the order class) still win over it. */
:where(.el-result-style-refined).el-result-layout-layout1 .el_ajax_search_results,
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_results,
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_results{
	max-height: min(480px, 75vh);
}
:where(.el-result-style-refined) .el_ajax_search_item{
	border-radius: 4px;
}
:where(.el-result-style-refined) .el_ajax_search_item .el_ajax_search_post_type_label{
	margin-bottom: 4px;
	line-height: 1.4;
}
:where(.el-result-style-refined) .el_ajax_search_item .el_ajax_search_post_type_label > span{
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
:where(.el-result-style-refined) .el_ajax_search_item .el_ajax_search_item_title{
	line-height: 1.3;
}
/* Space below as margin: padding would show the top of the clamped third line. */
:where(.el-result-style-refined) .el_ajax_search_item .el_ajax_search_item_excerpt{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	padding-bottom: 0;
	margin-bottom: 5px;
}
/* The image fills its box whatever the photo's shape, without depending on a percentage height. */
:where(.el-result-style-refined) .el_ajax_search_item_image{
	position: relative;
}
:where(.el-result-style-refined) .el_ajax_search_item_image .el_ajax_search_item_link{
	position: absolute;
	inset: 0;
}
/* Inline, it sits on a text baseline and overflows the link by the descender. The height repeats the base image
   rule one class stronger: WooCommerce's .woocommerce img (height: auto) loads later and won on shop and product
   pages, so the photo ran out of its box over the text. */
:where(.el-result-style-refined) .el_ajax_search_item .el_ajax_search_item_image img{
	display: block;
	height: 100%;
}

/* Layout 1: a square thumbnail at the top instead of a strip as tall as the result. */
:where(.el-result-style-refined).el-result-layout-layout1 .el_ajax_search_item .el_ajax_search_item_inner{
	align-items: flex-start;
}
:where(.el-result-style-refined).el-result-layout-layout1 .el_ajax_search_item .el_ajax_search_item_image{
	aspect-ratio: 1;
	margin: 10px 0 10px 10px;
	border-radius: 3px;
	overflow: hidden;
}

/* Layouts 2 and 3: one image shape in every card. An image height set in the module replaces the shape. */
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_item_image,
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item_image{
	height: auto;
	max-height: 200px;
}
:where(.el-result-style-refined).el-result-image-4-3 .el_ajax_search_item_image{
	aspect-ratio: 4 / 3;
}
:where(.el-result-style-refined).el-result-image-1-1 .el_ajax_search_item_image{
	aspect-ratio: 1;
}
:where(.el-result-style-refined).el-result-image-16-9 .el_ajax_search_item_image{
	aspect-ratio: 16 / 9;
}
/* Rows stretch each result to the tallest one, so the cards end level. */
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_item,
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item{
	height: 100%;
}

/* Layout 2: Add to cart at the bottom of each card. */
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_item_inner{
	display: flex;
	flex-direction: column;
	height: 100%;
}
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_item .el_ajax_search_item_content{
	flex: 1;
	display: flex;
	flex-direction: column;
}
:where(.el-result-style-refined).el-result-layout-layout2 .el_ajax_search_cart_form{
	margin-top: auto;
	padding-top: 7px;
}

/* Layout 3: the image and the text panel share one grid cell, so the card grows to fit the panel instead of cutting
   its top off. With a plain 1fr column, a stretched image's aspect ratio widened the card. */
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item_inner{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	height: 100%;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item_inner > *{
	grid-area: 1 / 1;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item_image{
	min-height: 100%;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_content{
	position: relative;
	align-self: end;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item .el_ajax_item_no_image{
	align-self: stretch;
}
/* Fades the panel's colour, the module's Item Content Background when set, into the photo above it. */
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_item_content::before{
	content: "";
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 100%;
	height: 36px;
	background-color: inherit;
	-webkit-mask-image: linear-gradient(to top, #000, transparent);
	mask-image: linear-gradient(to top, #000, transparent);
	pointer-events: none;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_item .el_ajax_search_highlight{
	background-color: #ffd500;
	color: #111;
}
/* The panel can cover the whole card, and the dark outline inside it disappeared on it. The box's padding and the
   column spacing leave room for it outside; the scroll margin keeps ↑/↓ from scrolling it out of view. */
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_isotope_item[aria-selected="true"] .el_ajax_search_item{
	outline-offset: 2px;
}
:where(.el-result-style-refined).el-result-layout-layout3 .el_ajax_search_isotope_item{
	scroll-margin: 4px;
}
