/* Checkout Styles - Forced 2-Column Grid */

/* 1. Main Layout Grid */
.quill-checkout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

/* 2. Left Column (Billing) */
.quill-checkout-billing {
    flex: 1;
    min-width: 55%; /* Occupy ~60% */
}

/* 3. Right Column (Order Review) */
.quill-checkout-review {
    flex: 1;
    min-width: 350px; /* Occupy ~40% */
    width: 38%; 
}

/* The White Box for Order Review */
.quill-order-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.quill-order-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

/* 4. Form Fields Styling */
.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Make certain fields full width */
#billing_first_name_field, #billing_last_name_field,
#billing_phone_field, #billing_email_field {
    grid-column: span 1; /* Half width */
}
#billing_company_field, #billing_country_field,
#billing_address_1_field, #billing_address_2_field,
#billing_city_field, #billing_state_field, #billing_postcode_field {
    grid-column: span 2; /* Full width */
}

.woocommerce form .form-row {
    margin: 0; /* Reset margins because we use grid gap */
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}

/* Select2 Height Fix */
.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    top: 1px;
}

/* 5. Payment Box */
#payment {
    background: transparent;
    border-radius: 0;
}
#payment ul.payment_methods {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
#payment div.payment_box {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    font-size: 14px;
    padding: 15px;
    margin-top: 10px;
}

/* Place Order Button */
#place_order {
    width: 100%;
    background: linear-gradient(135deg, #0ea5a4 0%, #008f8f 100%);
    color: #fff;
    font-weight: 700;
    padding: 18px;
    border-radius: 8px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}
#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 164, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .quill-checkout-grid {
        flex-direction: column;
    }
    .quill-checkout-billing, .quill-checkout-review {
        min-width: 100%;
        width: 100%;
    }
    
    /* Stack form fields on mobile */
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
    #billing_first_name_field, #billing_last_name_field,
    #billing_phone_field, #billing_email_field {
        grid-column: span 1;
    }
}