/*!
 * Store Locator front-end styles.
 *
 * Every rule has the specificity of exactly one class (design D11): the selector itself is
 * wrapped in :where() and anchored with :is(.stlo-root, .stlo-root *). That beats a theme's
 * generic element rules (button, a, p, ol, h3, input) and ties with any theme rule that names a
 * plugin class; the stylesheet is printed before the theme's, so the theme wins the tie.
 * Colours come only from --stlo-* tokens; Settings > Appearance and locator
 * options write them as inline custom properties on .stlo-root.
 * Class names are documented in docs/theming.md.
 */
:where(.stlo-root):is(.stlo-root, .stlo-root *) {
	--stlo-color-primary: #1a73e8;
	--stlo-color-primary-contrast: #fff;
	--stlo-color-secondary: #202124;
	--stlo-color-secondary-contrast: #fff;
	--stlo-color-text: inherit;
	--stlo-color-muted: color-mix(in srgb, currentcolor 62%, transparent);
	--stlo-color-background: #fff;
	--stlo-color-field: #fff;
	--stlo-color-field-text: #222;
	--stlo-color-surface: color-mix(in srgb, var(--stlo-color-background) 94%, currentcolor 6%);
	--stlo-color-border: color-mix(in srgb, currentcolor 14%, transparent);
	--stlo-color-open: #1e7e34;
	--stlo-color-closed: #b3261e;
	--stlo-font-family: inherit;
	--stlo-radius: 6px;
	--stlo-gap: 16px;
	--stlo-shadow: 0 6px 24px rgba(10, 33, 55, 0.16);
	--stlo-height: 620px;
	--stlo-list-width: 380px;
	--stlo-marker-size: 34px;
	--stlo-marker-icon-size: 46px;

	/* Default pin gradient (top to tip), from the Pin colour, else the primary colour. Set both to
	 * one colour for a flat pin. */
	--stlo-marker-start: color-mix(in srgb, var(--stlo-color-pin, var(--stlo-color-primary)) 55%, white);
	--stlo-marker-end: color-mix(in srgb, var(--stlo-color-pin, var(--stlo-color-primary)) 78%, black);
	--stlo-color-user: #1a73e8;
	color: var(--stlo-color-text);
	font-family: var(--stlo-font-family);
}

/* Dark scheme: defaults for colours the settings screen does not expose. Inline tokens still win. */
:where(.stlo-scheme-dark):is(.stlo-root, .stlo-root *) {
	--stlo-color-background: #1c2128;
	--stlo-color-text: #e8e8e8;
	--stlo-color-field: #2a313a;
	--stlo-color-field-text: #f2f2f2;
	--stlo-color-open: #6fd18a;
	--stlo-color-closed: #ff8a80;
	--stlo-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

:where(.stlo-root *):is(.stlo-root, .stlo-root *),
:where(.stlo-root *):is(.stlo-root, .stlo-root *)::before,
:where(.stlo-root *):is(.stlo-root, .stlo-root *)::after {
	box-sizing: border-box;
}

:where(.stlo-visually-hidden):is(.stlo-root, .stlo-root *) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Header: search + filters on the secondary (brand) colour. */
:where(.stlo-locator__header):is(.stlo-root, .stlo-root *) {
	background: var(--stlo-color-secondary);
	color: var(--stlo-color-secondary-contrast);
	padding: 14px;
	border-radius: var(--stlo-radius) var(--stlo-radius) 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Compact header: the search takes its own row; the filter and distance dropdowns share the next. */
:where(.stlo-locator__header > *):is(.stlo-root, .stlo-root *) {
	flex: 1 1 auto;
	min-width: 0;
}

:where(.stlo-locator__header > .stlo-search):is(.stlo-root, .stlo-root *) {
	flex-basis: 100%;
}

:where(.stlo-search):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* [type] also beats a theme's `input[type="search"]` and its :focus state. */
:where(.stlo-search__input):is(.stlo-root, .stlo-root *)[type],
:where(.stlo-search__input):is(.stlo-root, .stlo-root *)[type]:focus {
	flex: 1 1 260px;
	min-height: 48px;
	padding: 0 52px 0 44px;
	border: 0;
	border-radius: var(--stlo-radius);
	font: inherit;
	font-size: 16px;
	color: var(--stlo-color-field-text);
	background: var(--stlo-color-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23807a7a' stroke-width='2'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") no-repeat 14px center;
}

:where(.stlo-search__input):is(.stlo-root, .stlo-root *)[type]:focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

:where(.stlo-button):is(.stlo-root, .stlo-root *) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid transparent;
	border-radius: var(--stlo-radius);
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	background: var(--stlo-color-primary);
	color: var(--stlo-color-primary-contrast);
	transition: filter 0.15s, background 0.15s;
}

:where(.stlo-button):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button):is(.stlo-root, .stlo-root *):focus {
	filter: brightness(1.06);
	background: var(--stlo-color-primary);
}

:where(.stlo-button):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *),
:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *):focus {
	background: transparent;
	border-color: currentcolor;
}

:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *),
:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *):focus {
	background: var(--stlo-color-secondary);
}

/* Buttons and links restate their look in their :hover/:focus states too, so a theme's generic
 * `button:hover` or `a:hover` rule (one class + one element) can't recolour them. */
:where(.stlo-button):is(.stlo-root, .stlo-root *),
:where(.stlo-button):is(.stlo-root, .stlo-root *):visited,
:where(.stlo-button):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button):is(.stlo-root, .stlo-root *):focus {
	color: var(--stlo-color-primary-contrast);
	text-decoration: none;
}

:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *),
:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *):visited,
:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button--secondary):is(.stlo-root, .stlo-root *):focus {
	color: var(--stlo-color-secondary-contrast);
}

:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *),
:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *):visited,
:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-button--ghost):is(.stlo-root, .stlo-root *):focus {
	color: inherit;
}

/* "Use my location": an icon button inside the right end of the search field (name in a hidden span, tooltip from title). */
:where(.stlo-search__locate):is(.stlo-root, .stlo-root *),
:where(.stlo-search__locate):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-search__locate):is(.stlo-root, .stlo-root *):focus {
	position: absolute;
	top: 2px;
	right: 2px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--stlo-radius);
	background: transparent;
	color: var(--stlo-color-primary);
	box-shadow: none;
	cursor: pointer;
}

:where(.stlo-search__locate):is(.stlo-root, .stlo-root *):hover {
	background: color-mix(in srgb, var(--stlo-color-primary) 16%, transparent);
}

:where(.stlo-search__locate svg):is(.stlo-root, .stlo-root *) {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

:where(.stlo-search__locate):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: -3px;
}

/* Filter dropdown (all / type / category) beside the distance dropdown, sharing the row. */
:where(.stlo-filters):is(.stlo-root, .stlo-root *) {
	display: flex;
}

:where(.stlo-locator__header > .stlo-filters):is(.stlo-root, .stlo-root *),
:where(.stlo-locator__header > .stlo-distance-filter):is(.stlo-root, .stlo-root *) {
	flex: 1 1 140px;
}

:where(.stlo-filters__select):is(.stlo-root, .stlo-root *),
:where(.stlo-filters__select):is(.stlo-root, .stlo-root *):focus {
	width: 100%;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--stlo-radius);
	background: var(--stlo-color-field);
	color: var(--stlo-color-field-text);
	font: inherit;
	font-size: 14px;
}

:where(.stlo-filters__select):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

:where(.stlo-distance-filter):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 14px;
}

:where(.stlo-distance-filter__select):is(.stlo-root, .stlo-root *),
:where(.stlo-distance-filter__select):is(.stlo-root, .stlo-root *):focus {
	width: 100%;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--stlo-radius);
	background: var(--stlo-color-field);
	color: var(--stlo-color-field-text);
	font: inherit;
	font-size: 14px;
}

:where(.stlo-distance-filter__select):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

/* Body: list + map. */
:where(.stlo-locator__body):is(.stlo-root, .stlo-root *) {
	display: grid;
	grid-template-columns: var(--stlo-list-width) 1fr;
	height: var(--stlo-height);
	border: 1px solid var(--stlo-color-border);
	border-top: 0;
	border-radius: 0 0 var(--stlo-radius) var(--stlo-radius);
	overflow: hidden;
	background: var(--stlo-color-background);
}

:where(.stlo-locator--list-right .stlo-locator__body):is(.stlo-root, .stlo-root *) {
	grid-template-columns: 1fr var(--stlo-list-width);
}

:where(.stlo-locator--list-right .stlo-locator__list):is(.stlo-root, .stlo-root *) {
	order: 2;
	border-right: 0;
	border-left: 1px solid var(--stlo-color-border);
}

:where(.stlo-locator--list-below .stlo-locator__body):is(.stlo-root, .stlo-root *) {
	grid-template-columns: 1fr;
	grid-template-rows: var(--stlo-height) auto;
	height: auto;
}

:where(.stlo-locator--list-below .stlo-locator__list):is(.stlo-root, .stlo-root *) {
	order: 2;
	border-right: 0;
	border-top: 1px solid var(--stlo-color-border);
	max-height: 480px;
}

:where(.stlo-locator--map-only .stlo-locator__body):is(.stlo-root, .stlo-root *) {
	grid-template-columns: 1fr;
}

:where(.stlo-locator--map-only .stlo-locator__list):is(.stlo-root, .stlo-root *) {
	display: none;
}

:where(.stlo-locator__list):is(.stlo-root, .stlo-root *) {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--stlo-color-border);
}

:where(.stlo-list__count):is(.stlo-root, .stlo-root *) {
	margin: 0;
	padding: 12px 18px;
	font-size: 14px;
	color: var(--stlo-color-muted);
	border-bottom: 1px solid var(--stlo-color-border);
}

:where(.stlo-list):is(.stlo-root, .stlo-root *) {
	list-style: none;
	margin: 0;
	padding: 12px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--stlo-color-surface);
}

/* Scrollbars in the locator's colours (thin, light on dark, dark on light), not the browser's default bar. */
:where(.stlo-list, .stlo-suggestions, .stlo-card-popup):is(.stlo-root, .stlo-root *) {
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--stlo-color-text) 30%, transparent) transparent;
}

:where(.stlo-list, .stlo-suggestions, .stlo-card-popup):is(.stlo-root, .stlo-root *)::-webkit-scrollbar {
	width: 8px;
	height: 8px;
	background: transparent;
}

:where(.stlo-list, .stlo-suggestions, .stlo-card-popup):is(.stlo-root, .stlo-root *)::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: color-mix(in srgb, var(--stlo-color-text) 30%, transparent);
}

:where(.stlo-list__item):is(.stlo-root, .stlo-root *) {
	margin: 0;
	border: 1px solid var(--stlo-color-border);
	border-left: 4px solid transparent;
	border-radius: var(--stlo-radius);
	background: var(--stlo-color-background);
	cursor: pointer;
	transition: background 0.15s, box-shadow 0.15s;
}

:where(.stlo-list__item):is(.stlo-root, .stlo-root *):hover {
	box-shadow: var(--stlo-shadow);
}

:where(.stlo-list__item--active):is(.stlo-root, .stlo-root *) {
	border-color: var(--stlo-color-primary);
	border-left-color: var(--stlo-color-primary);
}

:where(.stlo-list__empty):is(.stlo-root, .stlo-root *) {
	padding: 24px 18px;
	color: var(--stlo-color-muted);
}

