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

.containerSearch {
  display: flex;
  width: 100%;
  border-radius: 5px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.containerSearchHeadline {
  display: flex;
  justify-content: space-between;
  height: 42px;
  width: 100%;
  align-items: center;
}

.containerSearchField {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  height: 42px;
  width: 100%;
  animation-name: searchFieldAnimation;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
}

.backIcon {
  cursor: pointer;
  height: 13px;
  width: 17px;

  path {
    fill: var(--color-airy-blue);
  }
}

.backButton {
  border: none;
  background-color: var(--color-background-white);
  padding-left: 0px;
  padding-right: 14px;
}

.searchField {
  width: 100%;
}

.animateIn {
  animation: searchfieldAnimIn 400ms ease;
}

.animateOut {
  animation: searchfieldAnimOut 400ms forwards;
}

.searchBox {
  color: black;
  background: var(--color-background-white);
  display: flex;
  align-items: center;
}

.searchButton {
  border: none;
  background-color: var(--color-background-white);
  cursor: pointer;
  outline: none;
  height: 24px;
  width: 24px;
  &:hover {
    svg {
      path {
        fill: var(--color-airy-blue);
      }
    }
  }
}

.headline {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--color-text-contrast);
}

.searchIcon {
  width: 18px;
  height: 18px;
  margin-top: 2px;

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

.filterButton {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 0px;
  height: 24px;
  width: 24px;
  margin-left: 12px;
  color: var(--color-text-gray);
  &:hover {
    svg {
      path {
        fill: var(--color-airy-blue);
      }
    }
  }
}

.activeFilters {
  @extend .filterButton;
  background: var(--color-airy-logo-blue);
  height: 24px;
  width: 24px;
  padding: 0px;
  border-radius: 50%;
  svg {
    path {
      fill: var(--color-background-blue);
    }
  }
}
