/* General Fixes
----------------------------------------------------------------------------------------*/

	#topNavLogo a,
	#ceLogo a,
	#byuFooter a,
	#topNavLogo a:hover,
	#ceLogo a:hover,
	#byuFooter a:hover {
		border-bottom: none;
	}

/* Top Navigation
----------------------------------------------------------------------------------------*/
	body {
		height: 100%;
	}

	#topNav {
		padding: 10px;
		width: 100vw;
		box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),
		0 3px 1px -2px rgba(0, 0, 0, .2),
		0 1px 5px 0 rgba(0, 0, 0, .12);
	}
	
	#topNav,
	#topNavIcons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	#topNavLogo,
	#topNavSearch,
	#topNavMenu,
	#topNavCatalog,
	#topNavIcons,
	#topNavCart,
	#topNavUser {
		display: inline-block;
	}

	#topNavLogo,
	#topNavSearch,
	#topNavMenu,
	#topNavCatalog,
	#topNavCart {
		margin-right: 1.75rem;
	}

/* LOGO */

#topNavLogo a {
    display: flex;
}

/* SEARCH */

	#topNavSearch {
		display: flex;
	}

	#searchType,
	#searchPhrase,
	#searchSubmit {
		display: inline-flex;
		border: none;
	}

	#searchType {
		border-radius: 5px 0 0 5px;
		background-color: var(--gray_20);
		padding: 7px 25px 7px 11px;
	}

	#searchType.form-select {
		background-position: right 0.35rem center;
		font-weight: normal;
	}

	#searchPhrase {
		cursor: text;
		padding-left: 11px;
		font-size: 1rem;
		line-height: 0;
		width: 150px;
	}

	#searchSubmit {
		background-color: var(--primary_contrast);
		color: var(--secondary);
		border: none;
		padding: 11px;
		border-radius: 0 5px 5px 0;
		font-size: 1rem;
		cursor: pointer;
	}

	#searchSubmit:hover {
		color: var(--primary);
	}

/* MENU (TOP NAV) */

	ul.menu {
		margin-left: 0;
		margin-bottom: 0;
	}
	#topNavMenu ul {
		font-size: 1rem;
	}
	#topNavMenu ul:first-of-type.menu li {
		display: inline-block;
		position: relative;
	}
	#topNavMenu ul.menu li.expanded:after {
		font-family: 'FontAwesome';
		content: "\00a0\00a0\f078";
		color: var(--primary_contrast);
		font-size: 1rem;
	}
	#topNavMenu ul.menu li a:hover {
		border-bottom: 1px solid var(--primary_contrast);
	}
	#topNavMenu ul:first-of-type.menu li a:hover,
	#topNavMenu ul.menu li.expanded a:hover:after {
		color: var(--light_blue);
	}
	#topNavMenu .menu .menu {
		display: none;
	}	
	#topNavMenu .menu .expanded .menu {
		position: absolute;
	}	
	#topNavMenu .menu .expanded a:hover {
		border-bottom: none;
	}	
	#topNavMenu .menu .expanded .menu li {
		display: inline-block;
	}
	#topNavMenu .menu .expanded:hover .menu, #topNavMenu .menu .expanded .menu:hover {
		display: block;
		background-color: var(--primary_contrast);
		box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),
		0 1px 10px 0 rgba(0, 0, 0, .12),
		0 2px 4px -1px rgba(0, 0, 0, .2);
	}
	#topNavMenu .menu .expanded .menu a {
		display: block;
		color: black;
		border-bottom: none;
		width: max-content;
		max-width: 300px;
	}
	#topNavMenu .menu .expanded:hover .menu li {
		display: block;
		margin: 0;
		padding: .6em 1.2em;
		font-weight: normal;
		font-size: 1rem;
	}
	#topNavMenu .menu .expanded:hover .menu li:hover {
		background-color: var(--gray_20);
	}
	#topNavMenu .menu .expanded:hover .menu a:hover {
		color: black;
	}

