:root {
    --button-primary-bgcolor:#0055D7!important;
    --button-primary-hover-bgcolor:#0960e4 !important;
    --button-primary-active-bgcolor:#0751be !important;
    --in-content-primary-button-text-color: rgb(255, 255, 255) !important;
    --in-content-primary-button-background: #0055D7 !important;
    --in-content-primary-button-background-hover: #0960e4 !important;
    --in-content-primary-button-background-active: #0751be !important;
}
/* Change Colour of page when loading */
:root:not(:-moz-lwtheme) #tabbrowser-tabpanels {
	background-color: light-dark(#f7f7f7, #252525) !important;
}

/* dark mode enabled in private browsing. */
@media (-moz-bool-pref: "browser.theme.dark-private-windows") {
	:root[privatebrowsingmode="temporary"],
	:root[privatebrowsingmode="temporary"] #nav-bar,
	:root[privatebrowsingmode="temporary"] #PersonalToolbar {
		color-scheme: dark !important;
	}
}

#urlbar {
	--urlbar-box-bgcolor: inherit !important;
	--urlbar-box-hover-bgcolor: inherit !important;
	--urlbar-box-focus-bgcolor: inherit !important;
}

:root:not(:-moz-lwtheme)[tabsintitlebar] .titlebar-buttonbox {
	color: light-dark(#000, #fff) !important;
}

#statuspanel-label {
	background-color: var(--toolbar-field-focus-background-color) !important;
	color: var(--toolbar-field-focus-color) !important;
	border-color: transparent !important;
	box-shadow: 0 2px 5px #0004, 0 0 0 1px light-dark(#0002, #0004) !important;
}

tooltip {
	background-color: var(--arrowpanel-background) !important;
	color: var(--arrowpanel-color) !important;
	border-color: var(--arrowpanel-border-color) !important;
}

.titlebar-button:not(.titlebar-close):hover {
	background-color: color-mix(
		in srgb,
		currentColor 11%,
		transparent
	) !important;
}

.titlebar-button:hover:active {
	background-color: color-mix(
		in srgb,
		currentColor 20%,
		transparent
	) !important;
}

.titlebar-close:hover {
	stroke: white !important;
	background-color: #e81123 !important;
}

.titlebar-close:hover:active {
	background-color: #ef6b76 !important;
}

toolbar[brighttext] .titlebar-close:hover:active {
	background-color: #9c1420 !important;
}

window#places {
	--organizer-color: #000 !important;
	--organizer-deemphasized-color: #666 !important;
	--organizer-toolbar-background: #f7f7f7 !important;
	--organizer-pane-background: #f7f7f7 !important;
	--organizer-content-background: #f7f7f7 !important;
	--organizer-hover-background: #00000025 !important;
	--organizer-selected-background: #006cbe80 !important;
	--organizer-outline-color: #0055d7a0 !important;
	--organizer-toolbar-field-background: #fff !important;
	--organizer-toolbar-field-background-focused: #fff !important;
	--organizer-border-color: #bfbfbf !important;
	scrollbar-color: #0006 #f7f7f740 !important;
}

#placesViewsBox #downloadsListBox richlistitem[selected="true"] {
	background-color: #006cbe !important;
	color: #fff !important;
}

#placeContentColumns :is(treecol, treecolpicker) {
	background-color: #f7f7f7 !important;
	color: #000 !important;
	border-inline-start: 1px solid #bfbfbf !important;
	box-shadow: inset 0 -1px #bfbfbf !important;
	appearance: none !important;
}

#placeContentColumns :is(treecol, treecolpicker):where(:hover) {
	background-color: #cecece !important;
	color: #000 !important;
}

@media (prefers-color-scheme: dark) {
	window#places {
		--organizer-color: #fff !important;
		--organizer-deemphasized-color: #bbb !important;
		--organizer-toolbar-background: #3b3b3b !important;
		--organizer-pane-background: #2b2b2b !important;
		--organizer-content-background: #1c1c1c !important;
		--organizer-hover-background: #ffffff25 !important;
		--organizer-selected-background: #006cbe80 !important;
		--organizer-outline-color: #63ade5 !important;
		--organizer-toolbar-field-background: #2b2b2b !important;
		--organizer-toolbar-field-background-focused: #2b2b2b !important;
		--organizer-border-color: #686868 !important;
		scrollbar-color: #fff6 #2b2b2b40 !important;
	}

	#placesViewsBox #downloadsListBox richlistitem[selected="true"] {
		background-color: #006cbe !important;
		color: #fff !important;
	}

	#placeContentColumns :is(treecol, treecolpicker) {
		background-color: #3b3b3b !important;
		color: #fff !important;
		border-inline-start: 1px solid #686868 !important;
		box-shadow: inset 0 -1px #686868 !important;
	}

	#placeContentColumns :is(treecol, treecolpicker):where(:hover) {
		background-color: #4a4a4a !important;
		color: #fff !important;
	}
}

