/* Logged-out BuddyBoss mobile panel only. */
@media (max-width: 992px) {
	body:not(.logged-in) .bb-mobile-panel-wrapper {
		--ee-mm-ink: var(--ee-ink, #122B46);
		--ee-mm-red: var(--ee-red, #E30A02);
		--ee-mm-soft: var(--ee-soft, #F4F7FB);
		--ee-mm-line: var(--ee-line, #E2E8F0);
		width: min(88vw, 380px) !important;
		max-width: 100%;
		background: #fff !important;
		color: var(--ee-mm-ink);
		overflow-x: hidden;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-inner {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
		min-height: 100dvh;
		background: #fff !important;
		overflow: hidden;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-header {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: space-between;
		min-height: 76px;
		padding: 16px;
		border-bottom: 1px solid var(--ee-mm-line);
		background: #fff !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-header .logo-wrap,
	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-header .logo-wrap > a {
		display: flex;
		align-items: center;
		min-width: 0;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-header img.bb-mobile-logo {
		display: block;
		max-width: min(190px, calc(100vw - 132px));
		max-height: 44px;
		object-fit: contain;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"] {
		display: inline-flex !important;
		flex: 0 0 44px;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px;
		min-height: 44px;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 12px !important;
		background: var(--ee-mm-soft) !important;
		box-shadow: none !important;
		color: var(--ee-mm-ink) !important;
		transition: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"] i,
	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"] i::before {
		color: inherit !important;
		font-size: 22px !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"]:hover,
	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"]:focus-visible {
		background: rgba(227, 10, 2, .08) !important;
		color: var(--ee-mm-red) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-close-panel[aria-label="Close Menu"]:focus-visible,
	body:not(.logged-in) .bb-mobile-panel-wrapper nav.main-navigation a:focus-visible {
		outline: 3px solid rgba(227, 10, 2, .28) !important;
		outline-offset: 2px;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper nav.main-navigation {
		display: flex;
		flex: 1 1 auto;
		min-height: 0;
		overflow: hidden;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out {
		display: flex !important;
		flex: 1 1 auto;
		flex-direction: column;
		width: 100%;
		min-height: 100%;
		margin: 0 !important;
		padding: 8px 16px calc(14px + env(safe-area-inset-bottom)) !important;
		list-style: none;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item {
		flex: 0 0 auto;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		border-bottom: 1px solid var(--ee-mm-line);
		background: transparent !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a {
		position: relative;
		display: flex !important;
		align-items: center;
		width: 100%;
		height: 52px;
		min-height: 52px;
		padding: 0 12px 0 64px !important;
		border: 0 !important;
		border-radius: 12px;
		background: transparent !important;
		box-shadow: none !important;
		color: var(--ee-mm-ink) !important;
		font: 600 17px/1.25 var(--ee-font, "Sora", system-ui, sans-serif) !important;
		text-decoration: none !important;
		transition: none !important;
	}

	/* Replace every theme glyph with one consistent masked icon system. */
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a > i {
		display: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a::after {
		content: "" !important;
		position: absolute;
		z-index: 0;
		left: 8px;
		top: 6px;
		display: block !important;
		width: 40px;
		height: 40px;
		border: 0 !important;
		border-radius: 12px;
		background: var(--ee-mm-soft) !important;
		transform: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a::before {
		content: "" !important;
		position: absolute;
		z-index: 1;
		left: 18px;
		top: 16px;
		display: block !important;
		width: 20px;
		height: 20px;
		border: 0 !important;
		background-color: var(--ee-mm-red) !important;
		-webkit-mask-image: var(--ee-mm-icon);
		mask-image: var(--ee-mm-icon);
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: contain;
		mask-size: contain;
		transform: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(1) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href$="/"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(2) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href$="/tuition/"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 10 10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3Cpath d='M22 10v6'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(3) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href$="/school/"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M6 21V7l6-4 6 4v14'/%3E%3Cpath d='M9 9h1M14 9h1M9 13h1M14 13h1'/%3E%3Cpath d='M10 21v-4h4v4'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(4) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href$="/shop/"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 13H5z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(5) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="past-paper"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l4 4v16H6z'/%3E%3Cpath d='M14 2v5h5'/%3E%3Cpath d='M9 13h6M9 17h6'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(6) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="early-adopters"],
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="our-app"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(7) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="contact"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:nth-child(8) > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="areas-we-cover"],
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="areas"] {
		--ee-mm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.current-menu-item > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.current_page_item > a {
		background: rgba(227, 10, 2, .08) !important;
		color: var(--ee-mm-red) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a:hover {
		background: var(--ee-mm-soft) !important;
		color: var(--ee-mm-red) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.current-menu-item > a:hover,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.current_page_item > a:hover {
		background: rgba(227, 10, 2, .08) !important;
	}

	/* Account actions occupy the bottom of the available panel height. */
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="login"]) {
		margin-top: auto !important;
		padding-top: 16px !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="login"]),
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="membership"]),
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="register"]) {
		border-bottom: 0;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a[href*="login"],
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a[href*="membership"],
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.menu-item > a[href*="register"] {
		justify-content: center;
		height: 52px;
		min-height: 52px;
		padding: 0 18px !important;
		border-radius: 999px !important;
		font-size: 16px !important;
		text-align: center;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="login"] {
		border: 1.5px solid var(--ee-mm-ink) !important;
		background: #fff !important;
		color: var(--ee-mm-ink) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="membership"]),
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li:has(> a[href*="register"]) {
		padding-top: 8px !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="membership"],
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="register"] {
		border: 1.5px solid var(--ee-mm-red) !important;
		background: var(--ee-mm-red) !important;
		color: #fff !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="login"]::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="login"]::after,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="membership"]::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="membership"]::after,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="register"]::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="register"]::after {
		display: none !important;
		content: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="login"]:hover,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="login"]:focus-visible {
		background: var(--ee-mm-soft) !important;
		color: var(--ee-mm-ink) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="membership"]:hover,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="membership"]:focus-visible,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="register"]:hover,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out a[href*="register"]:focus-visible {
		background: #bd0903 !important;
		border-color: #bd0903 !important;
		color: #fff !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help {
		padding: 12px 4px 0 !important;
		border: 0;
		color: var(--ee-muted, #4E6077);
		font: 500 12px/1.55 var(--ee-font, "Sora", system-ui, sans-serif);
		text-align: center;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help > span {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help a {
		display: inline-flex !important;
		align-items: center;
		width: auto;
		height: auto;
		min-height: 44px;
		padding: 0 3px !important;
		border: 0 !important;
		border-radius: 2px;
		background: transparent !important;
		box-shadow: none !important;
		color: var(--ee-mm-red) !important;
		font: inherit !important;
		font-weight: 700 !important;
		text-decoration: underline !important;
		text-decoration-thickness: 1px !important;
		text-underline-offset: 2px;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help a::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help a::after {
		display: none !important;
		content: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help a:focus-visible {
		outline-offset: 3px;
	}

	body:not(.logged-in) .bb-mobile-panel-overlay,
	body:not(.logged-in) .bb-mobile-panel-wrapper + .bb-mobile-panel-overlay,
	body:not(.logged-in) .bb-mobile-panel-wrapper .bb-mobile-panel-overlay {
		background-color: rgba(18, 43, 70, .55) !important;
	}
}

/* Log In / Register pill buttons, keyed on the live menu item ids so they out-rank the generic row rules. */
@media (max-width: 992px) {
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a {
		justify-content: center !important;
		height: 52px !important;
		min-height: 52px !important;
		padding: 0 18px !important;
		border-radius: 999px !important;
		font-size: 16px !important;
		text-align: center !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a::after,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a::before,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a::after {
		display: none !important;
		content: none !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a {
		border: 1.5px solid var(--ee-mm-ink) !important;
		background: #fff !important;
		color: var(--ee-mm-ink) !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a {
		border: 1.5px solid var(--ee-mm-red) !important;
		background: var(--ee-mm-red) !important;
		color: #fff !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 {
		margin-top: auto !important;
		padding: 16px 0 0 !important;
		border-bottom: 0 !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 {
		padding: 8px 0 0 !important;
		border-bottom: 0 !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help {
		margin: 0 !important;
		padding: 14px 4px calc(14px + env(safe-area-inset-bottom)) !important;
		list-style: none;
	}
}

@media (max-width: 992px) {
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-7729 > a > *,
	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li#menu-item-24912 > a > * {
		flex: 0 0 auto !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: center !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help > span {
		display: block !important;
		position: static !important;
		text-align: center !important;
		line-height: 1.7 !important;
	}

	body:not(.logged-in) .bb-mobile-panel-wrapper ul#menu-mobile-logged-out > li.ee-mm-help a {
		position: static !important;
		display: inline !important;
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 2px !important;
		float: none !important;
		transform: none !important;
		white-space: nowrap;
	}
}
