/* Excel Mobile Menu — structural styles shared by every instance of the
   Elementor widget. Colors, fonts, panel width and the breakpoint itself
   are written per-instance by Elementor (Style tab) or the widget's own
   inline <style> block (class-emm-elementor-widget.php::render()). */

.emm-toggle {
	display: none; /* switched to inline-flex below the widget's breakpoint */
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 6px 2px;
	background: transparent;
	border: 0;
	cursor: pointer;
	vertical-align: middle;
	-webkit-tap-highlight-color: transparent;
}

.emm-toggle:focus {
	outline: none;
}

.emm-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.emm-toggle-bar {
	display: block;
	width: 100%;
	height: 3px;
	margin: 5px 0;
	background: #1d2327;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.emm-toggle[aria-expanded="true"] .emm-toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.emm-toggle[aria-expanded="true"] .emm-toggle-bar:nth-child(2) {
	opacity: 0;
}
.emm-toggle[aria-expanded="true"] .emm-toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.emm-toggle-icon {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.emm-toggle-icon-active {
	display: none;
}

.emm-toggle[aria-expanded="true"] .emm-toggle-icon-open {
	display: none;
}

.emm-toggle[aria-expanded="true"] .emm-toggle-icon-active {
	display: block;
}

.emm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.emm-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.emm-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 999999;
	width: 320px;
	max-width: 90vw;
	overflow-y: auto;
	background: #1d2327;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.28s ease;
	padding: 56px 24px 32px;
	box-sizing: border-box;
}

.emm-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.emm-close:focus {
	outline: none;
}

.emm-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.emm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.emm-menu li {
	position: relative;
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.emm-menu a {
	display: block;
	padding: 14px 4px;
	color: #fff;
	text-decoration: none;
	transition: color 0.15s ease;
}

.emm-menu li.menu-item-has-children > a {
	padding-right: 40px;
}

/* Sub-menus start collapsed; assets/js/mobile-menu.js toggles
   `emm-submenu-open` on the parent <li> when its arrow is tapped. */
.emm-menu .sub-menu {
	display: none;
	list-style: none;
	margin: 4px 0 8px 12px;
	padding: 0;
}

.emm-menu li.emm-submenu-open > .sub-menu {
	display: block;
}

.emm-submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.emm-submenu-toggle:focus,
.emm-submenu-toggle:focus-visible {
	outline: none;
	box-shadow: none;
}

.emm-submenu-arrow {
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.emm-submenu-toggle[aria-expanded="true"] .emm-submenu-arrow {
	transform: rotate(-135deg);
}

body.emm-lock-scroll {
	overflow: hidden;
}
