/* /css/feature-threshold-bar.css — sticky reward progress bar */

.feature-threshold-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-primary, #ef4444) 0%, var(--brand-accent, #f97316) 100%);
  color: #fff;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  transition: background 250ms ease;
}

.feature-threshold-bar.is-cart-page {
  font-size: 15px;
}

.feature-threshold-bar .ftb-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-threshold-bar.is-cart-page .ftb-inner {
  padding: 14px 16px;
}

.feature-threshold-bar .ftb-progress {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  background: rgba(255, 255, 255, .25);
  border-radius: 999px;
  overflow: hidden;
}

.feature-threshold-bar.is-cart-page .ftb-progress {
  height: 10px;
}

.feature-threshold-bar .ftb-fill {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 999px;
  transition: width 350ms ease;
}

.feature-threshold-bar .ftb-msg {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

@media (max-width: 600px) {
  .feature-threshold-bar .ftb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 12px;
  }
  .feature-threshold-bar .ftb-msg {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    font-size: 12px;
  }
}

.feature-threshold-bar.is-unlocked {
  animation: ftb-pulse 600ms ease-in-out;
}

.feature-threshold-bar.is-unlocked .ftb-msg {
  font-weight: 800;
  letter-spacing: .3px;
}

@keyframes ftb-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.02); filter: brightness(1.15); }
  100% { transform: scale(1); }
}