:where(.stlo-entry):is(.stlo-root, .stlo-root *) {
	padding: 18px 20px;
}

:where(.stlo-entry__name):is(.stlo-root, .stlo-root *) {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
}

:where(.stlo-entry__select):is(.stlo-root, .stlo-root *),
:where(.stlo-entry__select):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-entry__select):is(.stlo-root, .stlo-root *):focus {
	all: unset;
	cursor: pointer;
	font: inherit;
}

:where(.stlo-entry__select):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 3px;
}

:where(.stlo-entry__address):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--stlo-color-border);
	font-size: 15px;
}

:where(.stlo-entry__icon):is(.stlo-root, .stlo-root *) {
	flex: none;
	margin-top: 2px;
	color: var(--stlo-color-muted);
}

:where(.stlo-entry__today):is(.stlo-root, .stlo-root *) {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
	margin: 0 0 12px;
	font-size: 16px;
}

:where(.stlo-entry__hours):is(.stlo-root, .stlo-root *) {
	font-weight: 700;
}

:where(.stlo-entry__actions):is(.stlo-root, .stlo-root *) {
	margin: 12px 0 0;
	text-align: right;
}

:where(.stlo-entry__details):is(.stlo-root, .stlo-root *),
:where(.stlo-entry__details):is(.stlo-root, .stlo-root *):visited {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: inherit;
	text-decoration: none;
}

:where(.stlo-entry__details):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-entry__details):is(.stlo-root, .stlo-root *):focus {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

:where(.stlo-entry__meta):is(.stlo-root, .stlo-root *) {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	align-items: center;
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--stlo-color-muted);
}

:where(.stlo-entry__meta > :not([hidden]) ~ :not([hidden])):is(.stlo-root, .stlo-root *)::before {
	content: "·";
	margin: 0 8px;
}

:where(.stlo-entry__distance):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-muted);
}

:where(.stlo-entry__category):is(.stlo-root, .stlo-root *) {
	color: inherit;
}

:where(.stlo-status):is(.stlo-root, .stlo-root *) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 14px;
	margin: 0;
}

:where(.stlo-status):is(.stlo-root, .stlo-root *)::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentcolor;
}

:where(.stlo-status[hidden]):is(.stlo-root, .stlo-root *) {
	display: none;
}

:where(.stlo-status--open):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-open);
}

:where(.stlo-status--closed):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-closed);
}

/* Map area (a placeholder stands in for Google Maps in this mockup). */
:where(.stlo-locator__map):is(.stlo-root, .stlo-root *) {
	position: relative;
	min-height: 0;
}

:where(.stlo-map):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

:where(.stlo-marker):is(.stlo-root, .stlo-root *) {
	position: absolute;
	width: var(--stlo-marker-size);
	height: var(--stlo-marker-size);
	transform: translate(-50%, -100%);
	border: 0;
	padding: 0;
	background: none;
	cursor: pointer;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
	transition: transform 0.15s;
}

:where(.stlo-marker svg):is(.stlo-root, .stlo-root *) {
	width: 100%;
	height: 100%;
	display: block;
}

:where(.stlo-marker .stlo-marker__pin):is(.stlo-root, .stlo-root *) {
	stroke: var(--stlo-color-secondary);
	stroke-width: 1.5;
}

:where(.stlo-marker__stop-start):is(.stlo-root, .stlo-root *) {
	stop-color: var(--stlo-marker-start);
}

:where(.stlo-marker__stop-end):is(.stlo-root, .stlo-root *) {
	stop-color: var(--stlo-marker-end);
}

:where(.stlo-marker .stlo-marker__dot):is(.stlo-root, .stlo-root *) {
	fill: var(--stlo-color-secondary);
}

:where(.stlo-marker .stlo-marker__icon):is(.stlo-root, .stlo-root *) {
	fill: var(--stlo-color-secondary);
}

:where(.stlo-marker--active):is(.stlo-root, .stlo-root *) {
	transform: translate(-50%, -100%) scale(1.3);
	z-index: 3;
}

:where(.stlo-marker):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-secondary);
	outline-offset: 2px;
	border-radius: 50%;
}

:where(.stlo-cluster):is(.stlo-root, .stlo-root *) {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 3px solid var(--stlo-color-secondary);
	background: linear-gradient(180deg, var(--stlo-marker-start), var(--stlo-marker-end));
	color: var(--stlo-color-primary-contrast);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--stlo-color-secondary) 25%, transparent);
}

/* Pins and clusters on the Google map: Google anchors them (bottom centre / centre), so no offset. */
:where(.stlo-marker--map):is(.stlo-root, .stlo-root *) {
	position: relative;
	transform: none;
	transform-origin: 50% 100%;
}

:where(.stlo-marker--map.stlo-marker--active):is(.stlo-root, .stlo-root *) {
	transform: scale(1.3);
}

/* Store name above a pin on hover. */
:where(.stlo-marker__label):is(.stlo-root, .stlo-root *) {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%);
	padding: 4px 9px;
	border-radius: var(--stlo-radius);
	background: var(--stlo-color-secondary);
	color: var(--stlo-color-secondary-contrast);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: var(--stlo-shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s;
}

:where(.stlo-marker:hover .stlo-marker__label):is(.stlo-root, .stlo-root *) {
	opacity: 1;
}

/* Stores closed now: dimmed pins. */
:where(.stlo-marker--closed):is(.stlo-root, .stlo-root *) {
	filter: grayscale(0.8) brightness(0.8) drop-shadow(0 2px 3px color-mix(in srgb, black 35%, transparent));
	opacity: 0.7;
}

:where(.stlo-marker--closed.stlo-marker--active):is(.stlo-root, .stlo-root *) {
	filter: drop-shadow(0 2px 3px color-mix(in srgb, black 35%, transparent));
	opacity: 1;
}

