#happy-form-builder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f2f2f2;
  z-index: 999;

  * {
    box-sizing: border-box;
  }

  input[type="checkbox"], input[type="radio"] {
    margin: 0;
  }

  input.readonly, input[readonly], textarea.readonly, textarea[readonly] {
    background-color: unset;
  }

  img {
    &.aligncenter {
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
  }

  textarea#happy-text-editor-area {
    width: 100%;
  }

  .wp-switch-editor {
    height: unset;
  }

  h1, h2, h3, h4, h5, h6 {
    padding: unset;
    margin: 0;
  }

  .happy-editor-element {
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
  }

  .happy-editor-toolbar {
    padding: 5px;
    background-color: #f2f2f2;
  }

  .happy-placeholder {
    position: absolute;
    background-color: #f2f2f2;
    border-radius: 3px;
    border: dashed 1px #555555;
  }
}

html.happy-full-screen {
  padding-top: 0 !important;

  #wpadminbar, #adminmenuwrap, .happy-icon-maximize {
    display: none;
  }

  #wpcontent, #wpfooter {
    margin-left: 0;
  }

  #happy-form-sidebar {
    top: 0;
  }
}

html:not(.happy-full-screen) {
  .happy-icon-maximize-off {
    display: none;
  }
}

#happy-form-builder-preview {

  input[type=text],
  input[type=number],
  input[type=email],
  input[type=tel],
  input[type=url],
  input[type=search],
  input[type=date],
  input[type=time],
  select,
  textarea {
    background-color: white;
    border: 1px solid #ced4da;
    box-shadow: unset;
    border-radius: 4px;
    padding: 0.6180469716em;
    line-height: 1.5;
    min-height: 40px;

    &:focus {
      background-color: white;
      outline-width: 1px;
    }
  }

  input[type=date] {
    height: 40px;
  }

  input[type=file] {
    cursor: pointer;
    border: dashed 1.75px black;
    background-color: #FFF3E4;
    min-height: 115px;
    position: relative;
    width: 100%;

    &::before {
      content: 'Choose file';
      display: flex;
      color: #000000;
      background-color: #fff;
      border-color: #000000;
      border-radius: 50px;
      position: absolute;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
      font-size: 16px;
      text-align: center;

    }
  }

  .mce-toolbar-grp .mce-container-body {
    background-color: #FFF3E4;
  }
}