.bos-configurator {
    margin: 24px 0;
}

/* ── Steps panel ── */
.bos-steps-panel {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bos-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
    color: #bbb;
}

.bos-step-item.is-done {
    color: #555;
    cursor: pointer;
}

.bos-step-item.is-done:hover {
    color: #111;
    border-bottom-color: #ccc;
}

.bos-step-item.is-active {
    color: #111;
    border-bottom-color: #111;
    cursor: default;
}

.bos-step-item.is-locked {
    cursor: not-allowed;
    opacity: 0.4;
}

.bos-step-item__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    background: #eee;
    color: inherit;
    flex-shrink: 0;
    transition: background 0.15s;
}

.bos-step-item.is-done .bos-step-item__num {
    background: #111;
    color: #fff;
}

.bos-step-item.is-active .bos-step-item__num {
    background: #111;
    color: #fff;
}

.bos-step-item__label {
    font-size: 13px;
    font-weight: 500;
}

/* ── Options grid ── */
.bos-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.bos-options--few {
    grid-template-columns: repeat(2, 1fr);
    max-width: 380px;
}

.bos-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    width: 100%;
    font-family: inherit;
}

.bos-option:hover {
    border-color: #aaa;
    transform: translateY(-1px);
}

.bos-option.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.bos-option__label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    pointer-events: none;
}

.bos-option__desc {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    line-height: 1.5;
    pointer-events: none;
}

/* ── Navigation ── */
.bos-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bos-btn-back {
    background: none;
    border: 1px solid #ddd;
    padding: 9px 18px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    border-radius: 4px;
    transition: border-color 0.15s, color 0.15s;
}

.bos-btn-back:hover {
    border-color: #aaa;
    color: #111;
}

.bos-btn-next {
    margin-left: auto;
    background: #111;
    border: 1px solid #111;
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    border-radius: 4px;
    transition: background 0.15s, opacity 0.15s;
}

.bos-btn-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bos-btn-next:not(:disabled):hover {
    background: #333;
    border-color: #333;
}

/* ── Summary ── */
.bos-summary {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 8px;
}

.bos-summary__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 14px;
}

.bos-summary__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bos-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.bos-summary__item:last-child {
    border-bottom: none;
}

.bos-summary__key {
    color: #777;
}

.bos-summary__val {
    font-weight: 600;
    color: #111;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .bos-steps-panel {
        gap: 0;
    }

    .bos-step-item {
        padding: 10px 10px;
        gap: 6px;
    }

    .bos-step-item__label {
        font-size: 12px;
    }

    .bos-options,
    .bos-options--few {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        max-width: none;
    }
}

/* ── Live preview (stick picture) ── */
.bos-configurator-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    /* Take the column's width instead of widening it (the theme's grid column would grow
       to fit the picture + option cards and overflow the screen on phones) */
    contain: inline-size;
}

.bos-configurator-wrap .bos-configurator {
    flex: 1;
    min-width: 0;
}

.bos-preview__layers {
    position: relative;
}

.bos-preview img {
    display: block;
    aspect-ratio: 1 / 4;
}

.bos-preview .bos-preview__head {
    position: absolute;
    inset: 0;
}

/* Next to the steps (phone, or no image column) */
.bos-preview:not(.bos-preview--stage) {
    position: sticky;
    top: 24px;
    flex: 0 0 auto;
    width: 110px;
    margin: 24px 0;
}

.bos-preview:not(.bos-preview--stage) img {
    width: 100%;
    height: auto;
}

/* In the product image column */
.bos-preview--stage {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
    margin-bottom: 20px;
    background: #f4f4f4;
    border-radius: 8px;
}

.bos-preview--stage img {
    height: min(calc(100vh - 220px), 760px);
    min-height: 420px;
    width: auto;
}

@media (max-width: 480px) {
    .bos-configurator-wrap {
        gap: 12px;
    }

    .bos-preview:not(.bos-preview--stage) {
        width: 64px;
    }
}

/* ── Out of stock options (public; dealers order on backorder) ── */
.bos-option.is-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f6f6f6;
}

.bos-option.is-unavailable:hover {
    border-color: #e8e8e8;
}

.bos-option__soldout {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    color: #b42318;
}
