.custom-leaflet-control-layers {
  min-height: 48px;
  min-width: 48px;
  box-shadow: 0 1px 5px rgb(0 0 0 / 40%);
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  position: relative;
}

.custom-leaflet-control-layers__list {
  max-width: 150px;
}

.custom-leaflet-control-layers__select {
  max-width: 140px;
  height: 20px;
  border-radius: 2px;
  background: white;
  border: 1px solid #ddd;
}

.custom-leaflet-control-layers-toggle {
  cursor: pointer;
}

.custom-leaflet-control-layers__legend {
  width: 100%;
  display: flex;
  justify-content: center;
}


.custom-leaflet-control-layers__legend-toggler {
  background: transparent;
  border: none;
  border-bottom: 1px dotted;
  color: #337ab7;
  cursor: pointer;

  margin-top: 8px;
  margin-bottom: 8px;
}
.custom-leaflet-control-layers__legend-toggler:focus {
 outline: none;
}

.custom-leaflet-control-layers__legend-toggler:hover {
  color: red;
}

.legend-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-color {
  margin-top: 1px;
  margin-right: 5px;
  width: 16px;
  height: 16px;
  list-style-type: none;
}

.custom-leaflet-control-layers__legend-bock {
  display: none;
  padding: 5px;
  background-color: #FFF;
  text-align: center;
}

.custom-leaflet-control-layers__legend-bock--opened {
  display: block;
  max-height: 150px;
  width: 100%;
  max-width: 140px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.custom-leaflet-control-layers__legend-bock--opened::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-leaflet-control-layers__legend-bock--opened::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

.custom-leaflet-control-layers__legend-list {
  padding: 0;
  margin: 0;
  display: none;
}

.custom-leaflet-control-layers__legend-list--active {
  display: block;
}

.custom-leaflet-control-layers__legend-item {
  display: flex;
  grid-template-columns: 16px auto;
  align-items: start;
  margin-bottom: 8px;
}

.custom-leaflet-control-layers__legend-item-title {
  text-align: left;
  font-size: 11px;
  line-height: 1.1;
  word-break: break-word;
}

.custom-leaflet-control-layers__legend-item-color {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.custom-leaflet-control-layers__close-button {
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  background: transparent;

  cursor: pointer;
}

.custom-leaflet-control-layers__close-button:focus {
  outline: none;
}

.leaflet-attribution-flag {
  display: none;
}