/* ============================================================
   QUANTIK – Cart Progress Bar  |  v1.1.0  |  Minimal B&W
   ============================================================ */

:root {
  --qcp-bg:          #ffffff;
  --qcp-border:      #e0e0e0;
  --qcp-text:        #111111;
  --qcp-text-muted:  #555555;
  --qcp-track-bg:    #ebebeb;
  --qcp-fill:        #111111;
  --qcp-fill-done:   #111111;
  --qcp-radius:      4px;
  --qcp-transition:  0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Wrapper ──────────────────────────────────────────────── */
.quantik-cp-wrapper {
  margin: 0 0 24px;
  background: var(--qcp-bg);
  border: 1px solid var(--qcp-border);
  border-radius: var(--qcp-radius);
}

/* ── Inner ────────────────────────────────────────────────── */
.quantik-cp-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
}

/* ── Contenuto ────────────────────────────────────────────── */
.quantik-cp-content {
  flex: 1;
  min-width: 0;
}

/* ── Messaggio ────────────────────────────────────────────── */
.quantik-cp-message {
  margin: 0 0 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--qcp-text-muted);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.quantik-cp-message strong {
  color: var(--qcp-text);
  font-weight: 700;
}

/* ── Track ────────────────────────────────────────────────── */
.quantik-cp-track {
  height: 3px;
  background: var(--qcp-track-bg);
  border-radius: 999px;
  overflow: hidden;
}

/* ── Fill ─────────────────────────────────────────────────── */
.quantik-cp-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--qcp-fill);
  transition: width var(--qcp-transition);
  min-width: 0;
  max-width: 100%;
}

/* ── Badge percentuale / check ────────────────────────────── */
.quantik-cp-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--qcp-border);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--qcp-text);
  letter-spacing: -0.02em;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

/* Stato sbloccato */
.quantik-cp-bar--unlocked .quantik-cp-badge {
  background: var(--qcp-text);
  border-color: var(--qcp-text);
  color: #ffffff;
}

.quantik-cp-badge--check {
  font-size: 1rem;
  line-height: 1;
}

/* ── Animazione fill entrata ──────────────────────────────── */
@keyframes quantik-cp-grow {
  from { width: 0 !important; }
}

.quantik-cp-fill {
  animation: quantik-cp-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .quantik-cp-inner {
    gap: 14px;
    padding: 12px 14px;
  }
  .quantik-cp-badge {
    width: 30px;
    height: 30px;
    font-size: 0.65rem;
  }
}
