/* ==========================================================================
   Section: product-media-text (Figma 15:326 / 15:321)
   Square image + WYSIWYG column, image side + background editable.
   ========================================================================== */

.sec-pmt {
    background: var(--pmt-bg, #fbf7f8);
}

/* Optional background image (pages only): color stays as fallback underneath. */
.sec-pmt--has-bg {
    background-image: var(--pmt-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pmt__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 80px var(--pad-x);
    display: flex;
    align-items: center;
    gap: 80px;
}

.sec-pmt--media-right .pmt__inner {
    flex-direction: row-reverse;
}

/* Media — square; transparent so PNGs show the section background.
   Need a solid backing? set the section's bg_color (e.g. #FFFFFF). */
.pmt__media {
    flex: 1 1 0;
    max-width: 586px;
    aspect-ratio: 1 / 1;
}

/* Section-prefixed so height:100% beats WooCommerce's `.woocommerce img
   { height:auto }` (0,1,1) on product pages (else non-square photos would
   not fill the square media box). */
.sec-pmt .pmt__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fit mode (editable): contain shows the whole image on the media backing
   (no cropping) — e.g. certificates, packshots, ebook mockups. */
.sec-pmt--fit-contain .pmt__img {
    object-fit: contain;
}

.pmt__content {
    flex: 1 1 0;
}

/* --------------------------------------------------------------------------
   WYSIWYG typography
   -------------------------------------------------------------------------- */
.pmt__text {
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.5;
}

.pmt__text > :first-child { margin-top: 0; }
.pmt__text > :last-child { margin-bottom: 0; }

.pmt__text h2 {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.2;
}

.pmt__text h3 {
    margin: 32px 0 16px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
}

.pmt__text p {
    margin: 0 0 18px;
}

.pmt__text ul,
.pmt__text ol {
    margin: 0 0 18px;
    padding-left: 1.4em;
}

/* Bullet lists → pink check markers (benefit lists); ol keeps numbers */
.pmt__text ul {
    list-style: none;
    padding-left: 0;
}

.pmt__text ul li {
    position: relative;
    padding-left: 2em;
}

.pmt__text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.1em;
    height: 1.1em;
    background-color: var(--c-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pmt__text li {
    margin-bottom: 8px;
}

/* Optional 2-column list (e.g. "efekty" — long benefit list beside media) */
.sec-pmt--list-2col .pmt__text ul {
    column-count: 2;
    column-gap: 40px;
}

.sec-pmt--list-2col .pmt__text ul li {
    break-inside: avoid;
}

.pmt__text li:last-child {
    margin-bottom: 0;
}

.pmt__text a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pmt__text a:hover,
.pmt__text a:focus-visible {
    text-decoration: none;
}

.pmt__text strong {
    font-weight: 600;
}

.pmt__btn {
    margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .sec-pmt--media-right .pmt__inner,
    .pmt__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding-block: 56px;
    }

    .pmt__media {
        flex: none;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 639px) {
    /* 2-column list is too cramped on phones */
    .sec-pmt--list-2col .pmt__text ul {
        column-count: 1;
    }
}