/* side bar theme */
#sidebar-box:not([lwt-sidebar]) {
	--sidebar-background-color: light-dark(#f7f7f7, #3b3b3b) !important;
	--sidebar-text-color: light-dark(#000, #fff) !important;
	appearance: none !important;
}

#browser:not([style*="--sidebar-border-color"]) {
	--sidebar-border-color: light-dark(#bfbfbf, #686868) !important;
}

.sidebar-panel:not([lwt-sidebar]) {
	color: light-dark(#000, #fff) !important;
	scrollbar-color: light-dark(#0006, #fff6) light-dark(#f7f7f740, #3b3b3b40) !important;
}

@-moz-document url(chrome://browser/content/syncedtabs/sidebar.xhtml)
{
	body {
		background: transparent !important;
	}
}

.sidebar-panel:not([lwt-sidebar]) #sidebar-search-container > #search-box,
.sidebar-panel:not([lwt-sidebar]) #viewButton {
	appearance: none !important;
	background-color: light-dark(#fff, #2b2b2b) !important;
	color: inherit !important;
	border: 1px solid light-dark(#bfbfbf, #686868) !important;
	border-radius: 2px !important;
}

:root {
  --panel-subview-body-padding: 2px 0 !important;
  --arrowpanel-border-radius: 8px !important;
  --arrowpanel-menuitem-border-radius: 4px !important;
  --arrowpanel-menuitem-margin: var(--fp-arrowpanel-menuitem-margin-block) var(--fp-arrowpanel-menuitem-margin-inline) !important;
  --arrowpanel-menuitem-padding-block: 6px !important;
  --arrowpanel-menuitem-padding-inline: 10px !important;
  --fp-arrowpanel-menuicon-margin-inline: 14px;
  --fp-arrowpanel-menuitem-margin-inline: 4px;
  --fp-arrowpanel-menuitem-margin-block: 2px;
  --panel-separator-margin-vertical: 2px !important;
  --panel-separator-margin-horizontal: 0 !important;

  --fp-panel-zoom-button-padding: 8px;
  --fp-panel-zoom-button-inline-padding: 9px;
  --fp-panel-zoom-padding-block: calc(var(--panel-separator-margin-vertical) + var(--fp-arrowpanel-menuitem-margin-block));

  --fp-autocomplete-panel-menuitem-margin: 4px;
  --fp-autocomplete-panel-menuicon-padding-inline: 14px;
  --fp-autocomplete-panel-separator-margin-vertical: 4px;

  --fp-permission-itemcontainer-padding-block: 8px;
  --fp-permission-item-margin-block: 4px;
  --fp-permission-item-padding-inline: 16px;

  --fp-contextmenu-border-radius: 8px;
  --fp-contextmenu-padding: calc(4px - var(--fp-contextmenu-menuitem-border-width)) 0;
  --fp-contextmenu-menuitem-border-radius: calc(4px + var(--fp-contextmenu-menuitem-border-width));
  --fp-contextmenu-menuitem-padding-block: 6px;
  --fp-contextmenu-menuitem-padding-inline: 10px;
  --fp-contextmenu-menuitem-border-width: 2px;
  --fp-contextmenu-menuicon-margin-inline: 12px;
  --fp-contextmenu-menuitem-margin-inline: calc(4px - var(--fp-contextmenu-menuitem-border-width));
  --fp-contextmenu-menuitem-margin-block: 0px;
  --fp-contextmenu-menuitem-margin: var(--fp-contextmenu-menuitem-margin-block) var(--fp-contextmenu-menuitem-margin-inline);
  --fp-contextmenu-separator-vertical: calc(4px - var(--fp-contextmenu-menuitem-border-width));
  --fp-contextmenu-separator-horizontal: 0;
  --fp-contextmenu-bgcolor: light-dark(Menu, rgb(43 42 51 / 0.95));

  --arrowpanel-border-color: var(--fp-contextmenu-bgcolor) !important;
  --panel-separator-color: rgba(255, 255, 255, 0.1) !important;
  --in-content-page-background: var(--fp-contextmenu-bgcolor) !important;
}

/* App Menu */
.addon-banner-item,
.panel-banner-item {
  margin: 2px 4px 2px !important;
  padding-inline: 4px 12px !important;
  padding-block: var(--arrowpanel-menuitem-padding-block) !important;
  border-radius: var(--arrowpanel-menuitem-border-radius) !important;
}

#appMenu-fxa-label2 label,
#PanelUI-fxa-menu-syncnow-button label {
  margin-block: 0 !important;
}

.widget-overflow-list .toolbarbutton-1:not(.toolbarbutton-combined)>.toolbarbutton-text,
.subviewbutton:not(#appMenu-zoom-controls > .subviewbutton)>.toolbarbutton-icon+.toolbarbutton-text,
#appMenu-fxa-label2>vbox {
  padding-inline-start: var(--fp-arrowpanel-menuicon-margin-inline) !important;
}

/* special case menuitems with no icons */
#appMenu-zoom-controls>.toolbarbutton-text,
#fxa-manage-account-button>vbox,
#PanelUI-fxa-menu-syncnow-button>hbox {
  padding-inline-start: calc(16px + var(--fp-arrowpanel-menuicon-margin-inline)) !important;
}

.subviewbutton>.toolbarbutton-icon {
  width: 16px !important;
}

/* firefox profile avatar in appmenu */
#appMenu-fxa-label2::before {
  content: "";
  display: flex;
  height: 16px;
  width: 16px;
  background: var(--avatar-image-url) 0/16px;
  scale: 1.1;
  border-radius: 99px;
}

/* disable proton account separator */
#appMenu-fxa-separator {
  border-image: none !important;
}

#appMenu-fxa-status2:not([fxastatus]) {
  padding-block: 0 !important;
}

