/*
 Theme Name:   SiteOrigin Corp Child
 Theme URI:    https://siteorigin.com/theme/corp/
 Description:  Motyw potomny dla strony z projektami domów
 Author:       Artur Slawuta
 Template:     siteorigin-corp
 Version:      1.0.0
 Text Domain:  siteorigin-corp-child
*/

/* ==========================================================================
   Układ dwukolumnowego layoutu karty produktu (Nadpisanie SiteOrigin Corp)
   ========================================================================= */
/* ==========================================================================
   Główna siatka strukturalna karty projektu
   ========================================================================== */

.custom-house-project {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important; /* Główny kontener pionowy */
}

/* RZĄD 1: Galeria + Sidebar */
@media (min-width: 992px) {
    .project-hero-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 40px !important;
        margin-bottom: 40px !important;
    }
    .project-gallery-column {
        flex: 0 0 63% !important;
        max-width: 63% !important;
    }
    .project-sidebar-column {
        flex: 0 0 34% !important;
        max-width: 34% !important;
    }
}

/* Reset galerii WooCommerce */
.project-gallery-column .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
}

/* RZĄD 2: Pasek ikon (100% szerokości) */
.project-quick-stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin: 40px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    padding: 25px !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .project-quick-stats-row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.stat-box {
    text-align: center !important;
}
.stat-box .icon {
    font-size: 26px !important;
    display: block !important;
    margin-bottom: 5px !important;
}
.stat-box .val {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333333 !important;
}
.stat-box .lbl {
    font-size: 12px !important;
    color: #777777 !important;
}

/* RZĄD 3: Dolna sekcja (Opis / Rzuty + Dane techniczne) */
@media (min-width: 992px) {
    .project-details-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 40px !important;
        margin-top: 40px !important;
    }
    .project-details-main {
        flex: 0 0 63% !important;
        max-width: 63% !important;
    }
    .project-details-sidebar {
        flex: 0 0 34% !important;
        max-width: 34% !important;
    }
}

/* ==========================================================================
   Stylizacja boksu sprzedażowego (Sidebar)
   ========================================================================== */

.project-sidebar-column .sticky-box {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 25px !important;
}

.project-sidebar-column .product_title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.project-price-box .price {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #576146 !important;
}

.project-sidebar-column .single_add_to_cart_button {
    width: 100% !important;
    background-color: #576146 !important;
    color: #ffffff !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 4px !important;
}

/* Rzuty i opisy */
.project-tabs-section .section-title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
}
.rzuty-container img {
    max-width: 100% !important;
    height: auto !important;
}

.project-details-row-full {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin-top: 40px !important;
    display: block !important;
}

.project-details-row-full .project-tabs-section {
    width: 100% !important;
    max-width: 100% !important;
}

/* Stylizacja tabel z opisu, aby ładnie wyglądały na pełnej szerokości */
.project-description-text table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    border-collapse: collapse !important;
}

.project-description-text table td {
    padding: 12px !important;
    border-bottom: 1px solid #e9ecef !important;
}

.project-description-text table tr:nth-child(even) {
    background-color: #f8f9fa !important; /* Co drugi wiersz lekko szary dla czytelności */
}

.rzuty-container {
    margin-top: 50px !important;
    padding-top: 30px !important;
    border-top: 1px solid #e9ecef !important;
}

.rzuty-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px 0 !important;
}

/* ==========================================================================
   Rozbudowa Boksu Sprzedażowego (Przycisk kontaktowy + wiersze info)
   ========================================================================== */

/* Informacja o VAT pod ceną */
.vat-info {
    display: block !important;
    font-size: 12px !important;
    color: #777777 !important;
    font-weight: normal !important;
    margin-top: 4px !important;
}

/* Przycisk Zapytaj Architekta */
.project-ask-architect {
    margin-top: 12px !important;
    margin-bottom: 25px !important;
}

.ask-architect-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #576146 !important; /* Czerwona ramka */
    color: #576146 !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

