/**
 * File: /styles/page-listUnique.css
 * Scope: page-listUnique.class.php
 */

/* =========================================================
   Zdjęcia oferty
   ========================================================= */

.auto-offer-webp-page .imageContainer {
    line-height: 0;
}

.auto-offer-webp-page .imageContainer a.middle {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 545 / 408;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    line-height: 0;
    background: #f5f5f5;
    cursor: zoom-in;
}

.auto-offer-webp-page .imageContainer a.middle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
}

.auto-offer-webp-page .imagesContainer {
    line-height: 0;
}

.auto-offer-webp-page .imagesContainer a.small {
    overflow: hidden;
    line-height: 0;
    cursor: zoom-in;
    background: #f5f5f5;
}

.auto-offer-webp-page .imagesContainer a.small img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
}

.auto-offer-webp-page .imageContainer img,
.auto-offer-webp-page .imagesContainer img {
    max-width: none;
}

.auto-offer-webp-page .imagesContainer::after {
    content: "";
    display: block;
    clear: both;
}

.auto-offer-webp-page .imageContainer a.middle[href="#"],
.auto-offer-webp-page .imagesContainer a.small[href="#"] {
    cursor: zoom-in;
}

.auto-offer-webp-page img {
    background-color: #f5f5f5;
}


/* =========================================================
   Wspólny wygląd ramek sekcji
   Dotyczy:
   - Dodatkowe informacje
   - Wyposażenie
   - Opis auta
   ========================================================= */

.auto-offer-webp-page .rightColumn .additionalInformations,
.auto-offer-webp-page .rightColumn .descriptionContainer {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 2px solid #c5d4df;
    border-left: 5px solid #12324a;
    border-radius: 7px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(18, 50, 74, 0.20);
}


/* =========================================================
   Dodatkowe informacje + wyposażenie
   ========================================================= */

.auto-offer-webp-page .rightColumn .additionalInformations strong {
    display: inline-block;
    color: #12324a;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
    font-weight: 700;
}

