@import 'assets/scss/fonts.scss';

.component {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  padding: 4px 8px;
  height: 38px;

  input {
    @include font-base;
    border: none;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
    background-color: var(--color-background-white);
    color: var(--color-text-contrast);

    &::-webkit-search-decoration,
    &::-webkit-search-cancel-button {
      -webkit-appearance: none;
    }

    &:focus {
      border: none;
      outline: none;
    }
  }

  &:focus-within {
    border-color: var(--color-airy-blue);
  }
}

.searchIcon {
  display: flex;
  align-self: center;
  margin-right: 6px;
  svg {
    width: 18px;
    height: 18px;
    margin: 0px;

    path {
      fill: var(--color-text-gray);
    }
  }
}

.resetButton {
  background-color: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  display: flex;
  align-self: center;
  padding: 0px;
  margin-right: 4px;
}

.closeIcon {
  height: 10px;
  width: 10px;
  fill: var(--color-text-contrast);
}
