*,
::after,
::before {
	box-sizing: border-box;
}

.bmHidden {
	display: none;
}

.leaflet-control-bmSwitcher .bmContainer {
	height: auto;
	width: auto;
	display: flex;
}

.bmSwitcher-modal.backdrop {
	top: 0;
	z-index: 1000;
	width: 100%;
	height: 0;
	overflow: hidden;
	background-color: #3333;
	position: fixed;
	display: flex;
	transition: opacity 0.3s ease-out;
	opacity: 0;
	align-items: center;
	justify-content: center;
}

.bmSwitcher-modal.show {
	opacity: 1;
	height: 100vh;
}

.bmSwitcher-modal.hide {
	opacity: 0;
	height: 100vh;
}

.bmSwitcher-modal .bmModal {
	background-color: #fff;
	border-radius: 10px;
	width: calc(100% - 40px);
	min-height: 300px;
	max-height: calc((100vh - 80px));
	overflow: hidden;
	padding-bottom: 20px;
}

.bmSwitcher-modal .bmHeader {
	display: flex;
	padding: 20px;
	align-items: center;
	justify-content: space-between;
}

.bmSwitcher-modal .bmHeader h3 {
	padding: 0;
	margin: 0;
}

.bmSwitcher-modal .bmClose {
	cursor: pointer;
}

.bmSwitcher-modal .bmBody {
	padding: 0 0px;
}

.bmImage .active::before {
	color: white;
	content: "✔";
	width: 18px;
	height: 18px;
	background-color: #387b23;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 2px;
	right: 2px;
}
.bmSwitcher-modal .active::before {
	top: 5px;
	right: 5px;
}

.leaflet-control-bmSwitcher .bmImage {
	background-color: #fff;
	box-shadow: 2px 2px 10px #4442;
	margin: 5px;
	padding: 5px;
	border-radius: 5px;
}

.leaflet-control-bmSwitcher .bmImage div {
	background-size: cover;
	width: 70px;
	height: 70px;
	border-radius: 3px 3px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bmImage div .name {
	width: 100%;
	padding: 10px;
	height: auto;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 0;
	color: black;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
	padding: 1px;
}

.bmSwitcher-modal .bmContainer {
	padding: 0 10px;
	margin: 0;
	height: calc(100vh - 80px);
	overflow-x: hidden;
}

.bmSwitcher-modal .bmImage {
	background-size: cover;
	display: inline-block;
	width: 50%;
	aspect-ratio: 1/1;
	padding: 10px;
}

.bmSwitcher-modal .bmImage div {
	background-size: cover;
	height: 100% !important;
	border-radius: 3px 3px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bmSwitcher-modal .bmImage div .name {
	height: fit-content !important;
	padding: 10px 0 !important;
	font-weight: bold;
}

.bmContainer:hover {
	cursor: pointer;
}

.bmImage div .check {
	position: relative;
	content: "";
}
