/* WPForms fixes */
/* Initial field looks */
.wpforms-container input[type=date],
.wpforms-container input[type=datetime],
.wpforms-container input[type=datetime-local],
.wpforms-container input[type=email],
.wpforms-container input[type=month],
.wpforms-container input[type=number],
.wpforms-container input[type=password],
.wpforms-container input[type=range],
.wpforms-container input[type=search],
.wpforms-container input[type=tel],
.wpforms-container input[type=text],
.wpforms-container input[type=time],
.wpforms-container input[type=url],
.wpforms-container input[type=week],
.wpforms-container select,
.wpforms-container textarea {
    background: #fff;
    border-width: 0 0 1px 0;
    color: var(--ast-global-color-2);
    opacity: 0.5;
}
/* On focus */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none;
    opacity: 1;
    border-color: var(--ast-global-color-0);
}
/* Don't allow resizing the Message box */
.wpforms-container textarea {
    resize: none;
}
/* Message box fixed height */
.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
    height: 136px;
}
/* Button size & font size */
.wpforms-container button {
    padding: 15px 34px;
    font-size: 15px;
}
/* WPForms done */
/* Footer 2 big columns on sides and 1 small one in the middle */
.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 3fr 1fr 3fr;
}


/* MLab Sciences - Elementor Mini Cart Buttons */

/* View Cart */
body .elementor-menu-cart__footer-buttons a.elementor-button--view-cart {
    background: #176FA3 !important;
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border: 1px solid #176FA3 !important;
}

/* Checkout */
body .elementor-menu-cart__footer-buttons a.elementor-button--checkout {
    background: #176FA3 !important;
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border: 1px solid #176FA3 !important;
}

/* Hover for both mini-cart buttons */
body .elementor-menu-cart__footer-buttons a.elementor-button--view-cart:hover,
body .elementor-menu-cart__footer-buttons a.elementor-button--checkout:hover {
    background: #718568 !important;
    background-color: #718568 !important;
    color: #ffffff !important;
    border-color: #718568 !important;
}

/* WooCommerce Cart Block - Proceed to Checkout */

/* Normal state */
body .wc-block-cart__submit-container
a.wc-block-cart__submit-button {
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border: 1px solid #176FA3 !important;
}

/* Hover state */
body .wc-block-cart__submit-container
a.wc-block-cart__submit-button:hover {
    background-color: #718568 !important;
    color: #ffffff !important;
    border-color: #718568 !important;
}

/* Keep button text white */
body .wc-block-cart__submit-container
.wc-block-components-button__text {
    color: #ffffff !important;
}


/* WooCommerce Checkout Block - Place Order */

/* Normal state */
body .wc-block-checkout__actions_row
button.wc-block-components-checkout-place-order-button {
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border: 1px solid #176FA3 !important;
}

/* Hover state */
body .wc-block-checkout__actions_row
button.wc-block-components-checkout-place-order-button:hover {
    background-color: #718568 !important;
    color: #ffffff !important;
    border-color: #718568 !important;
}

/* Keep inner button text white */
body .wc-block-checkout__actions_row
.wc-block-components-button__text,
body .wc-block-checkout__actions_row
.wc-block-components-checkout-place-order-button__text {
    color: #ffffff !important;
}



/* MLab Sciences - Product Add to Cart buttons */

/* Normal state */
body.woocommerce ul.products li.product a.add_to_cart_button,
body.woocommerce-page ul.products li.product a.add_to_cart_button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    transition: all 0.25s ease !important;
}

/* Hover state */
body.woocommerce ul.products li.product a.add_to_cart_button:hover,
body.woocommerce-page ul.products li.product a.add_to_cart_button:hover {
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border-color: #176FA3 !important;
}


/* MLab Sciences - Homepage Featured Products Add to Cart */

/* Normal state */
body .elementor-widget-woocommerce-products
a.add_to_cart_button,
body .elementor-widget-wc-products
a.add_to_cart_button,
body .elementor-widget-woocommerce-product-related
a.add_to_cart_button,
body .elementor-widget-container
ul.products li.product a.add_to_cart_button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    transition: all 0.25s ease !important;
}

/* Hover state */
body .elementor-widget-woocommerce-products
a.add_to_cart_button:hover,
body .elementor-widget-wc-products
a.add_to_cart_button:hover,
body .elementor-widget-woocommerce-product-related
a.add_to_cart_button:hover,
body .elementor-widget-container
ul.products li.product a.add_to_cart_button:hover {
    background-color: #176FA3 !important;
    color: #ffffff !important;
    border-color: #176FA3 !important;
}


/* MLab Sciences - Single Product Purchase Controls */

/* Align wishlist, compare, quantity and cart button */
body.single-product form.cart {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Wishlist button */
body.single-product button.shopengine_add_to_list_action {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #176FA3 !important;
}

/* Wishlist hover */
body.single-product button.shopengine_add_to_list_action:hover {
    background: #176FA3 !important;
    color: #ffffff !important;
    border-color: #176FA3 !important;
}

/* Quantity field */
body.single-product form.cart .quantity {
    margin: 0 !important;
    float: none !important;
}

body.single-product form.cart input.qty {
    height: 40px !important;
    box-sizing: border-box !important;
}

/* Add to Cart button */
body.single-product button.single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
    height: 40px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    font-size: 15px !important;
}

/* Add to Cart hover */
body.single-product button.single_add_to_cart_button:hover {
    background: #176FA3 !important;
    color: #ffffff !important;
    border-color: #176FA3 !important;
}