.leaflet-compare-tool {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 0 !important;
  pointer-events: none;
}

.leaflet-compare-tool-range {
  position: absolute;
  top: 50%;
  z-index: 999;
  display: inline-block !important;
  width: 100%;
  -webkit-appearance: none;
  min-width: 100px;
  height: 0;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  pointer-events: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
}
.leaflet-compare-tool-range::-ms-fill-upper {
  background: transparent;
}
.leaflet-compare-tool-range::-ms-fill-lower {
  background: rgba(255, 255, 255, 0.25);
}

/* Browser thingies */
.leaflet-compare-tool-range::-moz-range-track {
  opacity: 0;
}
.leaflet-compare-tool-range::-ms-track {
  opacity: 0;
}
.leaflet-compare-tool-range::-ms-tooltip {
  display: none;
}

/* For whatever reason, these need to be defined
 * on their own so dont group them */
.leaflet-compare-tool-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  cursor: ew-resize;
  background: #fff;
  background-image: url('./ic_range.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 40px 40px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.leaflet-compare-tool-range::-ms-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  cursor: ew-resize;
  background: #fff;
  background-image: url('./ic_range.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 40px 40px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.leaflet-compare-tool-range::-moz-range-thumb {
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  pointer-events: auto;
  cursor: ew-resize;
  background: #fff;
  background-image: url('./ic_range.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 40px 40px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.leaflet-compare-tool-range::-moz-focus-outer {
  border: 0;
}

.leaflet-compare-tool-range:disabled {
  cursor: default;
}

.leaflet-compare-tool-range:focus {
  outline: none !important;
}

.leaflet-compare-tool-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 999;
  width: 4px;
  margin-left: -2px;
  pointer-events: none;
  background-color: #fff;
}

.leaflet-compare-tool-popup {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 999;
  padding: 5px 10px;
  overflow: hidden;
  font-size: 18px;
  color: white;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: bounding-box;
  background-color: rgba(0, 0, 0, 0.7);
}
