/* Ajax Product Options Styling */

/* Container styling */
#ajax-product-options {
    margin-bottom: 20px;
    padding: 10px 0;
}

/* Option group styling */
#ajax-product-options .option-group {
    margin-bottom: 15px;
}

/* Label styling */
#ajax-product-options label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Dropdown styling */
#ajax-product-options select {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px !important;
    border: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    -webkit-appearance: menulist;
    appearance: menulist;
}

#ajax-product-options select:focus {
    outline: none;
    border-color: #007bff;
}


/* Target both Elementor and standard WooCommerce product layouts */
.elementor-product-simple form.cart,
.woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 20px;
    width: 100%;
}

/* Quantity field styles */
.elementor-product-simple form.cart .quantity,
.woocommerce div.product form.cart .quantity {
    margin-bottom: 15px;
    width: 100%;
    float: none !important;
    display: block;
    clear: both;
}

/* Add to Quote button styles */
.elementor-product-simple form.cart .afrfqbt_single_page,
.woocommerce div.product form.cart .afrfqbt_single_page {
    margin-top: 10px;
    margin-left: 0 !important;
    width: 100%;
    float: none !important;
    display: block;
    clear: both;
    padding: 12px 20px;
    text-align: center;
}

/* Fix any other horizontal layouts */
.elementor-product-simple form.cart .button,
.woocommerce div.product form.cart .button {
    float: none !important;
    display: block;
    width: 100%;
}

/* Make the quantity field look better when stacked */
.elementor-product-simple .quantity .qty,
.woocommerce .quantity .qty {
    width: 100% !important;
    padding: 10px 15px;
    border-radius: 8px !important;
    margin-bottom: 10px;
}

/* Hide unnecessary elements on quote page */
.woocommerce-message .wc-forward {
    display: none;
}

/* Responsive fixes for smaller screens */
@media (max-width: 768px) {
    .elementor-product-simple form.cart .button,
    .woocommerce div.product form.cart .button,
    .elementor-product-simple form.cart .afrfqbt_single_page,
    .woocommerce div.product form.cart .afrfqbt_single_page {
        width: 100%;
        margin: 10px 0 !important;
        display: block;
    }
    
    /* Force no floats on mobile */
    .woocommerce div.product form.cart div.quantity,
    .woocommerce-page div.product form.cart div.quantity {
        float: none !important;
        margin-right: 0 !important;
        width: 100%;
    }
}