.ask-architect-btn:hover {
    background: #fdf2f1 !important; /* Delikatne czerwonawe tło na hover */
    color: #576146 !important;
    border-color: #576146 !important;
}

.ask-architect-btn .chat-icon {
    font-size: 16px !important;
}

/* Kontener na 3 dolne rzędy */
.project-info-rows {
    border-top: 1px solid #e9ecef !important;
    margin-top: 20px !important;
    padding-top: 5px !important;
}

/* Pojedynczy wiersz */
.info-row-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f1f3f5 !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background-color 0.2s !important;
}

/* Efekt najechania dla wierszy, które są linkami */
.info-row-item.has-arrow:hover {
    background-color: #f8f9fa !important;
}

.info-row-icon {
    font-size: 20px !important;
    margin-right: 15px !important;
    color: #495057 !important;
    flex-shrink: 0 !important;
}

.info-row-text {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.info-row-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #212529 !important;
    line-height: 1.2 !important;
}

.info-row-desc {
    font-size: 12px !important;
    color: #6c757d !important;
    margin-top: 3px !important;
}

/* Kwota dostawy (za 0,00 zł) wyrównana do prawej na czerwono */
.info-row-badge {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #576146 !important;
    white-space: nowrap !important;
}

/* Strzałka przejścia po prawej stronie */
.info-row-arrow {
    font-size: 12px !important;
    color: #adb5bd !important;
    padding-left: 10px !important;
}

/* ==========================================================================
   Układ 50/50: Opis po lewej, Rzuty w zakładkach po prawej
   ========================================================================== */

