/* Koszyk Boczny - WEB33 — karta produktu, strona koszyka, ikony (wartości przeniesione 1:1 z dotychczasowego kodu motywu) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
}
.woocommerce-cart .wc-proceed-to-checkout {
    display: block !important;
}

@media (min-width: 992px) {
    .woocommerce-cart .woocommerce {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 45px !important;
    }
    .woocommerce-cart .woocommerce-cart-form {
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
    .woocommerce-cart .cart-collaterals {
        width: 400px !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
    }
    .woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        float: none !important;
    }
}

.woocommerce-product-details__short-description, 
.product-short-description {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}
form.cart {
    margin-top: 4px !important;
    padding-top: 0 !important;
}
.shipping-progress-container.cart-shipping-progress {
    width: 100% !important;
    float: none !important;
}

/* --- LOGA PŁATNOŚCI --- */
.single-product form.cart {
    flex-wrap: wrap !important;
}

.shop-trust-payment-icons {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 15px auto 10px auto !important;
    clear: both !important;
}

.woocommerce-cart .shop-trust-payment-icons,
.side-cart-content .shop-trust-payment-icons {
    max-width: 100% !important;
    justify-content: center !important;
    gap: 20px !important;
}

.shop-trust-payment-icons img {
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* --- WYRÓWNANIE STRUKTURALNE I RESPONSYWNOŚĆ MODUŁÓW --- */
.bundle-upsell-wrapper,
.thermal-packaging-wrapper,
.custom-price-summary-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

/* --- DESIGN MODUŁU PAKIETÓW NA KARCIE PRODUKTU --- */
.bundle-upsell-wrapper {
    margin: 12px 0 14px 0 !important;
    background: #f4f9fd !important;
    border: 2px solid #bce1f5 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    user-select: none !important;
}
.bundle-upsell-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0b4f8a !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.bundle-option-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1.5px solid #d4e7f5 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.bundle-option-card:last-child {
    margin-bottom: 0 !important;
}
.bundle-option-card:hover {
    border-color: #79c2ec !important;
    background: #fafdff !important;
}
.bundle-option-card.active {
    border-color: #0b60b0 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px #0b60b0 !important;
}
.bundle-radio-custom {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    position: relative !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}
.bundle-option-card.active .bundle-radio-custom {
    border-color: #0b60b0 !important;
}
.bundle-option-card.active .bundle-radio-custom::after {
    content: "" !important;
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    width: 6px !important;
    height: 6px !important;
    background: #0b60b0 !important;
    border-radius: 50% !important;
}
.bundle-left-info {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.bundle-text-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
}
.bundle-label-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.25 !important;
}
.bundle-savings-tag {
    background: #22c55e !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}
.bundle-price-info {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: right !important;
    white-space: nowrap !important;
    padding-left: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}
.bundle-unit-price {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 1px !important;
}

@media (max-width: 480px) {
    .bundle-option-card {
        padding: 8px 10px !important;
    }
    .bundle-label-text {
        font-size: 12.5px !important;
    }
    .bundle-price-info {
        font-size: 12.5px !important;
    }
}

/* --- DESIGN GUZIKA OPAKOWANIA --- */
.thermal-packaging-wrapper {
    margin: 12px 0 !important;
    user-select: none !important;
}
.thermal-toggle-label {
    cursor: pointer !important;
    display: block !important;
    width: 100% !important;
}
.thermal-toggle-label input[type="checkbox"] {
    display: none !important;
}
.thermal-toggle-card {
    display: flex !important;
    align-items: center !important;
    background: #eef7fc !important;
    border: 2px solid #bce1f5 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
}
.thermal-toggle-card:hover {
    border-color: #79c2ec !important;
    background: #e3f2fd !important;
}
.thermal-icon-box {
    font-size: 20px !important;
    margin-right: 12px !important;
    background: #ffffff !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    flex-shrink: 0 !important;
}
.thermal-text-info {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}
.thermal-title {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #1a4f76 !important;
}
.thermal-description {
    font-size: 11px !important;
    color: #527a9a !important;
    margin-top: 1px !important;
}
.thermal-checkbox-custom {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #a3d2ee !important;
    border-radius: 50% !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}
.thermal-toggle-label input[type="checkbox"]:checked + .thermal-toggle-card {
    border-color: #29b6f6 !important;
    background: #1976d2 !important;
}
.thermal-toggle-label input[type="checkbox"]:checked + .thermal-toggle-card .thermal-title {
    color: #ffffff !important;
}
.thermal-toggle-label input[type="checkbox"]:checked + .thermal-toggle-card .thermal-description {
    color: #e3f2fd !important;
}
.thermal-toggle-label input[type="checkbox"]:checked + .thermal-toggle-card .thermal-checkbox-custom {
    border-color: #ffffff !important;
    background: #2ecc71 !important;
}
.thermal-toggle-label input[type="checkbox"]:checked + .thermal-toggle-card .thermal-checkbox-custom::after {
    content: "" !important;
    position: absolute !important;
    left: 4px !important;
    top: 2px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* --- PODSUMOWANIE CENY OSTATECZNEJ --- */
.custom-price-summary-box {
    margin: 20px 0 15px 0 !important;
    padding: 0 4px !important;
}
.summary-item-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
}
.summary-item-row.summary-total {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #000 !important;
    border-top: 1px solid #ddd !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
}
