/* ==========================================================
   Promation — charakterystyki obrazkowe produktu V1.1
   Spokojniejsza, biała karta z subtelnym akcentem kolorystycznym.
   Zakres wyłącznie .pm-product-features / .pm-feature-card.
   Nie zmienia opisu produktu, FAQ, specyfikacji, ceny, koszyka
   ani list produktów.
   ========================================================== */

.pm-product-features,
.pm-product-features *,
.pm-product-features *::before,
.pm-product-features *::after {
    box-sizing: border-box;
}

.pm-product-features {
    margin: 28px 0 32px;
    color: #24343f;
}

.pm-product-features__heading {
    margin: 0 0 13px;
    padding: 0 0 8px 10px;
    color: #168fbd;
    border-bottom: 2px solid #63bfdf;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.pm-product-features--options .pm-product-features__heading {
    color: #b86e08;
    border-bottom-color: #efb552;
}

.pm-product-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.pm-feature-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7e6ed;
    border-top: 2px solid #5ab7d8;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 91, 122, .065);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pm-feature-card:hover {
    border-color: #bedbe7;
    box-shadow: 0 5px 15px rgba(31, 91, 122, .09);
}

.pm-feature-card--option {
    border-color: #ead7b3;
    border-top-color: #eda73a;
    box-shadow: 0 3px 12px rgba(154, 102, 25, .06);
}

.pm-feature-card--option:hover {
    border-color: #e4c58e;
    box-shadow: 0 5px 15px rgba(154, 102, 25, .085);
}

.pm-feature-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 13px 15px 10px;
    color: #1f2d37;
    background: #fff;
}

.pm-feature-card__title {
    min-width: 0;
    margin: 0;
    color: #1f2d37;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.pm-feature-card__badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 23px;
    padding: 3px 7px;
    color: #9a5c00;
    border: 1px solid #e2ad53;
    border-radius: 5px;
    background: #fffaf0;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.pm-feature-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    margin: 0 15px 12px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #e4ecef;
    border-radius: 7px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
}

/* Obrazy charakterystyk mają stałą proporcję pola 2:1.
   Przy zwężaniu kafla cały obraz pozostaje widoczny i skaluje się
   proporcjonalnie zamiast być przycinany po bokach. */
.pm-feature-card__media--image {
    min-height: 0;
    aspect-ratio: 2 / 1;
}

.pm-feature-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    outline: 0;
}

.pm-feature-card__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pm-feature-card__body {
    flex: 1 1 auto;
    padding: 0 15px 15px;
    color: #33434e;
    font-size: 14px;
    line-height: 1.55;
}

.pm-feature-card__body > :first-child {
    margin-top: 0;
}

.pm-feature-card__body > :last-child {
    margin-bottom: 0;
}

.pm-feature-card__body p {
    margin: 0 0 9px;
    text-align: left !important;
}

.pm-feature-card__body ul,
.pm-feature-card__body ol {
    margin: 0 0 9px;
    padding-left: 19px;
}

.pm-feature-card__body li {
    margin-bottom: 4px;
}

.pm-feature-card__body a {
    color: #147fa8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pm-feature-card__body a:hover,
.pm-feature-card__body a:focus {
    text-decoration: none;
}

.pm-feature-card__body img {
    max-width: 100%;
    height: auto;
}

/* Starsze filmy osadzone w opisie pozostają obsługiwane,
   ale wizualnie mają takie same, spokojniejsze proporcje jak zdjęcia. */
.pm-feature-card--legacy-video .pm-feature-card__body {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 0 15px 15px;
}

.pm-feature-card--legacy-video .pm-feature-card__body > p {
    width: 100%;
    margin: 0;
}

.pm-feature-card__media--video .pmv {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
}

.pm-feature-card__video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 330px;
    border-radius: 6px;
    background: #000;
}

/* Przy nieparzystej liczbie kart ostatnia karta jest wycentrowana. */
.pm-product-features__grid > .pm-feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7px);
}

/* Powiększenie wychodzi bezpośrednio z miniatury. Klon obrazu
   rozpoczyna animację w jej dokładnym położeniu, rośnie nad własnym
   kaflem i wraca do punktu początkowego. */
#pm-feature-image-preview {
    position: fixed;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px;
    overflow: hidden;
    pointer-events: none;
    border: 1px solid rgba(151, 180, 194, .75);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(24, 61, 79, .10);
    opacity: .98;
    transition: left 180ms ease, top 180ms ease, width 180ms ease,
                height 180ms ease, box-shadow 180ms ease, opacity 160ms ease;
    will-change: left, top, width, height;
}

#pm-feature-image-preview.is-open {
    box-shadow: 0 16px 38px rgba(20, 55, 72, .24);
    opacity: 1;
}

#pm-feature-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 767px) {
    .pm-product-features {
        margin: 23px 0 27px;
    }

    .pm-product-features__heading {
        font-size: 17px;
    }

    .pm-product-features__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pm-product-features__grid > .pm-feature-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .pm-feature-card__header {
        min-height: 0;
        padding: 12px 13px 9px;
    }

    .pm-feature-card__title {
        font-size: 15px;
    }

    .pm-feature-card__media {
        min-height: 138px;
        margin: 0 12px 11px;
    }

    .pm-feature-card__image-wrap {
        min-height: 120px;
    }

    .pm-feature-card__image {
        max-width: 100%;
        max-height: 138px;
    }

    .pm-feature-card__media--image {
        min-height: 0;
    }

    .pm-feature-card__media--image .pm-feature-card__image-wrap {
        height: 100%;
        min-height: 0;
    }

    .pm-feature-card__media--image .pm-feature-card__image {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
    }

    .pm-feature-card__body {
        padding: 0 13px 14px;
        font-size: 13.5px;
        line-height: 1.52;
    }

    .pm-feature-card--legacy-video .pm-feature-card__body {
        padding: 0 12px 13px;
    }

    .pm-feature-card__media--video .pmv {
        height: 100%;
    }

    /* Na urządzeniach dotykowych nie pokazujemy podglądu hover. */
    #pm-feature-image-preview {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-feature-card,
    #pm-feature-image-preview {
        transition: none !important;
    }
}
