.city-autocomplete {
  display: flex;
  flex-direction: column;
  position: relative;

  &__labels-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
  }

  &__label {
    color: #8a8a8a;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__input {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    width: 100%;
    box-shadow: 0 0 0 1px #e0e0e0;
    border-radius: 4px;

    .p-autocomplete {
      flex: 1;
    }

    .button-clear {
      display: none;
      width: 32px;
      height: 38px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 18px;
      color: #8a8a8a;

      &::before {
        content: "×";
      }
    }
  }

  &__input--has-value {
    .button-clear {
      display: block;
    }

    .city-autocomplete__search-button {
      border-left: 1px solid #e0e0e0 !important;
    }
  }

  &__input--has-error {
    box-shadow: 0 0 0 1px #e55353;
  }

  &__search-button {
    width: 38px !important;
    min-width: 38px;
    height: 38px;
    border-radius: 0 4px 4px 0 !important;
    border: none !important;
    border-left: 1px solid white !important;
    background-color: transparent !important;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;

    &::before {
      content: "▾";
      display: inline-block;
      color: #2457ff;
    }

    &:hover {
      background-color: #fff !important;
      border-left-color: #e0e0e0 !important;
    }

    &--opened {
      background-color: #eef3ff !important;
    }
  }
}

.city-autocomplete-popup-wrapper {
  position: relative;
}

.tooltip {
  color: #e55353;
  font-size: 12px;
  margin-bottom: 4px;
}