/* The first pins drop in; the selected pin pulses at its tip. */
:where(.stlo-marker--enter):is(.stlo-root, .stlo-root *) {
	animation: stlo-pin-drop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--stlo-enter-delay, 0ms) both;
}

:where(.stlo-marker--map.stlo-marker--active):is(.stlo-root, .stlo-root *)::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -3px;
	width: 22px;
	height: 8px;
	margin-left: -11px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--stlo-color-primary) 70%, transparent);
	animation: stlo-pin-pulse 1.6s ease-out infinite;
}

@keyframes stlo-pin-drop {

	from {
		transform: translateY(-28px);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

@keyframes stlo-pin-pulse {

	from {
		transform: scale(0.6);
		opacity: 0.9;
	}

	to {
		transform: scale(2.4);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	:where(.stlo-marker--enter):is(.stlo-root, .stlo-root *),
	:where(.stlo-marker--map.stlo-marker--active):is(.stlo-root, .stlo-root *)::before {
		animation: none;
	}
}

/* Pins with an icon (pin library) are bigger so the icon reads, and grow less when active. */
:where(.stlo-marker--icon):is(.stlo-root, .stlo-root *) {
	width: var(--stlo-marker-icon-size);
	height: var(--stlo-marker-icon-size);
}

:where(.stlo-marker--map.stlo-marker--icon.stlo-marker--active):is(.stlo-root, .stlo-root *) {
	transform: scale(1.15);
}

:where(.stlo-cluster--map):is(.stlo-root, .stlo-root *) {
	position: relative;
	transform: none;
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* Bigger groups are bigger circles; a badge shows the pins' icon. */
:where(.stlo-cluster--s):is(.stlo-root, .stlo-root *) {
	width: 42px;
	height: 42px;
	font-size: 15px;
}

:where(.stlo-cluster--m):is(.stlo-root, .stlo-root *) {
	width: 52px;
	height: 52px;
	font-size: 17px;
}

:where(.stlo-cluster--l):is(.stlo-root, .stlo-root *) {
	width: 62px;
	height: 62px;
	font-size: 19px;
}

:where(.stlo-cluster__icon):is(.stlo-root, .stlo-root *) {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: var(--stlo-color-secondary);
	fill: var(--stlo-color-primary);
	box-shadow: 0 1px 3px color-mix(in srgb, black 35%, transparent);
}

/* Locate button in the map corner and the visitor's position. */
:where(.stlo-map-locate):is(.stlo-root, .stlo-root *),
:where(.stlo-map-locate):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-map-locate):is(.stlo-root, .stlo-root *):focus {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 10px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: var(--stlo-color-field);
	color: var(--stlo-color-field-text);
	box-shadow: 0 1px 4px color-mix(in srgb, black 30%, transparent);
	cursor: pointer;
}

:where(.stlo-map-locate svg):is(.stlo-root, .stlo-root *) {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

/* Zoom buttons, in the same style as the locate button. */
:where(.stlo-map-zoom):is(.stlo-root, .stlo-root *) {
	display: grid;
	margin: 10px 10px 0;
	border-radius: 2px;
	background: var(--stlo-color-field);
	box-shadow: 0 1px 4px color-mix(in srgb, black 30%, transparent);
	overflow: hidden;
}

:where(.stlo-map-zoom__button):is(.stlo-root, .stlo-root *),
:where(.stlo-map-zoom__button):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-map-zoom__button):is(.stlo-root, .stlo-root *):focus {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--stlo-color-field-text);
	box-shadow: none;
	cursor: pointer;
}

:where(.stlo-map-zoom__button + .stlo-map-zoom__button):is(.stlo-root, .stlo-root *) {
	border-top: 1px solid var(--stlo-color-border);
}

:where(.stlo-map-zoom__button):is(.stlo-root, .stlo-root *):hover {
	background: color-mix(in srgb, var(--stlo-color-primary) 18%, transparent);
}

:where(.stlo-map-zoom__button):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: -3px;
}

:where(.stlo-map-zoom__button svg):is(.stlo-root, .stlo-root *) {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

:where(.stlo-map-locate):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

:where(.stlo-user-location):is(.stlo-root, .stlo-root *) {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--stlo-color-user);
	border: 3px solid white;
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--stlo-color-user) 25%, transparent);
	transform: translateY(50%);
}

/* Search suggestions (Google places), consent placeholder, notices and messages. */
:where(.stlo-search):is(.stlo-root, .stlo-root *) {
	position: relative;
}

:where(.stlo-suggestions):is(.stlo-root, .stlo-root *) {
	position: absolute;
	z-index: 10;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: var(--stlo-color-field);
	color: var(--stlo-color-field-text);
	border-radius: var(--stlo-radius);
	box-shadow: var(--stlo-shadow);
	max-height: 280px;
	overflow-y: auto;
}

:where(.stlo-suggestions__option):is(.stlo-root, .stlo-root *) {
	padding: 10px 16px;
	cursor: pointer;
	font-size: 15px;
}

:where(.stlo-suggestions__option):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-suggestions__option):is(.stlo-root, .stlo-root *)[aria-selected="true"] {
	background: color-mix(in srgb, var(--stlo-color-primary) 18%, transparent);
}

:where(.stlo-message):is(.stlo-root, .stlo-root *) {
	margin: 0;
	padding: 12px 18px;
	font-size: 14px;
	background: color-mix(in srgb, var(--stlo-color-primary) 14%, transparent);
	border-bottom: 1px solid var(--stlo-color-border);
}

:where(.stlo-message__action):is(.stlo-root, .stlo-root *) {
	margin: 8px 0 0;
	min-height: 36px;
	font-size: 14px;
}

:where(.stlo-notice):is(.stlo-root, .stlo-root *) {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--stlo-color-muted);
}

:where(.stlo-locator__map .stlo-notice):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: 1;
	background: var(--stlo-color-surface);
}

