@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf');
    font-display: swap;
}

html body {
    margin: 0px;
    padding: 0px;
    background-color: #FFF;
    font-family: 'DM Sans';
}

.wrapper_full {
    width: 1700px;
    max-width: 100%;
    margin: auto;
}

.wrapper {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: auto;
}

.wrapper_min {
    width: 792px;
    max-width: calc(100% - 48px);
    margin: auto;
}

.sec_outher {
    margin-bottom: 128px;
}

.sec_min_outher {
    margin-bottom: 48px;
}

.sec_border_outher {
    padding-bottom: 48px;
    border-bottom: 1px solid #EBEBEB;
}

a {
    text-decoration: none;
}

h1, .noveo_h1 {
    font-weight: 500;
    font-size: 48px;
    line-height: 115%;
    color: #2A1C57;
    margin: 0px;
    margin-bottom: 48px;
}

h2, .noveo_h2 {
    font-weight: 500;
    font-size: 48px;
    line-height: 115%;
    color: #2A1C57;
    margin: 0px;
    margin-bottom: 48px;
}

h3, .noveo_h3 {
    font-weight: 500;
    font-size: 32px;
    line-height: 115%;
    color: #2A1C57;
    margin: 0px;
    margin-bottom: 48px;
}

h4, .noveo_h4 {
    display: inline-block;
    background-color: #FF7F001A;
    border-radius: 64px;
    padding: 12px 18px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #FF7F00;
    margin: 0px;
    margin-bottom: 48px;
}
nav, .noveo_nav {
    display: inline-block;
    background-color: #FF7F001A;
    border-radius: 64px;
    padding: 12px 18px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #FF7F00;
    margin: 0px;
    margin-bottom: 48px;
}

p, ul {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #4A4A4A;
    margin: 0px;
    margin-bottom: 48px;
}

.noveo_btn {
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #FFFFFF;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF7F00;
    padding: 18px 24px;
    border-radius: 16px;
    border: 0px;
    transition-duration: 0.4s;
}

    .noveo_btn:hover {
        background-color: #EB7500;
    }

.noveo_checkbox {
    position: relative;
    padding: 2px 0px;
    padding-left: 32px;
    cursor: pointer;
}

    .noveo_checkbox input {
        display: none;
    }

    .noveo_checkbox::before {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        border: 1px solid #EBEBEB;
        border-radius: 8px;
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
    }

    .noveo_checkbox::after {
        content: '';
        display: block;
        width: 16px;
        height: 16px;
        background-color: #FF7F00;
        border-radius: 4px;
        position: absolute;
        left: 4px;
        top: 50%;
        transform: translateY(-50%);
        transition-duration: 0.4s;
        opacity: 0;
    }

    .noveo_checkbox.checked::after {
        opacity: 1;
    }