.auto-offer-webp-page .rightColumn .additionalInformations h3 {
    color: #12324a;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul li {
    padding: 6px 0;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul li:last-child {
    border-bottom: 0;
}

/* Usuwa nadmiarowe puste odstępy na początku pierwszej sekcji */
.auto-offer-webp-page .rightColumn .additionalInformations br:first-child,
.auto-offer-webp-page .rightColumn .additionalInformations br:nth-child(2) {
    display: none;
}


/* =========================================================
   Opis auta
   ========================================================= */

.auto-offer-webp-page .rightColumn .descriptionContainer {
    line-height: 1.55;
    color: #222222;
}

.auto-offer-webp-page .rightColumn .descriptionContainer strong {
    display: inline-block;
    color: #12324a;
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
    font-weight: 700;
}

.auto-offer-webp-page .rightColumn .descriptionContainer p {
    margin: 0 0 12px 0;
}

.auto-offer-webp-page .rightColumn .descriptionContainer h1,
.auto-offer-webp-page .rightColumn .descriptionContainer h2,
.auto-offer-webp-page .rightColumn .descriptionContainer h3 {
    color: #12324a;
    line-height: 1.3;
    margin: 0 0 10px 0;
}

.auto-offer-webp-page .rightColumn .descriptionContainer ul,
.auto-offer-webp-page .rightColumn .descriptionContainer ol {
    margin: 10px 0 14px 22px;
    padding: 0;
}

.auto-offer-webp-page .rightColumn .descriptionContainer li {
    margin-bottom: 6px;
    line-height: 1.5;
}


/* =========================================================
   Fallback dla starszych przeglądarek
   ========================================================= */

@supports not (object-fit: cover) {
    .auto-offer-webp-page .imageContainer a.middle img,
    .auto-offer-webp-page .imagesContainer a.small img {
        width: 100%;
        height: auto;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
    .auto-offer-webp-page .imageContainer a.middle {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 545 / 408;
        margin-left: 0;
        margin-right: 0;
    }

    .auto-offer-webp-page .imageContainer a.middle img {
        width: 100%;
        height: 100%;
    }

    .auto-offer-webp-page .rightColumn .additionalInformations,
    .auto-offer-webp-page .rightColumn .descriptionContainer {
        padding: 15px;
        margin-bottom: 16px;
        border: 2px solid #c5d4df;
        border-left: 5px solid #12324a;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(18, 50, 74, 0.08);
    }

    .auto-offer-webp-page .rightColumn .additionalInformations h3,
    .auto-offer-webp-page .rightColumn .descriptionContainer h1,
    .auto-offer-webp-page .rightColumn .descriptionContainer h2,
    .auto-offer-webp-page .rightColumn .descriptionContainer h3 {
        font-size: 16px;
    }

    .auto-offer-webp-page .rightColumn .additionalInformations strong,
    .auto-offer-webp-page .rightColumn .descriptionContainer strong {
        font-size: 14px;
    }
}
/* Tylko osobna strona filmu */
.auto-offer-video-only {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 30px !important;
}

.auto-offer-video-only .leftColumnnew,
.auto-offer-video-only .youtube {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.auto-offer-video-only .leftColumnnew {
    float: none !important;
}

.auto-offer-video-only .videoBackBox {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
#film {
    scroll-margin-top: 100px;
}


/* AP_OFFER_FILLER_BOXES_V4_START */

/*
   V4 — osobne ramki tylko dla dolnych sekcji generowanych przez PHP:
   - auto-offer-filler-tech  = Dane techniczne
   - auto-offer-filler-extra = Dodatkowe informacje
   - auto-offer-filler-equip = Wyposażenie

   Nie rusza istniejących ramek:
   - .additionalInformations
   - .descriptionContainer
*/

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat {
    margin-top: 0;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 2px solid #c5d4df;
    border-left: 5px solid #12324a;
    border-radius: 7px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(18, 50, 74, 0.20);
    box-sizing: border-box;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-title {
    display: block;
    color: #12324a;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-list {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-list li {
    padding: 6px 0;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-list li:last-child {
    border-bottom: 0;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table td {
    padding: 6px 0;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
    vertical-align: top;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table tr:last-child td {
    border-bottom: 0;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table .spec-label {
    width: 42%;
    color: #12324a;
    font-weight: 700;
    padding-right: 12px;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table .spec-value {
    color: #222222;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table .spec-section td {
    padding-top: 10px;
    color: #12324a;
    font-weight: 700;
    border-bottom: 1px solid #c5d4df;
}

@media (max-width: 767px) {
    .auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-section {
        padding: 15px;
        margin-bottom: 16px;
        border: 2px solid #c5d4df;
        border-left: 5px solid #12324a;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(18, 50, 74, 0.08);
    }

    .auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-title {
        font-size: 16px;
    }

    .auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-pdf-like-spec-table .spec-label {
        width: 48%;
    }
}

/* AP_OFFER_FILLER_BOXES_V4_END */


/* AP_OFFER_LIST_MARKERS_V11_START */

/*
   V11 — tylko styl list, bez sterowania logiką fillera.
   Nie ustawiamy display/visibility/opacity/max-height dla sekcji.
   Oryginalna logika decyduje, ile treści ma być pokazane.
*/

/* Dolne sekcje fillera: Dodatkowe informacje + Wyposażenie */
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list {
    margin: 10px 0 0 0 !important;
    padding-left: 22px !important;
    list-style-position: outside !important;
    list-style-type: disc !important;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list li,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list li {
    margin: 0 !important;
    padding: 6px 0 !important;
    text-indent: 0 !important;
    list-style-position: outside !important;
    list-style-type: disc !important;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
    color: #222222;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list li::before,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list li::before {
    content: none !important;
    display: none !important;
}

.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list li::marker,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list li::marker {
    color: #12324a;
    font-size: 1em;
}

/* Stare/górne additionalInformations — tam znacznik ✓ jest już w HTML */
.auto-offer-webp-page .rightColumn .additionalInformations ul {
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul li {
    margin: 0 !important;
    padding: 6px 0 6px 26px !important;
    text-indent: -21px !important;
    list-style: none !important;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
    color: #222222;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul li::before {
    content: none !important;
    display: none !important;
}

.auto-offer-webp-page .rightColumn .additionalInformations ul li:last-child,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list li:last-child,
.auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list li:last-child {
    border-bottom: 0;
}

@media (max-width: 767px) {
    .auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-extra .auto-offer-filler-list,
    .auto-offer-webp-page #autoOfferPdfLikeSpecRepeat .auto-offer-filler-equip .auto-offer-filler-list {
        padding-left: 21px !important;
    }

    .auto-offer-webp-page .rightColumn .additionalInformations ul li {
        padding-left: 25px !important;
        text-indent: -20px !important;
    }
}

/* AP_OFFER_LIST_MARKERS_V11_END */


/* AP_OFFER_FILLER_LEFT_STYLE_V12_START */

/*
   V12 — styl dla fillera po lewej stronie.
   Nie zmienia logiki pokazywania/ukrywania.
   Styluje tylko te sekcje, które oryginalna logika już wyświetli.
*/

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 2px solid #c5d4df;
    border-left: 5px solid #12324a;
    border-radius: 7px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(18, 50, 74, 0.20);
    box-sizing: border-box;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-title {
    display: block;
    color: #12324a;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list {
    margin: 10px 0 0 0 !important;
    padding-left: 22px !important;
    list-style-position: outside !important;
    list-style-type: disc !important;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list li {
    margin: 0 !important;
    padding: 6px 0 !important;
    text-indent: 0 !important;
    list-style-position: outside !important;
    list-style-type: disc !important;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
    color: #222222;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list li::before {
    content: none !important;
    display: none !important;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list li::marker {
    color: #12324a;
    font-size: 1em;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list li:last-child {
    border-bottom: 0;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table td {
    padding: 6px 0;
    border-bottom: 1px solid #e5edf3;
    line-height: 1.45;
    vertical-align: top;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table tr:last-child td {
    border-bottom: 0;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table .spec-label {
    width: 42%;
    color: #12324a;
    font-weight: 700;
    padding-right: 12px;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table .spec-value {
    color: #222222;
}

.auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table .spec-section td {
    padding-top: 10px;
    color: #12324a;
    font-weight: 700;
    border-bottom: 1px solid #c5d4df;
}

@media (max-width: 767px) {
    .auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-section {
        padding: 15px;
        margin-bottom: 16px;
        border: 2px solid #c5d4df;
        border-left: 5px solid #12324a;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(18, 50, 74, 0.08);
    }

    .auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-title {
        font-size: 16px;
    }

    .auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-filler-list {
        padding-left: 21px !important;
    }

    .auto-offer-webp-page .auto-offer-filler-repeat:not(#autoOfferPdfLikeSpecRepeat) .auto-offer-pdf-like-spec-table .spec-label {
        width: 48%;
    }
}

/* AP_OFFER_FILLER_LEFT_STYLE_V12_END */

/* Układ szczegółów oferty na telefonie */
@media (max-width: 767px) {
    .productsDetailsBoxnew.auto-offer-top {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    .productsDetailsBoxnew.auto-offer-top .headernew {
        margin: 0 0 14px !important;
        padding: 0 !important;
    }
    .productsDetailsBoxnew.auto-offer-top .headernew h1 {
        margin: 0 !important;
        overflow-wrap: anywhere;
        line-height: 1.3;
    }
    .productsDetailsBoxnew.auto-offer-top .leftColumnnew,
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        clear: both !important;
    }
    .productsDetailsBoxnew.auto-offer-top .leftColumnnew .youtube {
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        padding: 0 !important;
        margin: 0 0 16px !important;
        overflow: hidden;
    }
    .productsDetailsBoxnew.auto-offer-top .leftColumnnew .youtube iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew .columnsContainer .left table {
        table-layout: fixed;
        width: 100%;
    }
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew .columnsContainer .left table td {
        overflow-wrap: anywhere;
    }
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew .columnsContainer .left table tr.price td.value {
        text-align: right;
        font-size: 15px !important;
    }
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew .columnsContainer .left table tr.price td span.pln,
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew .columnsContainer .left table tr.price td span.euro {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}


/* Mobilny układ filmu i tabeli: osobne wiersze bez nakładania */
@media (max-width: 767px) {
    .productsDetailsBoxnew.auto-offer-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
    }
    .productsDetailsBoxnew.auto-offer-top .headernew {
        order: 0;
    }
    .productsDetailsBoxnew.auto-offer-top .headernew > h1:first-child {
        margin-top: 0 !important;
    }
    .productsDetailsBoxnew.auto-offer-top .leftColumnnew {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }
    .productsDetailsBoxnew.auto-offer-top .rightColumnnew {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .productsDetailsBoxnew.auto-offer-top > .clear {
        display: none !important;
    }
    .productsDetailsBoxnew.auto-offer-top .leftColumnnew .youtube {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .productsDetailsBoxnew.auto-offer-top .youtube .videoCrop {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    .productsDetailsBoxnew.auto-offer-top .youtube .videoCrop iframe {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

