@use "sass:math";

.generate-rules-options {
  padding-top: 0.4807692308rem;
  padding-bottom: 0.4807692308rem;
  color: var(--theme-elevation-400);
  transform: translateY(-1.9230769231rem);

  &__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 10px;
    margin-top: -3.8461538462rem;
    margin-bottom: 3.8461538462rem;

    .btn {
      margin: 0;
    }

    svg {
      fill: currentColor;
    }
  }

  &__modal {

    &:before,
    &:after {
      content: " ";
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      pointer-events: none;
    }

    &:before {
      background: var(--theme-bg);
      opacity: 0.85;
    }

    &:after {
      backdrop-filter: blur(5px);
    }

    .template-minimal {
      display: flex;
      width: 100%;
      justify-content: center;
      align-items: center;
      padding: 1.9230769231rem;
      margin-left: auto;
      margin-right: auto;
      min-height: 100%;
      min-height: 100vh;
      z-index: 1;
      position: relative;

      /*
      &__wrap {
        padding: 20px;
        border-radius: 4px;
        background: var(--theme-bg);
      }
      */
    }
  }

  &__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%;
      }
    }
  }
}
