.fg-header-search-container {
  height: 100%;
  flex: 1 1 auto;
  padding: 0 5px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.fg-header-search-fullpage-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.fg-header-search {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 505px;
  height: 35px;
  border: 1px solid;
  margin: 0;
  padding: 0 4px;
  border-radius: 5px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.fg-header-search--active {
  height: 35px;
  max-width: 505px;
}

.fg-header-search--has-result {
  border-radius: 5px 5px 0 0;
}

.fg-header-search-tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.fg-header-search-tag-list--has-items {
  margin-right: 10px;
}

.fg-header-search-tag {
  position: relative;

  display: block;

  flex: 1 0 auto;
  max-width: 100px;

  padding: 5px 24px 5px 5px;
  margin-right: 4px;

  border-radius: 5px;
  cursor: pointer;

  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-header-search-tag:after {
  /* in order to strike through only text */
  position: absolute;
  top: 50%;
  left: 5px;
  width: calc(100% - 30px);

  height: 1px;

  opacity: 0;

  transition: .4s ease opacity;

  content: '';
}

.fg-header-search-tag:hover:after {
  opacity: 1;
  transition: .4s ease opacity;
}

.fg-header-search-tag:last-of-type {
  margin-right: 0;
}

.fg-header-search-tag-clear-button {
  position: absolute;
  top: 50%;
  right: 8px;

  padding: 0;

  background: none;
  border: none;

  font-size: 9px;
  line-height: 1;

  transform: translateY(-50%);
  transition: color .4s ease;
}

.fg-header-filter-icon-container {
  position: absolute;
  right: 0;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;

  width: 37px;
  height: 100%;

  cursor: pointer;

  color: #5C68A4;
  background-color: #F2F2F2;
  border-left: 1px solid #DDDDDD;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;

  transition: background-color .4s ease, color .4s ease;
}

.fg-header-filter-icon-container:hover {
  color: #FFFFFF;
  background-color: #5C68A4;
}

.fg-header-search-icon {
  position: absolute;
  right: 11px;
  top: 10px;

  opacity: 0;
  visibility: hidden;

  cursor: pointer;

  transition: color .4s ease;
}

.fg-header-search-icon--visible {
  opacity: 1;
  visibility: visible;
}

.fg-header-clear-icon {
  position: absolute;
  right: 11px;
  top: 12px;
  opacity: 0;
  font-size: 12.5px;
  visibility: hidden;
  cursor: pointer;
  transition: color .4s ease;
}

.fg-header-clear-icon--visible {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 767px) {
  .fg-header-search-container {
    justify-content: center;
  }

  .fg-header-search--active {
    width: 100%;
  }
}