/* COURSE CATALOG */

	#topNavCatalog .button {
		margin-bottom: 0;
	    padding: 2px 10px;
		font-size: .9rem;
		font-weight: 500;
	}

/* ICONS */

	#topNavIcons a {
		color: var(--primary_contrast);
		font-size: 1.5rem;
	}

	#topNavIcons a:hover {
		color: var(--light_blue);
	}

	#topNavCart {
		position: relative;
	}

	.cartCount {
		background-color: #FCC015;
		position: absolute;
		top: -5px;
		right: -5px;
		width: 15px;
		height: 15px;
		border-radius: 15px;
		text-align: center;
		font-size: .8rem;
		line-height: 1rem;
		font-style: bold;
		color: var(--primary);
	}

/* CE Footer
----------------------------------------------------------------------------------------*/

	#ceFooter,
	#pageFooter {
		background-color: #f2f2f2;
		width: 100%;
	}
	#ceLogo {
		max-width: 360px;
		margin: 0 auto;
	}

/* University Footer
----------------------------------------------------------------------------------------*/

	#byuFooter {
		width: 100%;
		padding: 20px 0;
		text-align: center;
		font-size: 0.75rem;
		color: var(--primary_contrast);
		background-color: var(--primary);
	}
	#byuFooter a {
		color: var(--primary_contrast) !important;
	}
	.university-logo {
		max-width: 100%;
		width: 450px;
		height: 40px;
		margin: -10px 0;
	}
	
/* Mobile Navigation
----------------------------------------------------------------------------------------*/

#mobileSearchIcon:after {
	font-family:'FontAwesome';
	content:"\f002";
    color: var(--primary_contrast);
}

#mobileNav {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: space-evenly;
	background-color: var(--primary_contrast);
	z-index: 300;
	max-height: 10vh;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),
	0 1px 10px 0 rgba(0, 0, 0, .12),
	0 2px 4px -1px rgba(0, 0, 0, .2);
}
#mobileNav.navbar {
    --bs-navbar-padding-y: 12px;
}
#mobileNav div {
    text-align: center;
	font-size: .75rem;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
.mNav-item {
    width: 100%;
    line-height: 1.4;
}
#mobileNav .fa {
    font-size: 1.5rem;
}
#mobileNavCart {
    position: relative;
}
#offcanvasBottom {
    height: auto;
	max-height: 90vh;
	border-radius: 10px 10px 0 0;
	z-index: 200;
	padding-bottom: 10vh;
}
.offcanvas-header {
    padding-bottom: 0;
}
.offcanvas-body.small {
    padding: 0;
}
.offcanvas-backdrop {
    z-index: 180;
}
.sticky-top {
	z-index: 150;
}

/* MENU (MOBILE NAV) */
#mobileMenu .menu:first-of-type {
    padding: 0 3vw 0;
}
#mobileMenu a {
   	color: var(--primary);
}
#mobileMenu .menu li {
    list-style: none;
	margin: 0;
}
#mobileMenu .menu a:not(#mobileMenu .menu .menu a) {
	font-size: 1.375rem;
	font-weight: 500;
	display: block;
}
#mobileMenu ul.menu li.expanded a:not(#mobileMenu .menu .menu a):after {
	font-family: 'FontAwesome';
	content: "\00a0\00a0\f078";
	color: var(--primary);
	font-size: 1rem;
}
#mobileMenu .menu .menu {
	max-height: 0;
    transition: max-height 1s ease-in-out;
	overflow: hidden;
}
#mobileMenu .menu .expanded:hover .menu {
    max-height: 100vh;
    transition: max-height 1s ease-in-out;
}
#mobileMenu .menu li:not(#mobileMenu .menu .menu li):not(#mobileMenu .menu li:last-of-type) {
	border-bottom: 1px solid var(--gray_20);
}
#mobileMenu .menu li {
	padding-bottom: .25rem;
}
#mobileMenu .expanded {
    padding-top: 0.5rem;
}