/**
 * Easy Store Locator 2.1: classic / split / overlay / cards / maponly
 */

.jx-store-locator-wrapper {
	--esl-accent: #1819ed;
	--esl-sidebar-bg: #ffffff;
	--esl-text: #0f172a;
	--esl-muted: #64748b;
	--esl-border: rgba(15, 23, 42, 0.08);
	--esl-hover: #eef0ff;
	--esl-radius: 16px;
	--esl-ctrl-radius: 999px;
	--esl-map-w: 68%;
	--esl-side-w: 32%;
	--esl-map-h: 560px;
	--esl-font: 15px;
	--esl-align: left;
	--esl-weight: 600;
	--esl-pad: 14px 16px;

	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 100%;
	gap: 0;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-radius);
	overflow: hidden;
	background: var(--esl-sidebar-bg);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
	box-sizing: border-box;
	position: relative;
}

.jx-store-locator-wrapper *,
.jx-store-locator-wrapper *::before,
.jx-store-locator-wrapper *::after {
	box-sizing: border-box;
}

.esl-top {
	width: 100%;
	flex-shrink: 0;
	background: var(--esl-sidebar-bg);
	border-bottom: 1px solid var(--esl-border);
	z-index: 3;
}

.esl-top .esl-search-panel {
	border-bottom: 0;
	padding: 12px 16px;
}

.esl-top .esl-search-panel__bar--radius {
	grid-template-columns: 44px minmax(180px, 1fr) minmax(130px, 200px) 44px 44px;
}

.esl-top .esl-search-panel__bar--radius:has(.esl-search-panel__toggle-host:not(:empty)) {
	grid-template-columns: 44px minmax(180px, 1fr) minmax(130px, 200px) 44px 44px 44px;
}

.esl-top .esl-search-panel__bar--name:has(.esl-search-panel__toggle-host:not(:empty)) {
	grid-template-columns: minmax(180px, 1fr) 44px 44px;
}

.esl-chips-host {
	display: none;
}

.esl-chips-host.has-chips {
	display: block;
	width: 100%;
	border-top: 1px solid var(--esl-border);
}

.esl-chips-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 16px;
	box-sizing: border-box;
}

.esl-chips-host .esl-chips {
	border-bottom: 0;
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.esl-chips-row .esl-count {
	margin-inline-start: auto;
	flex-shrink: 0;
}

.esl-chips.esl-chips-align-left,
.esl-chips-host.esl-chips-align-left .esl-chips {
	justify-content: flex-start;
}

.esl-chips.esl-chips-align-center,
.esl-chips-host.esl-chips-align-center .esl-chips {
	justify-content: center;
}

.esl-chips.esl-chips-align-right,
.esl-chips-host.esl-chips-align-right .esl-chips {
	justify-content: flex-end;
}

.jx-store-locator-wrapper .esl-chip.esl-chip--featured {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.esl-chip__icon {
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.esl-chip__icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.jx-store-locator-wrapper .esl-chip.esl-chip--featured.is-active .esl-chip__icon {
	color: #fff;
}

.jx-store-locator-wrapper .esl-chip.esl-chip--featured:not(.is-active) .esl-chip__icon {
	color: #eab308;
}

.esl-main {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	position: relative;
}

.jx-store-locator-wrapper.jx-reverse .esl-main {
	flex-direction: row-reverse;
}

.jx-store-map {
	width: var(--esl-map-w);
	height: var(--esl-map-h);
	min-width: 0;
	max-width: 100%;
	min-height: 280px;
	position: relative;
	overflow: hidden;
	background: #e2e8f0;
}

.jx-store-sidebar {
	width: var(--esl-side-w);
	height: var(--esl-map-h);
	min-width: 0;
	max-width: 100%;
	background: var(--esl-sidebar-bg);
	color: var(--esl-text);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-inline-start: 1px solid var(--esl-border);
}

.jx-reverse .jx-store-sidebar,
.jx-store-locator-wrapper.jx-reverse .jx-store-sidebar {
	border-inline-start: 0;
	border-inline-end: 1px solid var(--esl-border);
}

.esl-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	/* Keep out of CSS Grid auto-placement track sizing */
	inset-inline-start: 0;
	inset-block-start: 0;
	pointer-events: none;
}

.jx-store-search-wrapper {
	padding: 14px 14px 10px;
	border-bottom: 1px solid var(--esl-border);
	flex-shrink: 0;
}

.esl-search-panel .jx-store-search-wrapper,
.jx-store-search-wrapper.esl-search-panel__name {
	padding: 0;
	border-bottom: 0;
}

.esl-search {
	position: relative;
	display: block;
	width: 100%;
}

.esl-search__icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 14px;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--esl-muted);
	pointer-events: none;
	z-index: 1;
}

