.wp-block-acf-map-search .wrap {
	max-width: var(--wp--style--global--content-size) !important;
	padding: 0 var(--wp--custom--layout--padding);
	margin: 0 auto;
}
.gw-map-search--heading {
	color: var(--wp--preset--color--forest-green);
	font-size: var(--wp--preset--font-size--colossal);
	font-weight: normal;
}
.block-gw-map-search__block-header {
	max-width: 948px;
	margin-bottom: var(--wp--custom--layout--block-gap);
}
.block-gw-map-search__placeholder {
	padding: var(--wp--custom--layout--block-gap-large) var(--wp--custom--layout--padding);
	border: 2px dashed var(--wp--preset--color--light-gray-1);
	border-radius: var(--wp--custom--border-radius--small);
	text-align: center;
}

/* BORDERED */
.wp-block-acf-map-search {
	margin: var(--wp--custom--layout--block-gap) var(--wp--custom--layout--padding);
	border: 6px solid var(--wp--preset--color--light-gray-1);
	border-radius: var(--wp--custom--border-radius--xxlarge);
	padding-top: var(--wp--custom--layout--block-gap-large);
	padding-bottom: var(--wp--custom--layout--block-gap-large);
}
.wp-block-acf-map-search:last-child {
	margin-bottom: var(--wp--custom--layout--block-gap-large) !important;
}
@media (min-width: 1513px) {
	.wp-block-acf-map-search {
		margin-left: auto;
		margin-right: auto;
		max-width: calc(var(--wp--style--global--wide-size) - 2 * var(--wp--custom--layout--padding)) !important;
		padding-left: 0;
		padding-right: 0;
	}
}


/* Agile Store Locator */

/* remove the plugin's light green background and container gutters */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .Filter_section {
	background: transparent !important;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper > .sl-container,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper > .sl-container-fluid {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .sl-row {
	margin-left: 0;
	margin-right: 0;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .sl-row > [class*="pol-"] {
	padding-left: 0;
	padding-right: 0;
}

/* search row: name search first, then location + button
   (name filters as you type, the button only runs the location search) */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--wp--custom--layout--block-gap-medium) 36px;
	padding: 0 0 var(--wp--custom--layout--block-gap) 0;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section > [class*="pol-"] {
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section > .search_filter {
	order: 1;
}
/* drop the empty filters column (and its gap) when the shortcode has no name search */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section > :not(.search_filter):not(:has(.asl-name-search)) {
	display: none;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .search_filter,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .asl-name-search,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .asl-name-search .asl-filter-cntrl {
	margin-bottom: 0 !important;
}

/* the plugin adds .hide to the advanced filters wrapper; unhide it */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-advance-filters.hide {
	display: block !important;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-advance-filters > .sl-row > [class*="pol-"] {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
}
/* only the location and name searches are in the design */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-advance-filters .asl-ddl-filters,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-advance-filters .Status_filter {
	display: none !important;
}

/* labels (text comes from Store Locator > Labels) */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .search_filter label,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .asl-name-search label {
	display: block;
	margin: 0 0 4px 0 !important;
	color: var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 800;
	line-height: 26px !important;
	text-transform: none;
}

/* inputs */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group {
	flex-wrap: nowrap;
	align-items: center;
	gap: 36px;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .form-control {
	flex: 0 1 auto;
	width: 221px !important;
	height: 50px !important;
	padding: 12px !important;
	border: 2px solid var(--wp--preset--color--light-gray-1) !important;
	border-radius: 4px !important;
	background-color: var(--wp--preset--color--background) !important;
	color: var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 400;
	box-shadow: none;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .form-control::placeholder {
	color: #888;
	font-weight: 400;
}
/* clear (x) button, no reset in the design */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .asl-search-clr {
	display: none !important;
}

/* search button: yellow pill with text instead of the icon */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .input-group-append {
	margin: 0;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .span-geo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	padding: 10px 24px !important;
	border: 2px solid var(--wp--preset--color--yellow) !important;
	border-radius: var(--wp--custom--border-radius--medium) !important;
	background-color: var(--wp--preset--color--yellow) !important;
	color: var(--wp--preset--color--foreground) !important;
	font-size: var(--wp--preset--font-size--large);
	line-height: normal;
	white-space: nowrap;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .span-geo:before {
	content: "Search";
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .span-geo:hover,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .span-geo:focus-visible {
	background-color: var(--wp--preset--color--background) !important;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .span-geo i {
	display: none;
}

/* list + map */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .sl-main-cont {
	border: 1px solid var(--wp--preset--color--light-gray-1);
	border-radius: var(--wp--custom--border-radius--small);
	overflow: hidden;
}
/* the panel's own border gets clipped by the rounded corners above */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-panel {
	border: 0;
	border-radius: 0;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .Num_of_store {
	display: none !important;
}
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .sl-item .s-direction,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-buttons .directions,
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-buttons .zoomhere {
	display: none !important;
}
/* collapse the infobox button row when nothing else is left in it */
.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-buttons:not(:has(> :not(.directions):not(.zoomhere))) {
	display: none !important;
}

@media (max-width: 767px) {
	.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section > [class*="pol-"],
	.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-advance-filters > .sl-row > [class*="pol-"] {
		width: 100%;
	}
	.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group {
		gap: var(--wp--custom--layout--block-gap-small);
	}
	.wp-block-acf-map-search .block-gw-map-search__map #asl-storelocator.asl-cont .asl-wrapper .Filter_section .sl-search-group .form-control {
		flex: 1 1 auto;
		width: auto !important;
	}
}