#appMenu-fxa-status2:not([fxastatus])>#appMenu-fxa-label2 {
  margin-inline-end: calc(var(--arrowpanel-menuitem-padding-inline) * -1) !important;
}

/* zoom controls */
#appMenu-zoom-controls {
  border-top: 1px solid var(--panel-separator-color) !important;
  padding-inline: calc(var(--arrowpanel-menuitem-padding-inline) + var(--fp-arrowpanel-menuitem-margin-inline)) var(--fp-arrowpanel-menuitem-margin-inline) !important;
  padding-block: var(--fp-panel-zoom-padding-block) !important;
  margin: var(--panel-separator-margin-vertical) 0 calc(var(--panel-separator-margin-vertical) * -1) !important;
}

#appMenu-zoom-controls>.subviewbutton {
  padding: var(--fp-panel-zoom-button-padding) var(--fp-panel-zoom-button-inline-padding) !important;
  margin: 0 !important;
}

#appMenu-zoom-controls>#appMenu-zoomReset-button2 {
  padding: var(--fp-panel-zoom-button-padding) calc(var(--fp-panel-zoom-button-padding) / 2) !important;
}

#appMenu-zoom-controls>#appMenu-fullscreen-button2 {
  margin-left: calc((var(--panel-separator-margin-vertical) + var(--fp-arrowpanel-menuitem-margin-block)) * 2 + 1px) !important;
}

#appMenu-zoom-controls>#appMenu-fullscreen-button2::before {
  content: "";
  border-inline-start: 1px solid var(--panel-separator-color);
  display: block;
  position: relative;
  height: 32px;
  margin-block: calc(var(--fp-panel-zoom-button-padding) * -1);
  transform: translateX(calc(var(--fp-panel-zoom-button-inline-padding) * -1 - (var(--panel-separator-margin-vertical) + var(--fp-arrowpanel-menuitem-margin-block)) - 1px));
}

#appMenu-zoomReset-button2 {
  height: calc(16px + var(--fp-panel-zoom-button-padding) * 2) !important;
  min-height: calc(16px + var(--fp-panel-zoom-button-padding) * 2) !important;
}

