@import "~@capillarytech/cap-ui-library/styles/_variables.scss";

.form-tab-header{
  display: flex;
  align-items: center;
  font-style: normal;
  font-weight: 600;
}

.form-builder-radio-group {
  .cap-radio-wrapper,
  .cap-radio-v2 {
    display: inline-block;

    .inductive-text {
      padding: 0 !important;
    }

    .ant-radio-wrapper {
      align-items: flex-start;

      .ant-radio {
        align-self: flex-start;
        margin-top: 2px;
      }
    }
  }

  .cap-checkbox-wrapper {
    .inductive-text {
      padding-left: 0 !important;
    }
  }
}

.textarea-error-message {
  top: initial !important;
  bottom: 4px !important;
}

.cap-input {
  .error-message {
    margin-left: initial !important;
  }
}
.error .error-message{
  top: revert;
}
.tabs-error {
  .ant-tabs-ink-bar .ant-tabs-ink-bar-animated {
    background-color: #F34F56;
  }
}
.image-container {
  &.error{
    border: 1px solid #F34F56;
  }
  img{
    max-height: 150px;
    max-width: 300px;
    display: block;
    margin: auto;
  }
}
.disabled {
  pointer-events: none;
  border-bottom: 1px solid #C2C2C2 !important;
  background-color: #F9F9F9 !important;
}
.hide{
  display: none;
}
.error-form-builder {
  color : #F34F56;
}

.ant-notification-notice-description {
  word-wrap: break-word;
}

.preview-chars{
  margin-top: 8px;
  div{
    display: inline-block;
    font-size: 16px;
    margin: 4px;
    // font-family: Open-Sans;
    text-align: center;
    width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0 4px 4px 4px;
    border: 0.5px solid;
    &.invalid{
      border-color: #F34F56;
    }
  }
}


.form-builder-dragger  {
  .ant-upload-drag {
    background-color: white;
  }
  .ant-upload-drag-container {
    height: 200px;
    padding: 44px 0px;
    .dragger-title {
      margin-bottom: 12px;
      text-align: center;
    }
    .dragger-or {
      margin-bottom: 8px;
      text-align: center;
    }
    .dragger-button {

    }
  }
}
.error-boundary{
  border: $CAP_SPACE_02 solid $CAP_RED;
}