.popup-body {
  display: flex;
  flex-direction: column;
  gap: 6px;

  width: 320px;
  max-width: 30vw;
  height: auto;
  padding: 15px;

  background-color: var(--color-gray-fff);
  border-radius: 4px;
  box-shadow: 0 3px 15px rgb(0 0 0 / 25.1%);

  header {
    font-weight: 600;
  }

  main {
    .field {
      position: relative;
      display: flex;

      wg-cmf-input-search {
        flex: 1 1 auto;
      }
    }
  }

  .censor-add-auto-complete {
    overflow: hidden;
    flex-grow: 1;
    margin: 15px 0;

    .mat-button-icon {
      cursor: pointer;

      position: absolute;
      right: 15px;
      bottom: 0;

      display: flex;
      align-items: center;

      height: 100%;

      .chevron-down {
        $height: 5px;
        $color: var(--icon-primary-color);

        width: 0;
        height: 0;
        margin-top: $height;

        border-color: $color transparent transparent transparent;
        border-style: solid;
        border-width: $height;
      }
    }
  }

  .status-list__container {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    max-height: 100%;
  }

  footer {
    display: flex;
    flex-flow: row nowrap;
    gap: 6px;
    justify-content: flex-end;

    button.disabled {
      background-color: var(--color-gray-aaa) !important;
    }
  }
}

.selected-object {
  position: relative;

  display: flex;
  flex-flow: row nowrap;
  flex-grow: 1;
  align-items: center;

  min-width: 220px;
  height: 34px;
  padding: 3px 6px;

  border: 1px solid var(--color-gray-888);
  border-radius: 5px;

  span {
    flex-grow: 1;
  }

  button.remove {
    cursor: pointer;
    user-select: none;

    display: inline-flex;
    flex-shrink: 1;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: none;
    border: none;

    transition: opacity 0.2s ease;

    &:hover {
      opacity: 0.7;
    }

    app-cmf-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--color-gray-888);
    }
  }
}

button.add-button {
  margin: 0;
  padding: 0;

  background: none;
  border: none;
  outline: none;
}

// Стилизуем автокомплит
::ng-deep .censor-add-auto-complete {
  right: unset;
}
