/* Mega Menu Plus — shared styles (icons, badges, toggle). */

.mmp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
	box-sizing: border-box;
}

/* Small inline icon (menu bar and regular dropdowns). */
.mmp-icon--inline {
	margin-inline-end: .5em;
	font-size: 1.15em;
	vertical-align: -.18em;
}
.mmp-icon--inline .dashicons {
	width: 1em;
	height: 1em;
	font-size: 1em;
}
.mmp-icon--inline .mmp-icon__img {
	width: 1.3em;
	height: 1.3em;
	object-fit: contain;
}

/* Large icon inside a mega panel. */
.mmp-icon--panel {
	width: var(--mmp-icon-size, 40px);
	height: var(--mmp-icon-size, 40px);
	border-radius: var(--mmp-icon-radius, 50%);
	background: var(--mmp-icon-bg, #eef2ff);
	color: var(--mmp-icon-color, #4338ca);
	overflow: hidden;
	font-size: calc(var(--mmp-icon-size, 40px) * .5);
	transition: transform .2s ease;
}
.mmp-icon--panel .dashicons {
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
}
.mmp-icon--panel i {
	font-size: 1em;
	line-height: 1;
}
.mmp-icon--panel .mmp-icon__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
}

.mmp-label {
	min-width: 0;
}

.mmp-badge {
	display: inline-block;
	margin-inline-start: .55em;
	padding: 3px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	vertical-align: middle;
	background: var(--mmp-badge-bg, #f59e0b);
	color: var(--mmp-badge-text, #fff);
	white-space: nowrap;
}

/* Toggle button injected by JS. Hidden unless a layout turns it on. */
.mmp-toggle {
	display: none;
	position: absolute;
	top: 50%;
	inset-inline-end: 4px;
	width: 24px;
	height: 24px;
	margin: -12px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	opacity: .75;
}
.mmp-toggle::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
li.mmp-open > .mmp-toggle::before {
	transform: rotate(-135deg);
	margin-top: 3px;
}
.mmp-toggle:hover,
.mmp-toggle:focus {
	opacity: 1;
	background: transparent;
	color: inherit;
}
.mmp-toggle:focus-visible {
	outline: 2px solid var(--mmp-accent, #4338ca);
	outline-offset: 1px;
}