.esl-search__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.jx-store-locator-wrapper .esl-search .jx-store-search,
.jx-store-locator-wrapper input.jx-store-search[data-jx-search] {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 44px !important;
	padding-right: 44px !important;
	border: 1px solid var(--esl-border) !important;
	border-radius: var(--esl-ctrl-radius) !important;
	font-size: 15px !important;
	font-weight: 500;
	line-height: 44px !important;
	color: var(--esl-text) !important;
	background-color: #f8fafc !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.jx-store-locator-wrapper .jx-store-search::placeholder {
	color: var(--esl-muted);
	opacity: 1;
}

.jx-store-locator-wrapper .jx-store-search:hover {
	background: #fff !important;
	border-color: color-mix(in srgb, var(--esl-accent) 35%, var(--esl-border)) !important;
}

.jx-store-locator-wrapper .jx-store-search:focus {
	background: #fff !important;
	border-color: var(--esl-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--esl-accent) 18%, transparent) !important;
}

.jx-store-locator-wrapper .jx-store-search::-webkit-search-decoration,
.jx-store-locator-wrapper .jx-store-search::-webkit-search-cancel-button,
.jx-store-locator-wrapper .jx-store-search::-webkit-search-results-button,
.jx-store-locator-wrapper .jx-store-search::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.esl-search__clear {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--esl-ctrl-radius);
	background: transparent;
	color: var(--esl-muted);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	z-index: 1;
}

.esl-search__clear.is-visible {
	display: inline-flex;
}

.esl-search__clear:hover,
.esl-search__clear:focus-visible {
	background: var(--esl-hover);
	color: var(--esl-text);
	outline: none;
}

.esl-mark {
	background: color-mix(in srgb, var(--esl-accent) 18%, #fff);
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}

.esl-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--esl-border);
	flex-shrink: 0;
}

.esl-count {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--esl-accent);
	background: color-mix(in srgb, var(--esl-accent) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--esl-accent) 18%, transparent);
	border-radius: var(--esl-ctrl-radius);
	padding: 5px 10px;
	white-space: nowrap;
	line-height: 1.2;
}

.esl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--esl-border);
	flex-shrink: 0;
}

.jx-store-locator-wrapper .esl-chip {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--esl-border);
	background-color: #fff;
	background-image: none;
	color: var(--esl-text);
	border-radius: var(--esl-ctrl-radius);
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	min-height: 34px;
	box-shadow: none;
	text-shadow: none;
}

.jx-store-locator-wrapper .esl-chip.is-active {
	background-color: var(--esl-accent);
	border-color: var(--esl-accent);
	color: #fff;
}

.esl-list {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	text-align: var(--esl-align);
}

.esl-item {
	display: block;
	width: 100%;
	text-align: inherit;
	appearance: none;
	border: 0;
	border-bottom: 1px solid var(--esl-border);
	border-inline-start: 3px solid transparent;
	background: transparent;
	color: var(--esl-text);
	padding: var(--esl-pad);
	cursor: pointer;
	font: inherit;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.esl-item:hover,
.esl-item:focus-visible {
	background: var(--esl-hover);
	outline: none;
}

.esl-item.is-active {
	background: var(--esl-hover);
	border-inline-start-color: var(--esl-item-accent, var(--esl-accent));
}

.esl-item__title {
	display: block;
	font-size: var(--esl-font);
	font-weight: var(--esl-weight);
	margin-bottom: 4px;
}

.esl-item__cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--esl-item-accent, var(--esl-accent));
	margin-bottom: 4px;
	margin-inline-end: 8px;
}

