/**
 * NOTE: This is not compiled.
 */
@ant-prefix: ly;
.ant-design-draggable-modal {
  pointer-events: none;
  overflow: hidden !important;
  .@{ant-prefix}-modal {
    display: flex;
    max-width: none;
    transform-origin: 50% 50% !important;
  }
  .@{ant-prefix}-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto !important;
  }
  .@{ant-prefix}-modal-header {
    flex: 0;
    padding: 0;
  }
  .@{ant-prefix}-modal-footer {
    flex: 0;
    padding: 16px;
  }
  .ant-design-draggable-modal-title {
    cursor: move;
    padding: 16px;
  }
  .@{ant-prefix}-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
  }
  .@{ant-prefix}-modal-close-icon {
    line-height: 54px !important;
  }
}

.ant-design-draggable-modal-resize-handle-inner {
  width: 12px;
  right: 14px;
  border: 2px solid grey;
  height: 12px;
  bottom: 14px;
  position: absolute;
  border-top: 0;
  border-left: 0;
}

.ant-design-draggable-modal-resize-handle {
  right: -10px;
  width: 44px;
  bottom: -10px;
  cursor: se-resize;
  height: 44px;
  position: absolute;
}
.preview-root {
  width: 100% !important;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 16px;
  .preview-btn {
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: 220px;
    height: 44px;
    background-color: #606266;
    border-color: #fff;
    border-radius: 22px;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-around;
    opacity: 0;
    box-sizing: border-box;
    user-select: none;
    transition: all 0.3s;
    &-item {
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      width: 44px;
    }
  }
  .preview-wrapper {
    width: 100% !important;
    height: 100%;
    overflow: auto;
    .preview-image {
      width: 100%;
      transition: all 0.3s;
      display: inline-block;
    }
  }
  &:hover {
    .preview-btn {
      opacity: 0.8;
    }
  }
}
