.widget {
  box-sizing: border-box;
  // padding: 15px 0;
  background-color: #fff;
  box-shadow: -1px 0 0 0 hsl(0deg 0% 87% / 65%);
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: scroll;
  font-size: 12px;
  transition: all .35s ease;
}

.aside .form,
.widget .form {
  padding-top: 28px;
  padding-bottom: 28px;
  height: auto;

  .adui-form-item {
    margin-bottom: 20px;
  }

  .adui-form-label,
  .adui-form-tip {
    font-size: 12px;
    line-height: 18px;
  }

  .adui-form-label {
    width: 4em;
  }

  .adui-form-control {
    flex: 1;
  }

  .ant-radio-wrapper {
    font-size: 12px;
  }
}

.widget_back {
  opacity: 0;
  transform: translateX(-30px);
}

.caption {
  padding-top: 20px;
  padding-bottom: 20px;
}

.section {
  padding-left: 28px;
  padding-right: 28px;
  box-shadow: 0 1px 0 0 hsl(0deg, 0%, 87%, 65%);
}

.goBack {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  cursor: pointer;
}

.caption-title {
  font-size: 14px;
  line-height: 24px;
  color: #1f1f1f;
  font-weight: 600;
}

.adui-form-label,
.adui-form-tip {
  font-size: var(--font-size-small);
}

.adui-form-tip_normal {
  color: #a3a3a3;
}

.adui-form-tip:not(:empty) {
  margin-top: 8px;
}

.adui-form-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  color: var(--gray-900);
  white-space: nowrap;
}

.adui-form-item {
  display: flex;
  margin-bottom: 24px;
  align-items: baseline;
}

.form-caption {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 20px;
  color: #1f1f1f;
  font-weight: 600;
}

.upload-img-item {
  width: 70px;
  height: 70px;
  cursor: pointer;

}

.upload-img-item-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fdfdfd;
  border: 1px dashed #e3e3e3;
  color: #919191;
  border-radius: 4px;
  background-size: cover;
  background-position: 50% 50%;

  &::before {
    content: "";
    padding-top: 100%;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    opacity: 0;
    border-radius: 4px;
    visibility: hidden;
    transition: all .1s ease;
  }

  &:hover {
    background-color: #fafafa;
    color: #363636;
    border: 1px dashed #d6d6d6;

    & .upload-img-item-action {
      opacity: 1;
      visibility: visible;
    }

    & .sliderhandle {
      opacity: 1;
      visibility: visible;
    }
  }
}

.upload-img-item_uploaded {
  .upload-img-item-inner {
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: 6px;
  }
}

.sliderhandle {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  line-height: 12px;
  color: #d6d6d6;
  font-weight: 600;
  background-color: rgba(0, 0, 0, .6);
  border-radius: 100%;
  // opacity: 0;
  // visibility: hidden;
  cursor: pointer;
  transform: scale(1.2);
  transform-origin: 80% 0;
}

.upload-img-item-action {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  line-height: 12px;
  color: #d6d6d6;
  font-weight: 600;
  background-color: rgba(0, 0, 0, .6);
  border-radius: 100%;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transform: scale(1.2);
  transform-origin: 80% 0;
}

.imageUpload {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px hsl(0deg, 0%, 87%, 45%);
  list-style-type: none;
  margin: 0;
}

.imageUploadItem {
  display: inline-block;
  vertical-align: top;
  padding: 4px;
  background-color: transparent;
  border-radius: 4px;

  &.active .upload-img-item-inner {
    border: 1px dashed #1890ff;
  }
}

.imageUploadItemInnerDone {
  &.active .upload-img-item-inner {
    border: 1px solid #1890ff;
  }
}

.addDraw {
  .ant-drawer-body {
    padding-right: 0;

    >.ant-spin-nested-loading {
      width: 100%;
      height: 100%;

      >.ant-spin-container {
        width: 100%;
        height: 100%;
      }
    }
  }

  .fl-sb {
    justify-content: space-between;
  }

  .fl-center,
  .fl-sb {
    display: flex;
    align-items: center;
  }

  .fl-sb>div .swatch {
    margin-top: 4px !important;
  }
}



.compt {
  position: relative;
  z-index: 1000;

  &:hover {
    z-index: 1002;
  }

  &.comptActive {
    position: relative;
    z-index: 1002;

    .componentWrap {
      z-index: 2;
    }
  }

  &.comptFixedBottom {
    position: absolute;
    z-index: 2;
    bottom: 0;
    width: 375px;
    text-align: left;
  }

  &:hover .comptEditBtnsInner {
    opacity: 1;
    visibility: visible;
  }

  &:hover .componentWrap {
    z-index: 2;

    &::after {
      box-shadow: 0 0 0 1px #1890ff;
      display: block;
    }
  }

  &:hover .comptEditTrBtns {
    display: block;
  }

  &.comptActive .componentWrap {
    z-index: 2;
    box-shadow: 0 0 0 2px #1890ff;
    display: block;
  }
}