.project-tabs-and-desc {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4% !important; /* Odstęp między kolumnami */
    margin-bottom: 50px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* Lewa kolumna: Tekst i opisy */
.project-text-left {
    flex: 0 0 38% !important; /* Około 50% szerokości */
    max-width: 38% !important;
}

/* Prawa kolumna: Ramka z zakładkami i rzutem */
.project-rzuty-tabs-wrapper {
    flex: 0 0 58% !important; /* Około 50% szerokości */
    max-width: 58% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* RERESPONSYWNOŚĆ: Na tabletach i telefonach układ wraca do jednego pod drugim */
@media (max-width: 991px) {
    .project-tabs-and-desc {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .project-text-left,
    .project-rzuty-tabs-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   SEKCJA B: Dane Techniczne + Dodatki (Układ Kart 60 / 40)
   ========================================================================== */

.project-specs-and-addons-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4% !important;
    margin-top: 40px !important;
    width: 100% !important;
    align-items: stretch !important; /* Wyrównuje wysokość obu kart */
}

/* Karta: Dane techniczne (Lewa) */
.specs-column-box {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Karta: Dodatki do projektu (Prawa) */
.addons-column-box {
    flex: 0 0 36% !important;
    max-width: 36% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Nagłówki w obu kartach */
.specs-column-box h3,
.addons-column-box h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 25px 0 !important;
}

/* ==========================================================================
   Struktura wnętrza: Dane Techniczne (Tabela dwukolumnowa z pionową kreską)
   ========================================================================== */

.specs-grid-table {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Podział na 2 równe kolumny */
    column-gap: 60px !important; /* Duży odstęp na pionową linię */
    row-gap: 0 !important;
    position: relative !important;
}

/* Pionowa linia dzieląca parametry na pół */
.specs-grid-table::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 1px !important;
    background-color: #e2e8f0 !important;
    transform: translateX(-50%) !important;
}

/* Pojedynczy wiersz parametru */
.spec-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important; /* Delikatna pozioma linia */
    font-size: 14px !important;
}

.spec-item span {
    color: #4a5568 !important; /* Szary tekst nazwy parametru */
    font-weight: 400 !important;
}

.spec-item strong {
    color: #1a202c !important; /* Ciemny, wyraźny tekst wartości */
    font-weight: 600 !important;
}

/* ==========================================================================
   Struktura wnętrza: Dodatki do projektu
   ========================================================================== */

.new-addons-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.new-addon-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.new-addon-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.new-addon-icon {
    font-size: 18px !important;
    color: #718096 !important;
}

.new-addon-title {
    font-size: 14px !important;
    color: #4a5568 !important;
}

.new-addon-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.new-addon-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #576146 !important; /* Czerwona cena z makiety */
}

/* Przycisk plusa (+) */
.new-addon-plus-btn {
    background: none !important;
    border: 1px solid #cbd5e1 !important;
    color: #718096 !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.new-addon-plus-btn:hover {
    border-color: #94a3b8 !important;
    color: #1a202c !important;
    background-color: #f8fafc !important;
}

/* Link na dole: Zobacz wszystkie dodatki */
.new-addons-more-link {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-top: auto !important;
    padding-top: 15px !important;
}

.new-addons-more-link:hover {
    color: #576146 !important;
}

/* RERESPONSYWNOŚĆ: Na tabletach i telefonach przechodzi w jedną kolumnę */
@media (max-width: 991px) {
    .project-specs-and-addons-row {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .specs-column-box,
    .addons-column-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .specs-grid-table {
        grid-template-columns: 1fr !important; /* Jedna kolumna parametrów na mobile */
        column-gap: 0 !important;
    }

    .specs-grid-table::after {
        display: none !important; /* Ukrywa pionową linię na mobile */
    }
}

/* ==========================================================================
   Style wnętrza boksu z rzutami (Zakładki i grafika)
   ========================================================================== */

/* Menu przełączania zakładek */
.rzuty-tabs-nav {
    display: flex !important;
    border-bottom: 2px solid #e2e8f0 !important;
    gap: 25px !important;
    margin-bottom: 30px !important;
}

.tab-trigger {
    background: none !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #718096 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.2s ease !important;
}

.tab-trigger:hover {
    color: #576146 !important;
}

.tab-trigger.active {
    color: #576146 !important;
}

.tab-trigger.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #576146 !important;
}

/* Zawartość zakładki: Podział na zdjęcie (lewo) i krótki opis rzutu (prawo) */
.tab-content-panel {
    display: none !important;
}

.tab-content-panel.active {
    display: block !important;
}

.tab-panel-inner {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
}

/* Jeśli wewnątrz zakładki chcesz podział na zdjęcie i tekst obok siebie */
.tab-image-side {
    flex: 0 0 60% !important;
    max-width: 60% !important;
}

.tab-image-side img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.tab-text-side {
    flex: 0 0 35% !important;
    max-width: 35% !important;
}

.tab-text-side h4 {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.tab-text-side p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4a5568 !important;
    margin: 0 0 15px 0 !important;
}

/* Przycisk Powiększ */
.zoom-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.zoom-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* Równomierne dopasowanie wnętrza zakładki na mniejszych ekranach */
@media (max-width: 600px) {
    .tab-panel-inner {
        flex-direction: column !important;
    }
    .tab-image-side, .tab-text-side {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   SEKCJA C: Baner Sprawdź Działkę (Różowy)
   ========================================================================== */
.project-check-plot-banner {
    background: #fff5f5 !important; /* Subtelny różowo-czerwony odcień tła */
    border: 1px solid #fee2e2 !important;
    border-radius: 12px !important;
    padding: 25px 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.plot-banner-left {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

.plot-banner-icon img {
    width: 50px !important;
    height: auto !important;
}

.plot-banner-text h4 {
    margin: 0 0 5px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.plot-banner-text p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #4a5568 !important;
}

/* Przycisk baneru */
.plot-banner-btn {
    background: #576146 !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
}

.plot-banner-btn:hover {
    background: #4e5c2d !important;
}

/* ==========================================================================
   SEKCJA D: Szacunkowe Koszty Budowy
   ========================================================================== */
.project-estimated-costs-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 35px 40px !important;
    display: flex !important;
    gap: 5% !important;
    align-items: center !important;
    margin-bottom: 50px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

/* Lewa strona z dużą kwotą */
.costs-main-summary {
    flex: 0 0 30% !important;
    max-width: 30% !important;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid #e2e8f0 !important;
    padding-right: 40px !important;
}

.costs-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 10px !important;
}

.costs-title small {
    font-weight: 400 !important;
    color: #718096 !important;
}

.info-trigger {
    cursor: help !important;
    font-size: 12px !important;
    margin-left: 4px !important;
}

.costs-huge-price {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #576146 !important;
    margin-bottom: 15px !important;
}

.costs-details-link {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #576146 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
}

/* Prawa strona z etapami */
.costs-stages-grid {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Cztery kolumny obok siebie */
    gap: 20px !important;
}

.cost-stage-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.stage-icon {
    font-size: 22px !important;
    color: #4a5568 !important;
}

.stage-name {
    display: block !important;
    font-size: 12px !important;
    color: #718096 !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

.stage-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

/* RESPONSIVNOŚĆ */
@media (max-width: 991px) {
    .project-check-plot-banner {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }
    .plot-banner-left {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .project-estimated-costs-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px !important;
        padding: 30px 20px !important;
    }
    .costs-main-summary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        width: 100% !important;
    }
    .costs-stages-grid {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr 1fr !important; /* Na tabletach 2x2 */
        gap: 25px !important;
        width: 100% !important;
    }
}

/* Rezydia custom styles migrated from Customizer */
.woocommerce-Price-amount {
    color: #576248 !important;
    font-weight: 900;
    font-size: 18px;
}

.wpfMainWrapper {
    background: #fff;
    border-radius: 5px;
    color: #000 !important;
    padding: 10px 10px;
}

.wpfFilterWrapper .wfpTitle {
    color: #000 !important;
}

.wpfButton,
button.wpfFilterButton.wpfButton {
    color: #fff !important;
    background: #576248 !important;
}

span.wpfFilterTaxNameWrapper {
    color: #000;
}

.four-feature-icon > .so-widget-sow-features > ul.sow-features-list > li.sow-features-feature {
    background-color: #fff !important;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 5px;
    align-items: center !important;
}

.custom-tech-table {
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.custom-tech-table tr:nth-child(even) {
    background: #fff;
}

.cf7-custom-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

.cf7-custom-form h3 {
    margin-bottom: 20px;
}

.cf7-custom-form .form-row,
.wpcf7-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.cf7-custom-form .form-group,
.wpcf7-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form select,
.cf7-custom-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.cf7-custom-form textarea,
.wpcf7-form textarea {
    height: 120px;
}

.cf7-custom-form .custom-submit,
.wpcf7-form .custom-submit,
.custom-submit {
    background-color: #5d6d4e;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 600px) {
    .cf7-custom-form .form-row,
    .wpcf7-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.contact-4-box .sow-features-list li.sow-features-feature {
    background-color: #fcf9f4;
}

.contact-4-box .sow-icon-ionicons {
    padding: 15px;
}

#colophon .site-info,
#colophon #theme-attribution,
.site-footer .site-info,
footer .site-info,
footer #theme-attribution {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

#colophon .site-info *,
#colophon #theme-attribution *,
.site-footer .site-info *,
footer .site-info *,
footer #theme-attribution * {
    display: none !important;
}

#colophon .site-info::before,
#colophon #theme-attribution::before,
.site-footer .site-info::before,
footer .site-info::before,
footer #theme-attribution::before {
    content: "2026 © Rezydia - strona wykonana przez eile.pl" !important;
    display: block !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #c9c9c9 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

#colophon .site-info::after,
#colophon #theme-attribution::after,
.site-footer .site-info::after,
footer .site-info::after,
footer #theme-attribution::after {
    content: none !important;
}

.sow-slider-image-container {
    position: relative;
    overflow: hidden;
}

.promo-ribbon {
    position: absolute;
    top: 60px;
    right: -100px;
    width: 560px;
    padding: 25px 50px;
    background-color: #b33939;
    color: #fff;
    text-align: center;
    transform: rotate(35deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    font-family: sans-serif;
    line-height: 1.2;
    outline: 2px dashed rgba(255, 255, 255, 0.8);
    outline-offset: -10px;
    box-sizing: border-box;
}

.promo-ribbon span {
    display: block;
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-ribbon small {
    display: block;
    font-size: 16px;
    margin-top: 5px;
    opacity: 0.9;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background: #576146 !important;
}

a:hover,
a:focus,
a:active {
    color: #fff;
}

.wc-block-components-button__text {
    color: #fff;
}

@media (max-width: 768px) {
    .promo-ribbon {
        width: 300px;
        top: 30px;
        right: -70px;
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Classic WooCommerce checkout fixes */
  body.woocommerce-checkout .woocommerce #order_review_heading {
      box-sizing: border-box;
      clear: right;
      float: right;
      margin: 20px 0 6px;
      width: 48%;
  }

  body.woocommerce-checkout .woocommerce form.checkout .form-row {
      display: block;
      gap: 0;
  }

  body.woocommerce-checkout .woocommerce form.checkout .form-row-first,
  body.woocommerce-checkout .woocommerce form.checkout .form-row-last {
      display: block;
      float: left;
      width: 47.8260869565%;
  }

  body.woocommerce-checkout .woocommerce form.checkout .form-row-last {
      float: right;
  }

  body.woocommerce-checkout .woocommerce form.checkout .form-row-wide {
      clear: both;
      display: block;
      width: 100%;
  }

  body.woocommerce-checkout .woocommerce form.checkout .woocommerce-input-wrapper,
  body.woocommerce-checkout .woocommerce form.checkout input.input-text,
  body.woocommerce-checkout .woocommerce form.checkout textarea.input-text,
  body.woocommerce-checkout .woocommerce form.checkout select {
      display: block;
      width: 100%;
  }

  body.woocommerce-checkout .woocommerce #payment .form-row.place-order {
      clear: both;
      display: block;
      overflow: visible;
  }

  body.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper label.checkbox {
      align-items: flex-start;
      display: flex;
      gap: 8px;
      line-height: 1.5;
  }

  body.woocommerce-checkout .woocommerce #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
      flex: 0 0 auto;
      margin-top: 4px;
  }

  body.woocommerce-checkout .woocommerce #payment #place_order {
      clear: both;
  }

  @media (max-width: 768px) {
      body.woocommerce-checkout .woocommerce #order_review_heading {
          clear: none;
          float: none;
          width: 100%;
      }

      body.woocommerce-checkout .woocommerce form.checkout .form-row-first,
      body.woocommerce-checkout .woocommerce form.checkout .form-row-last {
          float: none;
          width: 100%;
      }

      body.woocommerce-checkout .woocommerce #payment #place_order {
          float: none;
          width: 100%;
      }
  }


@media (max-width: 480px) {
    .costs-stages-grid {
        grid-template-columns: 1fr !important; /* Na smartfonach jeden pod drugim */
    }
}


.rezydia-pdf-delivery-notice {
    background: #fff;
    border: 1px solid #d6d6d6;
    border-left: 4px solid #576248;
    color: #2d2d2d;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
    padding: 14px 16px;
}

.rezydia-pdf-delivery-notice p {
    margin: 0;
}

.woocommerce-checkout .rezydia-pdf-delivery-notice {
    margin: 0 0 18px;
}

.woocommerce-checkout .rezydia-digital-content-consent {
    border-top: 1px solid #d6d6d6;
    margin-top: 14px;
    padding-top: 14px;
}

.woocommerce-checkout .rezydia-digital-content-consent label.checkbox {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    line-height: 1.5;
}

.woocommerce-checkout .rezydia-digital-content-consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 4px;
}
