.dec-layout-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #ffffff;
  box-sizing: border-box;
  padding: 20px 0 52px 0;
}
.dec-layout-left {
  position: absolute;
  padding: 0 20px 20px;
  top: 52px;
  bottom: 0;
  left: 80px;
  width: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid #d2d2d2;
  border-left: 1px solid #d2d2d2;
  z-index: 2;
  &::-webkit-scrollbar {
    display: none;
  }
  > div {
    clear: both;
  }
  .d-tag {
    padding-top: 15px;
    font-weight: bold;
    font-size: 16px;
  }
  .d-tab {
    float: left;
    width: 60px;
    height: 54px;
    box-sizing: border-box;
    border: 1px dotted #60a6e4;
    margin: 5px;
    background-color: #fbfbfb;
    padding-top: 6px;
    border-radius: 6px;
    cursor: move;
    text-align: center;
  }
  .d-img {
    height: 22px;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    &.shopFront {
      background-image: url("./icon/shopFront.png");
    }
    &.shopSearch {
      background-image: url("./icon/shopSearch.png");
    }
    &.showBlank {
      background-image: url("./icon/showBlank.png");
    }
    &.showLines {
      background-image: url("./icon/showLines.png");
    }

    &.shopNav {
      background-image: url("./icon/shopNav.png");
    }
    &.shopCoupon {
      background-image: url("./icon/shopCoupon.png");
    }
    &.goodGroup {
      background-image: url("./icon/goodGroup.png");
    }
    &.goodList {
      background-image: url("./icon/goodList.png");
    }

    &.blockTitle {
      background-image: url("./icon/blockTitle.png");
    }
    &.descText {
      background-image: url("./icon/descText.png");
    }
    &.richText {
      background-image: url("./icon/richText.png");
    }
    &.imageLink {
      background-image: url("./icon/imageLink.png");
    }
    &.voiceLink {
      background-image: url("./icon/voiceLink.png");
    }
    &.videoLink {
      background-image: url("./icon/videoLink.png");
    }
    &.groupBuying {
      background-image: url("./icon/groupBuying.png");
    }
    &.toBargain {
      background-image: url("./icon/toBargain.png");
    }
    &.shopNotice {
      background-image: url("./icon/shopNotice.png");
    }
    &.shopTel {
      background-image: url("./icon/shopTel.png");
    }
    &.imageBlock {
      background-image: url("./icon/imageBlock.png");
    }
    &.goodDiscount {
      background-image: url("./icon/goodDiscount.png");
    }
    &.goodSpecial {
      background-image: url("./icon/goodSpecial.png");
    }
    &.goodFine {
      background-image: url("./icon/goodSpecial.png");
    }
    &.shopGroup {
      background-image: url("./icon/shopGroup.png");
    }
    &.goodIntegral {
      background-image: url("./icon/goodIntegral.png");
    }
  }
  .d-name {
    padding-top: 4px;
    font-size: 12px;
  }
}
.dec-layout-right {
  position: absolute;
  top: 52px;
  bottom: 0;
  right: 0;
  width: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid #eee;
  z-index: 2;
  background: #f8f8f8;
  &::-webkit-scrollbar {
    display: none;
  }
  .d-modify {
    box-sizing: border-box;
    padding: 12px 12px 40px;
    min-height: 100px;
    font-size: 14px;
    z-index: 5;
    > .d-title {
      font-size: 18px;
      font-weight: 600;
      color: #323233;
      padding-bottom: 5px;
      border-bottom: 1px solid #e5e5e5;
      overflow: hidden;
    }
    > .d-content {
      padding: 0 10px;
    }
    &.manage-set {
      .d-icon {
        width: 30px;
        font-size: 20px;
      }
      .d-opt {
        font-size: 20px;
        cursor: pointer;
      }
      .d-none {
        text-align: center;
        padding: 20px 0;
        font-size: 16px;
      }
    }
  }
}
.dec-layout-content {
  position: absolute;
  width: 100%;
  padding: 20px 140px 20px 0;
  top: 52px;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}
