
.linwiteditor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid;
  border-color: var(--linwiteditor-border-color);
  background: var(--linwiteditor-bg-color);

  *, ::before, ::after {
    box-sizing: content-box;
  }

  .linwiteditor-translate-panel {
    margin-top: -5px;

    &-body {
      width: fit-content;
      border: solid 1px;
      border-color: var(--linwiteditor-popover-border-color);
      background: var(--linwiteditor-popover-bg-color);
      border-radius: 5px;
      box-shadow: 0 0 7px 0 rgba(0, 0, 0, .15);
      display: flex;
      flex-direction: column;
      overflow: hidden;

      p {
        width: 100%;
        margin: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: 40px;
        line-height: 40px;
        font-weight: 600;
        font-size: 14px;
        padding: 0 20px;
        color: var(--linwiteditor-text-color);
        text-decoration: none;
        font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
      }

      p:hover {
        background: var(--linwiteditor-menus-item-hover-color);
      }
    }
  }


  .linwiteditor-translate-result-panel {
    width: fit-content;
    height: fit-content;
    border: solid 1px;
    border-color: var(--linwiteditor-popover-border-color);
    background: var(--linwiteditor-popover-bg-color);
    border-radius: 5px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, .25);
    overflow: hidden;

    textarea {
      width: 500px;
      padding: 5px;
      box-sizing: border-box;
      font-size: 14px;
      font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
      border: none;
      margin: 10px 10px 0 10px;
      background: var(--linwiteditor-popover-bg-color);
      color: var(--linwiteditor-text-color);
      resize: none;
      max-height: 300px;

      &:focus-visible {
        outline: 0;
      }
    }

    div {
      display: flex;
      justify-content: end;
      border-top: solid 1px var(--linwiteditor-popover-border-color);
      padding: 10px;
      background-color: var(--linwiteditor-popover-bg-color);

      button {
        margin-left: 10px;
        background: var(--linwiteditor-button-bg-color);
        color: var(--linwiteditor-text-color);
        border: solid 1px;
        padding: 5px 15px;
        font-size: 14px;
        border-radius: 3px;
        border-color: var(--linwiteditor-button-border-color);
        display: flex;
        align-items: center;

        svg {
          width: 16px;
          height: 16px;
          margin-right: 3px;
        }

        &:hover {
          background-color: var(--linwiteditor-button-hover-bg-color);
          cursor: pointer;
        }
      }
    }
  }

  .linwiteditor-ai-panel-body {
    width: 500px;
    border: solid 1px;
    border-color: var(--linwiteditor-popover-border-color);
    background: var(--linwiteditor-popover-bg-color);
    border-radius: 5px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    &-tips {
      width: 100%;
      padding: 10px;
      color: var(--linwiteditor-text-color);
      background-color: var(--linwiteditor-popover-bg-color);
      box-sizing: border-box;
      display: flex;
      align-items: center;

      svg {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
    }

    &-content {
      width: 100%;
      // height: 160px;
      position: relative;

      .loader {
        position: absolute;
        top: 10px;
        right: 10px;
        display: none;

        svg {
          width: 16px;
          color: #999;
          animation: rotate 2s linear infinite;
          @keyframes rotate {
            from {
              transform: rotate(0deg);
            }
            to {
              transform: rotate(360deg);
            }
          }
        }
      }

      textarea {
        width: 100%;
        height: 100%;
        max-height: 300px;
        padding: 15px;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 1.6em;
        font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
        border: none;
        resize: none;
        color: var(--linwiteditor-text-color);
        background-color: var(--linwiteditor-popover-bg-color);
      }

      textarea:focus-visible {
        outline: none;
      }

    }

    &-input {
      display: flex;
      justify-content: space-between;
      box-sizing: border-box;
      border-bottom: 1px solid;
      border-bottom-color: var(--linwiteditor-input-border-color);
      align-items: center;
      padding: 10px 20px 10px 10px;

      input {
        width: 92%;
        height: 100%;
        border: none;
        margin: 0;
        background: var(--linwiteditor-input-bg-color);
        font-size: 14px;
        font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 4px;
        color: var(--linwiteditor-text-color);

        &::-webkit-input-placeholder {
          color: var(--linwiteditor-text-placeholder-color);
          font-size: 14px;
        }
      }

      input:focus-visible {
        outline: none;
      }

      button {
        border: none;
        border-radius: 50%;
        padding: 0;
        background: #609eec;

        svg {
          fill: #fff;
          width: 18px;
          margin-left: 2px;
          margin-top: 2px;
        }
      }

      button:hover {
        background: var(--linwiteditor-menus-item-hover-color);
        cursor: pointer;
      }
    }
  }

  .linwiteditor-ai-panel-footer {
    width: fit-content;
    border: solid 1px;
    border-color: var(--linwiteditor-popover-border-color);
    background: var(--linwiteditor-popover-bg-color);
    border-radius: 5px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, .15);
    display: flex;
    padding: 10px 0;
    flex-direction: column;
    margin-top: 5px;

    &-tips {
      padding: 5px 10px;
      color: var(--linwiteditor-text-color);
      margin-bottom: 5px;
    }

    hr {
      height: 1px;
      width: 100%;
      margin: 5px 0;
      background-color: var(--linwiteditor-popover-border-color);
      border: none;
    }

    p {
      width: 100%;
      margin: 0;
    }

    p {
      cursor: pointer;
      display: flex;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
      height: 40px;
      line-height: 40px;
      font-weight: 600;
      font-size: 14px;
      padding: 0 20px;
      color: var(--linwiteditor-text-color);
      text-decoration: none;
      font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    }

    p:hover {
      background: var(--linwiteditor-popover-selected-color);
    }

    svg {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }
  }

  linwiteditor-header {
    color: var(--linwiteditor-menus-text-color);
    background: var(--linwiteditor-menus-bg-color);
    z-index: 1;

    & > div {
      border-bottom: 1px solid var(--linwiteditor-border-color);
    }

    .linwiteditor-menu-divider {
      background: var(--linwiteditor-menus-divider-color);
      width: 1px;
      height: 16px;
      margin: auto
    }

    // default or size -> small
    .linwiteditor-menu-item {
      height: fit-content;
      padding: 5px 1px;
      display: flex;
      align-items: center;

      #text {
        font-size: 14px;
      }

      // default svg
      svg {
        fill: var(--linwiteditor-menus-svg-color);
        width: 16px;
        height: 16px;
      }

      .menu-ai {
        display: flex;
        align-items: center;
        font-size: 14px;
        text-align: center;
        background: var(--linwiteditor-menus-ai-bg-color);
        color: var(--linwiteditor-menus-ai-color);
        border-radius: 3px;
        width: 30px;
        padding: 0 1px 0 5px;
        white-space: nowrap;

        // AI svg style
        svg {
          fill: var(--linwiteditor-menus-ai-color);
        }
      }

      .colors-menu {
        //width: 36px;
        display: flex;
        padding-right: 0;

        .currentColor {
          width: 16px;
          height: 16px;

          .colors-menu-icon {
            height: calc(100% - 3px);
            width: 100%;
            display: flex;

            svg {
              width: 100%;
              height: 100%;
            }
          }

          .colors-menu-status {
            width: 100%;
            height: 3px;
            background: #333
          }
        }


        #dropdown {
          display: flex;
        }
      }

      .active {
        background: var(--linwiteditor-menus-item-hover-color);
      }

      // size -> medium
      &[data-size=medium] {
        #text {
          font-size: 16px;
        }

        svg {
          width: 20px;
          height: 20px;
        }

        .menu-ai {
          svg {
            width: 16px;
            height: 16px;
          }
        }

        .colors-menu {
          .currentColor {
            width: 18px;
            height: 18px;
          }
        }

      }

      // size -> large
      &[data-size=large] {
        #text {
          font-size: 17px;

          svg {
            width: 20px;
            height: 20px;
          }
        }

        svg {
          width: 24px;
          height: 24px;
        }

        .menu-ai {
          svg {
            width: 18px;
            height: 18px;
          }
        }

        .colors-menu {
          .currentColor {
            width: 20px;
            height: 20px;
          }
        }
      }
    }

    .linwiteditor-menu-item > div {
      height: 18px;
      padding: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      border-radius: 3px;
    }

    .linwiteditor-menu-item > div:hover:not([no-hover]) {
      background: var(--linwiteditor-menus-item-hover-color);
    }
  }

  .linwiteditor-content:focus-visible {
    outline: none;
  }

  .linwiteditor-content {
    ::selection {
      background: #88c6ff66;
    }

    [contenteditable="true"]::selection {
      background: #88c6ff66;
    }

    [contenteditable="true"]:focus-visible {
      outline: none;
    }

    .selection-marker {
      background: #88c6ff66;
      padding: 0;
    }
  }

  .suggestion {
    background: var(--linwiteditor-menus-bg-color);
    border-radius: 5px;

    .items {
      box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.1);
      overflow: hidden;
      border-radius: 5px;
      border: solid 1px;
      border-color: var(--linwiteditor-popover-border-color);
      background: var(--linwiteditor-popover-bg-color);

      .item {
        display: block;
        height: 20px;
        width: 150px;
        margin: 0;
        color: var(--linwiteditor-text-color);
        background: var(--linwiteditor-menus-bg-color);
        border: none;
        text-align: left;
        padding: 10px 20px;
        cursor: pointer;
      }

      .item-selected {
        background: var(--linwiteditor-popover-selected-color);
      }
    }
  }


  .linwiteditor-bubble-menu {
    height: 30px;
    background: var(--linwiteditor-popover-bg-color);
    border: solid 1px var(--linwiteditor-popover-border-color);
    border-radius: 3px;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 5px;
    color: var(--linwiteditor-text-color);

    .active {
      background: var(--linwiteditor-menus-item-hover-color);
    }

    &-item {
      height: 20px;
      margin: 3px;
      padding: 5px;
      cursor: pointer;
      border-radius: 3px;

      svg {
        width: 20px;
        height: 20px;
        fill: var(--linwiteditor-text-color);
      }
    }

    &-item:hover {
      background: var(--linwiteditor-menus-item-hover-color);

    }
  }


  .linwiteditor-dropdown-container {
    background: var(--linwiteditor-popover-bg-color);
    border: solid 1px var(--linwiteditor-popover-border-color);
    overflow: auto;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    border-radius: 3px;
    color: var(--linwiteditor-menus-text-color);

    svg {
      fill: var(--linwiteditor-menus-text-color);
      width: 16px;
      height: 16px;
    }

    .linwiteditor-dropdown-item {
      display: flex;
      padding: 3px 0;

      .text {
        padding: 2px 15px 0 0;
        overflow: hidden;
        font-size: 14px;
        display: flex;

        svg {
          width: 18px;
          height: 18px;
        }

        h1, h2, h3, h4, h5, h6 {
          padding: 0;
          margin: 0;
          border: none;
        }

        h1 {
          font-size: 1.7em;
        }

        h2 {
          font-size: 1.6em;
        }

        h3 {
          font-size: 1.5em;
        }

        h4 {
          font-size: 1.4em;
        }

        h5 {
          font-size: 1.3em;
        }

        h6 {
          font-size: 1.2em;
        }
      }

      .red-dot-container {
        display: flex;
        width: 30px;
        overflow: hidden;
        padding-bottom: 5px;

        .red-dot {
          width: 10px;
          height: 6px;
          border-left: 2px solid var(--linwiteditor-text-color);
          border-bottom: 2px solid var(--linwiteditor-text-color);
          rotate: -45deg;
          margin: auto;
        }
      }

      &:hover {
        background: var(--linwiteditor-popover-selected-color);
        cursor: pointer;
      }

    }

    .emoji-cells {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 0 3px;

      .emoji-cell {
        margin: 2px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2px 1px;
        border-radius: 3px;

        span {
          margin-top: 2px;
        }

        &:hover {
          background: var(--linwiteditor-popover-selected-color);
        }
      }
    }

    #table-cells {
      .table-cell {
        border: solid 1px var(--linwiteditor-menus-table-cell-border-color);
      }

      .active {
        background: var(--linwiteditor-popover-selected-color);
      }
    }

    .color-panel {
      margin: 0 5px;

      &-title {
        padding-top: 5px;
        font-size: 14px;
        color: var(--linwiteditor-popover-title-color);
      }

      &-default-button {
        text-align: center;
        border: 1px solid var(--linwiteditor-button-border-color);;
        color: var(--linwiteditor-popover-title-color);
        line-height: 24px;
        font-size: 14px;
        border-radius: 3px;
      }
    }
  }

  .linwiteditor-resize-wrapper {
    position: relative;
    display: inline-flex;

    img {
      position: relative;
    }

    &:hover .linwiteditor-resize {
      display: inline-block;
    }

    .linwiteditor-resize {
      display: none;
      position: absolute;
      top: -2px;
      left: -2px;
      border: 2px solid #609eec;
      width: 100%;
      height: 100%;

      div {
        position: absolute;
        display: flex;
        width: 20px;
        height: 20px;
        z-index: 1;
      }

      div::after {
        content: "";
        display: block;
        margin: auto;
        width: 8px;
        height: 8px;
        background: #609eec;
        border-radius: 50%;
      }

      .linwiteditor-resize-btn-top-left {
        left: -10px;
        top: -10px;
        cursor: nwse-resize;
      }

      .linwiteditor-resize-btn-top-right {
        right: -10px;
        top: -10px;
        cursor: nesw-resize;
      }

      .linwiteditor-resize-btn-bottom-left {
        left: -10px;
        bottom: -10px;
        cursor: nesw-resize;
      }

      .linwiteditor-resize-btn-bottom-right {
        right: -10px;
        bottom: -10px;
        cursor: nwse-resize;
      }
    }
  }

  .linwiteditor-loader-placeholder {
    width: 200px;
    height: 200px;
    background: #efefef;
    display: flex;

    svg {
      margin: auto;
      width: 80px;
      fill: #cccccc;
      animation: rotate 2s linear infinite;
    }

    @keyframes rotate {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
  }

  .linwiteditor-codeblock-wrapper {
    background: var(--linwiteditor-content-pre-bg-color);
    word-wrap: normal;
    white-space: normal;
    padding-top: 5px;
    border-radius: 5px;

    &:hover .linwiteditor-codeblock-tools {
      display: flex;
    }

    .linwiteditor-codeblock-tools {
      display: flex;
      justify-content: flex-end;

      div {
        color: var(--linwiteditor-text-color);
        display: flex;
        cursor: pointer;
        align-items: center;
        font-size: 14px;
        margin: 0 3px;
      }

      &-lang {
        svg {
          fill: var(--linwiteditor-text-color);
          margin: 2px;
          height: 16px;
          width: 16px;
        }
      }

      &-autowrap {
        margin: 0 10px;

        svg {
          fill: var(--linwiteditor-text-color);
          margin: 2px;
          height: 14px;
          width: 14px;
        }
      }
    }
  }

  .linwiteditor-codeblock-langs {
    background: var(--linwiteditor-popover-bg-color);
    width: 150px;
    max-height: 300px;
    overflow: auto;
    border: solid 1px var(--linwiteditor-popover-border-color);
    color: var(--linwiteditor-menus-text-color);

    &-item {
      padding: 5px;
      font-size: 14px;
      height: 20px;
      line-height: 20px;
      cursor: pointer;

      &:hover {
        background: var(--linwiteditor-popover-selected-color);
      }
    }
  }

  .container-wrapper {
    &:hover .linwiteditor-container-tools {
      display: flex;
    }
  }

  div.info {
    background: var(--linwiteditor-content-container-info-color);
  }

  div.warning {
    background: var(--linwiteditor-content-container-warning-color);
  }

  div.danger {
    background: var(--linwiteditor-content-container-danger-color);;
  }

  .linwiteditor-container-tools {
    width: 40px;
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--linwiteditor-button-bg-color);
    border: solid 1px var(--linwiteditor-button-border-color);
    padding: 3px 5px;
    border-radius: 3px;
    cursor: pointer;

    &:hover {
      background: var(--linwiteditor-button-hover-bg-color);
      border-color: var(--linwiteditor-button-hover-border-color);
    }

    &-body {
      width: fit-content;
      height: fit-content;
      background: var(--linwiteditor-popover-bg-color);
      border: solid 1px var(--linwiteditor-button-border-color);
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 10px;
      border-radius: 3px;
      color: var(--linwiteditor-text-color);

      &-color-items {
        display: flex;
        gap: 5px;
      }

      &-color-box {
        width: 20px;
        height: 20px;
        border: 1px solid var(--linwiteditor-popover-border-color);
        cursor: pointer;
      }
    }
  }

  linwiteditor-footer {
    > div {
      border-top: solid 1px var(--linwiteditor-border-color);
      height: 20px;
      line-height: 20px;
      font-size: 14px;
      text-align: right;
      color: #666;

      span {
        margin-left: auto;
      }

      svg {
        fill: #666;
        rotate: -45deg;
        transform: translate(0, 5px);
        cursor: nwse-resize;
      }
    }
  }


  //menu tips start
  .tippy-box {
    max-width: 1000px !important;
  }

  .tippy-box[data-animation="fade"][data-state="hidden"] {
    opacity: 0;
  }

  [data-tippy-root] {
    max-width: calc(100vw - 10px);
  }

  .tippy-box {
    position: relative;
    //background-color: #333;
    //color: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    outline: 0;
    transition-property: transform, visibility, opacity;
  }

  .tippy-box[data-placement^="top"] > .tippy-arrow {
    bottom: 0;
  }

  .tippy-box[data-placement^="top"] > .tippy-arrow:before {
    bottom: -7px;
    left: 0;
    border-width: 8px 8px 0;
    border-top-color: initial;
    transform-origin: center top;
  }

  .tippy-box[data-placement^="bottom"] > .tippy-arrow {
    top: 0;
  }

  .tippy-box[data-placement^="bottom"] > .tippy-arrow:before {
    top: -7px;
    left: 0;
    border-width: 0 8px 8px;
    border-bottom-color: initial;
    transform-origin: center bottom;
  }

  .tippy-box[data-placement^="left"] > .tippy-arrow {
    right: 0;
  }

  .tippy-box[data-placement^="left"] > .tippy-arrow:before {
    border-width: 8px 0 8px 8px;
    border-left-color: initial;
    right: -7px;
    transform-origin: center left;
  }

  .tippy-box[data-placement^="right"] > .tippy-arrow {
    left: 0;
  }

  .tippy-box[data-placement^="right"] > .tippy-arrow:before {
    left: -7px;
    border-width: 8px 8px 8px 0;
    border-right-color: initial;
    transform-origin: center right;
  }

  .tippy-box[data-inertia][data-state="visible"] {
    transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
  }

  .tippy-arrow {
    width: 16px;
    height: 16px;
    //color: #333;
  }

  .tippy-arrow:before {
    content: "";
    position: absolute;
    border-color: transparent;
    border-style: solid;
  }

  .tippy-content {
    position: relative;
    padding: 5px 9px;
    z-index: 1;
  }

  .tippy-box[data-theme~='aietip'] {
    background-color: var(--linwiteditor-menus-tip-bg-color);
    color: var(--linwiteditor-menus-tip-text-color);
  }

  .tippy-box[data-theme~='aietip'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: var(--linwiteditor-menus-tip-bg-color);
  }

  .tippy-box[data-theme~='aietip'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: var(--linwiteditor-menus-tip-bg-color);
  }

  .tippy-box[data-theme~='aietip'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: var(--linwiteditor-menus-tip-bg-color);
  }

  .tippy-box[data-theme~='aietip'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: var(--linwiteditor-menus-tip-bg-color);
  }
}