#appMenu-zoomReduce-button2:not([disabled], [open], :active):is(:hover),
#appMenu-zoomEnlarge-button2:not([disabled], [open], :active):is(:hover),
#appMenu-fullscreen-button2:not([disabled], [open], :active):is(:hover),
#appMenu-zoomReset-button2:not([disabled], [open], :active):is(:hover) {
  background-color: var(--panel-item-hover-bgcolor) !important;
}

#appMenu-zoomReduce-button2:not([disabled]):is([open], :hover:active),
#appMenu-zoomEnlarge-button2:not([disabled]):is([open], :hover:active),
#appMenu-fullscreen-button2:not([disabled]):is([open], :hover:active),
#appMenu-zoomReset-button2:not([disabled]):is([open], :hover:active) {
  background-color: var(--panel-item-active-bgcolor) !important;
}

#appMenu-zoomReduce-button2>.toolbarbutton-icon,
#appMenu-zoomEnlarge-button2>.toolbarbutton-icon {
  fill: currentColor !important;
  stroke: none !important;
}

#appMenu-zoomReset-button2>.toolbarbutton-text,
#appMenu-fullscreen-button2>.toolbarbutton-icon {
  background-color: transparent !important;
  padding: 0 !important;
}

.subviewbutton[shortcut]::after {
  opacity: 0.7 !important;
}

#widget-overflow-mainView .panel-subview-body {
  padding-bottom: 0 !important;
}

.PanelUI-subView>.panel-header+toolbarseparator {
  margin-bottom: 0 !important;
}

.PanelUI-subView>.panel-header+toolbarseparator+.panel-subview-body {
  padding-top: var(--panel-separator-margin-vertical) !important;
}

#identity-popup-security-button {
  margin-bottom: var(--panel-separator-margin-vertical) !important;
}

#permission-popup-mainView-panel-header,
#identity-popup-mainView-panel-header,
#protections-popup-mainView-panel-header,
.panel-header {
  min-height: calc((var(--arrowpanel-menuitem-padding-block) + 4px) * 2 + 16px) !important;
}

/* URL bar popup */
.panel-footer>button {
  border-radius: 2px !important;
}

.identity-popup-security-connection>hbox>description {
  margin-inline-start: 0 !important;
}

.identity-popup-security-connection.identity-button {
  margin-inline-end: calc(-1 * (var(--arrowpanel-menuitem-padding-inline) - 10px)) !important;
}

#identity-popup-mainView-panel-header-span,
#permission-popup-mainView-panel-header-span,
#identity-popup-mainView-panel-header label,
#permission-popup-mainView-panel-header label,
#protections-popup-mainView-panel-header-span {
  margin-block: 0 !important;
}

.permission-popup-section {
  padding-block: var(--fp-permission-itemcontainer-padding-block) !important;
}

#permission-popup-permissions-content {
  padding-inline: var(--fp-permission-item-padding-inline) !important;
}

.permission-popup-permission-item,
#permission-popup-storage-access-permission-list-header {
  margin-block: var(--fp-permission-item-margin-block) !important;
}

.permission-popup-permission-label,
.permission-popup-permission-header-label {
  margin-inline-start: var(--fp-arrowpanel-menuicon-margin-inline) !important;
}

#editBookmarkPanel>#editBookmarkHeaderSeparator,
#editBookmarkPanel>.panel-subview-body>#editBookmarkSeparator {
  margin-inline: 0 !important;
}

/* subview */
.panel-header {
  padding: 4px !important;
  padding-top: 4px !important;
}

.panel-header+toolbarseparator,
#identity-popup-mainView-panel-header+toolbarseparator,
#permission-popup-mainView-panel-header+toolbarseparator,
#protections-popup-mainView-panel-header-section+toolbarseparator {
  margin-block-start: 0 !important;
}

.panel-header>.subviewbutton-back {
  margin: 0 !important;
  padding: var(--arrowpanel-menuitem-padding-block) !important;
}

.panel-subview-footer-button {
  margin-bottom: 4px !important;
}

.webextension-popup-browser,
.webextension-popup-stack {
  margin-block-start: calc(var(--panel-separator-margin-vertical) * -.5) !important;
}

/* downloads popup */
.downloadTypeIcon {
  height: 16px !important;
  width: 16px !important;
}

