/*
 * Mobile navigation (the drop-down under the menu icon, 980px wide and below).
 *
 * Why this file exists: the old Divi styles colour "current" menu links white once the header has its
 * scrolled state (#main-header.et-fixed-header li.current-menu-item > a). On the home page every
 * section link counts as current, so the drop-down showed white links on its white panel. The rules
 * below use two ids so they win over every older rule, whatever state the header is in.
 *
 * Look: Commerce Critiques design system. Navy #1a1a66 text, purple #513ceb accents, yellow #edef00
 * call to action, Poppins. Large tap targets (at least 48px tall), left-aligned list, a secondary
 * "Get In Touch" button and the yellow "Order Today" button at the bottom.
 */
@media (max-width: 980px) {
	#main-header #mobile_menu.et_mobile_menu {
		background-color: #fff !important;
		border: 0 !important;
		border-radius: 16px !important;
		padding: 8px 8px 12px !important;
		margin-top: 10px;
		text-align: left;
		box-shadow: 0 20px 44px rgba(26, 26, 102, 0.3);
		font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	}

	#main-header #mobile_menu li {
		padding: 0;
		margin: 0;
		height: auto;
		list-style: none;
	}

	/* Section links */
	#main-header #mobile_menu li a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 12px 16px !important;
		border: 0 !important;
		border-radius: 10px !important;
		background-color: transparent !important;
		color: #1a1a66 !important;
		opacity: 1 !important;
		font-size: 18px;
		font-weight: 600;
		line-height: 1.3;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	#main-header #mobile_menu li:not(.nav-button):not(.menu-item-4128) + li:not(.nav-button):not(.menu-item-4128) {
		border-top: 1px solid #ececf7;
	}

	#main-header #mobile_menu li:not(.nav-button):not(.menu-item-4128) a::after {
		content: '';
		width: 8px;
		height: 8px;
		margin-left: 12px;
		border-top: 2px solid #513ceb;
		border-right: 2px solid #513ceb;
		transform: rotate(45deg);
		flex-shrink: 0;
	}

	#main-header #mobile_menu li a:hover,
	#main-header #mobile_menu li a:focus-visible,
	#main-header #mobile_menu li a:active {
		background-color: #f0eefd !important;
		color: #513ceb !important;
		outline: none;
	}

	/* Get In Touch: secondary button */
	#main-header #mobile_menu li.menu-item-4128 {
		margin-top: 12px;
	}

	#main-header #mobile_menu li.menu-item-4128 a {
		justify-content: center;
		border: 2px solid #513ceb !important;
		color: #513ceb !important;
	}

	/* Order Today: primary yellow button */
	#main-header #mobile_menu li.nav-button {
		margin-top: 10px;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 10px;
		background-color: transparent;
	}

	#main-header #mobile_menu li.nav-button a {
		justify-content: center;
		background-color: #edef00 !important;
		border: 2px solid #edef00 !important;
		color: #513ceb !important;
		font-weight: 700;
	}

	#main-header #mobile_menu li.nav-button a:hover,
	#main-header #mobile_menu li.nav-button a:focus-visible,
	#main-header #mobile_menu li.nav-button a:active {
		background-color: #f4f54d !important;
		border-color: #f4f54d !important;
		color: #513ceb !important;
	}
}
