@import "./base.less";
@import "./sweetalert.less";
@import "./notify.less";
@import "./textEditor/quill.core.less";
@import "./textEditor/quill.bubble.less";
@import "./textEditor/quill.snow.less";
@import "./admin-style.less";
@import "./layout-style.less";

/*
#1 Main Wrapper for builder
*/
.scwpFormBuilderMainWrapper {
  width: 100%;
  height: auto;
  min-height: 700px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 20px;

  * {
    box-sizing: border-box;
  }

  /* #4 Panel Heading Wrapper */
  .scwpPanelHeadingWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 100%;
    padding: 0 30px 0 0;
    flex-shrink: 0;
    background-color: @scwp-var-darker-color;

    > div {
      height: 100%;
    }

    h1 {
      font-size: @scwp-var-font-size + 2;
      font-weight: 700;
      color: @scwp-font-white-color;
      margin: 0;
      line-height: 1;
      padding: 0;
    }

    a {
      font-size: @scwp-var-font-size;
      font-weight: 400;
      height: 100%;
      color: @scwp-font-white-color;
      text-decoration: none;
      padding-right: 25px;
      padding-left: 25px;
      position: relative;
      cursor: pointer;
      display: -webkit-inline-flex;
      display: -ms-inline-flex;
      display: inline-flex;
      justify-content: center;
      align-items: center;

      &:before {
        content: "";
        width: 1px;
        height: 100%;
        background-color: @scwp-var-color-deep-blue;
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
      }

      &:last-child {
        margin-right: 0;

        &:before {
          display: none;
        }
      }

      &.activePanel {
        // font-weight: 700;
        color: @scwp--Color-Black-454545;
        position: relative;
        background-color: @scwp-var-color-deep-blue;

        // &:after{
        //   content: '';
        //   width: 6px;
        //   height: 6px;
        //   display: inline-block;
        //   background-color: @scwp-var-yellow-color;
        //   .scwp--border-radius(50%);
        //   position: absolute;
        //   top: 12px;
        //   right: 16px;
        // }
      }

      &:focus {
        outline: 0;
        .scwp--drop-shadow(none);
      }
    }
  }

  /* #4 End */

  /* Left Side Panel */
  @import "./leftside-panel/form-fields-panel.less";

  /* Right Side Panel */
  @import "./rightside-panel/form-settings-panel.less";

  /* Default Plugin Styles Overwrite*/
  .Select.Select--single.is-searchable {
    margin-bottom: 0 !important;
  }
}

/* #1 End */

/* Input Field */
.scwpInputField {
  font-size: @scwp-var-font-size;
  font-weight: 400;
  color: #727c87 !important;
  line-height: 40px;
  width: 100%;
  display: block;
  padding: 0 15px;
  border: 1px solid #e3e3e3 !important;
  overflow: hidden;
  background-color: #ffffff !important;
  .scwp--drop-shadow(none) !important;
  .scwp--border-radius(5px);
  outline: 0 !important;
  .scwp--transition;
}

.scwpNoFieldNotice {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  &:before {
    content: "\f272";
    font-family: "ionicons";
    font-size: 190px;
    color: #f1f1f1;
    position: absolute;
  }

  span {
    font-size: @scwp-var-font-size * 2 + 1;
    line-height: 1.3;
    color: #c3c3c3;
    background-color: @scwp-var-light-gray-color;
    position: relative;
    z-index: 1;
  }
}