.downloadButton {
  min-width: calc(16px + var(--fp-toolbarbutton-inner-inline-padding) * 2) !important;
  height: calc(16px + var(--toolbarbutton-inner-padding) * 2) !important;
  border-radius: var(--toolbarbutton-border-radius) !important;
}

.downloadMainArea {
  padding-block: 4px !important;
  padding-inline: 12px !important;
  border-radius: 0 !important;
}

#downloadsListBox>richlistitem {
  padding-inline-end: 8px !important;
  border-radius: var(--arrowpanel-menuitem-border-radius) !important;
}

#downloadsListBox,
.downloadsPanelFooterButton {
  margin: var(--arrowpanel-menuitem-margin) !important;
  width: auto !important;
  min-width: auto !important;
}

#downloadsPanel-blockedSubview,
#downloadsPanel-mainView {
  padding: var(--panel-separator-margin-vertical) 0 !important;
}

#emptyDownloads {
  padding: 1.5em 16px 1.7em !important;
}

#downloadsHistory .button-text {
  margin-block: 0 !important;
  margin-inline: 0 !important;
}

.PanelUI-subView .subviewbutton-nav::after,
#PlacesToolbar menu>.menu-right,
.subviewbutton>.menu-right {
  fill-opacity: 1 !important;
}

/* auto complete popup */
#PopupAutoComplete>.autocomplete-richlistbox {
  background: var(--arrowpanel-background) !important;
  color: var(--arrowpanel-color) !important;
  box-shadow: 0 0 0 1px inset var(--arrowpanel-border-color) !important;
}

#PopupAutoComplete .autocomplete-richlistitem[originaltype="loginsFooter"] {
  justify-content: start !important;
  -moz-box-pack: start !important;
  color: inherit !important;
  background-color: transparent !important;
  height: 28px !important;
  min-height: 28px !important;
  padding-inline-start: var(--fp-contextmenu-menuitem-padding-inline) !important;
  position: relative !important;
  overflow: visible !important;
  margin-top: calc(var(--fp-contextmenu-separator-vertical) * 2 + 1px) !important;
}

.autocomplete-richlistitem[originaltype="loginsFooter"]::before {
  content: "";
  width: calc(100% + var(--fp-contextmenu-menuitem-margin-inline) * 2);
  border-top: 1px solid var(--panel-separator-color);
  position: absolute;
  top: calc((var(--fp-contextmenu-separator-vertical) + var(--fp-contextmenu-menuitem-border-width)) * -1 - 1px);
  left: calc(var(--fp-contextmenu-menuitem-margin-inline) * -1);
}

#PopupAutoComplete .autocomplete-richlistitem:hover {
  background-color: var(--panel-item-hover-bgcolor) !important;
}

#PopupAutoComplete .autocomplete-richlistitem[selected] {
  background-color: var(--panel-item-active-bgcolor) !important;
  color: inherit !important;
}




.ac-site-icon {
  fill: currentColor !important;
  margin-block: auto !important;
  margin-inline: 0 var(--fp-autocomplete-panel-menuicon-padding-inline) !important;
}

#PopupAutoComplete>richlistbox>richlistitem>.ac-title {
  margin-inline: calc(16px + var(--fp-autocomplete-panel-menuicon-padding-inline)) !important;
}


#PopupAutoComplete {
  padding-block: 10px !important;
  padding-inline: 2px !important;
}



#PopupAutoComplete>richlistbox>richlistitem>.two-line-wrapper {
  padding-block: 0 !important;
  padding-inline-end: calc((var(--fp-autocomplete-panel-menuitem-margin) + var(--arrowpanel-menuitem-padding-inline)) * 2) !important;
}

#PlacesToolbar menuitem,
#PlacesToolbar menu,
panelview .toolbarbutton-1,
.subviewbutton,
.widget-overflow-list .toolbarbutton-1 {
  min-height: calc(16px + var(--fp-contextmenu-menuitem-padding-block) * 2) !important;
}

menuitem[checked="true"]>.menu-iconic-left,
.menu-iconic>.menu-iconic-left,
.menuitem-iconic>.menu-iconic-left {
  margin: 0 !important;
}
 
/* Context Menu */
menupopup:not(.PanelUI-subView),
menupopup:not(.PanelUI-subView) menuitem,
menupopup:not(.PanelUI-subView) menu,
menupopup:not(.PanelUI-subView) menuseparator,
panel:not(#PopupSearchAutoComplete) {
  appearance: none !important;
}