.topComptArea {
  align-items: center;
  justify-content: center;
  margin: 8px;
  height: 240px;
  z-index: 2;
  font-size: 16px;
  color: rgba(0, 0, 0, .58);
  letter-spacing: 0;
  line-height: 22px;
  text-align: center;
  background: #fafafa;
  border: 1.5px dashed rgba(0, 0, 0, .06);

  svg {
    margin-top: 35px;
  }

  .desc {
    font-size: 12px;
    line-height: 20px;
    color: rgba(0, 0, 0, .36);
  }

  .topAreaTitle {
    margin: 0;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    color: rgba(0, 0, 0, .58);
  }

  &.dragging {
    padding: 0;
    background-color: #e4f2ff;
    border: 1px dashed #1890ff;
  }
}

.uiFlexCenter {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.uiFlexAlignCenter {
  -ms-flex-pack: center;
  justify-content: center;
}

.comptPlaceholder {
  position: relative;
  height: 0;
  list-style-type: none;
  padding: 0;
  border-radius: 0;
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  // color: #1890ff;
  letter-spacing: 0;
  text-align: center;
  display: flex;
  flex-direction: column;

  &>div.page-0 {
    min-height: 420px;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .comptCon {
    // min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: center;
    font-weight: 600;

    &.draggingCon {
      min-height: 100px;
      border: 1px dashed rgba(0, 0, 0, 0.2);
      color: rgba(0, 0, 0, 0.2);
      flex: 1;
    }

    &.draggingCon1 {
      min-height: 60px;
      border: 1px dashed rgba(0, 0, 0, 0.2);
      color: rgba(0, 0, 0, 0.2);
    }

    &.hovering {
      border: 1px dashed #1890ff;
      color: #1890ff;
    }
  }
}

.comptPlaceholder.lastChild,
.pageEmpty .comptPlaceholder {
  flex: 1;
  height: auto;
}

.default {
  width: 100%;
  height: 100%;
  background: #fafafa;
  overflow: hidden;
}

.defaultIcon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto;
  color: #b0b0b0;

  >svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }
}

.form-result-text {
  color: #1f1f1f;
  line-height: 26px;
  font-size: 12px;

  &>span {
    margin-right: 10px;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 50%;
      right: -10px;
      margin-top: -6px;
      width: 1px;
      height: 12px;
      background-color: #ebebeb;
    }
  }
}

.componentWrap {
  position: relative;
  z-index: 1;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    box-shadow: 0 0 0 2px #1890ff;
    display: none;
  }

  .textAreaDiv {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
  }

  textarea {
    outline: 0;
    padding: 0;
    color: #666;
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    overflow: auto;
    vertical-align: top;
    resize: none;
  }

  .textarea {
    position: absolute;
    z-index: 2;
    left: 0;
    border: none;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
  }
}