.linwiteditor-theme-light {
  @import (less)  '../../node_modules/highlight.js/styles/atom-one-light.css';
}

.linwiteditor-theme-dark {
  @import (less)  '../../node_modules/highlight.js/styles/atom-one-dark.css';
}


.linwiteditor-popover {
  min-width: 100px;
  min-height: 100px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.1);
  background: var(--linwiteditor-popover-bg-color);
  border: 1px solid var(--linwiteditor-popover-border-color);
  border-radius: 3px;

  &-header {
    height: 20px;
    display: flex;
    padding: 5px 5px 0;

    &-close {
      height: 20px;
      width: 20px;
      margin-left: auto;
      cursor: pointer;
    }

    svg {
      fill: var(--linwiteditor-text-color);
    }
  }

  &-content {
    flex-grow: 1;
    padding: 0 10px 0 10px;

    > div {
      color: var(--linwiteditor-text-color);
      font-size: 14px;
    }

    input, select, textarea {
      border: solid 1px var(--linwiteditor-input-border-color);
      height: 25px;
      padding-inline: 5px;
      border-radius: 3px;
      background: var(--linwiteditor-input-bg-color);
      color: var(--linwiteditor-text-color);

      &:focus-visible {
        outline: 0;
        border: solid 1px var(--linwiteditor-input-focus-border-color);
        background-color: var(--linwiteditor-input-focus-bg-color);
      }
    }

    select {
      height: 30px;
    }
  }

  &-footer {
    display: flex;
    padding: 10px;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;

    button {
      color: var(--linwiteditor-text-color);
      padding: 5px 10px;
      font-size: 14px;
      border-radius: 3px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      gap: 2px;

      svg {
        width: 14px;
        height: 14px;
        fill: var(--linwiteditor-text-color);
      }
    }

    &-confirm {
      background: var(--linwiteditor-button-bg-color);
      border: solid 1px var(--linwiteditor-button-border-color);

      &:hover {
        background: var(--linwiteditor-button-hover-bg-color);
        border-color: var(--linwiteditor-button-hover-border-color);
      }
    }

    &-cancel {
      border: none;
      background: none;

      &:hover {
        background: var(--linwiteditor-button-hover-bg-color);
        border-color: var(--linwiteditor-button-hover-border-color);
      }

    }
  }

}

