.leaflet-control-wms-legend
{
    display: block;
	border: 2px solid rgba(0,0,0,0.2);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    cursor: auto;
    background-color: #FFFFFF;
	margin-right: 12px;
	background-clip: padding-box;
	cursor: pointer;
}

.leaflet-control-wms-legend-collapsed:hover{
    background-color: #F4F4F4;
}

.leaflet-control-wms-legend-expanded {
	padding-left: 8px;
	padding-right: 1px;
}

#hide-control-wms-legend {
	cursor: pointer;
	padding-top: 8px;
	padding-right: 8px;
}

.leaflet-control-wms-legend-cathegories {
	margin-bottom: 0.3em;
	padding-right: 7px;
	overflow-y: auto;
	/*max-height: 89vh;*/
}

#legend-title {
	font-size: 1.2em;
	margin-bottom: 0px;
	margin-top: 0.5em;
}

/* dočasně - pokusy*/
.leaflet-control-wms-legend-cathegories h3 {
	margin-left: 0.1em;
	margin-bottom: 0.2em;
	margin-top: 0.5em;
}

.leaflet-control-wms-legend-cathegories h3.caret::before {
	content: "\25B6";
	display: inline-block;
	margin-right: 6px;
	color: #999;
}

.leaflet-control-wms-legend-cathegories .caret-down::before {
	
	-ms-transform: rotate(90deg); /* IE 9 */
	-webkit-transform: rotate(90deg); /* Safari */'
	transform: rotate(90deg);  
}

.leaflet-control-wms-legend-collapsed .leaflet-control-wms-legend-cathegories {
	display: none;
}

.leaflet-control-wms-legend-cathegory {
	margin: 0.1em;
}

.leaflet-control-wms-legend-polygon-symbolizer, .leaflet-control-wms-legend-hatch-symbolizer, .leaflet-control-wms-legend-raster-symbolizer {
	aspect-ratio: 1;
	border: 1px solid;
	clear: both;
	float: left;
	margin-right: 0.6em;
	width: 0.9em;
}

.leaflet-control-wms-legend-line-symbolizer {
	aspect-ratio: 1;
	border: none;
	clear: both;
	float: left;
	margin-right: 0.6em;
	width: 0.9em;
}

.leaflet-control-wms-legend-point-symbolizer {
	aspect-ratio: 1;
	floating: left;
	margin-right: 0.6em;
	width: 1em;
}
