@use '../../sass/abstracts/variables' as *;
@use '../../sass/abstracts/typography';
@use '../../sass/abstracts/mixins';

#{$object-prefix}input-search {
  display: flex;
  position: relative;
  width: 100%;
  height: 3rem;
  max-width: 656px;

  &__input {
    -webkit-appearance: textfield;
    appearance: textfield;
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid $sodra-black-25;
    padding: 0 1rem;
    padding-right: 2rem;
    float: left;
    @include typography.body-medium;
    background-color: $white;

    // remove placeholder on focus
    &:focus::-moz-placeholder,
    &:focus::-webkit-input-placeholder {
      color: transparent;
    }
  }

  &__button {
    position: absolute;
    right: 0.5rem;
    height: 100%;
    padding-right: 0.25rem;
    border: none;
    background-color: transparent;
    color: $sodra-black;

    &::after {
      @include mixins.unity-symbols('search');
    }
  }

  &__link {
    margin-left: 1.5rem;
    white-space: nowrap;
  }

  &--small {
    height: 2.5rem;
  }

  &--light-grey &__input {
    background-color: $light-grey !important;
  }

  &--large {
    height: 3rem;
  }

  @import '../../sass/shared/_text-link';
}
