/* Phase 8.3 — guided custom bracelet builder */

.kcb-builder-progress {
    display: grid;
    grid-template-columns: 1fr minmax(34px, 72px) 1fr minmax(34px, 72px) 1fr;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 14px 18px;
    border: 1px solid rgba(109, 40, 217, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(52, 31, 69, .045);
}

.kcb-progress-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    min-width: 0;
    color: #8a8192;
}

.kcb-progress-step > span {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3eff7;
    color: #857b8e;
    font-size: 11px;
    font-weight: 800;
}

.kcb-progress-step strong {
    color: #554b61;
    font-size: 10px;
    line-height: 1.2;
}

.kcb-progress-step small {
    margin-top: 3px;
    color: #9b91a3;
    font-size: 8px;
    line-height: 1.2;
}

.kcb-progress-step.is-active > span,
.kcb-progress-step.is-complete > span {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff;
}

.kcb-progress-step.is-active strong,
.kcb-progress-step.is-complete strong {
    color: #5b21b6;
}

.kcb-progress-line {
    height: 1px;
    background: #e7deef;
}

.kcb-selection-guidance,
.kcb-preview-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 10px 12px;
    border: 1px solid rgba(109, 40, 217, .11);
    border-radius: 11px;
    background: #faf7ff;
    color: #6e6478;
    font-size: 10px;
    line-height: 1.45;
}

.kcb-selection-guidance i {
    color: #7c3aed;
}

.kcb-inline-hint {
    margin-top: 5px !important;
    color: #8b8192 !important;
    font-size: 9px !important;
}

.kcb-inline-hint.is-ready {
    color: #16804a !important;
}

.kcb-preview-status {
    margin: -10px 0 14px;
    border-color: rgba(213, 154, 41, .16);
    background: #fffaf0;
}

.kcb-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d59a29;
    box-shadow: 0 0 0 4px rgba(213, 154, 41, .11);
}

.kcb-preview-status.is-ready {
    border-color: rgba(23, 130, 75, .15);
    background: #f0faf4;
}

.kcb-preview-status.is-ready .kcb-status-dot {
    background: #17824b;
    box-shadow: 0 0 0 4px rgba(23, 130, 75, .10);
}

.kcb-benefit-summary {
    margin: -6px 0 12px !important;
    padding: 10px 12px;
    border-left: 3px solid #d59a29;
    border-radius: 0 10px 10px 0;
    background: #fffaf0;
    color: #6e5b3d !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
}

.kcb-reset-selection {
    width: max-content;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(109, 40, 217, .15);
    border-radius: 999px;
    background: #fff;
    color: #6d28d9;
    font-size: 9px;
    font-weight: 800;
}

.kcb-reset-selection:hover {
    border-color: rgba(109, 40, 217, .32);
    background: #faf7ff;
}

#crystal-list > div {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

#crystal-list > div > .w-6 {
    width: 28px !important;
    height: 28px !important;
    margin-top: 2px;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(44, 25, 60, .12);
}

#crystal-list > div > .w-6 + div {
    min-width: 0;
}

@media (max-width: 760px) {
    .kcb-builder-progress {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 24px;
        padding: 12px;
    }

    .kcb-progress-line {
        width: 1px;
        height: 14px;
        margin-left: 14px;
    }

    .kcb-progress-step {
        min-height: 30px;
    }

    .kcb-selection-guidance {
        align-items: flex-start;
    }

    .kcb-reset-selection {
        width: 100%;
        justify-content: center;
    }
}
