xpi/content/css/win8/overlayextra.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

	#ctraddon_bookmarks-menu-toolbar-button,
	#ctraddon_bookmarks-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/bookmarks.png");
	}
	#ctraddon_bookmarks-menu-toolbar-button:-moz-lwtheme-brighttext,
	#ctraddon_bookmarks-button:-moz-lwtheme-brighttext{
	  list-style-image: url("chrome://classic_theme_restorer/content/images/bookmarks-inv.png");
	}
	
	@media (min-resolution: 1.1dppx) {
		#ctraddon_bookmarks-menu-toolbar-button:not(:-moz-lwtheme) .toolbarbutton-icon,
		#ctraddon_bookmarks-button:not(:-moz-lwtheme) .toolbarbutton-icon{
		  -moz-image-region: rect(0px, 32px, 32px, 0);
		  list-style-image: url(chrome://classic_theme_restorer/content/images/bookmarks_menu.png);
		  width: 16px !important;
		}
	}

	/* fallback images for non-default theme */
	#ctraddon_history-menu-toolbar-button,
	#ctraddon_history-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/history2_mac.png");
	}
	#ctraddon_back-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/back2_mac.png");
	}
	#ctraddon_forward-button,
	#ctraddon_go-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/forward2_mac.png");
	}
	#ctraddon_stop-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/stop2_mac.png");
	}
	#ctraddon_reload-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/reload2_mac.png");
	}
	
	#ctraddon_restart-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/ctrrestart.png");
	}
	
	/* images for default theme */
	#main-window[defaultfxtheme="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button) {
	  list-style-image: url("chrome://browser/skin/Toolbar.png");
	}
	
	#main-window[defaultfxtheme="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button):-moz-lwtheme-brighttext {
	  list-style-image: url("chrome://browser/skin/Toolbar-inverted.png");
	}

	#main-window[defaultfxtheme="true"][fx55plus="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button) {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar.png");
	}
	
	#main-window[defaultfxtheme="true"][fx55plus="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button):-moz-lwtheme-brighttext {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar-inverted.png");
	}
	
	#main-window[defaultfxtheme="true"] #ctraddon_history-menu-toolbar-button,
	#main-window[defaultfxtheme="true"] #ctraddon_history-button {
	  -moz-image-region: rect(0, 180px, 18px, 162px);
	}
	#main-window[defaultfxtheme="true"] #ctraddon_back-button {
	  -moz-image-region: rect(0, 54px, 18px, 36px);
	}
	#main-window[defaultfxtheme="true"] #ctraddon_forward-button,
	#main-window[defaultfxtheme="true"] #ctraddon_go-button {
	  -moz-image-region: rect(0, 72px, 18px, 54px);
	}
	#main-window[defaultfxtheme="true"] #ctraddon_reload-button {
	  -moz-image-region: rect(0, 90px, 18px, 72px);
	}
	#main-window[defaultfxtheme="true"] #ctraddon_stop-button {
	  -moz-image-region: rect(0, 108px, 18px, 90px);
	}

	#main-window[defaultfxtheme="true"] #nav-bar :-moz-any(#ctraddon_bookmarks-button,#ctraddon_history-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_ctr-button,#ctraddon_go-button,#ctraddon_preferences-button,#ctraddon_restart-button) > .toolbarbutton-icon {
	  padding: 2px 6px !important;
	}

	#main-window[defaultfxtheme="true"] #nav-bar #ctraddon_appbutton > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] #nav-bar #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] #nav-bar #ctraddon_bookmarks-menu-toolbar-button > .toolbarbutton-icon {
	  padding-top: 2px !important;
	  padding-bottom: 2px !important;	
	  -moz-padding-start: 6px !important;
	  -moz-padding-end: 14px !important;
	}
	
	@media (-moz-os-version: windows-win10) {
	  #main-window[defaultfxtheme="true"] #nav-bar :-moz-any(#ctraddon_bookmarks-button,#ctraddon_history-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_ctr-button,#ctraddon_go-button,#ctraddon_preferences-button,#ctraddon_restart-button) > .toolbarbutton-icon {
		padding: 4px 6px !important;
	  }
	  #main-window[defaultfxtheme="true"] #nav-bar #ctraddon_appbutton > .toolbarbutton-icon,
	  #main-window[defaultfxtheme="true"] #nav-bar #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon,
	  #main-window[defaultfxtheme="true"] #nav-bar #ctraddon_bookmarks-menu-toolbar-button > .toolbarbutton-icon {
		padding-top: 4px !important;
		padding-bottom: 4px !important;	
	  }
	  #main-window[defaultfxtheme="true"] #nav-bar #ctraddon_appbutton > .toolbarbutton-icon {
		-moz-padding-start: 6px !important;
		-moz-padding-end: 6px !important;
	  }
	}
	
	@media (min-resolution: 1.1dppx) {
		#main-window[defaultfxtheme="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button) {
		  list-style-image: url("chrome://browser/skin/Toolbar@2x.png");
		}
		
		#main-window[defaultfxtheme="true"] :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button):-moz-lwtheme-brighttext {
		  list-style-image: url("chrome://browser/skin/Toolbar-inverted@2x.png");
		}
		
		#main-window[defaultfxtheme="true"][fx55plus="true"]  :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button) {
		  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar@2x.png");
		}
		
		#main-window[defaultfxtheme="true"][fx55plus="true"]  :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button):-moz-lwtheme-brighttext {
		  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar-inverted@2x.png");
		}
		#main-window[defaultfxtheme="true"] #ctraddon_history-menu-toolbar-button,
		#main-window[defaultfxtheme="true"] #ctraddon_history-button {
		  -moz-image-region: rect(0, 360px, 36px, 324px);
		}
		#main-window[defaultfxtheme="true"] #ctraddon_back-button {
		  -moz-image-region: rect(0, 108px, 36px, 72px);
		}
		#main-window[defaultfxtheme="true"] #ctraddon_forward-button,
		#main-window[defaultfxtheme="true"] #ctraddon_go-button {
		  -moz-image-region: rect(0, 144px, 36px, 108px);
		}
		#main-window[defaultfxtheme="true"] #ctraddon_reload-button {
		  -moz-image-region: rect(0, 180px, 36px, 144px);
		}
		#main-window[defaultfxtheme="true"] #ctraddon_stop-button {
		  -moz-image-region: rect(0, 216px, 36px, 180px);
		}
		
		#main-window[defaultfxtheme="true"] #ctraddon_restart-button {
		  list-style-image: url("chrome://classic_theme_restorer/content/images/ctrrestart@2x.png");
		}

		#main-window[defaultfxtheme="true"] #nav-bar :-moz-any(#ctraddon_history-button,/*#ctraddon_history-menu-toolbar-button,*/#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button,#ctraddon_preferences-button,#ctraddon_restart-button,#ctraddon_bookmarks-button) .toolbarbutton-icon {
		  width: 32px !important;
		}
		#main-window[defaultfxtheme="true"] #nav-bar :-moz-any(#ctraddon_history-menu-toolbar-button,#ctraddon_bookmarks-menu-toolbar-button) .toolbarbutton-icon {
		  width: 40px !important;
		}
		#main-window[defaultfxtheme="true"] toolbar:not(#nav-bar) :-moz-any(#ctraddon_history-button,#ctraddon_history-menu-toolbar-button,#ctraddon_back-button,#ctraddon_forward-button,#ctraddon_stop-button,#ctraddon_reload-button,#ctraddon_go-button,#ctraddon_preferences-button,#ctraddon_restart-button,#ctraddon_bookmarks-menu-toolbar-button,#ctraddon_bookmarks-button) .toolbarbutton-icon {
		  width: 18px !important;
		  height: 18px !important;
		}
		#main-window[defaultfxtheme="true"] #nav-bar #ctraddon_ctr-button .toolbarbutton-icon {
		  width: 32px !important;
		  height: 23px !important;
		}
	}
	
	#PanelUI-menu-button{
	  margin: 0px !important;
	}
	
	#nav-bar #ctraddon_bookmarks-menu-toolbar-button  > .toolbarbutton-icon,
	#nav-bar #ctraddon_history-menu-toolbar-button  > .toolbarbutton-icon{
	  padding-top: 2px;
	  padding-bottom: 2px;
	}
	
	/* prefwindow button clone */
	#ctraddon_preferences-button {
	  list-style-image: url("chrome://browser/skin/Toolbar.png");
	}

	toolbar[brighttext] #ctraddon_preferences-button {
	  list-style-image: url("chrome://browser/skin/Toolbar-inverted.png");
	}
	
	#main-window[fx55plus="true"] #ctraddon_preferences-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar.png");
	}

	#main-window[fx55plus="true"] toolbar[brighttext] #ctraddon_preferences-button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar-inverted.png");
	}

	#ctraddon_preferences-button[cui-areatype="toolbar"] {
	  -moz-image-region: rect(0, 468px, 18px, 450px);
	}

	@media (min-resolution: 1.1dppx) {
	  #ctraddon_preferences-button {
		list-style-image: url("chrome://browser/skin/Toolbar@2x.png");
	  }

	  toolbar[brighttext] #ctraddon_preferences-button {
		list-style-image: url("chrome://browser/skin/Toolbar-inverted@2x.png");
	  }
	  
	  #main-window[fx55plus="true"] #ctraddon_preferences-button {
		list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar@2x.png");
	  }

	  #main-window[fx55plus="true"] toolbar[brighttext] #ctraddon_preferences-button {
		list-style-image: url("chrome://classic_theme_restorer/content/images/Toolbar-inverted@2x.png");
	  }
	  #ctraddon_preferences-button[cui-areatype="toolbar"] {
		-moz-image-region: rect(0, 936px, 36px, 900px);
	  }
	}

	@media not all and (min-resolution: 1.1dppx) {

	  #ctraddon_preferences-button[cui-areatype="menu-panel"],
	  toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button {
		list-style-image: var(--menupanel-list-style-image);
	  }
	  
	  #ctraddon_preferences-button[cui-areatype="menu-panel"],
	  toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button {
		-moz-image-region: rect(0px, 768px, 32px, 736px);
	  }
	 
	}

	/* Menu panel and palette styles */
	@media (min-resolution: 1.1dppx) {
	  #ctraddon_preferences-button[cui-areatype="menu-panel"],
	  toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button {
		list-style-image: var(--menupanel-list-style-image-2x);
	  }
	  
	  #ctraddon_preferences-button[cui-areatype="menu-panel"],
	  toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button {
		-moz-image-region: rect(0px, 1536px, 64px, 1472px);
	  }
	}
	
	/**/
	
	#appmenu-popup #appmenu_newPrivateWindow{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_private.png");
	}
	#appmenu-popup #appmenu_addons{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_addons.png");
	}
	
	@media (min-resolution: 1.1dppx) {
		#appmenu-popup #appmenu_newPrivateWindow > .menu-iconic-left > .menu-iconic-icon {
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_private@2x.png");
		  width: 16px !important;
		}
		#appmenu-popup #appmenu_addons > .menu-iconic-left > .menu-iconic-icon {
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_addons@2x.png");
		  width: 16px !important;
		}
	}

	#main-window[defaultfxtheme="true"] #appmenuPrimaryPane {
	  -moz-border-end: 1px solid ThreeDShadow;
	}

	@media (-moz-windows-default-theme) {
	  #main-window[defaultfxtheme="true"] #appmenu-popup {
		-moz-appearance: none;
		background: white;
		border: 1px solid ThreeDShadow;
	  }
	  #main-window[defaultfxtheme="true"] #appmenuPrimaryPane {
		background-color: rgba(255,255,255,0.5);
		padding: 2px;
		-moz-border-end: none;
	  }
	  #main-window[defaultfxtheme="true"] #appmenuSecondaryPane {
	    background-color: #f0f0f0;
		-moz-padding-start: 3px;
		-moz-padding-end: 2px;
		padding-top: 2px;
		padding-bottom: 2px;
		font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;

	  }
		
	  #main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup {
		-moz-appearance: none;
		background-image: linear-gradient(to right, white 26px, ThreeDLightShadow 26px,
										  ThreeDLightShadow 27px, ThreeDHighlight 27px,
										  ThreeDHighlight 28px, white 28px);
		border: 3px solid;
		-moz-border-top-colors: ThreeDShadow white;
		-moz-border-bottom-colors: ThreeDShadow white;
		-moz-border-left-colors: ThreeDShadow white;
		-moz-border-right-colors: ThreeDShadow white;
	  }

	  #main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup {
		-moz-appearance: none;
		background-image: linear-gradient(to right, #f0f0f0 26px, ThreeDLightShadow 26px,
										  ThreeDLightShadow 27px, ThreeDHighlight 27px,
										  ThreeDHighlight 28px, #f0f0f0 28px);
		border: 3px solid;
		-moz-border-top-colors: ThreeDShadow #f0f0f0;
		-moz-border-bottom-colors: ThreeDShadow #f0f0f0;
		-moz-border-left-colors: ThreeDShadow #f0f0f0;
		-moz-border-right-colors: ThreeDShadow #f0f0f0;
	  }

	  @media not all and (min-resolution: 1.11dppx) {
	  @media all and (-moz-windows-theme:aero) {

		#main-window:not([fx57plus="true"])[defaultfxtheme="true"] #appmenuSecondaryPane menupopup {
			-moz-appearance: none;
			background-image: linear-gradient(to right, #f0f0f0 26px, ThreeDLightShadow 26px,
											  ThreeDLightShadow 27px, ThreeDHighlight 27px,
											  ThreeDHighlight 28px, #f0f0f0 28px);
			border: 3px solid;
			-moz-border-top-colors: ThreeDShadow #f0f0f0;
			-moz-border-bottom-colors: ThreeDShadow #f0f0f0;
			-moz-border-left-colors: ThreeDShadow #f0f0f0;
			-moz-border-right-colors: ThreeDShadow #f0f0f0;
		}
	  }
	  }

	  #main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
		background-image: linear-gradient(to left, white 26px, ThreeDLightShadow 26px,
										  ThreeDLightShadow 27px, ThreeDHighlight 27px,
										  ThreeDHighlight 28px, white 28px);
	  }

	  #main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
		background-image: linear-gradient(to left, #f0f0f0 26px, ThreeDLightShadow 26px,
										  ThreeDLightShadow 27px, ThreeDHighlight 27px,
										  ThreeDHighlight 28px, #f0f0f0 28px);
	  }

	  
	  @media not all and (min-resolution: 1.11dppx) {
	  @media all and (-moz-windows-theme:aero) {

		#main-window:not([fx57plus="true"])[defaultfxtheme="true"] #appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
			background-image: linear-gradient(to left, #f0f0f0 26px, ThreeDLightShadow 26px,
										  ThreeDLightShadow 27px, ThreeDHighlight 27px,
										  ThreeDHighlight 28px, #f0f0f0 28px);
		}
	  }
	  }

	  
	  /* Hi-DPI overrides of the menu backgrounds, to adjust where the gutter line falls */
	  @media (min-resolution: 1.25dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup {
		  background-image: linear-gradient(to right, white 22.4px, ThreeDLightShadow 22.4px,
											ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
											ThreeDHighlight 24px, white 24px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup {
		  background-image: linear-gradient(to right, #f0f0f0 22.4px, ThreeDLightShadow 22.4px,
											ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
											ThreeDHighlight 24px, #f0f0f0 24px);
		}
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, white 22.4px, ThreeDLightShadow 22.4px,
											ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
											ThreeDHighlight 24px, white 24px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, #f0f0f0 22.4px, ThreeDLightShadow 22.4px,
											ThreeDLightShadow 23.2px, ThreeDHighlight 23.2px,
											ThreeDHighlight 24px, #f0f0f0 24px);
		}
	  }

	  @media (min-resolution: 1.5dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup {
		  background-image: linear-gradient(to right, white 20.6667px, ThreeDLightShadow 20.6667px,
											ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
											ThreeDHighlight 22px, white 22px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup {
		  background-image: linear-gradient(to right, #f0f0f0 20.6667px, ThreeDLightShadow 20.6667px,
											ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
											ThreeDHighlight 22px, #f0f0f0 22px);
		}
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, white 20.6667px, ThreeDLightShadow 20.6667px,
											ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
											ThreeDHighlight 22px, white 22px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, #f0f0f0 20.6667px, ThreeDLightShadow 20.6667px,
											ThreeDLightShadow 21.3333px, ThreeDHighlight 21.3333px,
											ThreeDHighlight 22px, #f0f0f0 22px);
		}
	  }

	  @media (min-resolution: 2dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup {
		  background-image: linear-gradient(to right, white 19.5px, ThreeDLightShadow 19.5px,
											ThreeDLightShadow 20px, ThreeDHighlight 20px,
											ThreeDHighlight 20.5px, white 20.5px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup {
		  background-image: linear-gradient(to right, #f0f0f0 19.5px, ThreeDLightShadow 19.5px,
											ThreeDLightShadow 20px, ThreeDHighlight 20px,
											ThreeDHighlight 20.5px, #f0f0f0 20.5px);
		}
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, white 19.5px, ThreeDLightShadow 19.5px,
											ThreeDLightShadow 20px, ThreeDHighlight 20px,
											ThreeDHighlight 20.5px, white 20.5px);
		}
		#main-window[defaultfxtheme="true"] #appmenuSecondaryPane menupopup:-moz-locale-dir(rtl) {
		  background-image: linear-gradient(to left, #f0f0f0 19.5px, ThreeDLightShadow 19.5px,
											ThreeDLightShadow 20px, ThreeDHighlight 20px,
											ThreeDHighlight 20.5px, #f0f0f0 20.5px);
		}
	  }
	  #main-window[defaultfxtheme="true"] #appmenuPrimaryPane > menuseparator {
		-moz-appearance: none;
		margin-top: 3px;
		margin-bottom: 3px;
		-moz-margin-start: 30px;
		padding: 0;
		border-top: 1px solid -moz-dialog;
		border-bottom: none;
	  }

	  @media (min-resolution: 1.25dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane > menuseparator {
		  -moz-margin-start: 25px;
		}
	  }
	  @media (min-resolution: 1.5dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane > menuseparator {
		  -moz-margin-start: 24px;
		}
	  }
	  @media (min-resolution: 2dppx) {
		#main-window[defaultfxtheme="true"] #appmenuPrimaryPane > menuseparator {
		  -moz-margin-start: 22px;
		}
	  }
	}

	#appmenu-edit-label,
	#appmenu-edit-label:hover{
	  -moz-appearance: none !important;
	}
	
	#appmenu-edit-label{
	  -moz-margin-start: 2px !important;
	}

	@media all and (-moz-windows-theme:aero) {
		/* appmenu submenu icons positions */
		#main-window[defaultfxtheme="true"] #appmenu-popup > hbox > vbox > hbox > menu > .menu-right,
		#main-window[defaultfxtheme="true"] #appmenu-popup > hbox > vbox > hbox > menu > .menu-accel-container,
		#main-window[defaultfxtheme="true"] #appmenu-popup > hbox > vbox > hbox > menu > .menu-iconic-text,
		#main-window[defaultfxtheme="true"] #appmenu-popup > hbox > vbox > hbox > menu > .menu-iconic-left{
		  min-width: 4px !important;
		  width: 4px !important;
		  max-width: 4px !important;
		}
		
		#main-window:not([defaultfxtheme="true"]) #appmenu-popup > hbox > vbox > hbox > menu > .menu-accel-container{
		  min-width: 10px !important;
		  width: 10px !important;
		  max-width: 10px !important;
		}
	}

	#main-window[sizemode="maximized"] #TabsToolbar #ctraddon_appbutton{
	  margin-top:0px !important;
	}

	/* CTR addons-bar */
	#main-window[defaultfxtheme="true"] #ctraddon_addon-bar:not(:-moz-lwtheme) {
	  border-top: 1px solid rgba(0,0,0,.15) !important;
	}
	
	#ctraddon_addon-bar {
	  min-height: 20px;
	}
	
	#ctraddon_addon-bar toolbarbutton {
	  -moz-appearance: none;
	  border: none;
	  margin-top: 0px;
	  margin-bottom: 0px;
	  padding-top: 1px;
	  padding-bottom: 1px;
	}
	
	#ctraddon_addon-bar toolbaritem{
	  margin-top: 0px;
	  margin-bottom: 0px;
	  padding-top: 0px;
	  padding-bottom: 0px;
	}
	
	#ctraddon_addon-bar toolbaritem[id^="widget"]{
	  -moz-appearance: none !important;
	}

	#ctraddon_addon-bar .toolbarbutton-1:not([disabled]):hover,
	#ctraddon_addon-bar .toolbarbutton-1[open],
	#ctraddon_addon-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled]):hover {
	  background-image: linear-gradient(to top, transparent, rgba(0,0,0,.15)),
						linear-gradient(to top, transparent, rgba(0,0,0,.15) 30%),
						linear-gradient(to top, transparent, rgba(0,0,0,.15) 30%);
	  background-position: left, left, right;
	  background-size: auto, 1px 100%, 1px 100%;
	  background-repeat: no-repeat;
	}
	#ctraddon_addon-bar .toolbarbutton-1,
	#ctraddon_addon-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button  {
	  -moz-appearance: none;
	  border-style: none;
	}
	
	/* temporal fix for Win8s minimize button in some cases */
	@media (-moz-windows-default-theme) {
	  @media all and (-moz-windows-theme:aero) {
	
		#main-window[defaultfxtheme="true"][sizemode="normal"]:-moz-lwtheme #titlebar-buttonbox {
		  -moz-margin-end:-5px !important;
		}
	
	  }
	}

	#main-window .ctraddon_nonwindows,
	#main-window .ctraddon_linuxonly,
	#main-window .ctraddon_maconly{
	  visibility: collapse !important;
	}
	
	/* Restore menu button dropmaker on Fx55+ */
	#main-window[fx55plus="true"] #nav-bar #nav-bar-customization-target > :-moz-any(#ctraddon_bookmarks-menu-toolbar-button,#ctraddon_history-menu-toolbar-button) > .toolbarbutton-menu-dropmarker {
	  display: block !important;
	  margin-inline-start: -12px;
	}
	
	/* disable window dragging feature for menu bar and tab bar in customizing mode, if springs, seperators or spacers are on them */
	#main-window[tabsintitlebar][customizing="true"] :-moz-any(#toolbar-menubar,#TabsToolbar):-moz-any([currentset*="customizableui-special-spring"],[currentset*="customizableui-special-separator"],[currentset*="customizableui-special-spacer"]){
	  -moz-window-dragging: no-drag !important;
	}