/* =============================================================
   GPL UI 2.35.0 – Phone menu in one panel (bug H1); 2.41.0 Translate row (A2)
   Markup: inc/gpl-ui/mobile-menu.php, inside Memberlite's pink
   #mobile-navigation panel (child components/header/mobile-menu.php).
   Loaded with media "screen and (max-width: 767px)" only.
   Selectors start with #mobile-navigation .gpl-mnav so they win over
   the theme / Customizer menu rules without !important.
   ============================================================= */

#mobile-navigation .gpl-mnav {
	margin: 12px 0 96px; /* bottom room: the fixed Translate button */
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	font-family: Arial, Helvetica, sans-serif;
}
#mobile-navigation .gpl-mnav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#mobile-navigation .gpl-mnav li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
#mobile-navigation .gpl-mnav li::before {
	content: none;
}

/* One row = the item + (when it has a sub-menu) its arrow button. */
#mobile-navigation .gpl-mnav .gpl-mnav__row {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
#mobile-navigation .gpl-mnav a.gpl-mnav__link,
#mobile-navigation .gpl-mnav .gpl-mnav__label,
#mobile-navigation .gpl-mnav button.gpl-mnav__toggle--row,
#mobile-navigation .gpl-mnav button.gpl-mnav__lang {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	background: none;
	color: #ffffff;
	font: 700 16px/1.3 Arial, Helvetica, sans-serif;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
#mobile-navigation .gpl-mnav button.gpl-mnav__toggle {
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0;
	background: none;
	color: #ffffff;
	cursor: pointer;
}
#mobile-navigation .gpl-mnav button.gpl-mnav__toggle--row {
	flex: 1 1 auto;
	justify-content: space-between;
	padding: 10px 16px;
	border-left: 0;
}
#mobile-navigation .gpl-mnav .gpl-mnav__text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}
#mobile-navigation .gpl-mnav .gpl-mnav__chev {
	flex: none;
	transition: transform 0.2s ease;
}
#mobile-navigation .gpl-mnav [aria-expanded="true"] .gpl-mnav__chev {
	transform: rotate(180deg);
}

/* Press / focus feedback. */
#mobile-navigation .gpl-mnav a.gpl-mnav__link:active,
#mobile-navigation .gpl-mnav button.gpl-mnav__toggle:active,
#mobile-navigation .gpl-mnav button.gpl-mnav__lang:active {
	background: rgba(255, 255, 255, 0.12);
}
#mobile-navigation .gpl-mnav a.gpl-mnav__link:focus-visible,
#mobile-navigation .gpl-mnav button.gpl-mnav__toggle:focus-visible,
#mobile-navigation .gpl-mnav button.gpl-mnav__lang:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -3px;
}

/* Sub-menus: a darker band, deeper levels indented. */
#mobile-navigation .gpl-mnav .gpl-mnav__sub {
	background: rgba(0, 0, 0, 0.14);
}
#mobile-navigation .gpl-mnav .gpl-mnav__sub[hidden] {
	display: none;
}
#mobile-navigation .gpl-mnav .gpl-mnav__item--2 > .gpl-mnav__row > a.gpl-mnav__link,
#mobile-navigation .gpl-mnav .gpl-mnav__item--2 > .gpl-mnav__row > .gpl-mnav__label,
#mobile-navigation .gpl-mnav .gpl-mnav__item--2 > .gpl-mnav__row > button.gpl-mnav__toggle--row,
#mobile-navigation .gpl-mnav .gpl-mnav__item--2 > .gpl-mnav__row > button.gpl-mnav__lang {
	padding-left: 28px;
	font-size: 15px;
}
#mobile-navigation .gpl-mnav .gpl-mnav__item--3 > .gpl-mnav__row > a.gpl-mnav__link,
#mobile-navigation .gpl-mnav .gpl-mnav__item--3 > .gpl-mnav__row > .gpl-mnav__label,
#mobile-navigation .gpl-mnav .gpl-mnav__item--3 > .gpl-mnav__row > button.gpl-mnav__toggle--row {
	padding-left: 40px;
	font-size: 15px;
	font-weight: 400;
}

/* Current page, and items that are disabled on desktop too. */
#mobile-navigation .gpl-mnav .is-current > .gpl-mnav__row {
	background: rgba(255, 255, 255, 0.16);
}
#mobile-navigation .gpl-mnav .is-disabled > .gpl-mnav__row > .gpl-mnav__label {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 400;
	cursor: default;
}

/* 2.41.0 (bug A2): the plugin's floating "Translate" button covered the
   bottom-left of the page on phones. When the menu has its own Translate row
   (gpl-mobile-menu.js adds .gpl-mnav-has-translate to <html>), the floating
   button and its flag pop-up are hidden on phones (this file is phones only)
   and the menu no longer keeps room for it. The plugin is not changed. */
html.gpl-mnav-has-translate #glt-translate-trigger,
html.gpl-mnav-has-translate .tool-container {
	display: none !important;
}
html.gpl-mnav-has-translate #mobile-navigation .gpl-mnav {
	margin-bottom: 24px;
}
#mobile-navigation .gpl-mnav .gpl-mnav__lang[aria-current="true"]::after {
	content: "\2713"; /* check mark */
	flex: none;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	#mobile-navigation .gpl-mnav .gpl-mnav__chev {
		transition: none;
	}
}
