@use '../../styles';
@use '../../themes/defaults';

.jse-modal-wrapper {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;

  .jse-modal-contents {
    @include styles.jse-modal-contents;

    .jse-label {
      font-weight: bold;
      display: block;
      box-sizing: border-box;

      .jse-label-inner {
        margin-top: styles.$padding-double;
        margin-bottom: styles.$padding-half;
        box-sizing: border-box;
      }
    }

    .jse-modal-inline-editor {
      flex: 1;
      min-height: 150px;
      min-width: 0;
      max-width: 100%;
      display: flex;

      --jse-theme-color: #{defaults.$modal-editor-theme-color};
      --jse-theme-color-highlight: #{defaults.$modal-editor-theme-color-highlight};
    }
  }

  .jse-actions {
    gap: defaults.$padding;
    align-items: center;

    .jse-error {
      flex: 1;
      color: defaults.$error-color;
    }

    button {
      &.jse-secondary {
        @include styles.jsoneditor-button-secondary;
      }
    }
  }

  input {
    @include styles.modal-input-mixin;
  }
}
