@import "../../../style/mixins.less";
@import "../../../style/var.less";
.productDetail {
  background-color: #f7f7f7;
  width: 100%;
  margin-bottom: 50px;
  .iphonex-fix-padding();
  .my-swipe {
    width: 100%;
    height: 350px;
    .cr-swipe-item {
      text-align: center;
      width: 100%;
      height: 350px;
    }
    .custom-indicator {
      width: 30px;
      height: 17px;
      border-radius: 10px;
      opacity: 0.4;
      background: #000000;
      position: absolute;
      right: 15px;
      bottom: 9px;
      font-size: 10px;
      text-align: center;
      line-height: 17px;
      color: #ffffff;
    }
  }
  .price {
    background-color: #fff;
    display: flex;
    align-items: baseline;
    &__num {
      width: 230px;
      display: flex;
      align-items: baseline;
      padding: 10px 0 10px 12px;
      position: relative;
      &-tag {
        display: none;
        position: relative;
        z-index: 2;
        align-self: center;
        font-size: 12px;
        margin-right: 4px;
      }
      &-bg {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
      }
      &-present {
        z-index: 2;
        color: #ec3333;
        font-size: 30px;
        span {
          font-size: 13px;
        }
      }
      &-original {
        z-index: 2;
        margin-left: 4px;
        color: #999999;
        font-size: 13px;
        .through-line-mixin(#999);
      }
    }
    &__desc {
      color: #999999;
      text-align: right;
      font-size: 14px;
      flex: 1;
      align-self: center;
      padding: 0 12px 0 0;
      &-count {
        padding: 10px 0;
      }
      &-countdown {
        display: none;
        padding: 4px 0 5px;
        h5 {
          font-size: 13px;
          color: #ec1500;
          margin: 5px 0 4px;
        }
        .countdown-mixin(#fff, #e82424, #e82424, 16px, 400);
      }
    }
    &.spike {
      background-color: #fffbe8;
      .price {
        &__num {
          &-bg {
            display: block;
            height: 70px !important;
            width: 257px !important;
            top: -10px;
          }
          &-present {
            color: #fff;
          }
          &-original {
            color: rgba(255, 255, 255, 0.65);
            .through-line-mixin(rgba(255, 255, 255, 0.65));
          }
        }
        &__desc {
          &-countdown {
            display: block;
          }
        }
      }
    }
  }
  .title-wrap {
    background-color: #fff;
    padding: 11px 10px 10px;
  }
  .title {
    display: block;
    font-size: 16px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    &_tag{
      display: inline-block;
      width: auto;
      height: 15px;
      vertical-align: -1px;
    }
  }
  .info {
    margin-top: 10px;
    background-color: #fff;
    .address {
      margin-right: 5px;
      vertical-align: middle;
    }
    .cr-cell {
      padding-top: 10px;
      line-height: 18px;
    }
    @{deep} .cr-cell__value {
      margin-left: 20px;
      text-align: left;
      word-break: break-all;
      flex: 1;
    }
    // .service {
    // padding-right: 10px;
    // border-right: 1px solid #f7f7f7;
    // vertical-align: middle;
    // }
    // .service:not(:first-child) {
    //   padding-left: 10px;
    // }
    .service:not(:last-child)::after {
      content: "";
      display: inline-block;
      width: 1px;
      background: #f7f7f7;
      height: 15px;
      margin: 0px 10px;
      // margin-top: -2px;
      vertical-align: bottom;
    }
  }
  .divider {
    font-size: 12px;
    padding: 0 40px;
    border-color: #f7f7f7;
  }
  @{deep} .cr-cell__title {
    font-size: 13px;
    color: #999999;
    flex: none;
  }
  @{deep} .cr-cell__value {
    font-size: 13px;
    color: #333333;
    flex: none;
  }
  @{deep} .cr-cell:not(:last-child)::after {
    border: none;
  }
  .detail {
    @{deep} .cr-cell__title {
      width: 60px;
    }
    @{deep} .cr-cell__value {
      margin-left: 30px;
      color: #666666;
      width: 250px;
      text-align: left;
    }
    margin-bottom: 10px;
  }

  .type {
    padding-right: 10px;
  }
  .wrap-reco {
    margin-top: 24px;
    min-height: 55px;
  }
}
.addr-show {
  display: flex;
  align-items: center;
  span {
    flex: 1;
    line-height: 18px;
    height: 18px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .arrow {
    margin-left: auto;
  }
}
.info-detail {
  background-color: #fff;
  margin-bottom: 12px;
  .info {
    margin-top: 0;
  }
  h4 {
    font-size: 16px;
    padding: 14px 14px 4px;
  }
  @{deep} .cr-hairline--top-bottom::after {
    border-width: 0;
  }
  @{deep} .cr-cell__title {
    width: 77px;
  }
  @{deep} .cr-cell__value {
    color: #666;
  }
  @{deep} .cr-cell-group__title {
    color: #333;
  }
}
.activity-good-action {
  height: 58px;
  .iphonex-fix-padding();
  @{deep} .cr-goods-action {
    &__left {
      padding: 0 2px;
      &-icon {
        font-size: 24px;
        color: #333;
      }
      &-txt {
        color: #999;
        font-size: 10px;
      }
    }
    &__dot {
      border: 1.2px solid #fff;
      position: absolute;
      right: 5px;
      font-size: 10px;
      line-height: 11px;
      padding: 2px 4px 1px 4px;
      top: 9px;
      text-align: center;
    }
    &__content {
      padding: 0;
    }
    &__right {
      &-btn {
        height: 40px;
        line-height: 40px;
        font-weight: 600;
        margin-right: 10px;
        &:first-child {
          background-color: #fff;
          border-color: #ec1500;
          color: #ec1500;
        }
        &:last-child {
          background: linear-gradient(270deg, 
          #ff5d00 0%, 
          #ff1900 100%);
          border-width: 0;
        }
      }
    }
  }
}
