/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Oz Puffify
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

body.woocommerce-checkout.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout #primary {
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-checkout #main,
body.woocommerce-checkout .site-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-checkout #content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 0.8333vw !important;
}

body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field {
    flex: 0 0 calc(50% - 0.4167vw) !important;
    width: calc(50% - 0.4167vw) !important;

    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-checkout
.woocommerce-billing-fields__field-wrapper
> p:not(#billing_first_name_field):not(#billing_last_name_field) {
    flex: 0 0 100% !important;
    width: 100% !important;
}


/* 禁掉内容区域的 Astra 布局干扰 */


body.single-product #content > .ast-container,
body.single-product #content > .ast-container-fluid,
body.woocommerce-cart #content > .ast-container,
body.woocommerce-cart #content > .ast-container-fluid,
body.woocommerce-checkout #content > .ast-container,
body.woocommerce-checkout #content > .ast-container-fluid,
body.woocommerce-account #content > .ast-container,
body.woocommerce-account #content > .ast-container-fluid,
body.post-type-archive-product #content > .ast-container,
body.post-type-archive-product #content > .ast-container-fluid,
body.tax-product_cat #content > .ast-container,
body.tax-product_cat #content > .ast-container-fluid,
body.tax-product_tag #content > .ast-container,
body.tax-product_tag #content > .ast-container-fluid {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


body.single-product #primary,
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary,
body.woocommerce-account #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


body.single-product #main,
body.single-product .site-main,
body.woocommerce-cart #main,
body.woocommerce-cart .site-main,
body.woocommerce-checkout #main,
body.woocommerce-checkout .site-main,
body.woocommerce-account #main,
body.woocommerce-account .site-main,
body.post-type-archive-product #main,
body.post-type-archive-product .site-main,
body.tax-product_cat #main,
body.tax-product_cat .site-main,
body.tax-product_tag #main,
body.tax-product_tag .site-main {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


body.single-product.ast-plain-container.ast-no-sidebar #primary,
body.woocommerce-cart.ast-plain-container.ast-no-sidebar #primary,
body.woocommerce-checkout.ast-plain-container.ast-no-sidebar #primary,
body.woocommerce-account.ast-plain-container.ast-no-sidebar #primary,
body.post-type-archive-product.ast-plain-container.ast-no-sidebar #primary,
body.tax-product_cat.ast-plain-container.ast-no-sidebar #primary,
body.tax-product_tag.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


body.single-product .site-content,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-account .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


body.single-product .ast-article-single,
body.woocommerce-cart .ast-article-single,
body.woocommerce-checkout .ast-article-single,
body.woocommerce-account .ast-article-single,
body.post-type-archive-product .ast-article-single,
body.tax-product_cat .ast-article-single,
body.tax-product_tag .ast-article-single {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


body.single-product .ast-article-single img,
body.woocommerce-cart .ast-article-single img,
body.woocommerce-checkout .ast-article-single img,
body.woocommerce-account .ast-article-single img,
body.post-type-archive-product .ast-article-single img,
body.tax-product_cat .ast-article-single img,
body.tax-product_tag .ast-article-single img {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}