@keyframes fade-in {
    from {
        opacity: 0;
        -webkit-transform: translate3d(-24px, 0, 0);
        transform: translate3d(-24px, 0, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-element {
    animation: fade-in 0.8s;
}

.hidden {
    opacity: 0;
}

@keyframes fade-in-bottom {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 12px, 0);
        transform: translate3d(0, 12px, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-element-bottom {
    animation: fade-in-bottom 1.4s;
}

.hidden-bottom {
    opacity: 0;
}

/*nowe*/
/* ============================================================
   EXPANDED CONFIGURATOR

   ZASADA:
   - istniejącego rdzenia konfiguratora nie stylujemy ponownie
   - Marka / Rok / Model / Wariant zachowują bazowy wygląd
   - lewe menu zachowuje bazowy wygląd
   - główny przycisk zachowuje bazowy wygląd
   - stylujemy wyłącznie layout i nowe elementy rozszerzenia
   ============================================================ */


/* ============================================================
   MAIN GRID
   ============================================================ */

.configurator_section .conf_box:has(.conf_expanded) {
    display: grid;
    /*
        1 - menu
        2 - Marka / Rok / Producent
        3 - Model / Wariant / Model boxu
        4 - preview samochodu
    */
    grid-template-columns: 264px minmax(260px, 1fr) minmax(300px, 1fr) minmax(440px, 1.25fr);
    grid-template-rows: max-content max-content max-content max-content max-content auto;
    column-gap: 24px;
    row-gap: 12px;
    align-items: stretch;
    width: 100%;
    position: relative;
    overflow: visible;
}


    /* ============================================================
   REMOVE WRAPPERS FROM GRID
   ============================================================ */

    .configurator_section
    .conf_box:has(.conf_expanded) > .center {
        display: contents;
    }


        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group.show {
            display: contents;
        }


    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded {
        display: contents;
    }


    /* ============================================================
   LEFT MENU
   tylko pozycja - bez zmiany wyglądu
   ============================================================ */

    .configurator_section
    .conf_box:has(.conf_expanded) > .left {
        grid-column: 1;
        grid-row: 1 / 6;
        align-self: start;
    }


    /* ============================================================
   EXISTING FILTERS
   tylko pozycjonowanie
   ============================================================ */


    /* MARKA */

    .configurator_section
    .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
    }


    /* ROK */

    .configurator_section
    .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
    }


    /* MODEL */

    .configurator_section
    .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }


    /* WARIANT */

    .configurator_section
    .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }


    /* ============================================================
   DROPDOWN Z-INDEX
   ============================================================ */

    .configurator_section
    .conf_box:has(.conf_expanded)
    .dropdown_item {
        position: relative;
    }


        .configurator_section
        .conf_box:has(.conf_expanded)
        .dropdown_item:has(> .dropdown_list) {
            z-index: 300;
        }


    /* ============================================================
   PRODUCENT + MODEL BOXU
   ============================================================ */

    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_producer {
        grid-column: 2;
        grid-row: 3;
    }


    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_product {
        grid-column: 3;
        grid-row: 3;
    }


    /*
    Nowe pola są poza oryginalnym .group,
    dlatego odtwarzamy wygląd bazowego dropdowna.
*/

    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_producer,
    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_product {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 24px;
        border: 1px solid #EBEBEB;
        border-radius: 16px;
        background-color: #FFF;
        cursor: pointer;
        overflow: visible;
    }


        /* label */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_producer > strong,
        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_product > strong {
            flex: 0 0 auto;
            margin-right: 4px;
            white-space: nowrap;
        }


        /* selected value */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_producer > .selected_value,
        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_product > .selected_value {
            flex: 1 1 auto;
            min-width: 0;
            padding-right: 24px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


/* ============================================================
   PRODUCER / PRODUCT ARROW
   ============================================================ */

.conf_expanded_producer::after,
.conf_expanded_product::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 5px;
    transform: translateY(-50%);
    background-image: url('content/arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}


/* ============================================================
   PRODUCER / PRODUCT DROPDOWN LIST
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_producer > .dropdown_list,
.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_product > .dropdown_list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 350px;
    box-sizing: border-box;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #FFF;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(42, 28, 87, 0.08);
    z-index: 500;
    scrollbar-width: none;
}


    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_producer > .dropdown_list::-webkit-scrollbar,
    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_product > .dropdown_list::-webkit-scrollbar {
        display: none;
    }


/* ============================================================
   PRODUCER / PRODUCT DROPDOWN OPTIONS
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_producer
.dropdown_list
.option_item,
.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_product
.dropdown_list
.option_item {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    color: #2A1C57;
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;
    background-color: #FFF;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}


    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_producer
    .dropdown_list
    .option_item:hover,
    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_product
    .dropdown_list
    .option_item:hover {
        background-color: #FF7F001A;
    }


/* ============================================================
   EXISTING SUBMIT BUTTON
   tylko pozycjonowanie
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded) > .center > .group > .submit_item {
    grid-column: 2 / 4;
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   PREVIEW WRAPPER
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_preview_ui {
    display: contents;
}


/* ============================================================
   PREVIEW HEADER
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_preview_header {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px 8px;
    box-sizing: border-box;
    border: 1px solid #EBEBEB;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background-color: #FFF;
}


.conf_expanded_car_name {
    min-width: 0;
    color: #2A1C57;
    font-size: 16px;
    line-height: 120%;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.conf_expanded_fullscreen {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: #FAFAFA;
    color: #2A1C57;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
}


/* ============================================================
   CAR AREA
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded) > .right {
    grid-column: 4;
    grid-row: 2 / 5;
    width: 100% !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    position: relative;
    box-sizing: border-box;
    border-left: 1px solid #EBEBEB;
    border-right: 1px solid #EBEBEB;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    background-color: #FFF;
    overflow: hidden;
}


    .configurator_section
    .conf_box:has(.conf_expanded) > .right > .group.show {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 12px 28px;
        box-sizing: border-box;
    }


        /*
    Obraz jest absolute, żeby nie rozciągał
    Rok / Wariant / Producent / Model boxu.
*/

        .configurator_section
        .conf_box:has(.conf_expanded) > .right > .group.show
        img {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            display: block;
            width: calc(100% - 56px);
            max-width: 480px;
            height: auto;
            max-height: calc(100% - 24px);
            object-fit: contain;
            margin: 0;
        }


/* ============================================================
   PREVIEW SIDE BUTTONS
   ============================================================ */

.configurator_section
.conf_box:has(.conf_expanded)
.conf_expanded_side_buttons {
    grid-column: 4;
    grid-row: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 16px;
    box-sizing: border-box;
    border: 1px solid #EBEBEB;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background-color: #FFF;
}


.conf_expanded_side {
    height: 42px;
    min-width: 104px;
    padding: 0 18px;
    border: 1px solid #EBEBEB;
    border-radius: 10px;
    background-color: #FFF;
    color: #2A1C57;
    font-family: inherit;
    font-size: 14px;
    line-height: 100%;
    font-weight: 500;
    cursor: pointer;
    transition-duration: 0.4s;
}


    .conf_expanded_side:hover {
        border-color: #FF7F00;
    }


    .conf_expanded_side.active {
        border-color: #FF7F00;
        color: #FF7F00;
    }


/* ============================================================
   INFO
   ============================================================ */

.conf_expanded_info {
    grid-column: 2 / 4;
    grid-row: 5;
    min-width: 0;
    min-height: 64px;
    padding: 12px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    background-color: #FFF;
    color: #EB7500;
    font-size: 12px;
    line-height: 140%;
}


.conf_expanded_info_icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #FF7F001A;
    color: #FF7F00;
    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   PRODUCTS SECTION
   ============================================================ */

.conf_expanded_products {
    grid-column: 1 / 5;
    grid-row: 6;
    min-width: 0;
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid #EBEBEB;
}


/* ============================================================
   PRODUCTS HEADER
   ============================================================ */

.conf_expanded_products_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}


.conf_expanded_products_title {
    color: #2A1C57;
    font-size: 19px;
    line-height: 140%;
    font-weight: 600;
}


.conf_expanded_products_nav {
    display: flex;
    align-items: center;
    gap: 10px;
}


.conf_expanded_arrow {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: #FAFAFA;
    color: #2A1C57;
    font-family: inherit;
    font-size: 21px;
    cursor: pointer;
    transition-duration: 0.4s;
}


    .conf_expanded_arrow:hover {
        background-color: #FF7F001A;
    }


    .conf_expanded_arrow.active {
        background-color: #FF7F00;
        color: #FFF;
    }


/* ============================================================
   PRODUCT GRID
   DESKTOP = 4 PRODUCTS
   ============================================================ */

.conf_expanded_products_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
/*    max-height: 70vh;*/
    overflow-y: auto;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.conf_product {
    min-width: 0;
    min-height: 390px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    background-color: #FFF;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}


    .conf_product:hover {
        border-color: #D9D9D9;
        box-shadow: 0 5px 20px rgba(42, 28, 87, 0.05);
    }


/* ============================================================
   PRODUCT FAVOURITE
   ============================================================ */

.conf_product_favourite {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #2A1C57;
    font-family: inherit;
    font-size: 21px;
    cursor: pointer;
}


/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.conf_product_image {
    width: 100%;
    height: 160px;
    flex: 0 0 160px;
    min-width: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .conf_product_image img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }


    .conf_product_image h3 {
        margin: 0;
        text-align: center;
        font-size: 16px;
    }


/* ============================================================
   PRODUCT CONTENT
   ============================================================ */

.conf_product_content {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}


/* ============================================================
   PRODUCT NAME
   ============================================================ */

.conf_product_name {
    width: 100%;
    margin-bottom: 10px;
    color: #2A1C57;
    font-size: 16px;
    line-height: 125%;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   PRODUCT PARAMETERS
   ============================================================ */

.conf_product_params {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #4A4A4A;
    font-size: 13px;
    line-height: 130%;
}


    .conf_product_params > div {
        min-width: 0;
        display: flex;
        align-items: baseline;
        gap: 4px;
    }


    .conf_product_params strong {
        flex-shrink: 0;
        font-weight: 600;
    }


    .conf_product_params span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }


/* ============================================================
   AVAILABILITY
   ============================================================ */

.conf_product_available {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 120%;
}


/* available */

.conf_product_available_dot {
    width: 7px;
    min-width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2E9F45;
}


/* only personal pickup */

.conf_product_lastavailable_dot {
    width: 7px;
    min-width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #FF7F00;
}


/* unavailable */

.conf_product_unavailable_dot {
    width: 7px;
    min-width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #D62D2D;
}


/* ============================================================
   PRODUCT BOTTOM
   ============================================================ */

.conf_product_bottom {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


/* ============================================================
   PRICE
   ============================================================ */

.conf_product_price {
    min-width: 0;
    color: #2A1C57;
    font-size: 20px;
    line-height: 100%;
    font-weight: 600;
    white-space: nowrap;
}


/* ============================================================
   DETAILS BUTTON
   ============================================================ */

.conf_product .noveo_btn {
    flex-shrink: 0;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 100%;
    white-space: nowrap;
}


/* ============================================================
   PAGINATION DOTS
   ============================================================ */

.conf_expanded_dots {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}


    .conf_expanded_dots span {
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #EBEBEB;
    }


        .conf_expanded_dots span.active {
            background-color: #FF7F00;
        }


/* ============================================================
   RWD <= 1500
   nadal 4 produkty, ale trochę ciaśniejsze karty
   ============================================================ */

@media only screen and (max-width: 1500px) {

    .conf_expanded_products_grid {
        gap: 12px;
    }


    .conf_product {
        padding: 14px;
        min-height: 370px;
    }


    .conf_product_image {
        height: 145px;
        flex-basis: 145px;
    }


    .conf_product_name {
        font-size: 15px;
    }


    .conf_product_price {
        font-size: 18px;
    }


    .conf_product .noveo_btn {
        padding: 12px 10px;
        font-size: 11px;
    }
}


/* ============================================================
   RWD <= 1224
   ============================================================ */

@media only screen and (max-width: 1224px) {

    .configurator_section
    .conf_box:has(.conf_expanded) {
        grid-template-columns: 264px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: 24px;
        row-gap: 12px;
    }


        .configurator_section
        .conf_box:has(.conf_expanded) > .center {
            display: contents;
            width: auto;
        }


        .configurator_section
        .conf_box:has(.conf_expanded) > .left {
            grid-column: 1;
            grid-row: 1 / 6;
        }


        /* preview header */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_preview_header {
            grid-column: 1 / 4;
            grid-row: 6;
            margin-top: 12px;
        }


        /* preview image */

        .configurator_section
        .conf_box:has(.conf_expanded) > .right {
            grid-column: 1 / 4;
            grid-row: 7;
            width: 100% !important;
            height: 300px;
            min-height: 300px;
        }


        /* preview buttons */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_side_buttons {
            grid-column: 1 / 4;
            grid-row: 8;
        }


    /* products */

    .conf_expanded_products {
        grid-column: 1 / 4;
        grid-row: 9;
    }


    /*
        Tablet:
        2 produkty w rzędzie
    */

    .conf_expanded_products_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }


    .conf_product {
        min-height: 370px;
        padding: 18px;
    }


    .conf_product_image {
        height: 170px;
        flex-basis: 170px;
    }


    .conf_product_name {
        font-size: 16px;
    }


    .conf_product_price {
        font-size: 20px;
    }


    .conf_product .noveo_btn {
        padding: 13px 14px;
        font-size: 12px;
    }
}


/* ============================================================
   RWD <= 880
   ============================================================ */

@media only screen and (max-width: 880px) {

    .configurator_section
    .conf_box:has(.conf_expanded) {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }


        .configurator_section
        .conf_box:has(.conf_expanded) > .left {
            grid-column: 1;
            grid-row: 1;
            width: 100%;
        }


        /* MARKA */

        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(1) {
            grid-column: 1;
            grid-row: 2;
        }


        /* ROK */

        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(2) {
            grid-column: 1;
            grid-row: 3;
        }


        /* MODEL */

        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(3) {
            grid-column: 1;
            grid-row: 4;
        }


        /* WARIANT */

        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group > .dropdown_item:nth-child(4) {
            grid-column: 1;
            grid-row: 5;
        }


        /* PRODUCENT */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_producer {
            grid-column: 1;
            grid-row: 6;
        }


        /* MODEL BOXU */

        .configurator_section
        .conf_box:has(.conf_expanded)
        .conf_expanded_product {
            grid-column: 1;
            grid-row: 7;
        }


        /* SUBMIT */

        .configurator_section
        .conf_box:has(.conf_expanded) > .center > .group > .submit_item {
            grid-column: 1;
            grid-row: 8;
        }


    /* INFO */

    .conf_expanded_info {
        grid-column: 1;
        grid-row: 9;
    }


    /* PREVIEW HEADER */

    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_preview_header {
        grid-column: 1;
        grid-row: 10;
        margin-top: 12px;
    }


    /* CAR */

    .configurator_section
    .conf_box:has(.conf_expanded) > .right {
        grid-column: 1;
        grid-row: 11;
        height: 280px;
        min-height: 280px;
    }


    /* SIDE BUTTONS */

    .configurator_section
    .conf_box:has(.conf_expanded)
    .conf_expanded_side_buttons {
        grid-column: 1;
        grid-row: 12;
    }


    /* PRODUCTS */

    .conf_expanded_products {
        grid-column: 1;
        grid-row: 13;
    }


    .conf_expanded_products_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   RWD <= 650
   1 PRODUCT PER ROW
   ============================================================ */

@media only screen and (max-width: 650px) {

    .conf_expanded_products_header {
        align-items: flex-start;
    }


    .conf_expanded_products_grid {
        grid-template-columns: 1fr;
    }


    .conf_product {
        min-height: auto;
    }


    .conf_product_image {
        height: 190px;
        flex-basis: 190px;
    }


    .conf_product_bottom {
        margin-top: 24px;
    }
}


/* ============================================================
   RWD <= 450
   ============================================================ */

@media only screen and (max-width: 450px) {

    .conf_expanded_products_header {
        gap: 12px;
    }


    .conf_expanded_products_title {
        font-size: 17px;
    }


    .conf_expanded_arrow {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }


    .conf_product_bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ============================================================
   FULL PREVIEW
   ============================================================ */

.configurator_section .conf_box {
    position: relative;
}


    /*
    KLUCZOWE:
    popup dostaje cały obszar grida,
    łącznie z kolumną preview po prawej.
*/
    .configurator_section
    .conf_box:has(.conf_expanded) > .conf_full_preview {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw;
        height: 100dvh;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.96);
    }


/* ============================================================
   CONTENT
   ============================================================ */

.conf_full_preview__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ============================================================
   IMAGE
   ============================================================ */

.conf_full_preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
}


/* ============================================================
   CLOSE
   ============================================================ */

.conf_full_preview__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000000;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #2A1C57;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}


    .conf_full_preview__close:hover {
        background-color: #FF7F001A;
        color: #FF7F00;
    }


/* ============================================================
   MOBILE
   ============================================================ */

@media only screen and (max-width: 880px) {

    .configurator_section
    .conf_box:has(.conf_expanded) > .conf_full_preview {
        padding: 20px;
    }
}


@media only screen and (max-width: 450px) {

    .configurator_section
    .conf_box:has(.conf_expanded) > .conf_full_preview {
        padding: 12px;
    }
}

.single_product:has(> .slider_box[id^="compare_slider_init_"]) > .content > .title {
    margin: 0;
    line-height: 24px;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.single_data {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: start;
}

    .single_data strong {
        min-width: 0;
        white-space: normal;
    }

    .single_data span {
        white-space: nowrap;
    }

/* DOMYŚLNIE - BEZ OBRAZKA */
.noveo-category-header {
    display: block;
    width: 100%;
}

.noveo-category-header__breadcrumbs {
/*    width: 100%;*/
}


/* OBRAZEK */
.noveo-category-header__vehicle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.noveo-category-header__vehicle-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}


/* DESKTOP - ALE TYLKO GDY JEST SAMOCHÓD */
@media (min-width: 1200px) {

    .noveo-category-header--with-vehicle {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: center;
        column-gap: 30px;
    }

        .noveo-category-header--with-vehicle
        .noveo-category-header__vehicle-image {
            width: 260px;
            max-width: 260px;
            max-height: 110px;
        }
}


/* MOBILE */
@media (max-width: 1199px) {

    .noveo-category-header__vehicle {
        margin: 35px 0 15px;
    }

    .noveo-category-header__vehicle-image {
        width: 100%;
        max-width: 460px;
    }
}
/* Cały przyklejony obszar mieści się w oknie */
.sticky-top:has(.configurator_section) {
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
}

/* Kontenery pomiędzy sticky-top a konfiguratorem */
.sticky-top div:has(.configurator_section) {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

    /* Nagłówek i paski nad konfiguratorem zachowują wysokość */
    .sticky-top:has(.configurator_section) > :not(:has(.configurator_section)):not(.configurator_section),
    .sticky-top div:has(.configurator_section) > :not(:has(.configurator_section)):not(.configurator_section) {
        flex-shrink: 0;
    }

/* Przewija się cała zawartość konfiguratora, razem z przyciskiem */
.sticky-top .configurator_section {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 28, 87, 0.25) transparent;
}
/* Okno konfiguratora */
.global_shop_alert:has(.configurator_section) {
    position: fixed;
    top: 50% !important; /* nadpisuje inline top: 70% */
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 28, 87, 0.25) transparent;
}

/* Przewijaniem zarządza całe okno */
.global_shop_alert .configurator_section {
    max-height: none;
    overflow: visible;
    margin-bottom: 0;
}

/* Blokada strony pod otwartym oknem */
html:has(.global_shop_alert .configurator_section),
body:has(.global_shop_alert .configurator_section) {
    overflow: hidden;
}


.related-products-fullwidth {
    width: 100vw !important;
    max-width: none !important;
    box-sizing: border-box;
    /* Wyprowadza sekcję poza wyśrodkowany kontener strony */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}


    .related-products-fullwidth #products_slider_init {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden;
        padding: 0 24px 14px;
    }


        .related-products-fullwidth #products_slider_init > div {
            flex: 0 0 228px;
        }
    .related-products-fullwidth #products_slider_init {
        scrollbar-width: thin;
        scrollbar-color: #ff7f00 #eee;
    }

        .related-products-fullwidth #products_slider_init::-webkit-scrollbar {
            height: 8px;
        }

        .related-products-fullwidth #products_slider_init::-webkit-scrollbar-track {
            background: #eee;
            border-radius: 8px;
        }

        .related-products-fullwidth #products_slider_init::-webkit-scrollbar-thumb {
            background: #ff7f00;
            border-radius: 8px;
        }
