$radius: 20px;

.search-input {
  @include flex(1);
  height: 50px;
  background-color: #fff;
  border-radius: $radius;
  max-width: 800px;
  width: 100%;

  .input-group {
    height: 100%;

    .before {
      height: 100%;
      min-width: 20px;

      .dropdown {
        height: 100%;
        &::after {
          content: "";
          display: block;
          width: 1px;
          height: 80%;
          background-color: grey;
          position: absolute;
          top: 10%;
          right: 1px;
        }

        button#domain {
          border: 0;
          box-shadow: none;
          height: 100%;
        }
      }
    }

    .term {
      position: relative;
      height: 100%;

      .form-control {
        border: 0;
        height: 100%;

        &:focus {
          box-shadow: none;
        }
      }
    }

    .search-clear, .search-fetch {
      color: grey;
      border: 0;
    }

    .search-fetch::before {
      content: "";
      display: block;
      width: 1px;
      height: 80%;
      background-color: grey;
      position: absolute;
      top: 10%;
      left: 0;
    }

    .btn {
      font-size: 20px;
      padding-right: 20px;
      padding-left: 20px;
      height: 100%;
      width: 100%;
      background: transparent;
    }
  }

  .autocompletion {
    @include flexbox(
      (
        display: flex,
        flex-direction: column,
      )
    );
    .suggestion {
      width: 100%;
      @include display-flex;
      .suggested-term {
        float: left;
      }
    }
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    z-index: 10;
    border: 1px solid #ccc;
    background-color: #fff;
  }

  .open.dropdown.btn-group {
    z-index: 3;
  }
  .dropdown {
    height: 100%;
    .field {
      border: none;
      height: 100%;
    }
  }
}
