.sm-stockists-wrapper,
.sm-stockists-wrapper * {
	font-family: "Archivo", sans-serif;
	font-weight: 200;
}

.sm-stockists-wrapper {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #000;
}

.stockists-map-container {
	width: 100%;
	height: var(--sm-map-height, 65vh);
	min-height: 320px;
	background: #000;
}

.leaflet-tile-pane {
	mix-blend-mode: plus-lighter;
	filter: brightness(5) contrast(2);
}

.stockists-map-container .sm-contours-pane {
	filter: grayscale(1) invert(1) saturate(0) contrast(7) brightness(2);
	mix-blend-mode: screen;
	opacity: 1;
	pointer-events: none;
}

.stockists-map-container .leaflet-control-zoom {
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.stockists-map-container.sm-controls-visible .leaflet-control-zoom {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.stockists-map-container .leaflet-control-zoom a {
	background: #000;
	color: #fff;
	border-color: #fff;
	font-weight: 200;
	border-radius: 0;
}

.stockists-map-container .leaflet-control-zoom a:hover,
.stockists-map-container .leaflet-control-zoom a:focus {
	background: #fff;
	color: #000;
}

.stockists-map-container .leaflet-control-zoom-in,
.stockists-map-container .leaflet-control-zoom-out {
	text-indent: 0;
	font-size: 18px;
	line-height: 28px;
	text-align: center;
}

.stockists-map-container .leaflet-bar,
.stockists-map-container .leaflet-bar a,
.stockists-map-container .leaflet-bar a:first-child,
.stockists-map-container .leaflet-bar a:last-child {
	border-radius: 0;
}

.stockists-map-container .leaflet-control-zoom-in span,
.stockists-map-container .leaflet-control-zoom-out span {
	color: #fff;
}

.stockists-map-container .leaflet-control-zoom a:hover span,
.stockists-map-container .leaflet-control-zoom a:focus span {
	color: #000;
}

.stockists-map-container .leaflet-control-attribution {
	background: #000;
	color: #fff;
	border-radius: 0;
}

.stockists-map-container .leaflet-control-attribution a {
	color: #fff;
}

.sm-custom-div-icon {
	background: transparent;
	border: 0;
}

.sm-marker {
	position: relative;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sm-marker-pulse {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	animation: sm-pulse 1.8s ease-out infinite;
	pointer-events: none;
}

.sm-marker-core {
	position: relative;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	overflow: hidden;
	border: 2px solid #fff;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 200;
	transition: transform 0.2s ease;
}

.sm-marker-core img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.leaflet-marker-icon:hover .sm-marker-core,
.leaflet-marker-icon:focus .sm-marker-core,
.leaflet-marker-icon.is-active .sm-marker-core {
	transform: scale(1.08);
}

.leaflet-marker-icon.is-active .sm-marker-pulse {
	background: rgba(255, 255, 255, 0.45);
	animation-duration: 1.2s;
}

.stockists-tabs {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 700;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: min(360px, calc(100% - 32px));
}

.sm-stockist-tab {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.22);
	background: white !important;
	color: #000;
	backdrop-filter: blur(4px);
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease;
	border-radius: 0;
}

.sm-stockist-tab-head {
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 10px;
	align-items: center;
}

.sm-stockist-tab-meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sm-stockist-tab:hover,
.sm-stockist-tab:focus {
	border-color: #000;
}

.sm-stockist-tab.is-active {
	border-color: #000;
}

.sm-stockist-tab-logo {
	width: 34px;
	height: 34px;
	border-radius: 0;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 200;
}

.sm-stockist-tab-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.sm-stockist-tab-name {
	font-size: 14px;
	font-weight: 200;
	line-height: 1.25;
	color: #000 !important;
}

.sm-stockist-tab-city {
	font-size: 10px;
	font-weight: 100;
	line-height: 1.2;
	opacity: 0.8;
	color: #000 !important;
}

.sm-stockist-tab:hover .sm-stockist-tab-name,
.sm-stockist-tab:focus .sm-stockist-tab-name,
.sm-stockist-tab.is-active .sm-stockist-tab-name,
.sm-stockist-tab:hover .sm-stockist-tab-city,
.sm-stockist-tab:focus .sm-stockist-tab-city,
.sm-stockist-tab.is-active .sm-stockist-tab-city {
	color: #000 !important;
}

.sm-stockist-tab-details {
	margin-top: 2px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	animation: sm-tab-open 250ms ease forwards;
}

.sm-stockist-tab-details a {
	display: inline-flex;
	align-items: center;
	padding: 5px 15px;
	background: #000;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 200;
	border-radius: 0;
}

.sm-stockist-tab-details a .sm-stockist-link-text {
	position: relative;
	display: inline-block;
}

.sm-stockist-tab-details a .sm-stockist-link-text::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 1px;
	width: 0;
	height: 1px;
	background: #fff;
	transition: width 350ms ease;
	z-index: 1;
}

.sm-stockist-tab-details a:hover,
.sm-stockist-tab-details a:focus {
	background: #222;
	color: #fff;
}

.sm-stockist-tab-details a:hover .sm-stockist-link-text::before,
.sm-stockist-tab-details a:focus .sm-stockist-link-text::before {
	width: 100%;
}

@keyframes sm-pulse {
	0% {
		transform: translate(-50%, -50%) scale(0.72);
		opacity: 0.88;
	}
	70% {
		transform: translate(-50%, -50%) scale(1.45);
		opacity: 0;
	}
	100% {
		transform: translate(-50%, -50%) scale(1.45);
		opacity: 0;
	}
}

@keyframes sm-tab-open {
	0% {
		max-height: 0;
		opacity: 0;
		transform: translateY(-2px);
	}
	100% {
		max-height: 120px;
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.stockists-tabs {
		top: auto;
		bottom: 14px;
		right: 12px;
		left: 12px;
		max-width: none;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.sm-stockist-tab {
		min-width: 240px;
	}
}