:where(.stlo-consent):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	background: var(--stlo-color-surface);
}

:where(.stlo-consent__text):is(.stlo-root, .stlo-root *) {
	margin: 0;
	max-width: 36ch;
	font-size: 15px;
}

/* Store detail pieces (store pages and pages with store detail blocks). */
:where(.stlo-store-piece):is(.stlo-root, .stlo-root *) {
	margin-block: 0 var(--stlo-gap);
}

/* The directions piece spans its column, with a route icon before the label. */
:where(.stlo-store-directions .stlo-button--directions):is(.stlo-root, .stlo-root *) {
	display: flex;
	width: 100%;
	min-height: 48px;
}

:where(.stlo-button__icon):is(.stlo-root, .stlo-root *) {
	width: 20px;
	height: 20px;
	flex: none;
	fill: currentcolor;
}

:where(.stlo-store-address__text):is(.stlo-root, .stlo-root *) {
	font-style: normal;
}

:where(.stlo-store-contact__phones):is(.stlo-root, .stlo-root *) {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

:where(.stlo-store-contact__label):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-muted);
}

:where(.stlo-store-contact__email):is(.stlo-root, .stlo-root *),
:where(.stlo-store-contact__website):is(.stlo-root, .stlo-root *) {
	margin: 0 0 4px;
}

:where(.stlo-store-hours__week):is(.stlo-root, .stlo-root *) {
	border-collapse: collapse;
	width: 100%;
	max-width: 420px;
}

:where(.stlo-store-hours__week th):is(.stlo-root, .stlo-root *),
:where(.stlo-store-hours__week td):is(.stlo-root, .stlo-root *) {
	padding: 6px 0;
	text-align: start;
	border-bottom: 1px solid var(--stlo-color-border);
	font-weight: 400;
}

:where(.stlo-store-hours__week td):is(.stlo-root, .stlo-root *) {
	text-align: end;
}

:where(.stlo-store-hours__today th):is(.stlo-root, .stlo-root *),
:where(.stlo-store-hours__today td):is(.stlo-root, .stlo-root *) {
	font-weight: 700;
}

:where(.stlo-store-hours__special-title):is(.stlo-root, .stlo-root *) {
	font-size: 1em;
	margin: 16px 0 6px;
}

:where(.stlo-store-hours__special):is(.stlo-root, .stlo-root *) {
	margin: 0;
	padding-inline-start: 1.2em;
}

:where(.stlo-store-extra__list):is(.stlo-root, .stlo-root *) {
	margin: 0;
	display: grid;
	gap: 6px;
}

:where(.stlo-store-extra__item):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 8px;
}

:where(.stlo-store-extra__item dt):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-muted);
}

:where(.stlo-store-extra__item dt:not(:empty)):is(.stlo-root, .stlo-root *)::after {
	content: ":";
}

:where(.stlo-store-extra__item dd):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-weight: 700;
}

:where(.stlo-minimap):is(.stlo-root, .stlo-root *) {
	position: relative;
	height: var(--stlo-height);
	border-radius: var(--stlo-radius);
	overflow: hidden;
	background: var(--stlo-color-surface);
}

:where(.stlo-minimap .stlo-map):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 0;
}

/* Card (popup on desktop, bottom sheet on mobile). */
:where(.stlo-card-popup):is(.stlo-root, .stlo-root *) {
	position: absolute;
	z-index: 5;
	width: min(340px, calc(100% - 24px));
	left: var(--stlo-card-x, 50%);
	top: var(--stlo-card-y, 50%);
	transform: translate(-50%, calc(-100% - var(--stlo-card-lift, 46px))) scale(var(--stlo-card-scale, 1));
	transform-origin: 50% calc(100% + var(--stlo-card-lift, 46px));
	opacity: var(--stlo-card-opacity, 1);
	transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* No map to anchor to (map unavailable or not loaded yet): centre the card in the map area. */
:where(.stlo-card-popup--centered):is(.stlo-root, .stlo-root *) {
	transform: translate(-50%, -50%);
	max-height: calc(100% - 24px);
	overflow-y: auto;
}

:where(.stlo-card):is(.stlo-root, .stlo-root *):focus {
	outline: none;
}

:where(.stlo-card):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

:where(.stlo-card):is(.stlo-root, .stlo-root *) {
	position: relative;
	background: var(--stlo-color-background);
	border-radius: var(--stlo-radius);
	box-shadow: var(--stlo-shadow);
	overflow: hidden;
}

/* The card fades and rises in while the map glides to its store. */
@keyframes stlo-card-in {

	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
}

:where(.stlo-card-popup .stlo-card):is(.stlo-root, .stlo-root *) {
	animation: stlo-card-in 0.28s ease-out;
}

@media (prefers-reduced-motion: reduce) {

	:where(.stlo-card-popup .stlo-card):is(.stlo-root, .stlo-root *) {
		animation: none;
	}
}

:where(.stlo-card__close):is(.stlo-root, .stlo-root *),
:where(.stlo-card__close):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-card__close):is(.stlo-root, .stlo-root *):focus {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--stlo-color-background);
	color: inherit;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	z-index: 1;
}

:where(.stlo-card__image):is(.stlo-root, .stlo-root *) {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--stlo-color-secondary), color-mix(in srgb, var(--stlo-color-secondary) 60%, var(--stlo-color-primary)));
	display: grid;
	place-items: center;
	color: color-mix(in srgb, var(--stlo-color-secondary-contrast) 75%, transparent);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Any photo shape fills the frame (cropped), so a tall photo never makes the card taller than the map. */
:where(.stlo-card__image img):is(.stlo-root, .stlo-root *) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A photo from Google (Settings › Photos from Google), with the credit Google asks for. */
:where(.stlo-card__image--google, .stlo-store-gallery__item--google):is(.stlo-root, .stlo-root *) {
	position: relative;
}