/*Zmiana wyświetlania wyszukiwarki bagażników*/
.sticky-top .configurator_section {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
}

    .sticky-top .configurator_section:has(.conf_expanded) {
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(42, 28, 87, 0.25) transparent;
    }

    .sticky-top .configurator_section:not(:has(.conf_expanded)) {
        position: relative;
        z-index: 100;
        overflow: visible;
    }
/*WCAG*/
button.wcag {
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
}

    button.wcag img {
        display: block;
    }

/* Warstwa blokująca całą stronę */ .cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 22, 45, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
/* Główne okienko */

.cookie-modal {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px;
    background: #fff;
    border: 1px solid #ece9f2;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(25, 18, 55, 0.25);
    color: #30245f;
    font-family: inherit;
    box-sizing: border-box;
}

    .cookie-modal *, .cookie-modal *::before, .cookie-modal *::after {
        box-sizing: border-box;
    }

.cookie-header h2 {
    margin: 0 0 18px;
    color: #30245f;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-header p {
    margin: 0 0 12px;
    color: #555166;
    font-size: 15px;
    line-height: 1.7;
}

.cookie-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 28px;
}

    .cookie-links a {
        color: #30245f;
        font-size: 14px;
        line-height: 1.5;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .cookie-links a:hover {
            color: #ff8200;
        }
/* Sekcja preferencji */

.cookie-section {
    padding: 22px;
    margin-bottom: 28px;
    background: #f8f7fb;
    border: 1px solid #eeebf5;
    border-radius: 8px;
}

    .cookie-section h3 {
        margin: 0 0 16px;
        color: #30245f;
        font-size: 19px;
        font-weight: 600;
    }

.cookie-modal .check_group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Wiersz ustawień cookies */
.cookie-modal .noveo_checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 0;
    border-bottom: 1px solid #e9e6f0;
    color: #30245f;
    font-size: 14px;
    cursor: pointer;
}
    /* Ukrycie natywnego checkboxa */

    .cookie-modal .noveo_checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        min-width: 18px;
        margin: 0;
        padding: 0;
        border: 1.5px solid #c9c4d8;
        border-radius: 4px;
        background: #fff;
        box-shadow: none;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }
        /* Zaznaczony checkbox */

        .cookie-modal .noveo_checkbox input[type="checkbox"]:checked {
            background: #ff8200;
            border-color: #ff8200;
        }
            /* Znak zaznaczenia */

            .cookie-modal .noveo_checkbox input[type="checkbox"]:checked::after {
                content: "";
                display: block;
                width: 5px;
                height: 9px;
                margin-top: -2px;
                border: solid #fff;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }
        /* Stan wyłączony */

        .cookie-modal .noveo_checkbox input[type="checkbox"]:disabled {
            opacity: 1;
            background: #ff8200;
            border-color: #ff8200;
            cursor: not-allowed;
        }
        /* Widoczny fokus klawiatury */

        .cookie-modal .noveo_checkbox input[type="checkbox"]:focus-visible {
            outline: 2px solid #30245f;
            outline-offset: 3px;
        }
    /* Tekst i opis po prawej */

    .cookie-modal .noveo_checkbox > span:first-of-type {
        flex: 1;
        min-width: 0;
    }

    .cookie-modal .noveo_checkbox .cost {
        flex: 0 0 auto;
        margin-left: auto;
        color: #777287;
        font-size: 12px;
        text-align: right;
    }


/* Przyciski */

.cookie-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-modal .noveo_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-modal .cookie-secondary {
    background: #f4f2f8;
    border-color: #e3dfed;
    color: #30245f;
}

    .cookie-modal .cookie-secondary:hover {
        background: #eae6f3;
        border-color: #d3cce4;
    }

.cookie-modal .cookie-primary {
    background: #ff8200;
    border-color: #ff8200;
    color: #fff;
}

    .cookie-modal .cookie-primary:hover {
        background: #e97400;
        border-color: #e97400;
    }
/* Telefony */

@media (max-width: 600px) {
    .cookie-overlay {
        padding: 12px;
    }

    .cookie-modal {
        max-height: calc(100vh - 24px);
        padding: 22px 18px;
        border-radius: 10px;
    }

    .cookie-header h2 {
        font-size: 23px;
    }

    .cookie-header p {
        font-size: 14px;
    }

    .cookie-section {
        padding: 16px;
    }

    .cookie-footer {
        flex-direction: column;
    }

    .cookie-modal .noveo_btn {
        width: 100%;
    }
}


.cookie-settings-button {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    color: #fff;
    background: #ff8200;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(48, 36, 95, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-settings-button:hover {
    background: #e97400;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(48, 36, 95, 0.3);
}

.cookie-settings-button:focus-visible {
    outline: 3px solid #30245f;
    outline-offset: 4px;
}

.cookie-settings-button svg {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-settings-button {
        left: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        right: auto;
    }

        .cookie-settings-button svg {
            width: 24px;
            height: 24px;
        }
}


.video-container {
    width: 100%;
    max-width: 900px;
}

    .video-container video {
        display: block;
        width: 100%;
        height: auto;
        max-height: 75vh;
        object-fit: contain;
    }

.video-modal .modal-dialog {
    max-width: 950px;
    width: calc(100% - 30px);
}

.video-modal .modal-content {
    height: auto;
}

.video-modal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.video-modal video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

payu-mini-installments-widget-details {
    color: black !important;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
}

    .product-image-wrapper .thumb {
        display: block;
        width: 100%;
    }

.product-new-badge {
    position: absolute;
    top: 10px;
    left: 0;
    width: 110px;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

form[name='payform'] input[type='submit'] {
    border: 0px;
    height: 35px;
    width: 100px;
    background: url('http://static.payu.com/pl/standard/partners/raty_payu/raty_small.png');
    cursor: pointer;
}
