﻿.swm-location-dropdown {
	display: none;
}

.swm-location-has-js .swm-location-dropdown {
	display: block;
}

.swm-location-widget {
	--swm-location-accent: #12a66a;
	--swm-location-accent-dark: #0d8c59;
	--swm-location-border: #d9dce3;
	--swm-location-surface: #ffffff;
	--swm-location-text: #1f2937;
	--swm-location-muted: #6b7280;
	--swm-location-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
	margin: 0 0 24px;
	position: relative;
	width: 100%;
}

.swm-location-widget h4 {
	color: var(--swm-location-text);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
}

.swm-location-filter-form {
	margin: 0;
}

.swm-location-dropdown {
	position: relative;
}

.swm-location-dropdown__toggle {
	align-items: center;
	background: var(--swm-location-accent);
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-size: 16px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	min-height: 46px;
	padding: 10px 14px;
	text-align: left;
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.swm-location-dropdown__toggle:hover,
.swm-location-dropdown__toggle:focus {
	background: var(--swm-location-accent-dark);
	box-shadow: 0 0 0 3px rgba(18, 166, 106, 0.18);
	color: #ffffff;
	outline: none;
}

.swm-location-dropdown__toggle-label {
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.swm-location-dropdown__toggle-icon {
	display: inline-flex;
	flex: 0 0 auto;
	height: 18px;
	justify-content: center;
	transition: transform 0.18s ease;
	width: 18px;
}

.swm-location-dropdown__toggle-icon svg {
	height: 100%;
	width: 100%;
}

.swm-location-dropdown.is-open .swm-location-dropdown__toggle-icon {
	transform: rotate(180deg);
}

.swm-location-dropdown__menu {
	background: var(--swm-location-surface);
	border: 1px solid var(--swm-location-border);
	border-radius: 4px;
	box-shadow: var(--swm-location-shadow);
	left: 0;
	margin-top: 8px;
	overflow: hidden;
	position: absolute;
	top: 100%;
	width: 100%;
	z-index: 9999;
}

.swm-location-dropdown__search-wrap {
	align-items: center;
	background: #ffffff;
	border-bottom: 1px solid var(--swm-location-border);
	display: flex;
	gap: 10px;
	padding: 12px 14px;
}

.swm-location-dropdown__search-icon {
	color: #b2b8c3;
	display: inline-flex;
	flex: 0 0 auto;
	height: 20px;
	width: 20px;
}

.swm-location-dropdown__search-icon svg {
	height: 100%;
	width: 100%;
}

.swm-location-dropdown__search {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--swm-location-text);
	font-size: 16px;
	line-height: 1.3;
	margin: 0;
	min-height: 24px;
	padding: 0;
	width: 100%;
}

.swm-location-dropdown__search:focus {
	outline: none;
}

.swm-location-dropdown__search::placeholder {
	color: var(--swm-location-muted);
}

.swm-location-dropdown__list {
	max-height: 280px;
	overflow-y: auto;
	padding: 6px 0;
}

.swm-location-dropdown__group + .swm-location-dropdown__group {
	border-top: 1px solid #eef1f5;
	margin-top: 6px;
	padding-top: 6px;
}

.swm-location-dropdown__option {
	background: transparent;
	border: 0;
	color: var(--swm-location-text);
	cursor: pointer;
	display: block;
	font-size: 16px;
	line-height: 1.35;
	padding: 10px 16px;
	text-align: left;
	transition: background-color 0.16s ease, color 0.16s ease;
	width: 100%;
}

.swm-location-dropdown__option:hover,
.swm-location-dropdown__option:focus {
	background: #f1f3f5;
	color: var(--swm-location-text);
	outline: none;
}

.swm-location-dropdown__option.is-selected {
	background: #edf8f2;
	color: var(--swm-location-accent-dark);
	font-weight: 600;
}

.swm-location-dropdown__option.is-level-0 {
	font-weight: 700;
}

.swm-location-dropdown__option.is-level-1 {
	padding-left: 34px;
}

.swm-location-dropdown__option.is-level-2 {
	padding-left: 54px;
}

.swm-location-dropdown__option.is-level-1 .swm-location-dropdown__option-text::before,
.swm-location-dropdown__option.is-level-2 .swm-location-dropdown__option-text::before {
	color: #8a93a2;
	content: "-";
	display: inline-block;
	margin-right: 8px;
}

.swm-location-dropdown__empty {
	color: var(--swm-location-muted);
	font-size: 15px;
	padding: 14px 16px 16px;
}

.swm-location-dropdown__fallback select {
	width: 100%;
}

@media (max-width: 767px) {
	.swm-location-widget {
		max-width: none;
		width: 100%;
	}

	.swm-location-dropdown__toggle {
		font-size: 15px;
		min-height: 42px;
	}

	.swm-location-dropdown__menu {
		max-width: 100%;
	}

	.swm-location-dropdown__list {
		max-height: 240px;
	}
}


