/*
Theme Name: Chemist Child Theme
Template: chemist
Theme URI: https://chemist.ancorathemes.com/
Description: Chemist Child Theme
Author: AncoraThemes
Author URI: https://ancorathemes.com/
Version: 1.0
Tested up to: 6.9
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: chemist
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* ============================================================
   CART & CHECKOUT — dopasowanie do kontenera 1290px
   Dotyczy zarówno stron PL (koszyk/kasa) jak i EN (cart/checkout)
   ============================================================ */

.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
    max-width: 1290px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Wewnętrzny layout sidebar (kolumny: formularz + podsumowanie) */
.wc-block-components-sidebar-layout,
.wc-block-checkout__main,
.wc-block-cart__main {
    max-width: 100%;
    box-sizing: border-box;
}

/* Entry-content na stronach koszyka i kasy — bez zbędnych marginesów */
body.is-cart .entry-content,
body.is-checkout-page .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
    padding-left: 0;
    padding-right: 0;
}

/* Order received (thank you page) - force the same site container width */
body.woocommerce-order-received .post_item_single.post_type_page,
body.woocommerce-order-received .post_item_single.post_type_page .post_content.entry-content {
    width: min(1290px, calc(100% - 40px));
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.woocommerce-order-received .post_item_single.post_type_page .woocommerce {
    width: 100%;
    max-width: 100%;
}

body.page-id-10.woocommerce-order-received .woocommerce-order {
    width: 1300px;
    margin: 0 auto;
}
