@import url("/cardstop-custom-text-v8.css?v=80");

/* Cardstop group-buy progress panel v7.1 refresh-stability fix */
.group-buy-progress-anchor {
  display: flow-root;
  min-width: 0;
  min-height: 0;
}

.group-buy-progress-card {
  --status-color: #64748b;
  --status-soft: rgba(100, 116, 139, .12);
  --progress: 0%;
  position: relative;
  isolation: isolate;
  margin: 0 0 12px;
  padding: 20px 22px 17px;
  border: 1px solid #e2e2df;
  border-radius: 20px;
  background: radial-gradient(circle at 93% 8%, var(--status-soft), transparent 33%), #fff;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .045);
}

.group-buy-progress-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--status-color);
}

.gbp-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.gbp-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--status-color);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .18em;
}

.gbp-heading h3 {
  margin: 0;
  color: #151515;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.gbp-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.gbp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #dededc;
  border-radius: 999px;
  color: var(--status-color);
  background: var(--status-soft);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.gbp-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--status-soft);
}

.gbp-percent {
  display: inline-flex;
  align-items: baseline;
  min-width: 72px;
  color: #111;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .85;
}

.gbp-percent small {
  margin-left: 2px;
  color: var(--status-color);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.gbp-track {
  position: relative;
  height: 12px;
  border: 1px solid #dfdfdc;
  border-radius: 999px;
  background: #eeeeeb;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .055);
}

.gbp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #181818 0%, var(--status-color) 85%);
  box-shadow: 0 0 16px var(--status-soft);
  transition: width .85s cubic-bezier(.2, .8, .2, 1);
}

.group-buy-progress-card.is-ready .gbp-fill { width: var(--progress); }

.gbp-milestone {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: #aaa;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.gbp-milestone-50 { left: 50%; }
.gbp-milestone-80 { left: 80%; }
.gbp-milestone-100 { left: calc(100% - 5px); }

.gbp-bottom {
  min-height: 29px;
  margin-top: 11px;
  display: flex;
  align-items: center;
}

.gbp-deadline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid #e4e4e1;
  border-radius: 999px;
  color: #656565;
  background: #f7f7f5;
  font-size: 10px;
  font-weight: 750;
}

.gbp-deadline b { color: #111; font-weight: 950; }

.gbp-calendar {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1.5px solid var(--status-color);
  border-radius: 3px;
}

.gbp-calendar::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 1px;
  right: 1px;
  height: 1.5px;
  background: var(--status-color);
}

@media (max-width: 720px) {
  .group-buy-progress-card {
    margin-bottom: 9px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .045);
  }

  .group-buy-progress-card::before { width: 4px; }
  .gbp-top { align-items: center; gap: 10px; margin-bottom: 12px; }
  .gbp-heading > span { margin-bottom: 4px; font-size: 6.5px; }
  .gbp-heading h3 { font-size: 14px; }
  .gbp-summary { gap: 8px; }

  .gbp-status {
    min-height: 27px;
    gap: 6px;
    padding: 0 9px;
    font-size: 8px;
  }

  .gbp-status i { width: 6px; height: 6px; flex-basis: 6px; }
  .gbp-percent { min-width: 54px; font-size: 25px; }
  .gbp-percent small { font-size: 11px; }
  .gbp-track { height: 10px; }
  .gbp-bottom { min-height: 27px; margin-top: 9px; }

  .gbp-deadline {
    min-height: 27px;
    gap: 6px;
    padding: 0 9px;
    font-size: 8.5px;
  }
}

@media (max-width: 390px) {
  .group-buy-progress-card { padding-inline: 12px; }
  .gbp-top { align-items: flex-start; }
  .gbp-summary { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  .gbp-status { min-height: 24px; }
  .gbp-percent { justify-content: flex-end; font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .gbp-fill { transition-duration: .01ms; }
}
