/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Nov 08 2026 | 22:19:06 */
/* =========================================================
   devices.css
   Responsywność kalkulatora — bez zmiany szerokości etapów
   Wczytaj TEN plik po podstawowych arkuszach kalkulatora.
========================================================= */


/* =========================================================
   1. WSPÓLNE ZABEZPIECZENIA
   Nie ustawiamy width dla #main_c ani .etap.
========================================================= */

#main_c,
#up_menu,
#setup,
#sum_end,
.etaps,
.etaps > .etap,
#summary_box,
#final_summary {
    box-sizing: border-box;
    min-width: 0;
}

.etap :is(.option, .multi-option),
#summary_box p,
#final_summary :is(.summary-choice, .summary-price) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.etaps > .etap {
    max-width: 100%;
}

.etap :is(h1, h2, h3, h4, p) {
    max-width: 100%;
    overflow-wrap: anywhere;
}


/* =========================================================
   2. TABLETY I MNIEJSZE EKRANY
   Breakpoint: 1024 px
   Current Summary pod etapami.
   Szerokość i układ samego etapu pozostają po stronie Elementora.
========================================================= */

@media (max-width: 1024px) {

    /* Kolejność elementów, jeśli są elementami tego samego
       kontenera flex/grid. Nie wymuszamy display na #main_c. */

    #up_menu {
        order: 1;
        min-width: 0;
    }

    .etaps {
        order: 2;
        min-width: 0;
    }

    #summary_box {
        order: 3;
        min-width: 0;
        height: auto !important;
        min-height: 0;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 20px;
        padding: 22px;
    }

    /* Opcje w jednej kolumnie.
       Reguła obejmuje kontenery Elementora, które mają opcje
       jako bezpośrednie dzieci. */

    .etap :is(.e-con, .elementor-widget-wrap, .elementor-container):has(> .option, > .multi-option) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        min-width: 0;
        gap: 12px;
    }

    .etap :is(.option, .multi-option) {
        min-width: 0 !important;
        max-width: 100% !important;
        align-self: stretch;
        transform: none !important;
    }

    .etap :is(.option, .multi-option):hover,
    .etap :is(.option, .multi-option).selected {
        transform: none !important;
    }

    /* Current Summary — tekst nie może wypadać poza blok */

    #summary_box .summary_item {
        min-width: 0;
        height: auto !important;
        min-height: 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    #summary_box p,
    #summary_box #title_table,
    #summary_box #cost_table,
    #summary_box #total {
        max-width: 100%;
        min-width: 0;
        height: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }

    #summary_box .price {
        font-size: clamp(22px, 2.5vw, 28px);
        overflow-wrap: anywhere;
    }

    /* Final summary */

    #final_summary {
        height: auto !important;
        min-height: 0;
        max-height: none !important;
        overflow: visible !important;
    }

    #final_summary .summary-row {
        min-width: 0;
    }

    #final_summary .summary-choice {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #final_summary .summary-price {
        flex-shrink: 0;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   3. MAŁE TABLETY I TELEFONY
   Breakpoint: 767 px
========================================================= */

@media (max-width: 767px) {

    .etaps > .etap {
        padding: 18px;
    }

    /* Current Summary ma naturalną wysokość i nie ucina
       akapitu/opisu etapu. */

    #summary_box {
        display: block;
        width: auto;
        height: auto !important;
        min-height: 180px;
        max-height: none !important;
        overflow: visible !important;
        padding: 20px;
        margin-top: 20px;
    }

    #summary_box .summary_item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto !important;
        min-height: 0;
        padding: 12px 0;
        gap: 6px;
    }

    #summary_box p {
        display: block;
        height: auto !important;
        min-height: 0;
        max-height: none !important;
        margin-top: 0;
        margin-bottom: 8px;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    #summary_box .price {
        font-size: 24px;
    }

    /* Final summary w układzie listy */

    #final_summary {
        padding: 17px;
    }

    #final_summary .summary-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    #final_summary .summary-choice,
    #final_summary .summary-price {
        width: 100%;
        text-align: left;
    }

    #final_summary .summary-total-price {
        text-align: left;
        overflow-wrap: anywhere;
    }

    /* Przyciski */

    .etap :is(.next, .last, .summary_btn) {
        min-height: 48px;
        max-width: 100%;
        padding: 12px 18px;
        white-space: normal;
    }

    /* Menu: setup pozostaje poziomym rzędem,
       sum_end przechodzi pod setup. */

    #up_menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    #setup {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        min-width: 0;
        gap: clamp(4px, 2vw, 12px) !important;
    }

    #setup .menu-t {
        display: flex !important;
        flex: 1 1 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        gap: 4px;
        font-size: clamp(10px, 2.5vw, 13px);
        text-align: center;
        white-space: normal;
    }

    #setup .menu-t > div {
        width: clamp(27px, 7vw, 34px);
        height: clamp(27px, 7vw, 34px);
        min-width: clamp(27px, 7vw, 34px);
        flex: 0 0 clamp(27px, 7vw, 34px);
        font-size: 12px;
    }

    #sum_end {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-self: center !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        min-width: 0;
        margin-top: 2px;
        white-space: nowrap;
        font-size: 12px;
    }

    #sum_end > div {
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex: 0 0 30px;
        font-size: 12px;
    }

    #sum_end[data-state="active"] > div {
        background: #059669 !important;
        border-color: #059669 !important;
        color: #ffffff !important;
    }
}