.dec-layout-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  flex-shrink: 0;
  padding: 10px;
  border-bottom: 1px solid #d2d2d2;
  text-align: right;
  z-index: 3;
  button + button {
    margin-left: 16px;
  }
  .reBack {
    float: left;
    font-size: 16px;
    color: #333 !important;
    border: 0;
  }
  .create {
    position: absolute;
    top: 68px;
    left: 28px;
    font-size: 30px;
    color: @primary-color;
  }
}
.dec-layout-hovor {
  list-style: none;
  position: fixed;
  top: 52px;
  right: 400px;
  z-index: 4;
  padding: 0;
  text-align: center;
  cursor: pointer;
  border-left: 1px solid #eee;
  border-top: 1px solid #eee;
  background: @bg-color;
  li {
    padding: 4px 20px;
    border-bottom: 1px solid #eee;
    &:hover {
      color: @primary-color;
    }
    &.focus {
      background: @primary-color;
      color: #ffffff;
    }
  }
}
.dec-layout-view {
  iframe {
    height: calc(100% - 20px);
  }
  .ant-modal {
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
  }
  .ant-modal-wrap {
    width: 420px;
    border: 1px solid @color-border-base;
    overflow: hidden;
  }
  .ant-modal-content {
    height: 100vh;
  }
  .ant-modal-header {
    padding: 14px 24px;
  }
  .ant-modal-body {
    height: calc(100% - 80px);
    overflow-x: hidden;
    max-height: none !important;
  }
}
/* win装修区 */
.dec-layout-phone {
  margin-left: 300px;
  margin: 0 auto;
  width: @phoneWidth + 16px + 2px;
  padding: 50px 7px 60px;
  border: 1px solid @color-border-base;
  border-radius: 30px;
  position: relative;
  background: #f0f3f4;
  > .d-top {
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -25px;
    border-radius: 5px;
    width: 50px;
    height: 6px;
    background: #000000;
  }
  > .d-home {
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border: 1px solid #000000;
    border-radius: 100%;
    z-index: 2;
  }
  > .d-content {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background-color: #f5f5f5;
    border: 1px solid #000000;
    position: relative;
    .dec-screen {
      width: @phoneWidth;
      margin: 0 auto;
      position: relative;
    }
    .dec-bottom {
      position: absolute;
      bottom: 0;
      right: 0;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
    }
  }
  .decDragGroupClass {
    min-height: 415px;
  }
  .decCompsWrap {
    &.isBackground {
      z-index: 0;
      position: absolute;
      height: max-content;
      left: -2px;
      top: -66px;
      width: 101%;
    }
    position: relative;
    z-index: 1;
    cursor: move;
    width: @phoneWidth;
    &::after {
      display: none;
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
    }
    &:hover::after {
      display: block;
      border: 2px dotted @primary-color;
    }
    &.focus::after {
      display: block;
      border: 2px solid @primary-color;
    }
    &.focus .dec-opt {
      display: block;
    }
  }
}
/* win装修区操作区 */
.dec-opt {
  list-style: none;
  position: absolute;
  top: 0;
  right: -40px;
  font-size: 0;
  z-index: 4;
  display: none;
  width: 32px;
  padding: 0;
  text-align: center;
  cursor: pointer;
  background: #d2d2d280;
  .anticon {
    font-size: 20px;
    color: #999;
  }
  li {
    padding: 4px 0;
  }
}
/* win装修区加载中 */
.dec-loading {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
/* 左侧框结构样式 */
.dec-modify-content {
  padding: 0 10px;
  .d-splitline {
    border-bottom: 1px solid #e5e5e5;
    margin: 10px 0;
  }
  .d-error {
    color: #f44;
    width: 100%;
    font-size: 12px;
  }
  .d-tips {
    width: 100%;
    font-size: 12px;
    color: #666;
    .tip {
      background-color: green;
      color: #ffffff;
      display: inline-block;
      height: 16px;
      width: 16px;
      line-height: 16px;
      text-align: center;
      font-size: 12px;
      margin-right: 4px;
    }
  }
}
/* 横向选择子项 */
.dec-select-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  .item {
    width: 25%;
    padding: 6 * @rpx;
  }
  .box {
    border: 1 * @rpx solid #ddd;
    text-align: center;
    background-color: #fff;
    padding-bottom: 5 * @rpx;
    cursor: pointer;
    &.selected {
      border-color: #38f;
    }
  }
  .img-temp {
    padding: 6px;
    height: 60px;
    line-height: 60px;
    color: #999;
    > img {
      width: 100%;
    }
  }
}
/* 小型管理商品框 */
.dec-float-box {
  width: 100%;
  overflow: hidden;
  margin-top: -10px;
  padding-top: 10px;
  .float-item {
    float: left;
    width: 54px;
    height: 54px;
    margin-right: 8px;
    position: relative;
    background-color: #ffffff;
    img {
      width: 54px;
      height: 54px;
    }
    &:hover .ic-close {
      display: block;
    }
    &.more {
      line-height: 54px;
      text-align: center;
      background: #706c6c94;
      color: #ffffff;
      font-size: 20px;
    }
    &.manage {
      font-size: 12px;
      width: 20px;
      text-align: center;
      writing-mode: vertical-lr;
      float: right;
      margin-right: 0;
      background: #908c8c;
      color: #ffffff;
      cursor: pointer;
    }
  }
  .ic-close {
    position: absolute;
    right: -6px;
    top: -6px;
    font-size: 16px;
    color: #ffffff;
    background-color: #f44444;
    border-radius: 50%;
    cursor: pointer;
    display: none;
  }
  .ic-plus {
    line-height: 54px;
    border: 1px dotted #ddd;
    text-align: center;
    cursor: pointer;
    > i {
      font-size: 20px;
      color: #3388ff;
    }
  }
}
/* 商品子项白框 */
.dec-border-box {
  background-color: #fff;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
  &:hover .ic-close {
    display: block;
  }
  .ic-close {
    position: absolute;
    right: -6 * @rpx;
    top: -6 * @rpx;
    font-size: @font-super;
    color: #ffffff;
    background-color: #f44444;
    border-radius: 50%;
    cursor: pointer;
    display: none;
  }
  .img-wrap {
    width: 100%;
    position: relative;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .img-select {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 100%;
    height: 30 * @rpx;
    line-height: 30 * @rpx;
    text-align: center;
    font-size: @font-small;
  }
  .dec-flex-list {
    margin: 14px 0;
  }
}
/* 链接选取框样式 */
.dec-link-name {
  float: left;
  text-align: left;
  min-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  color: @primary-color !important;
}
/* 商品列表中的商品名称默认为两行的设置 */
// .dec-box-good{
//   .good-title.dec-truncate{
//     display: -webkit-box !important;
//     -webkit-line-clamp: 2;
//     white-space: inherit;
//     height: 50 * @rpx;
//   }
//   &.big .good-title{
//     height: auto;
//   }
//   &.small .good-title{
//     height: 46 * @rpx;
//   }
// }
