/**
* Theme Name: WooFood Child
* Description: This is a child theme of WooFood.
* Author: <a href="https://www.wpslash.com">WPSlash</a>
* Template: woofood
* Version: 2.3.3
*/

.woofood-product-loop .button,.woofood-product-loop .button:hover,.wf_product_view .single_add_to_cart_button {
    background: #0f9fc4!important;
    color: #fff!important;
    border: none!important;
}

a.plus-qty.qty-change-button {
    background-color: rgba(15, 159, 196,1);
    border-top-right-radius: 300px;
    border-bottom-right-radius: 300px;
}

a.minus-qty.qty-change-button {
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
    background: rgba(15, 159, 196,1);
}

.woocommerce-additional-fields {
    display: none;
}

.woocommerce-billing-fields
{
	display:none;
}
.checkout .col-md-4 {
    max-width: 100%!important;
    flex: 0 0 100%;
}
li.woocommerce-order-overview__email.email {
    display: none;
}
@media screen and (min-width:768px) {
.navbar-brand>img {
	max-height:73px!important;
}
}
@media screen and (max-width:768px) {
.header-cart {
	border:none!important;
	background:#0f9fc4!important
}
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,.woocommerce a.button:hover {background:#0f9fc4!important;border:none!important;color:#fff!important;}
.wf_product_view .price {
    background: #199dbf!important;
    border: none!important;
}
.woofood-product-loop .product-price{font-size:16px!Important;}
section.woocommerce-customer-details {
    display: none;
}
.woocommerce-cart-form__cart-item .product-quantity .quantity {
	justify-content: flex-end;
}
function dartcreations_remove_version() {
  return '';
 } add_filter('the_generator', 'dartcreations_remove_version');
add_action('admin_init', function () {
    // Redirect any user trying to access comments page
    global $pagenow;
    
    if ($pagenow === 'edit-comments.php') {
        wp_redirect(admin_url());
        exit;
    }

    // Remove comments metabox from dashboard
    remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');

    // Disable support for comments and trackbacks in post types
    foreach (get_post_types() as $post_type) {
        if (post_type_supports($post_type, 'comments')) {
            remove_post_type_support($post_type, 'comments');
            remove_post_type_support($post_type, 'trackbacks');
        }
    }
});

// Close comments on the front-end
add_filter('comments_open', '__return_false', 20, 2);
add_filter('pings_open', '__return_false', 20, 2);

// Hide existing comments
add_filter('comments_array', '__return_empty_array', 10, 2);

// Remove comments page in menu
add_action('admin_menu', function () {
    remove_menu_page('edit-comments.php');
});

// Remove comments links from admin bar
add_action('init', function () {
    if (is_admin_bar_showing()) {
        remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
    }
});
add_action('admin_enqueue_scripts', 'ds_admin_theme_style');
add_action('login_enqueue_scripts', 'ds_admin_theme_style');
function ds_admin_theme_style() {
	if (!current_user_can( 'manage_options' )) {
		echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none; }</style>';
	}
}
function hide_update_notice_to_all_but_admin_users()
{
    if (!current_user_can('update_core')) {
        remove_action( 'admin_notices', 'update_nag', 3 );
    }
}
add_action( 'admin_head', 'hide_update_notice_to_all_but_admin_users', 1 );