.mb-element-overview {
  user-select: none;

  .toggleOverview {
    padding: 0 6px;
    cursor: pointer;
    border-radius: $radius;
    font-size: 0.85rem;
  }

  .olMap, .ol-overviewmap-map {
    background-color: white;
    @include transition(all .2s linear);
    .ol-viewport, .olMapViewport {
      border: 1px solid $thirdColor;
    }
  }
  .ol-overviewmap {
    button {
      // OL4: renders a toggle button, which we delegate to for visibility
      //      toggling, but we don't want to show it
      width: 0;
      padding: 0;
      border: 0;
      font-size: 0;
      overflow-x: hidden;
    }
    // prevent weird vertical displacement of map relative to toggle button
    font-size: 0;
    line-height: 0;
  }
  &.closed {
    .olMap, .ol-overviewmap-map {
      width: 0 !important;
      height: 0;
      opacity: 0;
      border: 0;
    }
  }
  .toggleOverview {
    position: absolute;
  }
  &.right-top .toggleOverview {
    top: 0;
    left: -25px;
  }
  &.left-top .toggleOverview {
    top: 0;
    right: -25px;
  }
  &.right-bottom .toggleOverview {
    bottom: 0;
    left: -25px;
  }
  &.left-bottom .toggleOverview {
    bottom: 0;
    right: -25px;
  }
  .anchored-element-wrap-lb &, .anchored-element-wrap-rb & {
    vertical-align: bottom;
  }
}

.olControlOverviewMapExtentRectangle, .ol-overviewmap-box {
  overflow: hidden;
  cursor: move;
  border: 2px solid $firstColor;
}

.olControlOverviewMapRectReplacement {
  cursor: move;
}
