.layer-switcher {
  min-height: 30px;
  min-width: 30px;
  background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%228%22%20height%3D%228%22%20viewBox%3D%220%200%208%208%22%3E%0A%20%20%3Cpath%20d%3D%22M0%200v4h4v-4h-4zm5%202v3h-3v1h4v-4h-1zm2%202v3h-3v1h4v-4h-1z%22%20/%3E%0A%3C/svg%3E')
    white;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-position: center;
  font-size: 22px;
}

.layer-switcher-list {
  display: none;
  user-select: none;
  background: white;
  padding-left: 8px;
  padding-right: 8px;
  position: absolute;
  margin: 0 !important;
  font-size: 15px;
  z-index: 1000;
  border-radius: 4px;
  box-sizing: content-box;
  min-width: 100px;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.layer-switcher-list.visible {
  display: block;
}

@media screen and (max-width: 900px) {
  .layer-switcher-list {
    position: fixed;
    top: 50px;
    left: 10px;
    right: 10px;
    font-size: 1.2em;
  }
}

.layer-switcher-list h3 {
  margin: 0px;
  margin-top: 6px;
}

.layer-switcher-list h4 {
  margin: 0;
  padding: 0;
  display: inline-block;
  width: 100%;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.5rem;
}

.layer-switcher-list ul {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  padding: 0;
  margin-bottom: 4px;
}

.layer-switcher-list li {
  width: 100%;
}

.layer-switcher-group + li {
  padding-top: 10px;
}

.layer-switcher-list li.layer-switcher-group {
  display: flex;
  flex-direction: column;
}

.layer-switcher-list input {
  float: right;
  font-size: 1em;
  width: 1em;
  height: 1em;
}

.layer-switcher-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}
