/*
 * Vertical Menu for Elementor
 *
 * Selectors use at least two plugin classes: Elementor kits and themes style
 * plain `button`, `a`, `ul`, `li` (e.g. `.elementor-kit-5 button`, 0,1,1, and
 * its :hover at 0,2,1), and a one-class rule would lose against them.
 * Values set in the widget panel arrive as custom properties or as
 * {{WRAPPER}} rules one class stronger than these defaults.
 */

.vmfe {
	--vmfe-pt: .55em;
	--vmfe-pr: .5em;
	--vmfe-pb: .55em;
	--vmfe-pl: .75em;
	--vmfe-indent: 1.25em;
	--vmfe-sep-w: 0px;
	--vmfe-sep-c: transparent;
	--vmfe-icon: .8em;
	--vmfe-btn: 2em;
	--vmfe-line: 2px;
	--vmfe-depth: 0;
	display: block;
}

.vmfe .vmfe-l {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vmfe .vmfe-l2 { --vmfe-depth: 1; }
.vmfe .vmfe-l3 { --vmfe-depth: 2; }
.vmfe .vmfe-l4 { --vmfe-depth: 3; }
.vmfe .vmfe-l5 { --vmfe-depth: 4; }
.vmfe .vmfe-l6 { --vmfe-depth: 5; }

.vmfe .vmfe-l[hidden] {
	display: none;
}

.vmfe .vmfe-i {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vmfe .vmfe-i::before,
.vmfe .vmfe-i::marker {
	content: none;
}

.vmfe .vmfe-r {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: var(--vmfe-pt) var(--vmfe-pr) var(--vmfe-pb) calc(var(--vmfe-pl) + var(--vmfe-depth) * var(--vmfe-indent));
	border-bottom: var(--vmfe-sep-w) solid var(--vmfe-sep-c);
	transition: background-color .15s ease, color .15s ease;
}

.vmfe .vmfe-r::before {
	flex: none;
	display: inline-block;
	line-height: 1;
}

.vmfe .vmfe-a {
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	/* Whole words per line. Set explicitly because themes and kits often
	   enable hyphenation on body; "Hyphenate long words" in the widget turns
	   it back on. break-word only splits a single word that is wider than
	   the whole line, so nothing can overflow. */
	-webkit-hyphens: manual;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: break-word;
}

.vmfe .vmfe-r .vmfe-a:hover,
.vmfe .vmfe-r .vmfe-a:focus {
	color: inherit;
	text-decoration: none;
}

.vmfe .vmfe-r .vmfe-a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vmfe .vmfe-c {
	flex: none;
	font-size: .8em;
	font-variant-numeric: tabular-nums;
}

/* Toggle button: fully reset against kit and theme button styles. */
.vmfe .vmfe-r .vmfe-t,
.vmfe .vmfe-r .vmfe-t:hover,
.vmfe .vmfe-r .vmfe-t:focus,
.vmfe .vmfe-r .vmfe-t:active {
	position: relative;
	flex: none;
	display: inline-block;
	width: var(--vmfe-btn);
	height: var(--vmfe-btn);
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.vmfe .vmfe-r .vmfe-t {
	color: inherit;
}

.vmfe .vmfe-r .vmfe-t:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Plus (both styles): two lines through the centre. */
.vmfe .vmfe-r .vmfe-t::before,
.vmfe .vmfe-r .vmfe-t::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--vmfe-icon);
	height: var(--vmfe-line);
	background: currentColor;
	border-radius: var(--vmfe-line);
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}

.vmfe .vmfe-r .vmfe-t::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* Plus / Minus: the vertical line folds onto the horizontal one. */
.vmfe.vmfe-icon-plus .vmfe-r .vmfe-t[aria-expanded="true"]::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

/* Plus / Cross: the whole plus turns by 45 degrees. */
.vmfe.vmfe-icon-cross .vmfe-r .vmfe-t[aria-expanded="true"]::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.vmfe.vmfe-icon-cross .vmfe-r .vmfe-t[aria-expanded="true"]::after {
	transform: translate(-50%, -50%) rotate(135deg);
}

/* Arrow: one bordered square, pointing down, up when open. */
.vmfe.vmfe-icon-chevron .vmfe-r .vmfe-t::after {
	content: none;
}

.vmfe.vmfe-icon-chevron .vmfe-r .vmfe-t::before {
	width: calc(var(--vmfe-icon) * .6);
	height: calc(var(--vmfe-icon) * .6);
	background: none;
	border-radius: 0;
	border-right: var(--vmfe-line) solid currentColor;
	border-bottom: var(--vmfe-line) solid currentColor;
	transform: translate(-50%, -70%) rotate(45deg);
}

.vmfe.vmfe-icon-chevron .vmfe-r .vmfe-t[aria-expanded="true"]::before {
	transform: translate(-50%, -30%) rotate(-135deg);
}

.vmfe .vmfe-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vmfe-empty {
	padding: 1em;
	border: 1px dashed currentColor;
	font-size: .875em;
}

@media (prefers-reduced-motion: reduce) {
	.vmfe .vmfe-r,
	.vmfe .vmfe-r .vmfe-t::before,
	.vmfe .vmfe-r .vmfe-t::after {
		transition: none;
	}
}
