.leaflet-control-layers {
	background: none !important;
}

.leaflet-touch .leaflet-control-layers-toggle {
	background-color: var(--background-color1);
	background-image: var(--ls-control-url);
    background-size: 18px 18px;
	background-repeat: no-repeat;
}

.leaflet-control-layers-expanded {
    /* padding: 2px; */
	background-color: transparent !important;
	display: flex !important;
	align-items: flex-end;
    flex-direction: row;
	margin: 0 !important;
	gap: 5px;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: flex !important;
	max-height: 100% !important;
}
.leaflet-control-layers.leaflet-control {
	max-height: 70%;
	width: fit-content !important;
}
.leaflet-control-layers.leaflet-control-layers-expanded.leaflet-control {
	max-height: 70%;
	width: fit-content;
}

.leaflet-control-layers label {
	font-size: var(--font-size-small) !important;
}

.leaflet-control-layers-list {
    color: var(--font-color1);
	width: auto;
	text-align: left;
	overflow-y: auto;
	overflow-x: hidden;
	height: auto;
}

.leaflet-control-layers {
	transition: all .6s;
}

div[id^="leaflet-control-accordion-layers"] > label {
	position: relative;
    font-weight: bolder;
	height: auto;
	background-color: var(--background-colo1);
    box-sizing: content-box;
    cursor: pointer;
    width: auto;
    margin: 0;
}
div[id^="leaflet-control-accordion-layers"] > label:hover {
	color: var(--font-color1);
	font-weight: bold;
}
.leaflet-control-layers-list input.menu{
	display: none;
}
.leaflet-control-layers-list article{
	background-color: var(--background-color1);
	color: var(--font-color1);
	padding-left: 10px;
	margin-top: -1px;
	overflow: hidden;
	height: 0px;
	position: relative;
	z-index: 10;
	-webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
	-moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
	-o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
	-ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
	transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
}

.leaflet-control-layers-list input.menu:checked ~ article{
	-webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
	-moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
	-o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
	-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
	transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
}

.leaflet-control-layers-list input.menu:checked ~ article.ac-large{
	height: auto;
	max-height : 100%;
	padding: 8px 0;
	overflow-y: auto;	
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.leaflet-control-layers-list article label {
    display: inline;
    cursor: pointer;
}

.leaflet-control-layers-list article label:hover {
    color: var(--font-color1);
	font-weight: bold;
}

.leaflet-control-layers-list .group-toggle-container {
    text-align: right;
    margin-right: 3px;
    line-height: 0px;
    display: none;
    height: 100px;
}

.leaflet-control-layers-list input.menu:checked ~ .group-toggle-container {
    display: block;
	line-height: 1em;
}

.menu-item-radio{
	padding-left: 10px;
	display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.menu-item-checkbox{
	font-family: 'Ubuntu-Regular', Arial, sans-serif;
	padding-left: 10px;
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.menu-item-checkbox > div, .menu-item-radio > div {
	display: flex !important;
	flex-direction: row;
    align-items: center;
	gap: 5px;
	height: 100%;
    width: 100%;
}
.menu-item-checkbox .layer-icon img, .menu-item-radio .layer-icon img {
	height: var(--icon-size-large) !important;
	width: var(--icon-size-large) !important;
	border: var(--border-primary) !important;
	border-radius: var(--border-radius) !important;
}
.menu-item-checkbox .layer-download-button, .menu-item-radio .layer-download-button,
.menu-item-checkbox .layer-download-button img, .menu-item-radio .layer-download-button img {
	height: var(--icon-size-large) !important;
	width: var(--icon-size-large) !important;
	border: var(--border-primary) !important;
	border-radius: var(--border-radius) !important;

}

.bt_delete{
    position: relative;
	float: right;
	background-image: url(images/delete.png);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 0px 0px;
    border: none;
    cursor: pointer;
    height: 16px;
    width: 16px;
    vertical-align: middle;
}

.leaflet-control-layers-list form, .leaflet-control-layers-list form > div {
	display: flex;
	flex-direction: column;
    gap: 5px;
}

.leaflet-control-layers-list form > div > div {
	display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    border-radius: var(--border-radius);
	padding: 5px;
	background-color: var(--background-color1);
	padding-right: 20px
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: none !important;
    background-clip: padding-box;
}

.leaflet-control-layers-selector {
	top: 0px !important;
	display: none;
}

/* If web browser does not support display:flex and gap properties */
@supports not selector(:where(a)) {
    .leaflet-control-layers-list input.menu:checked ~ article.ac-large > * {
        margin-right: var(--gap)
    }
	.menu-item-radio > *, .menu-item-checkbox > * {
        margin-right: var(--gap)
	}
	.leaflet-control-layers-list form > * {
        margin-bottom: var(--gap)
    }
}

.map-layer-hidden, .map-layer-hidden * {
	opacity: 0.7
}