.finder-container {
  position: relative;

  .tui-close {
    display: none;
    color: $color-white;

    .pictogram {
      height: 48px;
      width: 48px;
    }
  }

  .tui-text-search {
    input,
    .btn {
      border-radius: 0;
      border: 0;
      background: $color-white;
      color: inherit;
    }
  }

  .tui-search-icon {
    display: none;
    cursor: pointer;

    svg {
      filter: drop-shadow(0 1px 1px rgba($color-black, .5));
    }

    &:hover {
      text-decoration: none;
    }

    @include breakpoint(md) {
      @include font-size(14);
      color: $color-white;
      text-shadow: 0 1px 1px rgba($color-black, .5);

      &:hover,
      &:focus,
      &:active {
        color: $color-white;
        text-decoration: none;
        background: transparent;
      }

      &:before {
        position: relative;
        top: 2px;
      }
    }
  }

  .finder-app {
    background: rgba($color-black, .6);
    transition: all .3s ease-in-out;
    display: none;
    position: absolute;
    top: 14px;
    right: 0;
    z-index: 1000;
    width: 100%;
    opacity: 0;
    border-radius: $border-radius-normal;
    padding: $margin-normal 0 $margin-normal $margin-normal;

    &:hover {
      background: rgba($color-black, .8);
    }

    @include breakpoint(md) {
      width: 600px;
    }
  }

  &.open {
    .finder-app {
      display: block;
      opacity: 1;
    }
  }

  .pictogram-search {
    width: 24px;
    height: 24px;
  }

  @include breakpoint (md) {
    .tui-search-icon {
      display: block;
    }

    .tui-close {
      display: block;
    }

    .tui-text-search {
      .btn {
        @include tui-btn-color($color-blue-500, $color-white, $color-tui-dark-blue-highlight);
      }
    }
  }
}

.tui-text-search {
  @extend %flexbox-row;

  input {
    flex-grow: 1;
    vertical-align: bottom;
    border-radius: $border-radius-input 0 0 $border-radius-input;
    border-right: 0;
  }

  button {
    color: $color-white;
    padding: $margin-half;
    vertical-align: bottom;
    border-radius: 0 $border-radius-input $border-radius-input 0;
  }
}

/* stylelint-disable selector-max-id, max-nesting-depth, selector-class-pattern, declaration-no-important */
body {
  #addsearch-results {
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    min-height: 0;

    .addsearch-result-item-container {
      padding: $margin-half;
      background-position: $margin-half $margin-half;
      background-image: none !important;

      &:nth-child(odd) {
        background-color: $color-beige-100;

        &:hover {
          background-color: $color-beige-100;
        }
      }

      &:nth-child(even) {
        &:hover {
          background-color: $color-beige-100;
        }
      }

      &:hover {
        a {
          color: $color-link-blue-hover;
        }
      }

      h2 a {
        @include font-size(18);
        color: $color-link-blue;

        &:hover {
          color: $color-link-blue-hover;
        }
      }

      p {
        color: $color-blue-500;

        span em {
          @include font-size(14);
          color: $color-grey;
        }
      }

      .addsearch-result-item-sub {
        border: 0;
        min-height: 136px;
        background-position: 8px 2px;

        > div {
          min-height: 0;
        }

        h2 a {
          padding: 0 0 $margin-half;
        }
      }

      .addsearch-result-item-sub-active {
        background-color: transparent;
      }

      .addsearch_category {
        display: none;
      }
    }
  }
}

#addsearch-logo {
  display: none !important;
}

/* stylelint-enable */