.esl-item__addr,
.esl-item__meta {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--esl-muted);
	line-height: 1.45;
	margin-top: 2px;
}

.esl-empty {
	padding: 24px 16px;
	color: var(--esl-muted);
	font-size: 14px;
}

.esl-empty__reset {
	appearance: none;
	border: 0;
	background: none;
	color: var(--esl-accent);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin-top: 8px;
	display: inline-block;
	text-decoration: underline;
}

.esl-pin {
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--esl-pin, var(--esl-accent, #1819ed));
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
	display: grid;
	place-items: center;
}

.esl-pin__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	transform: rotate(45deg);
}

/* Info window */
.esl-iw {
	position: relative;
	width: 100%;
	min-width: 280px;
	max-width: 340px;
	overflow: visible;
	box-sizing: border-box;
	padding: 0;
	font-family: system-ui, -apple-system, Segoe UI, sans-serif;
	color: #0f172a;
	line-height: 1.4;
}

.esl-iw__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.esl-iw__close {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 0;
}

.esl-iw__close svg {
	width: 14px !important;
	height: 14px !important;
	display: block !important;
	overflow: visible !important;
	flex-shrink: 0;
	pointer-events: none;
}

.esl-iw__close svg path {
	fill: currentColor !important;
	stroke: none !important;
}

.esl-iw__close:hover,
.esl-iw__close:focus-visible {
	background: #e2e8f0;
	color: #0f172a;
	outline: none;
}

.jx-store-map .esl-iw__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.esl-iw__title {
	display: block;
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	overflow-wrap: break-word;
	word-break: normal;
}

.esl-iw__cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--esl-iw-accent, #1819ed);
	background: color-mix(in srgb, var(--esl-iw-accent, #1819ed) 14%, #fff);
	border-radius: 999px;
	padding: 3px 8px;
	margin: 0 0 10px;
}

.esl-iw__row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: #475569;
	margin: 0 0 6px;
	line-height: 1.45;
	min-width: 0;
}

.esl-iw__row span {
	min-width: 0;
	overflow-wrap: break-word;
	word-break: normal;
}

.esl-iw__row svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	color: #94a3b8;
}

.esl-iw__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
}

.esl-iw__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 7px 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none !important;
	background: #f1f5f9;
	color: #0f172a !important;
	line-height: 1.2;
	white-space: nowrap;
}

.esl-iw__btn--icon-only {
	width: 100%;
	height: 32px;
	padding: 0;
}

