/**
 * Rosteria — style kalkulatora prowizji twórcy.
 * Korzysta z globalnych zmiennych palety zdefiniowanych w style.css motywu
 * (--rst-green, --rst-cream, --rst-copper, --rst-graphite). Jeśli te zmienne
 * nie są jeszcze w :root, dodaj je tam zamiast duplikować wartości tutaj.
 */

.rst-kalkulator {
    background: var(--rst-cream, #F5EFE4);
    color: var(--rst-graphite, #2A2724);
    border: 1px solid rgba(42, 39, 36, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 640px;
}

.rst-kalkulator__brak-js {
    background: #fff8ea;
    border: 1px solid var(--rst-copper, #C4703F);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.rst-kalkulator__pole {
    margin-bottom: 1.25rem;
}

.rst-kalkulator__pole label,
.rst-kalkulator__pole legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.rst-kalkulator__wartosc {
    font-weight: 700;
    color: var(--rst-green, #1E3A2F);
}

.rst-kalkulator__pole input[type="range"] {
    width: 100%;
    accent-color: var(--rst-copper, #C4703F);
}

.rst-kalkulator__wariant-opis {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
    margin: 0 0 0.6rem;
}

.rst-kalkulator__wariant label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    margin-right: 1.5rem;
}

.rst-kalkulator__specyfikacja {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(42, 39, 36, 0.12);
}

.rst-kalkulator__specyfikacja p {
    margin: 0 0 0.4rem;
}

.rst-kalkulator__specyfikacja-uzasadnienie {
    font-size: 0.85rem;
    opacity: 0.75;
    font-style: italic;
    margin-bottom: 0;
}

.rst-kalkulator__wyniki {
    border-top: 1px solid rgba(42, 39, 36, 0.12);
    padding-top: 1rem;
}

/* Cena końcowa — miedziana ramka, opis po lewej, kwota po prawej na
   miedzianym tle z jasnym fontem. Tło reszty kalkulatora bez zmian. */
.rst-kalkulator__cena-koncowa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 2px solid var(--rst-copper, #C4703F);
    border-radius: 10px;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
    margin: 0 0 1rem;
}

.rst-kalkulator__cena-koncowa span {
    font-size: 0.9rem;
    font-weight: 600;
}

.rst-kalkulator__cena-koncowa strong {
    background: var(--rst-copper, #C4703F);
    color: var(--rst-cream, #F5EFE4);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.rst-kalkulator__blad-wyplaty {
    background: #fdecea;
    border: 1px solid #c0392b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0 1rem;
}

.rst-kalkulator__blad-wyplaty strong {
    color: #c0392b;
}

.rst-kalkulator__blad-wyplaty a {
    color: #c0392b;
    text-decoration: underline;
}

.rst-kalkulator__lista {
    list-style: none;
    margin: 0.75rem 0;
    padding: 0;
}

.rst-kalkulator__lista li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(42, 39, 36, 0.15);
}

/* Karta z prowizją z całego dropu — najważniejsza liczba na panelu,
   stąd większa i mocniej wyeksponowana niż reszta wyników. */
.rst-kalkulator__karta-glowna {
    background: var(--rst-green, #1E3A2F);
    color: var(--rst-cream, #F5EFE4);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 0 0 1.25rem;
    text-align: center;
}

.rst-kalkulator__karta-glowna p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
}

.rst-kalkulator__netto-inline {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.85;
}

.rst-kalkulator__status {
    min-height: 1.2em;
    font-size: 0.85rem;
    color: var(--rst-copper, #C4703F);
}

.rst-kalkulator__objasnienie {
    font-size: 0.78rem;
    opacity: 0.7;
    margin: 0.75rem 0 0;
}

.rst-kalkulator__zastrzezenie {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 1rem;
}

.rst-kalkulator__cta {
    margin: 1.25rem 0 0;
    text-align: center;
}

@media (max-width: 420px) {
    .rst-kalkulator__cena-koncowa {
        flex-direction: column;
        align-items: flex-start;
    }

    .rst-kalkulator__karta-glowna p {
        font-size: 1.3rem;
    }
}
