/* Wrapper + badge */
.jcp-container { background: var(--jcp-bg); }
.jcp-badge {
  display: inline-block;
  margin: 8px 10px 0 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  background: var(--jcp-muted);
  color: var(--jcp-text);
}
.jcp-badge-text { font-weight: 600; }

/* Progress component */
.jcp-wrap {
  background: var(--jcp-bg);
  padding: 12px 10px 6px 10px;
}

.jcp-steps {
  --jcp-after-width: 0%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.jcp-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: var(--jcp-muted);
  z-index: 0;
  border-radius: 999px;
}

.jcp-step {
  position: relative;
  text-align: center;
  color: var(--jcp-text);
}

.jcp-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.jcp-link.-disabled {
  cursor: default;
  pointer-events: none;
}

.jcp-link[aria-current="step"] .jcp-label { font-weight: 700; }

.jcp-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--jcp-muted);
  position: relative;
  z-index: 1;
}

.jcp-label {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

/* Progress overlay */
.jcp-steps::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  height: 4px;
  background: var(--jcp-accent);
  z-index: 1;
  border-radius: 999px;
  width: var(--jcp-after-width);
  transition: width 0.18s ease;
}

/* Completed/current states */
.jcp-step.is-completed .jcp-dot,
.jcp-step.is-current .jcp-dot {
  background: var(--jcp-accent);
}

@media (max-width: 600px) {
  .jcp-label { font-size: 12px; }
  .jcp-badge { font-size: 11px; }
}
