.threshold-promo {
  display: block;
  flex-shrink: 0;
  padding: 14px 20px 16px;
  margin-bottom: 16px;
  background: #f6f0e8;
}

.threshold-promo[hidden],
.threshold-promo .hidden {
  display: none !important;
}

/* 已解锁与未解锁两块同时存在时的分隔样式 */
.threshold-promo__unlocked-wrapper:not(.hidden) + .threshold-promo__approaching-wrapper:not(.hidden) {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

/* 已解锁展示区 */
.threshold-promo__unlocked-wrapper {
  margin-bottom: 0;
}

.threshold-promo__unlocked-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgb(var(--color-text, 0, 0, 0));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.threshold-promo__unlocked-text strong {
  font-weight: 500;
}

.threshold-promo__promo-save {
  color: #b42318;
  font-weight: 500;
}

/* 折扣码 Pill 胶囊按钮 */
.threshold-promo__coupon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  background: transparent;
  border: 1.5px dashed #111;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.2;
}

.threshold-promo__coupon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.threshold-promo__coupon-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.threshold-promo__coupon-btn.is-copied {
  background: #111;
  color: #fff;
  border-style: solid;
}

/* 未解锁目标区 */
.threshold-promo__approaching-wrapper {
  display: block;
}

.threshold-promo__approaching-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.threshold-promo__promo-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgb(var(--color-text, 0, 0, 0));
}

.threshold-promo__add-btn {
  flex-shrink: 0;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  background: transparent;
  border: 1px solid #111;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.threshold-promo__add-btn:hover {
  background: #111;
  color: #fff;
}

.threshold-promo__promo-text strong {
  font-weight: 500;
}

.threshold-promo__promo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.threshold-promo__promo-start,
.threshold-promo__promo-end {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: rgb(var(--color-text, 0, 0, 0));
}

.threshold-promo__promo-track {
  --promo-progress: 0%;
  position: relative;
  flex: 1;
  height: 6px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 999px;
  overflow: visible;
}

.threshold-promo__promo-fill {
  height: 100%;
  width: var(--promo-progress);
  background: #111;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.threshold-promo__promo-knob {
  position: absolute;
  top: 50%;
  left: var(--promo-progress);
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.35s ease;
}

@media (max-width: 959px) {
  .threshold-promo__promo-text, .threshold-promo__unlocked-text {
    font-size: 12px;
  }
  .threshold-promo__add-btn, .threshold-promo__coupon-btn {
    font-size: 12px;
  }
}
