@use "../../../../wc";

:host {
  @include wc.scrollbars;
  display: block;
  position: absolute;
  overflow: hidden;
}

::backdrop {
  background-color: rgba(128, 128, 128, 0.6);
}

.editor-dialog {
  background-color: rgb(var(--zn-panel));
  border: 1px solid rgb(var(--zn-border-color));
  border-radius: var(--zn-border-radius-large);
  width: 100%;
  max-width: 975px;
  max-height: 650px;
  padding: 0;

  .loading-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    gap: 10px;
  }

  &__close {
    position: absolute;
    top: 0;
    right: 0;
    margin: var(--zn-spacing-small);
    z-index: 10001;
  }

  &__content {
    overflow: auto;
    box-sizing: border-box;
  }
}
