menupopup {
	menu, menuitem {
		border-radius: 4px;
		fill: currentColor;
		-moz-context-properties: fill,fill-opacity;
	}
	menu {
		menupopup {
			margin-top: -4px;
		}
	}
	menuseparator {
		--panel-separator-color: var(--color-border50);
	}
}

.menu-accel {
	color: var(--fill-secondary);
	font-size: 11px;
}

.menu-icon[disabled="true"] {
	opacity: 50%;
}

menuitem:is([checked="true"]):is([type="radio"]) > .menu-icon {
	list-style-image: url("chrome://zotero/skin/win/menu-radio.svg");
}

menulist {
	menupopup {
		menu:not([icon], .menu-iconic),
		menuitem:not([checked="true"], [icon], .menuitem-iconic) {
			padding-inline-start: 36px;

			.menu-icon {
				display: none;
			}
		}

		menuitem[selected="true"] {
			padding-inline-start: 12px !important;
	
			& > .menu-icon {
				display: revert;
				-moz-context-properties: fill, fill-opacity;
				fill: currentColor;
				fill-opacity: var(--menu-icon-opacity);
				list-style-image: url("chrome://zotero/skin/win/menu-radio.svg");
				width: 16px;
				margin-inline-end: 8px;
			}
		}
	}
}
