/**
 * Shared cart / checkout flow UI (progress bar).
 * Matches template/fyool-cart.html & fyool-checkout.html.
 */

/* Sits inside .fy-checkout-wrap and matches the page's cards (1px border,
   16px radius) rather than bleeding full-width past the wrapper. */
.fy-woo-page--cart .fy-progress-bar,
.fy-woo-page--checkout .fy-progress-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 24px;
  margin: 0 0 24px;
}

.fy-woo-page--cart .fy-progress,
.fy-woo-page--checkout .fy-progress {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.fy-woo-page--cart .fy-step,
.fy-woo-page--checkout .fy-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.fy-woo-page--cart .fy-step-num,
.fy-woo-page--checkout .fy-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fy-woo-page--cart .fy-step.done .fy-step-num,
.fy-woo-page--checkout .fy-step.done .fy-step-num {
  background: var(--green);
  color: #fff;
}

.fy-woo-page--cart .fy-step.active .fy-step-num,
.fy-woo-page--checkout .fy-step.active .fy-step-num {
  background: var(--blue);
  color: #fff;
}

.fy-woo-page--cart .fy-step.inactive .fy-step-num,
.fy-woo-page--checkout .fy-step.inactive .fy-step-num {
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid var(--border);
}

.fy-woo-page--cart .fy-step-lbl,
.fy-woo-page--checkout .fy-step-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.fy-woo-page--cart .fy-step.done .fy-step-lbl,
.fy-woo-page--checkout .fy-step.done .fy-step-lbl {
  color: #15803d;
}

.fy-woo-page--cart .fy-step.active .fy-step-lbl,
.fy-woo-page--checkout .fy-step.active .fy-step-lbl {
  color: var(--text);
}

.fy-woo-page--cart .fy-step.inactive .fy-step-lbl,
.fy-woo-page--checkout .fy-step.inactive .fy-step-lbl {
  color: var(--muted);
}

.fy-woo-page--cart .fy-step-line,
.fy-woo-page--checkout .fy-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}

.fy-woo-page--cart .fy-step-line.done,
.fy-woo-page--checkout .fy-step-line.done {
  background: var(--green);
}

@media (max-width: 768px) {
  .fy-woo-page--cart .fy-progress-bar,
  .fy-woo-page--checkout .fy-progress-bar {
    display: none;
  }
}

