/* Konfigurator zestawu – strona produktu */

.bt-set {
    --bt-set-accent: #282F6C;
    --bt-set-muted: #767676;
    --bt-set-border: #E2E2E2;
    margin-bottom: 30px;
}

.bt-set__title {
    margin-bottom: 15px;
}

.bt-set__slot {
    border: 0;
    border-top: 1px solid var(--bt-set-border);
    margin: 0;
    padding: 12px 0;
    min-width: 0;
}

.bt-set__slot-label {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.bt-set__slot-label + * {
    clear: both;
}

/* Kolumna 24px zostaje też w wierszach bez wyboru, żeby ceny były w jednej linii. */
.bt-set__choice {
    display: grid;
    grid-template-columns: 1fr auto 24px;
    align-items: center;
    gap: 10px;
    margin: 0 -6px;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1.5;
}

label.bt-set__choice {
    cursor: pointer;
}

label.bt-set__choice:hover {
    background: rgba(40, 47, 108, .1);
}

/* Wybrany wariant – jaśniejszy niż hover */
label.bt-set__choice:has(input:checked) {
    background: rgba(40, 47, 108, .05);
}

label.bt-set__choice:has(input:checked):hover {
    background: rgba(40, 47, 108, .1);
}

.bt-set__slot--removed label.bt-set__choice:has(input:checked) {
    background: none;
}

.bt-set__choice-title {
    display: block;
    font-size: 16px;
}

.bt-set .bt-set__choice .bt-set__choice-link {
    display: block;
    width: fit-content;
    font-size: 13px;
    color: var(--bt-set-muted);
    text-decoration: underline;
}

.bt-set__choice-price {
    white-space: nowrap;
    text-align: right;
    font-size: 15px;
}

.bt-set__choice-note {
    display: block;
    font-size: 13px;
    color: var(--bt-set-muted);
}

.bt-set__choice--unavailable {
    opacity: .5;
}

label.bt-set__choice--unavailable {
    cursor: not-allowed;
}

label.bt-set__choice--unavailable:hover {
    background: none;
}

/* Radio w stylu checkboxów dodatków */
.bt-set__radio {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin: 0;
}

.bt-set__radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.bt-set__radio span {
    width: 18px;
    height: 18px;
    border: 1px solid var(--bt-set-accent);
    border-radius: 50%;
    position: relative;
    transition: all .2s;
}

.bt-set__radio input:checked + span::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bt-set-accent);
}

.bt-set__radio input:focus-visible + span {
    outline: 2px solid var(--bt-set-accent);
    outline-offset: 2px;
}

.bt-set__slot--removed .bt-set__choice {
    opacity: .45;
    text-decoration: line-through;
}

.bt-set__removed-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--bt-set-muted);
}

.bt-set__gifts {
    border-top: 1px solid var(--bt-set-border);
    padding: 12px 0;
}

.bt-set__gifts-title {
    font-size: 16px;
    margin-bottom: 6px;
}

.bt-set__gifts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bt-set__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 2px solid var(--bt-set-accent);
    padding-top: 12px;
    font-size: 18px;
}

.bt-set__total strong {
    font-size: 22px;
}

/* Wiersz pod listą dodatków – poza kontenerem .bt-set */
.bt-set__total--addons {
    --bt-set-accent: #282F6C;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .bt-set__choice {
        grid-template-columns: 1fr 24px;
        row-gap: 2px;
    }

    .bt-set__choice-name,
    .bt-set__choice-price {
        grid-column: 1;
        text-align: left;
    }

    .bt-set__radio {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}
