/* Side menu — third drill-down level (assets/js/side-menu-drill.js). */

/* Depth-2 items stay hidden in the panel; they open in their own layer. */
.side-menu-widgets .sub-menu .sub-menu {
	display: none;
}

/* The layer is built from the panel's own classes; only its top-level list
   needs the panel's widget-menu spacing on the white card. */
.side-menu-widgets.zd-drill-layer .submenu-widget {
	background: var(--wp--preset--color--white);
}

.side-menu-widgets .zd-has-drill > a .zd-drill-chevron {
	margin-left: auto;
	color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
}

/* Anchors the drill-down links jump to on service / department pages. */
.zd-anchor,
.service-group-doctors[id],
#prices {
	scroll-margin-top: 120px;
}

/* Top items that open a panel are buttons (inc/side-menu-walker.php): same look
   as the links — only the browser's button defaults are cleared. */
button.side-menu-link {
	width: 100%;
	border: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

/* The menu's own rules target `li a` (_side-menu.scss: padding 12px 24px, size m on
   every width, light background on hover) — give the button the same. */
#side-menu button.side-menu-link {
	padding: 0.75rem 1.5rem;
	font-size: 1.125rem; /* $font-size-m, as the links get it */
}
#side-menu button.side-menu-link:hover,
#side-menu button.side-menu-link:focus-visible {
	background: var(--wp--preset--color--bg-color-light);
}

/* The panel title links to the item's page (it used to be on the top item). */
.side-menu-title-link {
	color: inherit;
	text-decoration: none;
}
.side-menu-title-link:hover,
.side-menu-title-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
