/* pages/orders/order-detail.wxss */
page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F5F6F7;
}

.scroll-container {
  padding-bottom: 174rpx;
}

.order-status {
  margin: 24rpx 26rpx 0;
  background-color: #FFFFFF;
  border-radius: 20rpx;
  padding: 24rpx 32rpx;
  .status {
    display: flex;
    image {
      width: 48rpx;
      height: 48rpx;
      margin-right: 16rpx;
    }
    text {
      font-weight: 600;
      font-size: 36rpx;
      color: #131415;
      line-height: 48rpx;
    }
  }
  .tips {
    padding-top: 24rpx;
    font-size: 28rpx;
    color: #777777;
    line-height: 40rpx;
  }
}

.order-content {
  margin: 24rpx 26rpx 0;
  border-radius: 20rpx;
  padding: 28rpx 24rpx;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}
.item-content {
  display: flex;
  width: 100%;
  .goods-icon {
    width: 160rpx;
    height: 160rpx;
    margin-right: 24rpx;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
  }

  .goods-desc {
    flex: 1 auto;
    display: flex;
    flex-direction: column;
  }

  .goodsInfo {
    display: flex;
    justify-content: space-between;
    padding-top: 4rpx;
    .goods-name {
      flex: 1 auto;
      white-space: nowrap;
      overflow: hidden;
      font-weight: 600;
      font-size: 28rpx;
      text-overflow: ellipsis;
      max-width: 310rpx;
    }
    .goods-price {
      flex-shrink: 0;
      font-family: DINAlternate, DINAlternate;
      font-weight: bold;
      font-size: 28rpx;
      color: #131415;
      line-height: 48rpx;
    }
  }

  .goods-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12rpx;
    .goods-card {
      background: #FEEDF0;
      border-radius: 6rpx;
      font-size: 26rpx;
      color: #FE2451;
      line-height: 40rpx;
      padding: 0 12rpx;
    }
    .goods-num {
      font-size: 28rpx;
      color: #777777;
      line-height: 36rpx;
    }
  }
}

/* HTML: <div class="loader"></div> */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 0;
  bottom: 0;
  margin-top: -50rpx;
  margin-left: -50rpx;
  z-index: 9;
  width: 100rpx;
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(farthest-side,#E8E8E8 94%,#0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%,#E8E8E8);
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
  animation: tempLoading 1s infinite linear;
}
@keyframes tempLoading{ 
  100%{transform: rotate(1turn)}
}
.only_canvas {
  position: absolute;
  left: -300rpx;
  top: 0;
  width: 262rpx;
  height: 262rpx;
}
.qrcode-section {
  margin-top: 28rpx;
  border-top: 2rpx solid #F0F0F0;
  padding-top: 60rpx;
  padding-bottom: 32rpx;
  text-align: center;
  .qrcode-wrap {
    position: relative;
    margin: 0 auto;
    border: 3rpx solid #EDEDED;
    padding: 10rpx;
    display: inline-block;
    font-size: 0;
  }
  .my_draw_canvas {
    width: 262rpx;
    height: 262rpx;
  }
  .qrcode-text {
    padding-top: 32rpx;
    font-size: 28rpx;
    color: #131415;
    line-height: 40rpx;
    &.used {
      color: #AAAAAA;
    }
  }
}

.order-time {
  margin: 24rpx 26rpx 0;
  border-radius: 20rpx;
  padding: 36rpx 24rpx;
  background-color: #FFFFFF;

  .order-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 36rpx;
    &:last-child {
      padding-bottom: 0;
    }
    .title {
      font-size: 28rpx;
      color: #131415;
      line-height: 40rpx;
    }
    .value {
      font-size: 30rpx;
      color: #777777;
      line-height: 42rpx;
      display: flex;
      &.red {
        color: #FE2451;
      }

      .copy {
        font-size: 30rpx;
        color: #FE2451;
        line-height: 42rpx;
        display: flex;
        align-items: center;
        padding-left: 16rpx;
      }
    }
  }
}
.btn-refound {
  padding-top: 40rpx;
  text-align: center;
  font-size: 28rpx;
  color: #A7ABAF;
  line-height: 40rpx;
}

.order-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  padding: 20rpx 32rpx 58rpx 40rpx;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;

  .orders {
    display: flex;
    flex-direction: column;
    margin-right: 40rpx;
    image {
      width: 48rpx;
      height: 48rpx;
    }
    text {
      font-weight: 500;
      font-size: 22rpx;
      color: #131415;
      line-height: 32rpx;
      text-align: center;
    }
  }

  .price {
    display: flex;
    align-items: center;

    .desc {
      font-weight: 500;
      font-size: 28rpx;
      color: #131415;
      line-height: 40rpx;
    }
    .currentPrice {
      font-weight: bold;
      color: #FE2451;
      font-family: DINAlternate, DINAlternate;
      .stuff {
        font-size: 32rpx;
      }
      .priceZ {
        font-size: 56rpx;
      }
      .priceF {
        font-size: 32rpx;
      }
    }
  }

  button {
    margin: 0;
    width: 100%;
    background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
    border-radius: 78rpx;
    padding: 22rpx 84rpx;
    font-weight: 500;
    font-size: 32rpx;
    color: #FFFFFF;
    line-height: 44rpx;

    &[disabled][type=primary] {
      color: #fff;
      background: linear-gradient( 270deg, #FF204B 0%, #FE5B71 100%);
      opacity: 0.7;
    }
  }
}