/*
 * Moduł taryfowy dla /ceny-pradu/.
 * Ładowany osobno, aby nie ingerować w istniejący arkusz site.css.
 */

.tariff-tool-section {
    padding-top: 1.25rem;
}

.tariff-tool {
    border: 1px solid rgba(17, 138, 89, 0.26);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.6rem 1.8rem rgba(23, 57, 42, 0.08);
    overflow: hidden;
}

.tariff-tool__intro,
.tariff-tool__form,
.tariff-tool__method {
    padding: 1.35rem;
}

.tariff-tool__intro {
    background: linear-gradient(135deg, rgba(17, 138, 89, 0.11), rgba(17, 138, 89, 0.025));
    border-bottom: 1px solid rgba(17, 138, 89, 0.18);
}

.tariff-tool__intro h2,
.tariff-summary h2 {
    margin: 0.2rem 0 0.55rem;
}

.tariff-tool__intro p:last-child,
.tariff-tool__method,
.tariff-summary__headline p:last-child {
    margin-bottom: 0;
}

.tariff-tool__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tariff-tool__field {
    display: grid;
    gap: 0.36rem;
    align-content: start;
}

.tariff-tool__field--wide {
    grid-column: span 2;
}

.tariff-tool label {
    font-weight: 700;
}

.tariff-tool select {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #b7c9bf;
    border-radius: 0.5rem;
    background: #fff;
    color: inherit;
    font: inherit;
}

.tariff-tool small {
    color: #53635b;
    line-height: 1.35;
}

.tariff-tool__advanced {
    grid-column: 1 / -1;
    padding: 0.75rem 0.9rem;
    border: 1px dashed #b7c9bf;
    border-radius: 0.6rem;
}

.tariff-tool__advanced summary {
    cursor: pointer;
    font-weight: 700;
}

.tariff-tool__advanced .tariff-tool__field {
    max-width: 34rem;
    margin-top: 0.9rem;
}

.tariff-tool__actions {
    margin-top: 1.15rem;
}

.tariff-tool__method {
    border-top: 1px solid rgba(17, 138, 89, 0.18);
    background: #f6faf7;
    color: #34453c;
    line-height: 1.55;
}

.price-toolbar__tariff {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.price-toolbar__tariff span {
    font-size: 0.86rem;
    color: #53635b;
}

.tariff-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(17, 138, 89, 0.22);
    border-radius: 0.85rem;
    background: #f6faf7;
}

.tariff-summary__headline .eyebrow {
    margin-bottom: 0.15rem;
}

.tariff-summary__amount {
    display: grid;
    justify-items: end;
    gap: 0.15rem;
    white-space: nowrap;
}

.tariff-summary__amount span,
.tariff-summary__amount small {
    color: #53635b;
    font-size: 0.88rem;
}

.tariff-summary__amount strong {
    color: #0a7147;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.tariff-summary__details {
    grid-column: 1 / -1;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(17, 138, 89, 0.18);
}

.tariff-summary__details summary {
    cursor: pointer;
    font-weight: 700;
}

.tariff-summary__details ul {
    display: grid;
    gap: 0.45rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.tariff-summary__details li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tariff-warning {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-left: 0.25rem solid #ae7600;
    background: #fff8e7;
}

.price-table--tariff th:nth-child(4),
.price-table--tariff td:nth-child(4) {
    min-width: 12.5rem;
}

.price-unavailable {
    color: #755c1a;
    text-decoration: underline dotted;
    cursor: help;
}

@media (max-width: 800px) {
    .tariff-tool__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tariff-tool__field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tariff-tool__grid,
    .tariff-summary {
        grid-template-columns: 1fr;
    }

    .tariff-tool__field--wide {
        grid-column: auto;
    }

    .tariff-summary__amount,
    .price-toolbar__tariff {
        justify-items: start;
    }

    .tariff-summary__details {
        grid-column: auto;
    }

    .tariff-summary__details li {
        display: grid;
        gap: 0.1rem;
    }
}




.tariff-tool__field select option:disabled {
    color: #7b6a2d;
    background: #faf5e7;
}

@media (max-width: 900px) {
    .price-toolbar {
        align-items: flex-start;
    }

    .price-toolbar__tariff {
        justify-items: start;
    }
}


.tariff-tool__selection-pending {
    margin: 0.8rem 0 0;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid #b06c13;
    background: #fff8e8;
    color: #5c430f;
    font-size: 0.94rem;
}

.tariff-tool__selection-pending[hidden] {
    display: none;
}


.tariff-summary__first-invoice {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid #e6c887;
    border-radius: 0.6rem;
    background: #fff8e8;
    color: #5c430f;
    line-height: 1.55;
}


/* Pola bez opisu zachowują tę samą górną linię selectów co pola z opisem. */
.tariff-tool__field > small:empty {
    display: block;
    min-height: 1.35em;
}


/*
 * Tabele artykułu /taryfa-dynamiczna/.
 * Zachowują przewijanie poziome w kontenerze na małych ekranach, ale na
 * desktopie wymuszają czytelne proporcje kolumn, łamanie tekstu i spokojniejszą typografię.
 */
.article-content .price-table-wrap {
    margin: 1.45rem 0 1.85rem;
    overscroll-behavior-inline: contain;
}

.article-content .dynamic-article-table {
    width: 100%;
    min-width: 46rem;
    table-layout: fixed;
    font-size: 0.88rem;
    line-height: 1.46;
}

.article-content .dynamic-article-table th,
.article-content .dynamic-article-table td {
    min-width: 0;
    padding: 0.75rem 0.78rem;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.article-content .dynamic-article-table th {
    font-size: 0.82rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.article-content .dynamic-article-table td strong {
    line-height: 1.35;
}

.article-content .dynamic-article-table em {
    font-size: 0.96em;
}

.article-content .dynamic-article-table--offers col.dynamic-article-table__col--offer {
    width: 18%;
}

.article-content .dynamic-article-table--offers col.dynamic-article-table__col--calculation {
    width: 25%;
}

.article-content .dynamic-article-table--offers col.dynamic-article-table__col--protection {
    width: 35%;
}

.article-content .dynamic-article-table--offers col.dynamic-article-table__col--fixed {
    width: 22%;
}

.article-content .dynamic-article-table--osd {
    min-width: 43rem;
}

.article-content .dynamic-article-table--osd col.dynamic-article-table__col--osd {
    width: 23%;
}

.article-content .dynamic-article-table--osd col.dynamic-article-table__col--tariffs {
    width: 22%;
}

.article-content .dynamic-article-table--osd col.dynamic-article-table__col--feature {
    width: 55%;
}

.article-content .dynamic-article-table--thermal {
    min-width: 38rem;
}

.article-content .dynamic-article-table--thermal col.dynamic-article-table__col--thermal-example {
    width: 43%;
}

.article-content .dynamic-article-table--thermal col.dynamic-article-table__col--thermal-delta {
    width: 19%;
}

.article-content .dynamic-article-table--thermal col.dynamic-article-table__col--thermal-energy {
    width: 38%;
}

@media (max-width: 760px) {
    .article-content .dynamic-article-table {
        font-size: 0.84rem;
    }

    .article-content .dynamic-article-table th,
    .article-content .dynamic-article-table td {
        padding: 0.65rem 0.68rem;
    }
}