/* Icons-only: compact squares on a single centered row */
.esl-iw__actions--icons {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.esl-iw__actions--icons .esl-iw__btn--icon-only {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
}

.esl-iw__btn-icon {
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	line-height: 1;
}

.esl-iw__btn-icon .fa-solid,
.esl-iw__btn-icon .fas {
	font-size: 12px;
	line-height: 1;
	width: 1em;
	text-align: center;
}

.esl-iw__btn-icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

@media (max-width: 380px) {
	.esl-iw__actions:not(.esl-iw__actions--icons) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.esl-iw__actions--icons {
		gap: 6px;
	}

	.esl-iw__actions--icons .esl-iw__btn--icon-only {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}
}

.esl-iw__btn:hover {
	background: #e2e8f0;
}

.esl-iw__btn--primary {
	background: #1819ed;
	color: #fff !important;
}

.esl-iw__btn--primary:hover {
	background: #1213c4;
	color: #fff !important;
}

/* Hide Google native IW chrome / close: we use our own */
.jx-store-map .gm-style-iw-chr,
.jx-store-map .gm-style-iw-ch,
.jx-store-map button.gm-ui-hover-effect {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

.jx-store-map .gm-style-iw-c {
	padding: 12px 14px !important;
	border-radius: 14px !important;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16) !important;
	overflow: hidden !important;
}

.jx-store-map .gm-style-iw-d {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	max-width: 100% !important;
}

.esl-side-toggle {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	margin: 0;
	margin-inline-start: auto;
	padding: 6px 12px;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	flex-shrink: 0;
}

.esl-search-panel__toggle-host {
	display: block;
	width: 40px;
	min-width: 40px;
	height: 40px;
}

.esl-search-panel__toggle-host:empty {
	display: none;
}

.esl-search-panel__toggle-host .esl-side-toggle {
	width: 40px;
	height: 40px;
	min-height: 40px;
	min-width: 40px;
	margin: 0;
	padding: 0;
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
}

.esl-search-panel__toggle-host .esl-side-toggle.is-on,
.esl-search-panel__toggle-host .esl-side-toggle.is-open,
.esl-search-panel__toggle-host .esl-side-toggle[aria-checked="true"] {
	background: color-mix(in srgb, var(--esl-accent) 10%, #fff);
	border-color: color-mix(in srgb, var(--esl-accent) 35%, var(--esl-border));
	color: var(--esl-accent);
}

.esl-search-panel__toggle-host .esl-side-toggle.is-off,
.esl-search-panel__toggle-host .esl-side-toggle[aria-checked="false"] {
	background: #fff;
	color: var(--esl-text);
}

.esl-side-toggle__icon {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	color: var(--esl-accent);
}

.esl-side-toggle__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.esl-side-toggle:hover,
.esl-side-toggle:focus-visible {
	border-color: var(--esl-accent);
	outline: none;
}

.esl-side-toggle.is-open {
	background: color-mix(in srgb, var(--esl-accent) 8%, #fff);
	border-color: color-mix(in srgb, var(--esl-accent) 28%, var(--esl-border));
	color: var(--esl-accent);
}

.esl-side-toggle.is-open .esl-side-toggle__icon {
	color: var(--esl-accent);
}

/* Hide Google fullscreen when module option is off (Map ID builds can ignore MapOptions). */
.jx-store-locator-wrapper[data-jx-fullscreen-control="0"] .gm-fullscreen-control {
	display: none !important;
}

/* Floating reopen control when list is hidden (bottom, avoids Maps fullscreen control) */
.esl-side-toggle.esl-side-toggle--float {
	position: absolute;
	z-index: 10;
	top: auto;
	bottom: 14px;
	inset-inline-end: 14px;
	margin: 0;
	width: 44px;
	height: 44px;
	min-height: 44px;
	min-width: 44px;
	padding: 0;
	font-size: 13px;
	background: #fff;
	color: var(--esl-text);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.jx-reverse .esl-side-toggle.esl-side-toggle--float {
	inset-inline-end: auto;
	inset-inline-start: 14px;
}
.esl-map-error,
.jx-store-locator-error {
	padding: 16px;
	border-radius: var(--esl-radius, 12px);
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Collapsed sidebar to full map */
.jx-store-locator-wrapper.esl-sidebar-collapsed .jx-store-sidebar {
	display: none;
}

.jx-store-locator-wrapper.esl-sidebar-collapsed .jx-store-map {
	width: 100% !important;
}

/* Split 50/50 */
.esl-layout-split .jx-store-map,
.esl-layout-split .jx-store-sidebar {
	width: 50%;
}

/* Overlay */
.esl-layout-overlay {
	display: flex;
	flex-direction: column;
	overflow: visible;
}

.esl-layout-overlay .esl-main {
	display: block;
	position: relative;
}

.esl-layout-overlay .jx-store-map {
	width: 100%;
	height: var(--esl-map-h);
	border-radius: 0;
	overflow: hidden;
}

.esl-layout-overlay:not(.esl-has-top) .jx-store-map {
	border-radius: var(--esl-radius);
}

.esl-layout-overlay .jx-store-sidebar {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	width: min(360px, calc(100% - 32px));
	height: auto;
	max-height: calc(var(--esl-map-h) - 32px);
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-radius);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	z-index: 2;
	border-inline: 0;
}

.esl-layout-overlay.jx-reverse .jx-store-sidebar {
	inset-inline-start: auto;
	inset-inline-end: 16px;
}

.esl-layout-overlay .esl-side-toggle.esl-side-toggle--float {
	top: auto;
	bottom: 16px;
	inset-inline-end: 16px;
}

.esl-layout-overlay.jx-reverse .esl-side-toggle.esl-side-toggle--float,
.esl-layout-overlay.esl-sidebar-collapsed .esl-side-toggle.esl-side-toggle--float {
	inset-inline-start: 16px;
	inset-inline-end: auto;
}

/* Map only */
.esl-layout-maponly {
	display: flex;
	flex-direction: column;
}

.esl-layout-maponly .esl-main {
	display: block;
	position: relative;
}

.esl-layout-maponly .jx-store-map {
	width: 100%;
	height: var(--esl-map-h);
	border-radius: 0;
}

.esl-layout-maponly:not(.esl-has-top) .jx-store-map {
	border-radius: var(--esl-radius);
}

.esl-layout-maponly .jx-store-sidebar {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	width: min(360px, calc(100% - 32px));
	height: auto;
	max-height: calc(var(--esl-map-h) - 32px);
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-radius);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	z-index: 2;
	border-inline: 0;
}

.esl-layout-maponly.esl-sidebar-collapsed .jx-store-sidebar {
	display: none;
}

/* Cards */
.esl-layout-cards {
	flex-direction: column;
}

.esl-layout-cards .esl-main {
	flex-direction: column;
}

.esl-layout-cards .jx-store-map {
	width: 100%;
	height: var(--esl-map-h);
}

.esl-layout-cards .jx-store-sidebar {
	width: 100%;
	height: auto;
	max-height: none;
	border-inline: 0;
	border-top: 1px solid var(--esl-border);
}

.esl-layout-cards .esl-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	padding: 14px;
	overflow: visible;
}

.esl-layout-cards .esl-item {
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-radius);
	border-inline-start: 3px solid transparent;
	padding: 16px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.esl-layout-cards .esl-item:hover,
.esl-layout-cards .esl-item:focus-visible,
.esl-layout-cards .esl-item.is-active {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	background: var(--esl-hover);
}

.esl-layout-cards .esl-item.is-active {
	border-inline-start-color: var(--esl-item-accent, var(--esl-accent));
}

.esl-layout-cards .esl-empty {
	grid-column: 1 / -1;
}

.esl-layout-cards .esl-side-toggle.esl-side-toggle--float {
	top: auto;
	bottom: 14px;
	inset-inline-end: 14px;
}

@media (max-width: 1024px) {
	.jx-store-locator-wrapper.esl-layout-classic .esl-main,
	.jx-store-locator-wrapper.esl-layout-classic.jx-reverse .esl-main,
	.jx-store-locator-wrapper.esl-layout-split .esl-main,
	.jx-store-locator-wrapper.esl-layout-split.jx-reverse .esl-main {
		flex-direction: column;
	}

	.esl-layout-classic .jx-store-map,
	.esl-layout-classic .jx-store-sidebar,
	.esl-layout-split .jx-store-map,
	.esl-layout-split .jx-store-sidebar {
		width: 100% !important;
	}

	.esl-layout-classic .jx-store-map,
	.esl-layout-split .jx-store-map {
		height: min(52vh, 420px);
		min-height: 260px;
	}

	.esl-layout-classic .jx-store-sidebar,
	.esl-layout-split .jx-store-sidebar {
		height: auto;
		max-height: min(48vh, 420px);
		border-inline: 0;
		border-top: 1px solid var(--esl-border);
	}

	.esl-layout-overlay .jx-store-sidebar,
	.esl-layout-maponly .jx-store-sidebar {
		max-height: min(55%, calc(var(--esl-map-h) - 24px));
	}

	.esl-layout-cards .jx-store-map,
	.esl-layout-maponly .jx-store-map {
		height: min(48vh, 400px);
		min-height: 260px;
	}
}

@media (max-width: 640px) {
	.esl-layout-classic .jx-store-map,
	.esl-layout-split .jx-store-map,
	.esl-layout-overlay .jx-store-map,
	.esl-layout-cards .jx-store-map,
	.esl-layout-maponly .jx-store-map {
		height: 280px;
		min-height: 240px;
	}

	.esl-layout-classic .jx-store-sidebar,
	.esl-layout-split .jx-store-sidebar {
		max-height: 360px;
	}

	.esl-layout-overlay,
	.esl-layout-maponly {
		overflow: hidden;
	}

	.esl-layout-overlay .jx-store-sidebar,
	.esl-layout-maponly:not(.esl-sidebar-collapsed) .jx-store-sidebar {
		position: relative;
		top: 0;
		inset-inline: 0;
		width: 100%;
		max-height: 360px;
		border-radius: 0;
		box-shadow: none;
		border-top: 1px solid var(--esl-border);
	}

	.esl-layout-cards .esl-list {
		grid-template-columns: 1fr;
	}

	.esl-side-toggle__label {
		display: none;
	}

	.jx-store-locator-wrapper .jx-store-search,
	.jx-store-locator-wrapper .esl-search .jx-store-search,
	.jx-store-locator-wrapper input.jx-store-search[data-jx-search] {
		font-size: 16px !important;
	}
}

.jx-store-map .leaflet-container {
	width: 100%;
	height: 100%;
	font: inherit;
	z-index: 0;
	background: #e2e8f0;
}

.jx-store-map .leaflet-container img {
	max-width: none !important;
}

.jx-store-map .esl-divicon {
	background: none !important;
	border: none !important;
	overflow: visible !important;
	display: flex !important;
	align-items: flex-end;
	justify-content: center;
}

.jx-store-map .esl-divicon .esl-pin {
	flex-shrink: 0;
}

.jx-store-map .esl-leaflet-popup {
	margin-bottom: 16px;
}

.jx-store-map .esl-leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
	padding: 14px 16px !important;
}

.jx-store-map .esl-leaflet-popup .leaflet-popup-content {
	margin: 0 !important;
}

.jx-store-map .esl-leaflet-popup a.leaflet-popup-close-button {
	display: none !important;
}

.jx-store-map .esl-leaflet-popup .leaflet-popup-tip {
	box-shadow: none;
}

.jx-store-search-wrapper {
	padding: 0;
	border: 0;
	background: transparent;
}

.esl-search-panel {
	padding: 10px 12px 12px;
	border-bottom: 1px solid var(--esl-border);
	background: var(--esl-sidebar-bg);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.esl-search-panel__bar {
	display: grid;
	gap: 6px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.esl-search-panel__bar--radius {
	grid-template-columns: 40px minmax(0, 1fr) minmax(96px, 0.75fr) 40px 40px;
}

.esl-search-panel__bar--radius:has(.esl-search-panel__toggle-host:not(:empty)) {
	grid-template-columns: 40px minmax(0, 1fr) minmax(96px, 0.75fr) 40px 40px 40px;
}

.esl-search-panel__bar--radius:not(:has([data-jx-geolocate])) {
	grid-template-columns: minmax(0, 1fr) minmax(96px, 0.75fr) 40px 40px;
}

.esl-search-panel__bar--radius:not(:has([data-jx-geolocate])):has(.esl-search-panel__toggle-host:not(:empty)) {
	grid-template-columns: minmax(0, 1fr) minmax(96px, 0.75fr) 40px 40px 40px;
}

.esl-search-panel__bar--name {
	grid-template-columns: minmax(0, 1fr) 40px;
}

.esl-search-panel__bar--name:has(.esl-search-panel__toggle-host:not(:empty)) {
	grid-template-columns: minmax(0, 1fr) 40px 40px;
}

/* Screen-reader labels must not occupy a grid cell */
.esl-search-panel__bar > .esl-sr-only {
	position: absolute !important;
	grid-column: 1;
	grid-row: 1;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.esl-search-panel__input {
	width: 100%;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
	font: inherit;
	font-size: 0.95rem;
	box-sizing: border-box;
}

.esl-search-panel__radius {
	min-width: 110px;
	width: 100%;
	height: 40px;
	padding: 0 28px 0 10px;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
	font: inherit;
	font-size: 0.9rem;
}

.esl-search-panel__btn {
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--esl-ctrl-radius);
	background: var(--esl-accent);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.esl-search-panel__btn--icon {
	width: 40px;
	min-width: 40px;
	padding: 0;
	display: inline-grid;
	place-items: center;
}

.esl-search-panel__btn--icon svg {
	display: block;
}

.esl-search-panel__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.esl-search-panel__btn--geo {
	background: #fff;
	color: var(--esl-text);
	border: 1px solid var(--esl-border);
}

.esl-search-panel__btn--geo:hover,
.esl-search-panel__btn--geo:focus-visible {
	background: var(--esl-hover, #f1f5f9);
}

.esl-search-panel__btn--ghost {
	background: transparent;
	color: var(--esl-text);
	border: 1px solid var(--esl-border);
}

.esl-search-panel__btn--ghost:hover,
.esl-search-panel__btn--ghost:focus-visible {
	background: var(--esl-hover, #f1f5f9);
}

@media (max-width: 960px) {
	.jx-store-locator-wrapper .esl-search-panel__bar--radius {
		grid-template-columns: 40px minmax(0, 1fr) 40px 40px !important;
		grid-template-areas:
			"geo query go clear"
			"radius radius radius radius" !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius:has(.esl-search-panel__toggle-host:not(:empty)) {
		grid-template-columns: 40px minmax(0, 1fr) 40px 40px 40px !important;
		grid-template-areas:
			"geo query go clear toggle"
			"radius radius radius radius radius" !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius:not(:has([data-jx-geolocate])) {
		grid-template-columns: minmax(0, 1fr) 40px 40px !important;
		grid-template-areas:
			"query go clear"
			"radius radius radius" !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius:not(:has([data-jx-geolocate])):has(.esl-search-panel__toggle-host:not(:empty)) {
		grid-template-columns: minmax(0, 1fr) 40px 40px 40px !important;
		grid-template-areas:
			"query go clear toggle"
			"radius radius radius radius" !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > [data-jx-geolocate] {
		grid-area: geo !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > .esl-search-panel__input,
	.jx-store-locator-wrapper .esl-search-panel__bar--radius > input.esl-search-panel__input {
		grid-area: query !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > .esl-search-panel__radius,
	.jx-store-locator-wrapper .esl-search-panel__bar--radius > select.esl-search-panel__radius {
		grid-area: radius !important;
		grid-column: 1 / -1 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > [data-jx-radius-go] {
		grid-area: go !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > [data-jx-radius-clear] {
		grid-area: clear !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar--radius > .esl-search-panel__toggle-host {
		grid-area: toggle !important;
	}

	.jx-store-locator-wrapper .esl-search-panel__bar > .esl-sr-only {
		grid-area: query !important;
	}
}

@media (max-width: 640px) {
	.esl-search-panel {
		padding: 8px 10px 10px;
	}

	.jx-store-locator-wrapper input.esl-search-panel__input[type="text"],
	.jx-store-locator-wrapper input.esl-search-panel__input[type="search"],
	.jx-store-locator-wrapper .esl-search-panel input.esl-search-panel__input {
		font-size: 16px !important;
		line-height: 1.25 !important;
	}

	.jx-store-locator-wrapper select.esl-search-panel__radius,
	.jx-store-locator-wrapper .esl-search-panel select.esl-search-panel__radius {
		font-size: 16px !important;
		min-width: 0 !important;
	}

	.esl-iw {
		min-width: 0;
		max-width: min(300px, calc(100vw - 56px));
	}

	.esl-iw__actions:not(.esl-iw__actions--icons) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.esl-iw__btn {
		font-size: 10px;
		padding: 7px 4px;
	}
}

.esl-radius-panel__status,
.esl-search-panel [data-jx-radius-status] {
	margin: 0;
	padding: 7px 10px;
	border-radius: var(--esl-ctrl-radius);
	font-size: 0.8rem;
	line-height: 1.35;
	background: #f3f4f6;
	color: var(--esl-text);
}

.esl-search-panel [data-jx-radius-status].is-error,
.esl-radius-panel__status.is-error {
	background: #fef2f2;
	color: #991b1b;
}

/* Keep legacy class hooks for older markup / JS status nodes */
.esl-radius-panel {
	padding: 10px 12px 12px;
	border-bottom: 1px solid var(--esl-border);
	background: var(--esl-sidebar-bg);
}

.esl-radius-panel__label {
	display: none;
}

.esl-radius-panel__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: stretch;
}

.esl-radius-panel__input {
	flex: 1 1 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
	font: inherit;
}

.esl-radius-panel__select {
	flex: 1 1 auto;
	padding: 8px 10px;
	border: 1px solid var(--esl-border);
	border-radius: var(--esl-ctrl-radius);
	background: #fff;
	color: var(--esl-text);
	font: inherit;
}

.esl-radius-panel__btn {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--esl-ctrl-radius);
	background: var(--esl-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.esl-radius-panel__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.esl-radius-panel__btn--clear {
	background: transparent;
	color: var(--esl-text);
	border: 1px solid var(--esl-border);
	font-weight: 600;
}

.esl-radius-panel__btn--clear:hover,
.esl-radius-panel__btn--clear:focus-visible {
	background: var(--esl-hover, #f1f5f9);
}

.esl-item__dist {
	display: inline-block;
	margin-top: 4px;
	font-size: 0.82em;
	font-weight: 600;
	color: var(--esl-accent);
}

/* Shape themes */
.jx-store-locator-wrapper.esl-shape-rounded {
	--esl-ctrl-radius: 999px;
}

.jx-store-locator-wrapper.esl-shape-squared {
	--esl-ctrl-radius: 4px;
}

.jx-store-locator-wrapper.esl-shape-squared {
	border-radius: min(var(--esl-radius), 8px);
}

/*
 * Template isolation: Helix / template form styles often override inputs/selects.
 * Keep these last and use high specificity + !important.
 */
.jx-store-locator-wrapper input.esl-search-panel__input[type="text"],
.jx-store-locator-wrapper input.esl-search-panel__input[type="search"],
.jx-store-locator-wrapper .esl-search-panel input.esl-search-panel__input {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--esl-border) !important;
	border-radius: var(--esl-ctrl-radius) !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--esl-text) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 40px !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.jx-store-locator-wrapper input.esl-search-panel__input[type="text"]:focus,
.jx-store-locator-wrapper input.esl-search-panel__input[type="search"]:focus,
.jx-store-locator-wrapper .esl-search-panel input.esl-search-panel__input:focus {
	border-color: var(--esl-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--esl-accent) 18%, transparent) !important;
	outline: none !important;
}

.jx-store-locator-wrapper select.esl-search-panel__radius,
.jx-store-locator-wrapper .esl-search-panel select.esl-search-panel__radius {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 110px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	margin: 0 !important;
	padding: 0 32px 0 12px !important;
	border: 1px solid var(--esl-border) !important;
	border-radius: var(--esl-ctrl-radius) !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%2364748b' d='M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8H32c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 12px 12px !important;
	color: var(--esl-text) !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 40px !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
}

.jx-store-locator-wrapper select.esl-search-panel__radius:focus,
.jx-store-locator-wrapper .esl-search-panel select.esl-search-panel__radius:focus {
	border-color: var(--esl-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--esl-accent) 18%, transparent) !important;
	outline: none !important;
}

.jx-store-locator-wrapper .esl-search-panel__btn,
.jx-store-locator-wrapper button.esl-search-panel__btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	height: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	border-radius: var(--esl-ctrl-radius) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	line-height: 1 !important;
}

.jx-store-locator-wrapper .esl-search-panel__btn--icon {
	width: 40px !important;
	min-width: 40px !important;
	padding: 0 !important;
}

.jx-store-locator-wrapper .esl-search-panel__btn svg,
.jx-store-locator-wrapper .esl-side-toggle__icon svg {
	display: block !important;
	flex-shrink: 0;
}

.jx-store-locator-wrapper .esl-side-toggle,
.jx-store-locator-wrapper button.esl-side-toggle {
	appearance: none !important;
	-webkit-appearance: none !important;
	border-radius: var(--esl-ctrl-radius) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.jx-store-locator-wrapper .esl-chip,
.jx-store-locator-wrapper button.esl-chip {
	border-radius: var(--esl-ctrl-radius) !important;
}

@media (prefers-reduced-motion: reduce) {
	.esl-item {
		transition: none;
	}
}
