/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
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: astra-child
Template: astra
*/

/* ================================
   CHECKOUT: SHIPPING FIRST + BILLING SYNC
   ================================ */


.delivery-section {
            background: #BF1F2E;
            padding: 50px 20px;
            color: #fff;
        }

        .delivery-wrapper {
            max-width: 1200px;
            margin: auto;
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            align-items: center;
            gap: 40px;
        }

        .delivery-text {
            max-width: 340px;
            line-height: 1.4;
        }

        .order-title {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
        }

        .order-date {
            font-size: 14px;
            color: #fff;
            opacity: .9;
            margin-bottom: 18px;
        }

        .delivery-title {
            font-size: 20px;
            font-weight: 700;
            color: #111;
        }

        .delivery-date {
            font-size: 14px;
            color: #111;
            opacity: .9;
        }

        .delivery-illustration {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .delivery-illustration svg {
            max-width: 100%;
            height: auto;
        }

        .countdown {
            display: flex;
            gap: 18px;
        }

        .time-box {
            background: #ffffff;
            width: 72px;
            height: 64px;
            border-radius: 6px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .time-box::after {
            content: '';
            position: absolute;
            top: 50%;
            left: -6px;
            right: -6px;
            height: 2px;
            background: #BF1F2E;
            transform: translateY(-50%);
            z-index: 1;
        }

        .time-box span {
            font-size: 26px;
            font-weight: 700;
            color: #BF1F2E;
            position: relative;
            z-index: 2;
        }

        .time-box small {
            position: absolute;
            bottom: -26px;
            width: 100%;
            text-align: center;
            font-size: 12px;
            color: #000;
            font-weight: 500;
        }

        @media screen and (max-width: 500px) {
            .delivery-wrapper {
                grid-template-columns: 1fr;
            }
        }

        @media screen and (max-width:480px) {
            .time-box {
                width: 60px;
                height: 58px;
            }

            .time-box span {
                font-size: 22px;
            }

            .time-box small {
                font-size: 12px;
                bottom: -26px;
            }
        }

        @media screen and (max-width:768px) {
            .delivery-wrapper {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .delivery-text {
                margin: auto;
            }

            .delivery-illustration {
                order: 2;
            }

            .countdown {
                order: 3;
                justify-content: center;
                margin-top: 30px;
            }
        }

        .time-box span:after {
            content: "";
            width: 8px;
            height: 20px;
            position: absolute;
            top: 32%;
            left: -3px;
            z-index: 1;
            background-color: #BF1F2E;
            border-radius: 10px;
        }

        .time-box span {
            font-size: 26px;
            font-weight: 700;
            color: #BF1F2E;
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            justify-content: center;
            display: flex;
            align-items: center;
        }


        .time-box span:before {
            content: "";
            width: 8px;
            height: 20px;
            position: absolute;
            top: 32%;
            right: -3px;
            z-index: 1;
            background-color: #BF1F2E;
            border-radius: 10px;
        }

        .time-box span {
            font-size: 36px;
            font-weight: 700;
            color: #BF1F2E;
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            justify-content: center;
            display: flex;
            align-items: center;
        }




.nutrition-wrapper {
    display: grid;
    gap: 10px;
    align-items: center;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

	.nutrition-item{
		text-align:center;
		min-width:120px;
	}

	.nutrition-item .value{
		font-size:28px;
		font-weight:700;
		color:#000;
	}

	.nutrition-item .label{
		font-size:12px;
		letter-spacing:1px;
		color:#555;
		text-transform:uppercase;
		margin-top:4px;
	}

	/* Mobile Responsive */
	@media (max-width: 600px){
		.nutrition-wrapper{
			gap:20px;
		}
		.nutrition-item{
			width:48%;
		}
	}
/* Two-column layout: Left = Shipping/Billing, Right = Order Review */
.woocommerce-checkout-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin-bottom: 2em;
}

/* Left Column: Shipping and Billing stacked */
.woocommerce-checkout-column-left {
	flex: 1 1 48%;
	min-width: 300px;
}
.woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading{
    width: 80%;
}

/* Right Column: Order Review */
.woocommerce-checkout-column-right {
	flex: 1 1 48%;
	min-width: 300px;
}

/* Shipping section displays first */
.woocommerce-shipping-section {
	margin-bottom: 2em;
	clear: both;
}

.woocommerce-billing-section {
	clear: both;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
	.woocommerce-checkout-wrapper {
		flex-direction: column;
	}
	.nutrition-wrapper {
		    grid-template-columns: 1fr 1fr;
	}
	.woocommerce-checkout-column-left,
	.woocommerce-checkout-column-right {
		flex: 1 1 100%;
	}
}

/* Hide any duplicate sections that might render */
#customer_details .col2-set {
	display: none;
}

/* Hide ALL billing address fields by default (except email/phone) */
#billing_fields_wrapper .form-row:not(.billing-field-visible) {
	display: none !important;
}

/* Always show email and phone fields */
#billing_email_field,
#billing_phone_field {
	display: block !important;
}

/* Show billing fields when class is added */
#billing_fields_wrapper .form-row.billing-field-visible {
	display: block !important;
}

/* Explicitly hide specific billing address field rows */
#billing_first_name_field:not(.billing-field-visible),
#billing_last_name_field:not(.billing-field-visible),
#billing_company_field:not(.billing-field-visible),
#billing_address_1_field:not(.billing-field-visible),
#billing_address_2_field:not(.billing-field-visible),
#billing_city_field:not(.billing-field-visible),
#billing_state_field:not(.billing-field-visible),
#billing_postcode_field:not(.billing-field-visible),
#billing_country_field:not(.billing-field-visible) {
	display: none !important;
}
