.ant-modal-root {

  // 如果要改弹窗内部样式请在下面的作用域修改 不然会影响其他弹窗
  .ant-modal-wrap.drag-dialog {
    height: 100%;
    overflow: hidden;

    // top: 45px !important;
    .fl-modal {
      padding-bottom: 0px !important;

      .resize-container {
        pointer-events: auto;
        height: 100%;

        .ant-modal-content {
          height: 100%;
          width: 100%;
        }

        &.height-auto {
          height: auto !important;
        }
      }


      .ant-modal-header {
        cursor: move;
      }

      .ant-modal-body {
        padding: 8px;
      }

      // 电脑的弹窗
      &.pc-dialog {
        height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden;
        padding: 0;

        .icon {
          cursor: pointer;
        }

        .ant-modal-header {
          padding: 0px !important;
          // background: #F7F8FA;
          // border-bottom: none;

          .move-title,
          .disabled-move-title {
            user-select: none;
            font-size: 16px;
            font-weight: bold;
            color: #2A3E61;
          }

          .dialog-title {
            display: flex;
            width: 100%;
            padding: 16px 24px;
            align-items: center;
            justify-content: space-between;
          }

          .tools-bar {
            display: flex;
            justify-content: flex-end;
            // gap: 10px;
            width: 75px;
            color: #00000073;
            font-size: 14px;

            .tool-btn {
              width: 1em;
              height: 1em;
            }

            div {
              &:not(:first-child) {
                margin-left: 10px;
              }
            }
          }
        }

        .ant-modal-footer:empty {
          display: none;
        }

        .ant-modal-close {
          .ant-modal-close-x {
            svg {
              .st0 {
                fill: #AAB2C0;
              }
            }
          }
        }
      }

      // 手机的弹窗 说实话真的有这种东西吗？
      &.mb-dialog {
        .ant-modal-footer {
          padding: 0px !important;
        }

        .ant-modal-header {
          border-bottom: 0px solid #fff !important;
          border-radius: 25px !important;
          padding: 0px !important;

          .move-title {
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
            padding: rem(40) 0px;
            text-align: center;
            color: #333;
            font-size: 18px
          }
        }

        .ant-modal-content {
          border-radius: 25px !important;
          font-size: 15px
        }

        .foot-mb {
          display: flex;
          height: 48px;

          &>div {
            width: 50%;
            height: 100%;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 500;
          }

          &>div:first-child {
            border-right: 1px solid #e8e8e8;
            color: #333;
            font-size: 16px
          }

          &>div:last-child {
            color: #2A87EB;
            font-size: 16px
          }
        }
      }
    }

    .handle-box {
      pointer-events: all;
    }

  }
}

// 防止被其他样式覆盖
.drag-dialog {
  .ant-modal-body {
    max-height: 100% !important;
  }
}

.fixed-hover-title {
  display: none;
}

.dialog-fix-right {
  .dialog-title {
    position: relative;
  }

  .fixed-hover-title {
    display: block;
    opacity: 0;
    position: absolute;
    top: 30px;
    left: -30px;
    padding: 2px;
    width: 30px;
    // background-color: #fff;
    background-image: linear-gradient(180deg, rgba(53, 116, 238, 0.16) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 4px;
    text-align: center;
    transition: all .3s ease;

    &.show {
      opacity: 1;
    }
  }

  &:hover {
    // right: 0 !important;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-duration: .2s;
  }
}

.resize-container {
  pointer-events: auto;
  height: 100%;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: -100vh;
    width: 100%;
    height: 50px;
    background-color: rgba(180, 180, 180, 0.5);
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-duration: .2s;

  }

  &.sticky-right {
    &::before {
      height: 200vh;
    }
  }

  .ant-modal-content {
    height: 100%;
    width: 100%;
  }

  &.height-auto {
    height: auto !important;
  }
}

.fl-dialog-box {
  &.isDragging {
    .mini-dialog-wrap {
      pointer-events: auto;
    }
  }
}

.mini-dialog-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden;
  pointer-events: none;
}

.mini-dialog-drag-box {
  // position: fixed !important;
  display: none !important;
  pointer-events: auto;
  opacity: 0.8;
  transition: opacity .3s ease;

  &:hover {
    opacity: 1;
  }

  &.show {
    display: block !important;
  }
}

.min-dialog {
  z-index: 1;
  position: fixed;
  height: 50px;
  background: #fff;
  padding: 5px 10px;
  bottom: 0px;
  right: 0px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 12px 0 rgb(115 107 107 / 30%);
  border-radius: 5px;

  .move-title {
    user-select: none;
    font-weight: bold;
    color: #2A3E61;
  }

  .dialog-title {
    display: flex;
    width: 100%;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
  }

  .tools-bar {
    display: flex;
    justify-content: space-between;
    width: 50px;
  }
}

.fl-dialog-wrapper {
  .ant-modal-header {
    padding: 0px;
  }

  .init-modal {
    padding-bottom: 0px !important;
  }

  .move-title,
  .disabled-move-title {
    padding: 16px 24px !important;
  }

  .move-title {
    cursor: Move;
  }
}

.react-draggable-transparent-selection {
  pointer-events: none !important;
}