:where(.stlo-card__credit, .stlo-store-gallery__credit):is(.stlo-root, .stlo-root *) {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 14px 10px 5px;
	background: linear-gradient(transparent, color-mix(in srgb, black 65%, transparent));
	color: white;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

:where(.stlo-card__credit a, .stlo-store-gallery__credit a):is(.stlo-root, .stlo-root *),
:where(.stlo-card__credit a:hover, .stlo-store-gallery__credit a:hover):is(.stlo-root, .stlo-root *) {
	color: white;
	text-decoration: underline;
}

:where(.stlo-card__body):is(.stlo-root, .stlo-root *) {
	padding: 16px 18px 18px;
	display: grid;
	gap: 8px;
}

:where(.stlo-card__title):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	padding-right: 28px;
}

:where(.stlo-card__address):is(.stlo-root, .stlo-root *),
:where(.stlo-card__hours):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-size: 15px;
}

:where(.stlo-card__phones):is(.stlo-root, .stlo-root *) {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

:where(.stlo-card__phone-label):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-muted);
}

:where(.stlo-card__phones a):is(.stlo-root, .stlo-root *),
:where(.stlo-card__phones a):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-card__email a):is(.stlo-root, .stlo-root *),
:where(.stlo-card__email a):is(.stlo-root, .stlo-root *):hover {
	color: inherit;
	font-weight: 700;
	text-decoration-color: var(--stlo-color-primary);
	text-underline-offset: 3px;
}

:where(.stlo-card__email):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-size: 15px;
}

:where(.stlo-card__extra):is(.stlo-root, .stlo-root *) {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 0;
}

:where(.stlo-card__extra-item):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 4px;
	font-size: 13px;
	background: var(--stlo-color-surface);
	border-radius: 999px;
	padding: 3px 10px;
}

:where(.stlo-card__extra dt):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-color-muted);
}

:where(.stlo-card__extra dd):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-weight: 700;
}

:where(.stlo-card__actions):is(.stlo-root, .stlo-root *) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

:where(.stlo-card__actions .stlo-button):is(.stlo-root, .stlo-root *) {
	flex: 1 1 auto;
	min-height: 40px;
	font-size: 14px;
	padding: 0 12px;
}

/* "List over map": the map fills the locator; search, filters and list float over its left side. */
@media (min-width: 768px) {

	:where(.stlo-locator--list-overlay):is(.stlo-root, .stlo-root *) {
		position: relative;
		display: grid;
		grid-template-columns: var(--stlo-list-width) 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		height: var(--stlo-height);
		border-radius: var(--stlo-radius);
		overflow: hidden;
	}

	:where(.stlo-locator--list-overlay .stlo-locator__body):is(.stlo-root, .stlo-root *) {
		display: contents;
	}

	:where(.stlo-locator--list-overlay .stlo-locator__map):is(.stlo-root, .stlo-root *) {
		grid-area: 1 / 1 / 3 / 3;
		z-index: 0;
	}

	:where(.stlo-locator--list-overlay .stlo-locator__header):is(.stlo-root, .stlo-root *) {
		grid-area: 1 / 1;
		z-index: 1;
		margin: 16px 0 0 16px;
		box-shadow: var(--stlo-shadow);
	}

	:where(.stlo-locator--list-overlay .stlo-locator__list):is(.stlo-root, .stlo-root *) {
		grid-area: 2 / 1;
		z-index: 1;
		margin: 0 0 16px 16px;
		border-right: 0;
		border-radius: 0 0 var(--stlo-radius) var(--stlo-radius);
		background: var(--stlo-color-background);
		box-shadow: var(--stlo-shadow);
		overflow: hidden;
	}
}

/* Mobile: list/map toggle and bottom sheet. */
:where(.stlo-view-toggle):is(.stlo-root, .stlo-root *) {
	display: none;
}

@media (max-width: 767px) {

	:where(.stlo-view-toggle):is(.stlo-root, .stlo-root *) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		background: var(--stlo-color-secondary);
		padding: 0 18px 14px;
		gap: 0;
	}

	:where(.stlo-view-toggle button):is(.stlo-root, .stlo-root *),
	:where(.stlo-view-toggle button):is(.stlo-root, .stlo-root *):hover,
	:where(.stlo-view-toggle button):is(.stlo-root, .stlo-root *):focus {
		min-height: 40px;
		padding: 0 12px;
		border: 1px solid color-mix(in srgb, var(--stlo-color-secondary-contrast) 50%, transparent);
		background: transparent;
		color: var(--stlo-color-secondary-contrast);
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	:where(.stlo-view-toggle button:first-child):is(.stlo-root, .stlo-root *) {
		border-radius: var(--stlo-radius) 0 0 var(--stlo-radius);
	}

	:where(.stlo-view-toggle button:last-child):is(.stlo-root, .stlo-root *) {
		border-radius: 0 var(--stlo-radius) var(--stlo-radius) 0;
	}

	:where(.stlo-view-toggle button):is(.stlo-root, .stlo-root *)[aria-pressed="true"] {
		background: var(--stlo-color-primary);
		border-color: var(--stlo-color-primary);
		color: var(--stlo-color-primary-contrast);
	}

	:where(.stlo-locator__header):is(.stlo-root, .stlo-root *) {
		border-radius: var(--stlo-radius) var(--stlo-radius) 0 0;
		padding-bottom: 14px;
	}

	:where(.stlo-locator .stlo-locator__body):is(.stlo-root, .stlo-root *) {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		height: 70vh;
		min-height: 460px;
	}

	:where(.stlo-locator--view-list .stlo-locator__map):is(.stlo-root, .stlo-root *) {
		display: none;
	}

	:where(.stlo-locator--view-map .stlo-locator__list):is(.stlo-root, .stlo-root *) {
		display: none;
	}

	:where(.stlo-locator .stlo-locator__list):is(.stlo-root, .stlo-root *) {
		order: 0;
		border: 0;
		max-height: none;
	}

	:where(.stlo-card-popup):is(.stlo-root, .stlo-root *) {
		position: fixed;
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		width: 100%;
		transform: none;
		max-height: 75vh;
		overflow-y: auto;
	}

	:where(.stlo-card-popup .stlo-card):is(.stlo-root, .stlo-root *) {
		border-radius: 16px 16px 0 0;
	}

	:where(.stlo-card-popup .stlo-card):is(.stlo-root, .stlo-root *)::before {
		content: "";
		display: block;
		width: 44px;
		height: 5px;
		border-radius: 3px;
		background: var(--stlo-color-border);
		margin: 8px auto 0;
	}
}