menupopup:not(.PanelUI-subView),
panel[type="autocomplete-richlistbox"],
panelview,
menulist>menupopup:not(.PanelUI-subView)>menucaption {

  -moz-window-shadow: none !important;
  background: 0 !important;
  border: 0 !important;
  color: var(--arrowpanel-color) !important;
}

.popup-internal-box,
panelview,
.menupopup-arrowscrollbox {

  background: var(--fp-contextmenu-bgcolor) !important;
  border-width: 0 !important;

}

/* make room for menu shadow */
menupopup:not(.PanelUI-subView) {
  padding: 4px 12px 20px !important;
  margin: -6px -12px -16px !important;

}

.panel-arrowcontent {
  margin: 0 !important;
}

.panel-arrowbox {
  display: none !important;
}
 
menubar menupopup {
  padding: 1px 8px 20px !important;
  margin: -1px -4px -16px !important;
}

menupopup,
panel {
  --fp-margin: 0 !important;
  --fp-outline-color: #0001;
  --fp-box-shadow:
    0 8px 12px #0003,
    0 4px 5px #0002,
    0 2px 4px #0002;
  --panel-shadow: var(--fp-box-shadow) !important
}

@media (prefers-color-scheme:dark) {

  menupopup,
  panel {
    --fp-outline-color: #0002;
    --fp-box-shadow:
      0 8px 12px #0003,
      0 4px 5px #0003,
      0 2px 4px #0002;
    --panel-shadow: var(--fp-box-shadow) !important
  }
}

 
menupopup.PanelUI-subView {
  --fp-box-shadow: 0 0 0 1px var(--panel-border-color);
  --fp-margin: 1px !important;
  margin-top: -5px !important;

}

.menupopup-arrowscrollbox {
  box-shadow: var(--fp-box-shadow) !important;
  outline: .5px solid var(--fp-outline-color) !important;
}

.popup-internal-box {
  margin: 0 !important;

}

.popup-internal-box,
.menupopup-arrowscrollbox {
  padding: var(--fp-contextmenu-padding) !important;
  border-radius: var(--fp-contextmenu-border-radius) !important;
  /* color: inherit !important; */

}

menupopup menu[disabled="true"],
menupopup menuitem[disabled="true"] {
  color: var(--panel-disabled-color) !important;
  background: none !important;

}

menupopup menu:hover:not([disabled=true]),
menupopup menuitem:hover:not([disabled=true]),
menupopup menu[_moz-menuactive]:not([disabled=true]),
menupopup menuitem[_moz-menuactive]:not([disabled=true]) {
  background-color: var(--panel-item-hover-bgcolor) !important;
  color: inherit !important;
}

menupopup menuitem:hover:active:not([disabled=true]),
menupopup menu:hover:active:not([disabled=true]) {
  background-color: var(--panel-item-active-bgcolor) !important;
  color: inherit !important;
}

menupopup menuseparator,
panel menuseparator,
#PopupSearchAutoComplete .searchbar-separator {
  margin: var(--fp-contextmenu-separator-vertical) 0 !important;
  padding: 0 !important;
  background: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;

  &::before {
    content: unset !important;
  }
}

#PlacesToolbar menupopup[placespopup="true"] menuseparator::before {
  display: none !important;
}

menupopup menu,
menupopup menuitem,
menupopup menucaption,

#PopupAutoComplete>richlistbox>richlistitem,
#PopupSearchAutoComplete .autocomplete-richlistitem {
  padding: var(--fp-contextmenu-menuitem-padding-block) var(--fp-contextmenu-menuitem-padding-inline) !important;
  margin: var(--fp-contextmenu-menuitem-margin) !important;
  border-radius: var(--fp-contextmenu-menuitem-border-radius) !important;
  border: var(--fp-contextmenu-menuitem-border-width) solid transparent !important;
  background-clip: padding-box !important;
  min-height: calc(16px + (var(--fp-contextmenu-menuitem-padding-block) + var(--fp-contextmenu-menuitem-border-width)) * 2) !important;

}

