/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://tomusborne.com
Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the new block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS and is translated into over 25 languages by our amazing community of users. A few of our many features include microdata integration, 9 widget areas, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover) and navigation color presets. Learn more and check out our powerful premium version at https://generatepress.com
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 3.0.4.1626346972
Updated: 2021-07-15 11:02:52

*/

/*********************************************************************/
/* https://docs.generatepress.com/article/building-simple-mega-menu/ */
/*********************************************************************/

@media (min-width: 769px) {
	
	/*
	nav .main-nav > ul > li.menu-item 
	replaces
	nav .main-nav .mega-menu
	nav .main-nav > ul > li.menu-item > ul.sub-menu.toggled-on > li > a
	*/
	
    nav .main-nav > ul > li.menu-item {
        position: static;
		width: fit-content;
		text-transform: uppercase !important;
    }
	
	nav .main-nav > ul > li.menu-item > a {
		line-height: 45px;
		margin-top: 10px;
	}

    nav .main-nav > ul > li.menu-item > ul {
		width: fit-content;
		margin: 0;
        flex-wrap: wrap;
		display: flex !important;
        flex-direction: column;
		padding-bottom: 10px;
    }

    nav .main-nav > ul > li.menu-item > ul.sub-menu > li {
        display: block;
        vertical-align: top;
		text-transform: none !important;
    }

    nav .main-nav > ul > li.menu-item > ul.sub-menu > li > a {
        font-weight: bold;
		text-transform: none !important;
		padding: 10px 15px !important;
    }

	/* grandchild example */
    nav .main-nav > ul > li.menu-item > ul.sub-menu > li > ul > li {
        width: 20%;
    }
	
    nav .main-nav > ul > li.menu-item > ul > li:hover > a,
    nav .main-nav > ul > li.menu-item > ul > li:focus > a,
    nav .main-nav > ul > li.menu-item[class*="current"] > a,
    nav .main-nav > ul > li.menu-item ul ul {
        background-color: transparent !important;
		text-decoration: underline !important;
        color: inherit;
    }
	
    nav .main-nav > ul > li.menu-item ul .sub-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: 0 0 0;
        left: 0;
        height: auto;
        pointer-events: auto;
        transform: scale(1);
    }

    nav .main-nav > ul > li.menu-item ul.toggled-on .sub-menu {
        pointer-events: auto;
    }

    nav .main-nav > ul > li.menu-item .sub-menu .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }
}

/*********************************************************************/
/* dropdown on hover: appearance > customise > layout > primary navigation > navigation dropdown.
/*********************************************************************/

/* global settings for links */
.menu-item > a, .main-nav a, .menu-toggle {
	font-size: 0.8rem !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	text-align: left;
	color: #0092F9 !important
}

.menu-item > a:hover {
	text-decoration: underline !important;
}

/* Menu Basket icon size */
#wpmenucartli a i,
#wpmenucartli > a > i,
.menu-item > a > i {
	font-size: 1.3rem !important;
	margin-right: 3px !important;
}

/* Remove MENU from next to burger menu icon */
#mobile-header > div > button.menu-toggle > span.mobile-menu {
	display: none;
}

/* increase the size of the burger menu icon */
#mobile-header > div > button.menu-toggle {
	font-size: 1.5rem !important;
}

/* fix position of MENU in header */
@media (max-width: 768px) {
	.navigation-branding img, .site-logo.mobile-header-logo img {
    	height: 74px !important;
	}
	.main-navigation .menu-toggle {
		padding-left: 0 !important;
	}
}

/*********************************************************************/
/*********************************************************************/

/* OLD */

/*
.current-page-ancestor a,
.current-menu-ancestor a,
.current-menu-item a,
.current-menu-parent a, 
.current_page_item a {
	text-decoration: underline !important;
}
*/

/* #nav > ul > li.hovered > a, #nav > ul > li.current-page-ancestor > a, #nav > ul > li.current_page_parent a, #nav > ul > li.current-menu-item > a {
	text-decoration: underline !important;
} */

/*********************************************************************/
/*********************************************************************/

/* https://generatepress.com/forums/topic/persistent-submenu-from-parent-page/#post-316529 */
/* https://generatepress.com/forums/topic/navigation-dropdown-click-menu-item-is-it-possible-to-change-the-bahavior/ */
/* .main-navigation .main-nav li.current-menu-item .sub-menu,
.main-navigation .main-nav li.current-menu-ancestor .sub-menu {
    left: auto !important;
    right: auto !important;
    width: 100%;
    pointer-events: auto;
    height: auto;
    opacity: 1;
    display: block !important;
} */

/* .current-menu-item .dropdown-menu-toggle, 
.current-menu-ancestor .dropdown-menu-toggle {
    display: none;
} */

/*********************************************************************/
/*********************************************************************/

.custom-sublink {
	display: none !important;
	visibility: hidden !important;
}

/* Hide toggle icon */
/* .menu-item-has-children .dropdown-menu-toggle {
    padding-right: 0 !important;
	display: none !important;
	visibility: hidden !important;
} */