.componentContent {
  overflow: hidden;

  .sliderCon {
    position: relative;
    width: 375px;
    height: 222px;

    >.default {
      width: 375px;
      height: 100%;
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .sliderD {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;

    >i {
      display: inline-block;
      vertical-align: middle;
      width: 6px;
      height: 6px;
      border-radius: 3px;
      background-color: rgba(0, 0, 0, 0.15);
      margin-left: 0px;

      &:not(:nth-child(1)) {
        margin-left: 10px;
      }
    }
  }
}

.comptUpload {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.comptEditButton {
  padding: 12px 34px;
  font-size: 13px;
  color: #6b6b6b;
  letter-spacing: 0;
  line-height: 22px;
  border: 1px dashed #d6d6d6;
  border-radius: 3px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;

  &:hover {
    color: #292929;
    background: rgba(0, 0, 0, .03);
    border: 1px dashed #a3a3a3;
    border-radius: 3px;
  }
}

.shelfItemContent {
  .title {
    font-weight: 700;
    font-size: 14px;
    color: #353535;
    letter-spacing: 0;
  }

  .desc {
    font-size: 13px;
    color: #4d4d4d;
    letter-spacing: 0;
    font-weight: normal;
  }

  .btn {
    display: inline-block;
    background: #07c160;
    width: 77px;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    color: #fff;
    text-align: center;
    box-sizing: content-box;
  }
}

.shelf.listType {
  flex-direction: column;

  p {
    margin: 0;
    text-align: left;
  }

  .shelfItem {
    height: 114px;
    border-radius: 4px;
  }

  .shelfItemImg {
    width: 90px;
    height: 90px;
  }

  .shelfItemContent {
    // flex: 1;
    // width: calc(100% - 90px);
    height: 100%;
    min-width: 0;
    text-align: left;

    .title {
      white-space: nowrap;
      overflow: hidden;
    }

    .desc {
      height: 35px;
      overflow: hidden;
    }
  }
}

.shelfItem-3q {
  display: flex;
}

.shelf.gridType {
  display: flex;
  flex-wrap: wrap;

  .shelfItem-3q {
    flex-direction: column;
    width: 160px;
    border-radius: 4px;
    box-sizing: content-box;
  }

  .shelfItemImg {
    width: 150px;
    height: 150px;
    margin-bottom: 8px;
  }
}

.shelfItem {
  display: flex;
}

.comptEditBtns {
  position: absolute;
  top: 0;
  right: -35px;
  width: 34px;
  z-index: 1;
  box-sizing: inherit;
}

.comptEditBtnsInner {
  opacity: 0;
  visibility: hidden;
  background-color: #fff;
  transition: all .1s ease;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 0 0 1px hsl(0deg, 0%, 87%, 20%), 0 3px 6px 0 rgb(0, 0, 0, 4%);
  overflow: hidden;

  button {
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: var(--gray-800);
    background-color: transparent;
    padding: 0 4px;
    margin: 4px;
    border-radius: 4px;
    text-decoration: none;
    outline: none;
    appearance: none;
    cursor: pointer;
    user-select: none;
    border: none;
    transition: color var(--motion-duration-fast) var(--ease-in-out), background-color var(--motion-duration-fast) var(--ease-in-out), background-image var(--motion-duration-fast) var(--ease-in-out), box-shadow var(--motion-duration-fast) var(--ease-in-out);
  }
}

.text {
  word-wrap: break-word;
}

.shelfnewColor {
  &>div {
    .colorName {
      text-align: center;
      color: rgb(99, 99, 99);
      font-size: 12px;
    }
  }
}

.colorShow {
  box-shadow: 0 0 0 1px #e0e0e0;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  width: 70px;
}

.comptEditTrBtns {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: none;
  background-color: rgba(0, 0, 0, 0.3);

  .comptEditTrBtnsInner {
    display: flex;
    justify-content: flex-end;

    &>a {
      font-size: 12px;
      padding: 0 5px;

      &:hover {
        box-shadow: 0 0 0 1px #1890ff;
      }
    }

    .ant-popover-inner-content {
      padding: 3px !important;
    }
  }
}

.assBts {
  display: flex;

  >div {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 4px;

    &:hover {
      box-shadow: 0 0 0 1px #1890ff;
    }

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

.text {
  word-wrap: break-word;
}

.videoPlay {
  position: relative;

  >span {
    z-index: 10;
    background-image: url('../../../../../public/MpaVideoIcon.png');
    margin-top: -23px;
    margin-left: -23px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    background-size: 46px;
  }

  >div {
    display: block !important;
    border-radius: 0 !important;
    
    .ant-image{
      display: block;
    }
  }
  
}

.floatButtonWrapper {
  padding: 8px;
  background-color: #fff;
}

.floatButton {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-left: 16px;
  padding-right: 20px;
  height: 72px;
  background-color: hsla(0, 0%, 94%, .96);
  border-radius: 8px;
}

.floatButtonAvatarPlaceholder {
  background-color: #c7c7c7;
}

.floatButtonAvatar,
.floatButtonAvatarPlaceholder {
  flex: none;
  margin-right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.floatButtonTexts {
  flex: 1;
  min-width: 0;
}

.floatButtonTitle {
  font-size: 16px;
  line-height: 22px;
  color: #1f1f1f;
  font-weight: 600;
}

.floatButtonDesc {
  margin-top: 1px;
  font-size: 12px;
  line-height: 17px;
  color: #a3a3a3;
}

.floatButtonDesc,
.floatButtonTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floatButtonLink {
  margin-left: 12px;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 14px;
  line-height: 32px;
  color: #fff;
  font-weight: 500;
  background-color: #07c160;
  border-radius: 4px;
}

.floatType {
  >.ant-radio-button-wrapper {
    border-radius: 0;
    padding: 4.5px 6px;
    margin-right: 5px;
  }
}

.floatTypeInner {
  width: 59px;
  display: flex;
  align-items: center;
  padding-left: 4px;
  padding-right: 4px;
  height: 20px;
  background-color: hsla(0, 0%, 42%, .25);
}

.floatTypeAvatar {
  flex: none;
  margin-right: 2px;
  width: 12px;
  height: 12px;
  background-color: #6b6b6b;
}

.floatTypeText_one,
.floatTypeText_two {
  flex: 1;

  &::before {
    display: block;
    opacity: .23;
    height: 2px;
    background-color: #6b6b6b;
  }

  &::after {
    display: block;
    opacity: .23;
    height: 2px;
    background-color: #6b6b6b;
  }
}

.floatTypeText_one::before,
.floatTypeText_two::before {
  content: "";
}

.floatTypeText_two::after {
  content: "";
  margin-top: 2px;
  width: 70.58824%;
}

.floatTypeButton {
  margin-left: 2px;
  width: 12px;
  height: 4px;
  background-color: #6b6b6b;
}

.aside {
  position: absolute;
  top: 0;
  background-color: #fff;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.aside-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 12px;
  box-shadow: 0 1px 0 0 rgba(222, 222, 222, 0.65);

  >button {
    color: #6b6b6b;
    font-size: 12px;
  }
}

.aside-select {
  span.ant-select-selection-item {
    display: flex;
    align-items: center;
  }

  .ant-select-item-option-content {
    display: flex;
    align-items: center;
  }
}

.custorGroup {
  flex-direction: column;
}
