@use "sass:math";

.import-modal {

  &__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.6rem 0;

    h3 {
      display: flex;
      gap: 0.5em;
      margin: 0;

      svg {
        width: 1em;
        height: 1em;
        fill: currentColor;
      }
    }
  }

  &__main {

    .rich-text__editor {
      overflow-x: hidden;
      overflow-y: auto;
      max-height: Max(160px, calc(100vh - 650px));
    }
  }

  &__foot {
    display: flex;
    gap: 2rem;

    &>.btn,
    &>.form-submit {
      flex: 1 1 calc(50% - 1rem);

      &>.btn {
        width: 100%;
      }
    }
  }

  &__dropzone {
    text-align: center;
    padding: 20px;
    margin-top: var(--base);
    border: 3px #2f2f2f dashed;
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    cursor: pointer;
  }

  &__logs {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    line-height: 1.4;
    padding: 1rem;
    border: 2px solid #2f2f2f;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
  }

  &__log {
    padding: 0;

    &--duplicate {
      color: red;
    }

    &--invalid {
      color: red;
    }

    &--required {
      color: red;
    }

    &--unexpected {
      color: orange;
    }

    &--optional {
      color: grey;
    }
  }
}