/* Classic-theme store page (templates/single-store.php). Block themes lay out the template with blocks. */

/* Fill the theme's content row even when it is a flex container (e.g. GeneratePress), instead of shrinking to the content. */
:where(.stlo-store-page):is(.stlo-store-page, .stlo-store-page *) {
	flex: 1 1 100%;
	min-width: 0;
}

:where(.stlo-store-page__article):is(.stlo-store-page, .stlo-store-page *) {
	padding: 0 clamp(16px, 4vw, 40px) 40px;
}

/* Two columns: the photo with the description under it on the left, the map and the details on
 * the right (one column on phones). */
:where(.stlo-store-page__columns):is(.stlo-store-page, .stlo-store-page *) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 32px;
}

:where(.stlo-store-page__image):is(.stlo-store-page, .stlo-store-page *) {
	margin: 0 0 20px;
}

/* The description sits on a raised panel under the photo, apart from the rest of the page. */
:where(.stlo-store-page__description:not(:empty)):is(.stlo-store-page, .stlo-store-page *) {
	margin-bottom: 24px;
	padding: 20px 24px;
	border-radius: var(--stlo-radius, 6px);
	background: var(--stlo-color-background, white);
	box-shadow: var(--stlo-shadow, 0 6px 24px rgba(10, 33, 55, 0.16));
}

/* Projects: the description sits under the map and the area. */
:where(.stlo-store-page__side > .stlo-store-page__description:not(:empty)):is(.stlo-store-page, .stlo-store-page *) {
	margin-top: 24px;
}

:where(.stlo-store-page__description > :first-child):is(.stlo-store-page, .stlo-store-page *) {
	margin-top: 0;
}

:where(.stlo-store-page__description > :last-child):is(.stlo-store-page, .stlo-store-page *) {
	margin-bottom: 0;
}

:where(.stlo-store-page__heading):is(.stlo-store-page, .stlo-store-page *) {
	margin: 24px 0 12px;
	font-size: 1.375em;
	line-height: 1.3;
}

:where(.stlo-store-page__main > .stlo-store-page__heading:first-child):is(.stlo-store-page, .stlo-store-page *) {
	margin-top: 0;
}

:where(.stlo-store-page__image img):is(.stlo-store-page, .stlo-store-page *) {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	border-radius: var(--stlo-radius, 0);
}

:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *),
:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *):visited,
:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *):hover,
:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *):focus {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin-bottom: 8px;
	padding: 0 14px 0 10px;
	border: 1px solid var(--stlo-color-border);
	border-radius: 999px;
	color: var(--stlo-color-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}

:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *)::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 7.4 14 6l-6 6 6 6 1.4-1.4-4.6-4.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *):hover {
	border-color: var(--stlo-color-primary);
	background: color-mix(in srgb, var(--stlo-color-primary) 12%, transparent);
}

:where(.stlo-store-back__link):is(.stlo-root, .stlo-root *):focus-visible {
	outline: 3px solid var(--stlo-color-primary);
	outline-offset: 2px;
}

@media (max-width: 767px) {

	:where(.stlo-store-page__columns):is(.stlo-store-page, .stlo-store-page *) {
		grid-template-columns: 1fr;
	}
}

/* Travel time on the card (route preview). */
:where(.stlo-card__route):is(.stlo-root, .stlo-root *) {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-weight: 700;
}

:where(.stlo-card__route-icon):is(.stlo-root, .stlo-root *) {
	width: 20px;
	height: 20px;
	flex: none;
	fill: var(--stlo-color-primary);
}

/* Projects: "Project" badge, more photos on the card, the photo gallery on the page. */
:where(.stlo-card__type):is(.stlo-root, .stlo-root *) {
	display: inline-block;
	justify-self: start;
	align-self: start;
	width: fit-content;
	margin: 0 0 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--stlo-color-primary);
	color: var(--stlo-color-primary-contrast);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

:where(.stlo-entry__type):is(.stlo-root, .stlo-root *) {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--stlo-color-primary);
	color: var(--stlo-color-primary-contrast);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

:where(.stlo-card__gallery):is(.stlo-root, .stlo-root *) {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin: 4px 0 0;
	padding: 0 4px;
	list-style: none;
}

:where(.stlo-card__thumb):is(.stlo-root, .stlo-root *) {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 4px;
}

:where(.stlo-card__thumb img):is(.stlo-root, .stlo-root *) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:where(.stlo-card__thumb-more):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, black 55%, transparent);
	color: white;
	font-weight: 700;
}

:where(.stlo-store-gallery__list):is(.stlo-root, .stlo-root *) {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.stlo-store-gallery__item:first-child):is(.stlo-root, .stlo-root *) {
	grid-column: 1 / -1;
}

:where(.stlo-store-gallery__link):is(.stlo-root, .stlo-root *) {
	display: block;
	overflow: hidden;
	border-radius: var(--stlo-radius);
}