:not(:not(menubar)>menu, #ContentSelectDropdown)>menupopup>menuitem:not(.menuitem-iconic, [type="checkbox"], [type="radio"], .in-menulist, .in-menulist menuitem, .unified-nav-current),
:not(:not(menubar)>menu, #ContentSelectDropdown)>menupopup>menu:not(.menu-iconic, [type="checkbox"], [type="radio"], .in-menulist, .in-menulist menu, .unified-nav-current),
:not(:not(menubar)>menu, #ContentSelectDropdown)>menupopup>menucaption {
  padding-inline-start: calc(var(--fp-contextmenu-menuitem-padding-inline) + 16px + var(--fp-contextmenu-menuicon-margin-inline)) !important;
}



#ContentSelectDropdown menupopup menu,
#ContentSelectDropdown menupopup menuitem {
  padding: inherit !important;
}

.menu-iconic-icon {
  margin-block: 0 !important;
  margin-inline-end: 0 !important;
  margin-inline-start: 0 !important;
}


menu>.menu-iconic-text,
menuitem>.menu-iconic-text,
#context-navigation>.menuitem-iconic::after {
  padding-inline-start: var(--fp-contextmenu-menuicon-margin-inline) !important;
}

.menu-text,
.menu-iconic-text {
  margin-inline-start: 0 !important;
  padding-block: 0 !important;
}

.menu-accel,
.menu-iconic-accel {
  margin-inline-end: 0 !important;
  padding-block: 0 !important;
  opacity: 0.7 !important;
}

.menu-iconic>.menu-iconic-left,
.menuitem-iconic>.menu-iconic-left {
  padding-inline-end: 0 !important;
  padding-block: 0 !important;
}

menuitem:is(.menuitem-iconic:not([data-usercontextid]), [type="checkbox"], [type="radio"], [checked], [selected]) .menu-iconic-icon {
  -moz-context-properties: fill !important;
  fill: currentColor !important;
}

.menu-right,
.menu-accel-container {
  appearance: none !important;
  margin-inline-end: 0 !important;
  -moz-context-properties: fill;
  fill: currentColor !important;
}

menupopup menuitem:is([type="checkbox"], [type="radio"]) .menu-iconic-icon,
menulist>menupopup>menuitem .menu-iconic-icon,
menu .menu-right {
  height: 16px !important;
  width: 16px !important;
}

menulist>menupopup>menuitem:is([checked="true"], [selected="true"])::before,
menupopup>menuitem::before,
menupopup>menuitem::after {
  display: none !important;
}

menuitem:is([type="checkbox"], [checked="true"], [type="radio"])>.menu-iconic-left>.menu-iconic-icon {
  display: flex !important;
}

menuitem[checked="true"]>.menu-iconic-left,
.menu-iconic>.menu-iconic-left,
.menuitem-iconic>.menu-iconic-left {
  margin: 0 !important;
}

#context-navigation:not([hidden]) {
  padding: 0 !important;
  --menuitem-min-width: calc(16px + var(--fp-contextmenu-menuitem-padding-inline) * 2) !important;
  min-width: calc(4 * var(--menuitem-min-width));
}

#context-navigation>.menuitem-iconic>.menu-iconic-left>.menu-iconic-icon {
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
}

#context-navigation {
  margin-inline: var(--fp-contextmenu-menuitem-margin-inline) !important;
}

#context-navigation>.menuitem-iconic {
  justify-content: center !important;
  -moz-box-pack: center !important;
}

#context-navigation>.menuitem-iconic {
  margin: 0 !important;
}

#context-navigation>.menuitem-iconic {
  flex-grow: 1 !important;
  width: unset !important;
}

#context-navigation>.menuitem-iconic[_moz-menuactive="true"]>.menu-iconic-left>.menu-iconic-icon {
  background-color: transparent !important;
}

#context-bookmarkpage[starred] .menu-iconic-icon {
  fill: var(--lwt-toolbarbutton-icon-fill-attention, var(--toolbarbutton-icon-fill-attention, currentColor)) !important;
}

@media (-moz-bool-pref: "fp.tweak.sidebar-enabled") {
  :not(menupopup:not(#contentAreaContextMenu) > menuitem)[id^="sidebartabs_asamuzak_jp-menuitem-"]>.menu-text {
    margin-left: -20px !important;
  }
}
.findbar-textbox:focus {
    outline: 2px solid rgba(0, 102, 255, 0.9) !important;
  }
  
.findbar-textbox[status="notfound"] {
    outline: 2px solid #E22850 !important;
  }