@import "../../../../../../less/base.less";

/*
BLOCK
*/
.scwpConditionSingleBlock{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin: 20px 0;

  &:first-of-type{
    // margin-top: 20px;
  }

  &:last-of-type{
    margin-bottom: 0;
  }

  .scwpConditionSingleBlockBtn{
    width: 100%;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: @scwp-var-font-size;
    font-weight: 700;
    color: #ffffff;
    border: 0;
    outline: 0;
    background-color: @scwp-var-light-deep-blue-color;

    // &.scwpConditionArrayRalationBtn{
    //   background-color: @scwp-var-light-deep-blue-color;
    // }
  }

  .scwpCollapsibleWrapper{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    // padding: 15px;
    background-color: @scwp-var-light-gray-color;
    border: 2px solid @scwp-var-light-deep-blue-color;
    border-top: 0;
    padding: 0 20px;

    > div{
      width: 100%;
    }

    .scwpFieldBlockBtnWrapper{
      width: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      position: relative;
      margin-bottom: 20px;

      &:after{
        content: 'or';
        font-size: @scwp-var-font-size - 3;
        font-weight: 700;
        color: @scwp-var-light-deep-blue-color;
        width: 30px;
        height: 30px;
        display: -webkit-inline-flex;
        display: -ms-inline-flex;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background-color: @scwp-var-light-gray-color;
        position: absolute;
        left: calc(~"50% - 15px");
        .scwp--border-radius(50%)
      }

      .scwpFieldBlockBtn{
        width: calc(~"100% / 2 - 0.5px");
        height: 45px;
        display: -webkit-inline-flex;
        display: -ms-inline-flex;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: @scwp-var-font-size;
        font-weight: 700;
        color: #ffffff;
        border: 0;
        outline: 0;
        background-color: @scwp-var-darker-color;
        margin-right: 1px;
        cursor: pointer;

        &:first-of-type{
          .scwp--border-radius(5px 0 0 5px);
        }

        &:last-of-type{
          margin-right: 0px;
          .scwp--border-radius(0 5px 5px 0)
        }


        &.scwpFieldBtn{
          background-color: @scwp-var-color-sky-blue;
        }

        &.scwpDeleteBtn{
          background-color: @scwp-var-red-color;
        }
      }
    }
  }
}