/* =========================================================
   4. BARDZO MAŁE TELEFONY
   Breakpoint: 480 px
========================================================= */

@media (max-width: 480px) {

    .etaps > .etap {
        padding: 14px;
    }

    #summary_box {
        min-height: 220px;
        padding: 18px;
    }

    #summary_box p {
        line-height: 1.6;
        margin-bottom: 10px;
    }

    #summary_box .summary_item {
        padding: 14px 0;
    }

    #summary_box .price {
        font-size: 22px;
    }

    #setup {
        gap: 4px !important;
    }

    #setup .menu-t {
        font-size: 10px;
    }

    #setup .menu-t > div {
        width: 27px;
        height: 27px;
        min-width: 27px;
        flex-basis: 27px;
        font-size: 11px;
    }

    #sum_end > div {
        width: 28px;
        height: 28px;
        min-width: 28px;
        flex-basis: 28px;
    }

    #final_summary {
        padding: 14px;
    }

    #final_summary .summary-heading {
        font-size: 21px;
    }

    #final_summary .summary-total-price {
        font-size: 22px;
    }
}


/* =========================================================
   5. URZĄDZENIA DOTYKOWE I OGRANICZENIE RUCHU
========================================================= */

@media (hover: none) and (pointer: coarse) {
    .etap :is(.option, .multi-option):hover,
    .etap :is(.next, .last, .summary_btn):hover {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #up_menu *,
    #setup *,
    #sum_end *,
    #summary_box *,
    #final_summary *,
    .etap * {
        transition: none !important;
        animation: none !important;
    }
}
/* =========================================================
   TABLET I MAŁE URZĄDZENIA
   ETAPY NA PEŁNĄ SZEROKOŚĆ
   CURRENT ESTIMATE POD ETAPAMI
========================================================= */

@media (max-width: 1024px) {

    /*
       Ta reguła zakłada, że .etaps i #summary_box
       są bezpośrednimi dziećmi #main_c.
    */

    #main_c:has(> .etaps):has(> #summary_box) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        align-items: start !important;
    }

    /* Steps / etapy */

    #main_c > .etaps {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        min-width: 0;
        justify-self: stretch !important;
        align-self: start !important;
    }

    /* Current Estimate */

    #main_c > #summary_box {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        min-width: 0;
        justify-self: stretch !important;
        align-self: start !important;
        margin-top: 20px;
    }
}

/* =========================================================
   POPRAWKA: PEŁNA SZEROKOŚĆ ETAPÓW + WYŻSZY CURRENT ESTIMATE
========================================================= */

@media (max-width: 1024px) {

    /* Etapy zajmują 100% dostępnej szerokości,
       nadpisując dotychczasowe 66.6% z !important. */

    #main_c .etaps {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
    }

    /* Current Estimate — dodatkowe 4 px wysokości */

    #main_c #summary_box {
        min-height: calc(100% + 4px) !important;
        padding-bottom: calc(24px + 4px);
    }
}


/* =========================================================
   TABLETY: ETAPY I CURRENT ESTIMATE OBOK SIEBIE
   Opcje pozostają listą dzięki wcześniejszym regułom.
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Dwie kolumny: etapy 2/3, podsumowanie 1/3 */
    #main_c:has(> .etaps):has(> #summary_box) {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        align-items: stretch !important;
    }

    /* Menu nad obiema kolumnami */
    #main_c > #up_menu {
        grid-column: 1 / -1 !important;
    }

    /* Steps — tylko 2/3 szerokości kontenera */
    #main_c > .etaps {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        justify-self: stretch !important;
        align-self: stretch !important;
    }

    /* Current Estimate — obok Steps, na całą wysokość wiersza */
    #main_c > #summary_box {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0;
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        align-self: stretch !important;
        margin-top: 0 !important;
    }
}


/* =========================================================
   MAŁE URZĄDZENIA: ETAPY I SUMMARY JEDEN POD DRUGIM
========================================================= */

@media (max-width: 767px) {

    #main_c:has(> .etaps):has(> #summary_box) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        align-items: start !important;
    }

    #main_c > #up_menu {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #main_c > .etaps {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        justify-self: stretch !important;
    }

    #main_c > #summary_box {
        grid-column: 1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        min-width: 0;
        height: auto !important;
        min-height: 220px;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 20px !important;
        justify-self: stretch !important;
    }
}