/*
CONDITION BUILDER
*/
.scwpConditionBuilder {
  .scwpFormBuilderMainWrapper {
    width: 100%;
    height: auto;
    // height: 700px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20px;
    // background-color: @scwp-var-light-gray-color;

    .scwpFormFieldsMainWrapper {
      width: 100%;
      overflow-y: scroll;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      margin-right: 0;
      background-color: @scwp-var-light-gray-color;
      .scwp--border-radius(0);
      // border-bottom: 1px dashed #d3d3d3;

      .scwpConditionFieldsWrapper {
        width: 100%;
        padding: 15px 15px 0;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        overflow-y: scroll;
        flex-wrap: wrap;
      }

      button.scwpAddFormFields {
        width: 100%;
        font-size: @scwp-var-font-size;
        font-weight: 700;
        color: @scwp-font-black-color;
        line-height: 42px;
        background-color: @scwp-var-color-deep-blue;
        border: 0;
        outline: 0;
        padding: 0;
        .scwp--border-radius(5px);
        .scwp--transition;

        &:hover {
          background-color: darken(@scwp-var-color-deep-blue, 5%);
        }
      }
    }

    .scwpFormSettingsMainWrapper {
      width: 100%;
      display: flex;
      overflow: hidden;
      flex-direction: column;
      justify-content: flex-start;
      background-color: #ffffff;
      // margin-top: 20px;
      .scwp--border-radius(0);

      .scwpLogicPanelHeading {
        justify-content: center;
        padding: 0;
        background-color: #ffffff;
        .scwp--border-radius(0);

        a {
          font-weight: 700;
          font-size: @scwp-var-font-size + 2;
          font-weight: 700;
          color: @scwp-var-color-deep-blue;
          margin: 0;
          line-height: 1;
          padding: 0;
          cursor: text;
        }
      }

      .scwpFormSettingsWrapper {
        padding: 0;
      }
    }
  }
}

.userplace__builder_output {
  font-size: @scwp-var-font-size;
  font-weight: 400;
  color: @scwp-var-darker-color !important;
  line-height: 40px;
  width: 100%;
  display: block;
  padding: 0 15px;
  margin-top: 25px;
  border: 1px solid @scwp-var-border-color !important;
  overflow: hidden;
  background-color: @scwp-var-light-gray-color !important;
  .scwp--drop-shadow(none) !important;
  .scwp--border-radius(0);
  outline: 0 !important;
  .scwp--transition;
}

.userplace__builder_reuse_form > div {
  margin-top: 20px;
  padding: 20px 20px;
  background-color: @scwp-var-light-gray-color;
  border: 1px solid @scwp-var-border-color;
}

/*
GOOGLE SUGGESTION
*/
.pac-container {
  border-top: 0;
  -webkit-border-radius: 0 0 2px 2px;
  -moz-border-radius: 0 0 2px 2px;
  -o-border-radius: 0 0 2px 2px;
  border-radius: 0 0 2px 2px;

  .pac-item {
    padding: 5px 15px 5px 18px;
    cursor: pointer;

    .pac-item-query {
      color: @scwp-var-title-color !important;
    }

    &:nth-child(odd) {
      background-color: #f6f6f6;
    }

    &:last-child {
      border-bottom: 1px solid #e6e6e6;
    }

    &:hover {
      background-color: @scwp-var-color-deep-blue !important;
      color: @scwp-font-white-color;

      .pac-item-query {
        color: @scwp-font-white-color !important;
      }
    }

    .pac-icon-marker {
      display: none;
    }
  }
}

/* Billing Less*/
@import "./billing/billing.less";
// @import './me.css';

/* Welcome Page Less*/
@import "./welcome/welcome-page.less";

.wpsl-loader-wrapper {
  position: fixed;
}

.quill {
  padding-top: 40px;
}

.userplace-message-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  p {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-left: 4px solid;
    border-color: #6cb2eb;
    background-color: #eff8ff;
    margin-bottom: 1rem;
    line-height: 24px;
    font-size: 14px;
    border-radius: 3px;
    position: relative;
    padding-right: 50px;

    span {
      position: absolute;
      right: 13px;
      top: 11px;
      cursor: pointer;

      i {
        font-size: 18px;
      }
    }
  }
}

.userplace-welcome {
  width: 100%;
  p {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-left: 4px solid;
    border-color: #6cb2eb;
    background-color: #eff8ff;
    margin-bottom: 1rem;
    line-height: 24px;
    font-size: 14px;
    position: relative;
    padding-right: 50px;
    color: #000 !important;

    span {
      position: absolute;
      right: 13px;
      top: 12px;
      cursor: pointer;

      i {
        font-size: 18px;
      }
    }
  }
}
