.sql-editor {
  &__label {
    font-size: $x-small;
    font-weight: $bold;
    color: $core-fleet-black;

    &--error {
      color: $core-vibrant-red;
    }
    &--with-action {
      display: flex;
      justify-content: space-between;
      align-items: center;

      button {
        height: initial; // aligning space between label and textarea
        margin: -$pad-small 0;
        animation: fade-in 250ms ease-out;
      }

      .custom-link {
        margin-bottom: 0;
      }
    }
  }

  &__wrapper {
    &--error {
      .ace-fleet {
        border: 1px solid $core-vibrant-red;
      }
    }
    &--disabled {
      @include disabled;
    }
  }

  .ace_scroller {
    padding-left: 4px;
  }

  .ace_placeholder {
    font-family: "SourceCodePro", $monospace;
    margin: initial;
  }

  &__help-text {
    @include help-text;

    code {
      color: $core-vibrant-blue;
      background-color: $ui-light-grey;
      padding: $pad-xxsmall;
      font-family: "SourceCodePro", $monospace;
    }
  }

  .loading-spinner {
    margin: 0;
  }
}

.sql-editor,
.sql-editor * {
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

.sql-editor .ace_editor {
  font-family: "SourceCodePro", monospace !important;
}
