/* =========================================================
   CENNIK PRODUKTU – zwarty układ zgodny ze StrefaWydruku.pl
   Plik do podmiany: /_css/cennik.css
   ========================================================= */

.price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    color: #4f5d67;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
}

.price-list p,
.price-list li,
.price-list td,
.price-list th,
.price-list a {
    font-size: 13px;
}

.price-list strong {
    font-weight: 600;
}

.price-list__intro,
.price-list__notes,
.price-list--unavailable {
    grid-column: 1 / -1;
    padding: 10px 12px;
    background: #f3f8fb;
    border: 1px solid #dbe7ed;
    border-radius: 4px;
}

.price-list__intro {
    margin: 0;
}

.price-list__intro p,
.price-list__notes p,
.price-list--unavailable p {
    margin: 0 0 5px !important;
    font-size: 13px !important;
    line-height: 1.45;
}

.price-list__intro p:last-child,
.price-list__notes p:last-child,
.price-list--unavailable p:last-child {
    margin-bottom: 0 !important;
}

.price-list__updated {
    color: #71808a;
    font-size: 12px !important;
}

.price-promotion {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: #a61919;
    background: #fff5f5;
    border: 1px solid #efcccc;
    border-left: 3px solid #cf2626;
    border-radius: 4px;
    font-size: 13px;
}

.price-promotion strong,
.price-promotion b {
    color: #b51f1f;
    font-weight: 600;
}

.price-table__price--promotion {
    vertical-align: top;
}

.price-table__promotion-price {
    display: block;
    color: #c52020;
    font-size: 13px;
    font-weight: 600;
}

.price-table__reference-price {
    display: block;
    margin-top: 3px;
    color: #7b858c;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
}

.price-table__reference-price del {
    white-space: nowrap;
}

.price-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce5ea;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(30, 54, 68, 0.055);
}

/* Wyższa specyficzność usuwa czarny kolor odziedziczony z #content h3. */
body #content .price-card > h3 {
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 11px !important;
    box-sizing: border-box;
    color: #fff !important;
    background: linear-gradient(100deg, #078fc4 0%, #12a4da 100%) !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

.price-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-table th,
.price-table td {
    padding: 7px 6px;
    color: #52606a;
    text-align: center;
    line-height: 1.3;
    border: 0;
    border-bottom: 1px solid #e7edf1;
}

.price-table th {
    color: #42515c;
    background: #eef4f7;
    font-weight: 500;
}

.price-table td strong {
    font-weight: 500;
}

.price-table tbody tr:nth-child(even) {
    background: #fafcfd;
}

.price-table tbody tr:hover {
    background: #eef8fc;
}

.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-table__row--extra[hidden] {
    display: none;
}

.price-table__row--extra:not([hidden]) td {
    animation: cennik-row-reveal .18s ease both;
}

.price-table__toggle-wrap {
    padding: 7px 10px 8px;
    text-align: center;
    background: #f8fbfc;
    border-top: 1px solid #e7edf1;
}

.price-table__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    margin: 0;
    padding: 5px 8px;
    color: #078fc4;
    background: transparent;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    cursor: pointer;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.price-table__toggle:hover,
.price-table__toggle:focus-visible {
    color: #067aa8;
    background: #eaf6fb;
    box-shadow: none;
    outline: none;
    transform: none;
}

.price-table__toggle:focus-visible {
    box-shadow: 0 0 0 2px rgba(7, 143, 196, .2);
}

.price-table__toggle-icon {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease, margin-top .18s ease;
}

.price-table__toggle[aria-expanded="true"] .price-table__toggle-icon {
    margin-top: 3px;
    transform: rotate(225deg);
}

@keyframes cennik-row-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.price-table__ask {
    color: #078fc4 !important;
    font-weight: 500;
    text-decoration: underline;
}

.price-list__notes {
    margin: 0;
    border-left: 3px solid #0b9ed4;
}

.price-list--unavailable {
    text-align: center;
}

.price-list__button {
    display: inline-block;
    margin-top: 5px;
    padding: 8px 13px;
    color: #fff !important;
    background: #079bcf;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.price-list__button:hover,
.price-list__button:focus-visible {
    background: #087ead;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .price-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .price-list__intro,
    .price-promotion,
    .price-list__notes,
    .price-list--unavailable {
        grid-column: 1;
    }

    .price-promotion {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

@media (max-width: 440px) {
    .price-list,
    .price-list p,
    .price-list li,
    .price-list td,
    .price-list th,
    .price-list a {
        font-size: 12px !important;
    }

    .price-table th,
    .price-table td {
        padding: 7px 4px;
    }

    body #content .price-card > h3 {
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-list__button,
    .price-table__toggle,
    .price-table__toggle-icon {
        transition: none;
    }

    .price-table__row--extra:not([hidden]) td {
        animation: none;
    }
}
