@import '../../../../scss/styles.scss';

.condition {
  &__wrap {
    display: flex;
    align-items: center;
  }

  &__inputs {
    display: flex;
    flex-grow: 1;

    > div {
      flex-basis: 100%;
    }
  }

  &__field,
  &__operator {
    margin-right: $baseline;
  }

  &__actions {
    flex-shrink: 0;
  }

  .btn {
    vertical-align: middle;
    margin: 0 0 0 $baseline;
  }

  @include mid-break {
    &__wrap {
      align-items: initial;
    }

    &__inputs {
      display: block;
    }

    &__actions {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    &__field,
    &__operator {
      margin: 0 0 base(.5);
    }
  }
}
