.nmc-fsb {
  --nmc-fsb-color: #7d9b88;
  --nmc-fsb-track: #d9e2dc;
  margin: 1rem 0;
}

.ps-shoppingcart.side-cart .nmc-fsb {
  margin: 0 0 1rem;
}

/* Thin baseline with a circular target marker pinned at the far end. */
.nmc-fsb__track {
  position: relative;
  width: 100%;
  height: 24px;
  /* Room for the end dot so the fill never slides under it. */
  padding-right: 20px;
  display: flex;
  align-items: center;
}

.nmc-fsb__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 4px;
  background: var(--nmc-fsb-track);
}

.nmc-fsb__fill {
  position: relative;
  z-index: 1;
  height: 6px;
  max-width: 100%;
  /* Square right end so it meets the vertical marker flush. */
  border-radius: 6px 0 0 6px;
  background: var(--nmc-fsb-color);
  transition: width 0.3s ease;
}

/* Thin vertical marker at the end of the completed portion. */
.nmc-fsb__fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--nmc-fsb-color);
}

.nmc-fsb--reached .nmc-fsb__fill::after {
  display: none;
}

/* No marker to meet once complete — round the end back off. */
.nmc-fsb--reached .nmc-fsb__fill {
  border-radius: 6px;
}

.nmc-fsb__dot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nmc-fsb-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nmc-fsb__message {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: #333;
}

.nmc-fsb--reached .nmc-fsb__message {
  color: #2e7d32;
}

@media (prefers-reduced-motion: reduce) {
  .nmc-fsb__fill {
    transition: none;
  }
}