:where(.stlo-store-gallery__link img):is(.stlo-root, .stlo-root *) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.2s;
}

:where(.stlo-store-gallery__link:hover img):is(.stlo-root, .stlo-root *) {
	transform: scale(1.03);
}

/* Waits hidden until a photo from Google has loaded (a store without photos of its own). */
:where(.stlo-store-gallery__list[hidden]):is(.stlo-root, .stlo-root *) {
	display: none;
}

:where(.stlo-store-gallery__item--google):is(.stlo-root, .stlo-root *) {
	overflow: hidden;
	border-radius: var(--stlo-radius);
}

/* A gallery photo opens in the photo viewer (assets/src/frontend/lightbox.js). */
:where([data-stlo-lightbox] .stlo-store-gallery__link):is(.stlo-root, .stlo-root *) {
	cursor: zoom-in;
}

/* Photo viewer: full screen over the page, photo fitted whole, zoom up to 4x. Always dark, like
 * a photo viewer should be; its own tokens can be overridden on .stlo-lightbox. */
:where(.stlo-lightbox):is(.stlo-root, .stlo-root *) {
	--stlo-lightbox-background: #0b0f15;
	--stlo-lightbox-text: #fff;
	--stlo-lightbox-muted: rgba(255, 255, 255, 0.85);
	--stlo-lightbox-control: rgba(255, 255, 255, 0.12);
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--stlo-lightbox-background);
	color: var(--stlo-lightbox-text);
}

:where(.stlo-lightbox):is(.stlo-root, .stlo-root *)::backdrop {
	background: var(--stlo-lightbox-background);
}

:where(.stlo-lightbox__stage):is(.stlo-root, .stlo-root *) {
	position: absolute;
	inset: 64px 0 48px;
	overflow: hidden;
	touch-action: none;
	cursor: zoom-in;
}

:where(.stlo-lightbox--zoomed .stlo-lightbox__stage):is(.stlo-root, .stlo-root *) {
	cursor: grab;
}

:where(.stlo-lightbox--zoomed .stlo-lightbox__stage:active):is(.stlo-root, .stlo-root *) {
	cursor: grabbing;
}

:where(.stlo-lightbox__image):is(.stlo-root, .stlo-root *) {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transform-origin: center;
	transition: transform 0.2s ease-out;
	user-select: none;
	-webkit-user-drag: none;
}

/* Following a drag, the wheel or two fingers: no easing, or the photo lags behind. */
:where(.stlo-lightbox__image--follow):is(.stlo-root, .stlo-root *) {
	transition: none;
}

:where(.stlo-lightbox__bar):is(.stlo-root, .stlo-root *) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 64px;
	padding: 0 12px 0 20px;
}

:where(.stlo-lightbox__counter):is(.stlo-root, .stlo-root *) {
	margin: 0;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: var(--stlo-lightbox-muted);
}

:where(.stlo-lightbox__tools):is(.stlo-root, .stlo-root *) {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

:where(.stlo-lightbox__button):is(.stlo-root, .stlo-root *) {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--stlo-lightbox-control);
	color: var(--stlo-lightbox-text);
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, opacity 0.15s;
}

:where(.stlo-lightbox__button:hover, .stlo-lightbox__button:focus-visible):is(.stlo-root, .stlo-root *) {
	background: var(--stlo-color-primary);
	color: var(--stlo-color-primary-contrast);
}

:where(.stlo-lightbox__button:focus-visible):is(.stlo-root, .stlo-root *) {
	outline: 2px solid var(--stlo-lightbox-text);
	outline-offset: 2px;
}

:where(.stlo-lightbox__button:disabled):is(.stlo-root, .stlo-root *) {
	opacity: 0.35;
	background: var(--stlo-lightbox-control);
	color: var(--stlo-lightbox-text);
	cursor: default;
}

:where(.stlo-lightbox__button[hidden], .stlo-lightbox__credit[hidden]):is(.stlo-root, .stlo-root *) {
	display: none;
}

:where(.stlo-lightbox__previous, .stlo-lightbox__next):is(.stlo-root, .stlo-root *) {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	transform: translateY(-50%);
}

:where(.stlo-lightbox__previous):is(.stlo-root, .stlo-root *) {
	left: 16px;
}

:where(.stlo-lightbox__next):is(.stlo-root, .stlo-root *) {
	right: 16px;
}

:where(.stlo-lightbox__credit):is(.stlo-root, .stlo-root *) {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 14px 16px;
	font-size: 13px;
	text-align: center;
	color: var(--stlo-lightbox-muted);
}

:where(.stlo-lightbox__credit a, .stlo-lightbox__credit a:hover):is(.stlo-root, .stlo-root *) {
	color: var(--stlo-lightbox-text);
	text-decoration: underline;
}

@media (max-width: 600px) {

	:where(.stlo-lightbox__stage):is(.stlo-root, .stlo-root *) {
		inset: 56px 0 40px;
	}

	:where(.stlo-lightbox__bar):is(.stlo-root, .stlo-root *) {
		height: 56px;
		padding: 0 8px 0 14px;
	}

	:where(.stlo-lightbox__previous, .stlo-lightbox__next):is(.stlo-root, .stlo-root *) {
		top: auto;
		bottom: 6px;
		width: 44px;
		height: 44px;
		transform: none;
	}

	:where(.stlo-lightbox__previous):is(.stlo-root, .stlo-root *) {
		left: 8px;
	}

	:where(.stlo-lightbox__next):is(.stlo-root, .stlo-root *) {
		right: 8px;
	}

	:where(.stlo-lightbox__credit):is(.stlo-root, .stlo-root *) {
		padding: 12px 60px;
	}
}

@media (prefers-reduced-motion: reduce) {

	:where(.stlo-lightbox__image):is(.stlo-root, .stlo-root *) {
		transition: none;
	}
}