.ai-command-container {
  width: 200px;
  border: solid 1px;
  border-color: var(--linwiteditor-popover-border-color);
  background: var(--linwiteditor-popover-bg-color);
  color: var(--linwiteditor-text-color);
  border-radius: 5px;
  box-shadow: 0 0 7px 0 rgba(0, 0, 0, .1);
  display: flex;
  padding: 10px 0;
  flex-direction: column;

  .active {
    background: var(--linwiteditor-popover-selected-color);
  }

  &-title {
    width: 100%;
    height: 1px;
    background-color: #eaeaea;
    border: none;
    margin: 5px 0;
  }

  hr {
    width: 100%;
    height: 1px;
    background-color: var(--linwiteditor-popover-border-color);
    border: none;
    margin: 5px 0;
  }

  &-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 10px;

    &-item {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;

      &:hover {
        background-color: var(--linwiteditor-popover-selected-color);
      }
    }

    svg {
      fill: var(--linwiteditor-text-color);
      width: 18px;
      height: 18px;
    }
  }

  &-item {
    padding: 10px 20px;
    font-family: Arial, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--linwiteditor-text-color);
    display: flex;
    align-items: center;
    cursor: pointer;

    svg {
      width: 16px;
      height: 16px;
      margin-right: 10px;
    }

    &:hover {
      background-color: var(--linwiteditor-popover-selected-color);
    }

  }

}






