/*
 Theme Name:   Kadence Child
 Theme URI:    https://www.kadencewp.com/kadence-theme/
 Description:  Motyw potomny dla motywu Kadence
 Author:       Verseo
 Author URI:   https://verseo.pl
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  kadence-child
*/


.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .wc_payment_methods {
    display: none;
}


/* ============================================================================
   WC Box Configurator – layout strony produktu
   ============================================================================ */


.wcbc-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: 32px 0;
}

.wcbc-product-gallery-col {
    position: sticky;
    top: 0;
}

.wcbc-image-frame {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wcbc-image-frame #wcbc-product-image {
    object-fit: contain;
    display: block;
    transition: opacity .25s ease;
}

.wcbc-image-placeholder {
    font-size: 72px;
    color: #aaa;
}

.wcbc-gallery-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.wcbc-gallery-step-badge {
    background: #D4A017;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wcbc-gallery-step-label {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcbc-product-summary-col {
    min-width: 0;
}

@media ( max-width: 860px ) {
    .wcbc-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wcbc-product-gallery-col {
        position: static;
    }
    .wcbc-image-frame {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }
}

/* Checkout — pole uwag do zapytania */
.woocommerce-additional-fields #order_comments {
    height: auto;
    min-height: 120px;
}

/* ============================================================================
   PRAWA KOLUMNA — scroll z przyklejonym paskiem nawigacji
   ============================================================================ */

@media ( min-width: 861px ) {

    .wcbc-product-summary-col {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        scrollbar-width: thin;
        scrollbar-color: #e0e0e0 transparent;
    }

    /* Konfigurator wypełnia pozostałą przestrzeń */
    .wcbc-product-summary-col .wcbc-configurator {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;     /* bottom bar przejmuje dolny margines */
    }

    /* Dolny pasek przyklejony do dołu kolumny */
    .wcbc-product-summary-col .wcbc-bottom-bar {
    }
}
