/* ─── Menu As Tree — Elementor Widget ────────────────────────────────────── */

/* Default CSS custom property for indentation.
   Overridden at runtime by the Elementor "Indent" slider control. */
.mat-tree {
	--mat-indent: 24px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */

.mat-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ─── Root list ──────────────────────────────────────────────────────────── */

.mat-tree .mat-root {
	padding-left: 0;
}

/* ─── Sub-menus: indent + vertical connector line ────────────────────────── */

.mat-tree .sub-menu {
	position: relative;
	padding-left: var(--mat-indent);
}

/* Vertical line running down the left edge of the sub-menu.
   Color, width, and style are overridden by Elementor controls. */
.mat-tree .sub-menu::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	border-left: 1px solid #cccccc;
}

/* ─── Child list items: horizontal connector branch ─────────────────────── */

.mat-tree .sub-menu > li {
	position: relative;
}

/* Horizontal line connecting each child item to the vertical line. */
.mat-tree .sub-menu > li::before {
	content: '';
	position: absolute;
	top: 0.75em;
	left: calc(-1 * var(--mat-indent));
	width: var(--mat-indent);
	border-top: 1px solid #cccccc;
}

/* ─── Links ──────────────────────────────────────────────────────────────── */

.mat-tree a {
	display: inline-block;
	text-decoration: none;
	color: inherit;
}

/* ─── Editor placeholder ─────────────────────────────────────────────────── */

.mat-placeholder {
	background: #f0f0f0;
	border: 1px dashed #aaaaaa;
	padding: 12px 16px;
	color: #555555;
	font-style: italic;
}
