/* flash sale */
/* flash sale */
.flashsale-price {
  --product-price-color: var(--flash-sale-color);
}

@media screen and (max-width: 767px) {
  .flash-sale-card {
    --product-item-border: 0;
    --product-price-font-size: 16px;
    --product-price-right: 0;
  }
}
.flash-sale-card{
  --img-box-padding-bottom:var(--product-img-pd);
}
.promo-product-top {
  position: relative;
  margin-bottom: 10px;
}
.flashsale-rules{
  position: absolute;
  top: 10%;
  right: 0;
  z-index: 10;
  width: fit-content;
  padding: 10px 10px 8px;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(0, 0, 0, .5);
  cursor: pointer;
}
.flashsale-rules-wrapper{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
}
.flashsale-rules-content{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 800px;
  transform: translate(-50%,-50%);
  padding:50px;
  background-color: #fff;
  color: #333;
}
.flash-sale-ruletxt{
  line-height: 1.5;
  white-space: pre-wrap;
}
.flashsale-rules-close{
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}
/* label */
.promo-product-labels {
  display: flex;
  height: 80px;
  margin-bottom: 10px;
  background-color: #EAEAEA;
  color: #000;
}

.promo-product-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 10px;
  cursor: pointer;
}

.active.promo-product-label {
  background-color: var(--flash-sale-color);
  color: #fff;
}

.promo-product-day {
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

/* main content */
.promo-product-content {
  display: flex;
}
.flashsale-page-content{
  flex-wrap: wrap;
}
.flash-sale-txt {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 17px;
  color: var(--flash-sale-color);
}

.flashsale-info-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.flashsale-buy {
  width: 100px;
  height: 48px;
  margin-left: 30px;
  line-height: 48px;
  text-align: center;
  background-color: #707070;
  color: #fff;
  font-size: 16px;
  border-radius: var(--theme-border-radius, var(--border-radius, 0));
}

.today .buy.flashsale-buy {
  background-color: var(--flash-sale-color);
}

.next .flashsale-buy {
  pointer-events: none;
}

.flashsale-original-price {
  text-decoration: line-through;
}



.flashsale-perc-txt {
  padding-right: 4px;
  font-size: 14px;
}

.flashsale-info-left {
  flex: 1;
}

.flashsale-perc-row {
  display: flex;
  align-items: center;
}

.flashsale-perc-outterbar {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 5px;
  background-color: #999999;
}

.flashsale-perc-inner {
  position: absolute;
  left: 0;
  height: 100%;
  background-color: var(--flash-sale-color);
}

.promo-product-main .swiper-pagination {
  display: none;
}

/* more */
.promo-product-more {
  width: fit-content;
  margin: var(--h-space, 20px) auto 0;
  text-align: center;
}

/* mobile */
.mpromo-product-label {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  background-color: var(--flash-sale-color);
  color: #fff;
}

.mpromo-label-txt {
  padding-right: 16px;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.mpromo-product-more {
  position: absolute;
  right: 10px;
  width: 65px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  color: #000000;
  border: 1px solid #FFFFFF;
  border-radius: 24px;
}
.no-promo-img{
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--promo-img-bg, #FC760E);
}
.flash-txt{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 130px;
  text-transform: uppercase;
  text-stroke: 3px #9A0606;
  -webkit-text-stroke: 3px #9A0606;
  color: #FFA100;
  white-space: nowrap;
  font-weight: 700;
}
.flash-txt:nth-child(2){
  left: 50.5%;
  color: #FFFFFF;
}
@media screen and (max-width: 1000px){
  .flash-txt{
    font-size: 70px;
  }
}
@media screen and (max-width: 767px) {
  .flashsale-perc-txt{
    padding: 0 0 5px;
  }
  .flash-txt:nth-child(2) {
    left: 51%;
    color: #FFFFFF;
  }
  .flash-txt {
    font-size: 50px;
  }
  .flashsale-rules-content{
    padding: 30px;
    max-height: 80%;
    overflow-y: auto;
  }
  .flash-sale-card{
    --product-name-font-size:14px;
    --product-info-padding:0 0 0 10px;
    --product-name-bottom:7px;
    --product-price-right:10px;
  }
  .flashsale-rules{
    top:initial;
    bottom: 0;
  }
  .flashsale-page-content  .flash-sale-card{
    --img-box-width:40.5%;
    --img-box-padding-bottom:calc( var(--product-img-pd-math) * 40.5% );
    --product-item-width: 100%;
    --v-space:0;
    display: flex;
  }

  .flash-sale-txt{
    margin-bottom: 10px;
  }
  .promo-product-label{
    padding: 5px 10px 2px ;
    flex-direction: column;
    white-space: nowrap;
  }

  .promo-product-day{
    padding: 0;
    font-size: 13px;
  }
  .promoprod-time-txt.is-next{
    border: 0;
    padding: 0;
  }
  .flashsale-start{
    text-align: center;
  }
  .promo-product-time{
    line-height: 19px;
  }
  .active .promoprod-time-txt.is-next{
    display: none;
  }
  [data-flash-index="0"] .promoprod-time-txt{
    display: none;
  }
  .flash-sale-image{
    flex-shrink: 0;
  }
  .promo-product-swiper .iconfont {
    display: none;
  }

  .promo-product-labels {
    height: 48px;
    overflow-x: auto;
  }

  .flashsale-end {
    font-weight: bold;
    font-size: 15px;
  }
  .flash-sale-info{
    flex: 1;
    justify-content: space-between;
    width: 0;
  }
  .flash-sale-info .line-limit--3{
    -webkit-line-clamp:2;
  }

  .flashsale-perc-row{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
  }
    .flashsale-perc-outterbar{
      flex:none;
      width: 100%;
    }
  .flashsale-buy{
    width: 75px;
    height: 40px;
    line-height: 40px;
    margin-left:12px;
    text-transform: uppercase;
  }
}