
.wpwholesale-wrap {
  width: 100%;
  margin-top: 1.5rem;
  clear: both;
}

.wpwholesale-wrap #wholesale_progress {
  --green1: #79c73a;
  --green2: #55b92a;
  --line: #cfd7cf;
  --line2: #bfc7bf;
  --text: #2a2f36;
  --muted: #8a94a0;
  --shadow: 0 10px 20px rgba(0, 0, 0, .10);
  --lineY: 34px;


  width: 100%;
  max-width: 520px;

  box-sizing: border-box;
}


.woocommerce div.product form.cart .wpwholesale-wrap {
  width: 80%;
}


.wpwholesale-wrap .demo {
  width: 100%;
  margin: 0;
  display: block;
}


.wpwholesale-wrap .wholesale {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
}


.wpwholesale-wrap .row {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 8px;
}


.wpwholesale-wrap .start-bubble {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e7eb;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #2c3138;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .08);
  flex: 0 0 auto;
}


.wpwholesale-wrap .badge {
  flex: 0 0 auto;
  width: 78px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8be04d, #45a81f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: .32;
  transform: scale(.98);
  transition: .18s ease;
  margin-left: 15px;
  margin-top: 15px;
}

.wpwholesale-wrap .badge.on {
  opacity: 1;
  transform: scale(1);
}

/* Track */
.wpwholesale-wrap .track-wrap {
  position: relative;
  flex: 1 1 auto;
  height: 54px;
  min-width: 0;
}

.wpwholesale-wrap .track,
.wpwholesale-wrap .track-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--lineY);
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.wpwholesale-wrap .track {
  background: linear-gradient(180deg, var(--line), var(--line2));
}

.wpwholesale-wrap .track-fill {
  right: auto;
  width: 0%;
  background: linear-gradient(90deg, #9be85a, var(--green2));
  transition: width .18s ease;
}

/* Stations */
.wpwholesale-wrap .station {
  position: absolute;
  top: 0;
  width: 0;
  height: 54px;
  user-select: none;
  pointer-events: none;
}

.wpwholesale-wrap .station .num {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 900;
  color: #2e343c;
  line-height: 1;
  white-space: nowrap;
}

.wpwholesale-wrap .dot {
  position: absolute;
  left: 0;
  top: var(--lineY);
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid #d3dbd3;
  box-sizing: border-box;
  transition: .18s ease;
}

.wpwholesale-wrap .station.active .dot {
  border-color: var(--green2);
}

.wpwholesale-wrap .station.last .num {
  color: var(--muted);
}

.wpwholesale-wrap .station.last .dot {
  width: 34px;
  height: 34px;
  border-width: 5px;
  border-color: #e4eaee;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: var(--lineY);
  transform: translate(-50%, -50%);
  background: #fff;
}

.wpwholesale-wrap .station.last .dot span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d5dde6, #c5ced8);
  color: #4e5a66;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .10);
}

/* hit */
.wpwholesale-wrap .station.last.hit .num {
  color: #2e343c;
}

.wpwholesale-wrap .station.last.hit .dot {
  border-color: #eaf2ea;
}

.wpwholesale-wrap .station.last.hit .dot span {
  background: linear-gradient(135deg, #8be04d, var(--green2));
  color: #fff;
  box-shadow: 0 8px 16px rgba(85, 185, 42, .22);
}

.wpwholesale-wrap .station.last.hit .dot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(134, 219, 85, .32), rgba(134, 219, 85, 0) 68%);
  z-index: -1;
}

/* slider row */
.wpwholesale-wrap .slider-row {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.wpwholesale-wrap .start-spacer {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
}

.wpwholesale-wrap .badge-spacer {
  width: 78px;
  height: 1px;
  flex: 0 0 auto;
}

.wpwholesale-wrap .slider-wrap {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  min-width: 0;
}

.wpwholesale-wrap .slider-track,
.wpwholesale-wrap .slider-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 7px;
  border-radius: 999px;
}

.wpwholesale-wrap .slider-track {
  background: linear-gradient(180deg, #dadfda, #c7cec7);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .06);
}

.wpwholesale-wrap .slider-fill {
  right: auto;
  width: 0%;
  background: linear-gradient(90deg, #9be85a, var(--green2));
  transition: width .18s ease;
}

.wpwholesale-wrap .knob {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 4px solid #cfd6df;
  box-shadow: 0 9px 14px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
}

.wpwholesale-wrap .knob.start {
  left: 0px;
  border-color: #d4dbe4;
  opacity: .9;
}

.wpwholesale-wrap .knob.current {
  left: 0px;
  border-color: var(--green2);
  box-shadow: 0 12px 18px rgba(85, 185, 42, .16);
}

/* status */
.wpwholesale-wrap .status {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  direction: rtl;
  color: var(--green2);
}


.wpwholesale-wrap .station.min .dot {
  width: 22px;
  height: 22px;
  border-width: 5px;
}

.wpwholesale-wrap .station.min .num {
  font-size: 13px;
}

@media (max-width: 420px) {
  .wpwholesale-wrap #wholesale_progress {
    max-width: 100%;
  }

  .wpwholesale-wrap .badge {
    width: 66px;
    height: 36px;
    font-size: 14px;
  }

  .wpwholesale-wrap .badge-spacer {
    width: 66px;
  }
}