.dv-feature-layer-switch {
  padding: $content-padding;
  background: rgba(0,0,0,.6);
  background-image: linear-gradient(180deg,rgba(10,39,80,.4), #0a2750);
  border-radius: $border-radius-large;
  position: relative;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url("#{$dvResourceRoot}/images/feature-layer-switch-background.png") no-repeat top;
    background-size: 100% 100%;
  }

  &-item {
    position: relative;
    display: flex;
    align-items: center;
    height: $component-size-large;
    padding: 0 $content-padding;
    font-size: $font-size;
    font-weight: normal;
    color: $dv-dark-ghost-text-color;
    cursor: pointer;
    user-select: none;
    border: $border-width solid rgba($dv-dark-highlight-border-color, 0.3);
    border-radius: $border-radius-large;

    &-icon-wrap {
      margin-right: $component-span;

      img {
        width: $font-size-largest;
        height: $font-size-largest;
        font-size: $font-size-largest;
      }
    }

    &:not(:last-child) {
      margin-bottom: $component-span;
    }

    .active-sub-menu {
      position: absolute;
      left: calc(100% + #{$content-padding});
      display: none;
      align-items: center;
      height: $component-size-large;
      padding: 0 $content-padding;
      font-size: $font-size;
      color: $dv-dark-primary-text-color;
      white-space: nowrap;
      cursor: pointer;
      user-select: none;
      background: $dv-dark-background;
      border: $border-width solid $dv-dark-border-color;
      border-radius: $border-radius-large;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    &-sub-menu {
      position: absolute;
      left: calc(100% + #{$border-width});
    }

    &.active {
      color: $dv-dark-primary-text-color;
      font-weight: bold;
      background-image: -webkit-linear-gradient(right, rgba($dv-dark-highlight-background, 0.3), rgba($dv-dark-highlight-background, 1), rgba($dv-dark-highlight-background, 0.3));
      border-color: $dv-dark-highlight-border-color;

      .active-sub-menu {
        display: flex;
      }
    }

    &:hover {
      .active-sub-menu {
        display: none;
      }
    }
  }
}