xpi/content/overlay.css
@import url(chrome://ctraddon_os_special/skin/overlayextra.css);
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

	#main-window {
	  min-width: 300px !important;
	}
	
	.ctrprefs{
	  -moz-margin-start:26px !important;
	}

	#ctraddon_connavsep {
	  visibility:collapse;
	}
	
	/* hide browsers default PanelUI-button completely */
	#nav-bar > #PanelUI-button {
	  display: none;
	}
	
	/* configure PanelUI buttons apperance withing CTR PanelUI container */
	#ctraddon_panelui-button #PanelUI-button {
	  -moz-appearance: unset !important;
	  background: unset !important;
	  box-shadow: unset !important;
	  border-image: unset !important;
	  border: unset !important;
	  padding: unset !important;
	  margin: unset !important;
	  min-width: unset !important;
	  width: unset !important;
	  max-width: unset !important;
	  min-height: unset !important;
	  height: unset !important;
	  max-height: unset !important;
	}

	/* PanelUI-CTR-button */
	#ctraddon_PanelUI-CTR-button,
	#ctraddon_PanelUI-CTR-button-separator,
	#ctraddon_PanelUI-CTR-restartbutton,
	#ctraddon_PanelUI-CTR-restartbutton-separator{
	  visibility: collapse;
	}
	
	#ctraddon_PanelUI-CTR-restartbutton,
	#ctraddon_PanelUI-CTR-button {
	  margin: 0;
	  padding: 11px 0;
	  box-sizing: border-box;
	  min-height: 40px;
	  -moz-appearance: none;
	  box-shadow: none;
	  border: none;  
	  border-radius: 0;
	  transition: background-color;
	  -moz-box-orient: horizontal;
	}

	#ctraddon_PanelUI-CTR-restartbutton > .toolbarbutton-text,
	#ctraddon_PanelUI-CTR-button > .toolbarbutton-text {
	  display: none;
	}
	#ctraddon_PanelUI-CTR-restartbutton > .toolbarbutton-icon,
	#ctraddon_PanelUI-CTR-button > .toolbarbutton-icon {
	  -moz-margin-end: 0;
	}
	#ctraddon_PanelUI-CTR-restartbutton:not([disabled]):hover,
	#ctraddon_PanelUI-CTR-button:not([disabled]):hover{
	  outline: 1px solid hsla(210,4%,10%,.07);
	  background-color: hsla(210,4%,10%,.07);
	}
	#ctraddon_PanelUI-CTR-restartbutton:not([disabled]):hover:active,
	#ctraddon_PanelUI-CTR-button:not([disabled]):hover:active {
	  outline: 1px solid hsla(210,4%,10%,.12);
	  background-color: hsla(210,4%,10%,.12);
	  box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset;
	}
	
	/* CTRs Back-forward dropmarker */
	#ctraddon_back-forward-dropmarker {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/toolbarbutton-dropdown-arrow.png");
	}

	#ctraddon_back-forward-dropmarker:-moz-lwtheme-brighttext {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/toolbarbutton-dropdown-arrow-inverted.png");
	}
	#ctraddon_back-forward-dropmarker > .toolbarbutton-icon {
	  padding-left: 0px !important;
	  padding-right: 0px !important;
	}
	#ctraddon_back-forward-dropmarker dropmarker {
	  visibility: collapse !important;
	}

	#main-window #navigator-toolbox #nav-bar[currentset*="ctraddon_back-forward-button,ctraddon_back-forward-dropmarker"]:not([customizing]) #ctraddon_back-forward-dropmarker {
	  -moz-margin-start: -6px;
	}

	#customization-palette #ctraddon_back-forward-dropmarker image{
	  background:url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png") center center no-repeat !important;
	  list-style-image:none !important;
	}
	
	/* Tabs Toolbar - close tab button */
	#ctraddon_tabs-closebutton{
	  visibility: collapse;
	}
	
	/*toolbar dummy */
	#ctraddon_toolbar_dummy{
	  -moz-appearance: none !important;
	  -moz-box-ordinal-group: 999999 !important;
	  visibility:hidden !important;
	}
	
	/* ctr addonbar */
	#ctraddon_addon-bar {
	  -moz-appearance: none !important;
	  -moz-box-ordinal-group: 100 !important;
	  border: 0px !important;
	}

	/* addon-bar close button */
	#ctraddon_addon-bar #ctraddon_addonbar-close image {
	  width: 16px !important;
	  height: 16px !important;
	}
	
	/* custom bookmarks-menu-toolbar-button */
	#PersonalToolbar #ctraddon_bookmarks-menu-toolbar-button .toolbarbutton-text {
	  display: -moz-box !important;
	  -moz-padding-start:4px !important;
	}
	#PersonalToolbar #ctraddon_bookmarks-menu-toolbar-button dropmarker,
	#PersonalToolbar #ctraddon_history-menu-toolbar-button dropmarker {
	  visibility: collapse !important;
	}
	#ctraddon_bookmarks-menu-toolbar-button .toolbarbutton-menubutton-button,
	#ctraddon_bookmarks-menu-toolbar-button.toolbarbutton-1 {
	  -moz-box-orient: horizontal !important;
	}
	#ctraddon_history-menu-toolbar-button .toolbarbutton-menubutton-button,
	#ctraddon_history-menu-toolbar-button.toolbarbutton-1 {
	  -moz-box-orient: horizontal !important;
	}
	
	/* appbutton menu on toolbars */
	#ctraddon_appbutton > .toolbarbutton-icon {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/appbutton.png");
	}
	
	@media (min-resolution: 1.1dppx) {
		#ctraddon_appbutton > .toolbarbutton-icon {
		  list-style-image: url("chrome://classic_theme_restorer/content/images/appbutton_32.png");
		  width: 40px !important;
		}
	}
	
	#nav-bar #ctraddon_appbutton > .toolbarbutton-icon{
	  margin-left: -3px;
	  margin-right: -3px;
	}
	
	* #ctraddon_appbutton dropmarker,
	* #ctraddon_appbutton > .toolbarbutton-menu-dropmarker,
	* #ctraddon_appbutton > .toolbarbutton-menubutton-dropmarker{
	  list-style-image: none !important;
	  display: none !important;
	  visibility:collapse !important;
	}
	
	#ctraddon_appbutton > .toolbarbutton-icon{
	  max-width: unset !important;
	}
	
	#TabsToolbar #ctraddon_appbutton {
	  min-width: 36px !important;
	}

	/* style appbutton*/
	#TabsToolbar #ctraddon_appbutton{
	  -moz-appearance:none !important;
	  border:1px solid;
	  border-color:hsla(214,89%,21%,.5);
	  border-radius:2.5px 2.5px 0px 0px;
	  margin-top:1px;
	  margin-bottom:1px;
	}

	#TabsToolbar #ctraddon_appbutton {
	  border-radius: 2.5px 2.5px 0 0;
	}
	
	#appmenu-popup #appmenu_print_popup,
	#appmenu-popup #appmenu_print{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_print.png");
	}
	#appmenu-popup #appmenu-quit{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_close.png");
	}
	#appmenu-popup #appmenu_bookmarks{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_bookmarks.png");
	}
	#appmenu-popup #appmenu-editmenu-cut,
	#appmenu-popup #appmenu-cut{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_cut.png");
	}
	#appmenu-popup #appmenu-editmenu-copy,
	#appmenu-popup #appmenu-copy{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_copy.png");
	}
	#appmenu-popup #appmenu-editmenu-paste,
	#appmenu-popup #appmenu-paste{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_paste.png");
	}
	#ctraddon_ctr-button,
	#ctraddon_PanelUI-CTR-button,
	#ctraddon_context_menu_entry,
	#ctraddon_tools_menu_entry,
	#appmenu-popup #ctraddon_appmenu_ctr,
	#appmenu-popup #ctraddon_appmenu_ctr2{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_ctr.png");
	}

	#ctraddon_PanelUI-CTR-restartbutton,
	#menu_FilePopup #ctraddon_restart-menu,
	#appmenu-popup #ctraddon_restart-appmenu{
	  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_restart.png");
	}
	
	@media (min-resolution: 1.1dppx) {
		#appmenu-popup #appmenu_print_popup > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #appmenu_print > .menu-iconic-left > .menu-iconic-icon {
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_print@2x.png");
		  width: 16px !important;
		  height: 16px !important;
		}
		#appmenu-popup #appmenu-quit > .menu-iconic-left > .menu-iconic-icon{
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_close@2x.png");
		  width: 16px !important;
		  height: 16px !important;
		}
		#appmenu-popup #appmenu_bookmarks > .menu-iconic-left > .menu-iconic-icon {
		  list-style-image:url("chrome://classic_theme_restorer/content/images/starred48.png");
		  width: 16px !important;
		  height: 16px !important;
		}		
		#appmenu-popup #appmenu-editmenu-cut > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #appmenu-cut .toolbarbutton-icon{
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_cut@2x.png");
		  width: 16px !important;
		  height: 16px !important;
		}
		#appmenu-popup #appmenu-editmenu-copy > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #appmenu-copy .toolbarbutton-icon{
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_copy@2x.png");
		  width: 16px !important;
		  height: 16px !important;
		}
		#appmenu-popup #appmenu-editmenu-paste > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #appmenu-paste .toolbarbutton-icon{
		  list-style-image:url("chrome://classic_theme_restorer/content/images/appmenu_paste@2x.png");
		  width: 16px !important;
		  height: 16px !important;;
		}
		
		#ctraddon_ctr-button .toolbarbutton-icon,
		#ctraddon_PanelUI-CTR-button .toolbarbutton-icon,
		#ctraddon_context_menu_entry,
		#ctraddon_tools_menu_entry,
		#appmenu-popup #ctraddon_appmenu_ctr > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #ctraddon_appmenu_ctr2 > .menu-iconic-left > .menu-iconic-icon{
		  list-style-image:url("chrome://classic_theme_restorer/content/images/palette_ctr.png");
		  width: 16px !important;
		  height: 16px !important;
		}

		#ctraddon_PanelUI-CTR-restartbutton .toolbarbutton-icon,
		#menu_FilePopup #ctraddon_restart-menu > .menu-iconic-left > .menu-iconic-icon,
		#appmenu-popup #ctraddon_restart-appmenu > .menu-iconic-left > .menu-iconic-icon {
		  list-style-image:url("chrome://classic_theme_restorer/content/images/ctrrestart@2x.png");
		  width: 16px !important;
		  height: 16px !important;
		}
	}

	#appmenu-edit-label,
	#appmenu-edit-label:hover{
	  font-style: italic;
	  background: transparent;
	  border-color: transparent;
	}
	
	#appmenu-popup #appmenu_addons{
	  margin-top: 12px;
	}
	
	#appmenu-popup #appmenu-editmenu{
	  margin-top: 2px;
	  margin-bottom: 2px;
	}

	/* remove empty appmenu menu button labels */
	#appmenu-popup  > hbox > vbox > hbox > menu > .menu-iconic-left,
	#appmenu-popup > hbox > vbox > hbox > menu label {
	  visibility: collapse;
	}

	#main-window[defaultfxtheme="true"]  #appmenu-popup  > hbox > vbox > hbox > menu > .menu-right {
	  -moz-margin-start: 8px;
	}
	/* make sure submenu labels stay */
	#appmenu-popup > hbox > vbox > hbox > menu > menupopup label{
	  visibility: visible;
	}
	
	/* appmenu: reduce visibility of disabled cut, copy, paste buttons */
	#appmenu-cut[disabled],
	#appmenu-copy[disabled],
	#appmenu-paste[disabled]{
	  opacity: .3 !important;
	}
	
	/* hide buttons */
	#main-window[inFullscreen][inDOMFullscreen] toolbar #ctraddon_appbutton,
	toolbar #ctraddon_appbutton,
	panel #ctraddon_appbutton,
	#ctraddon_appbutton2,
	toolbar #ctraddon_back-forward-button,
	panel #ctraddon_back-forward-button,
	#main-window:not([customizing]) #ctraddon_window-controls{
	  visibility: collapse;
	}

	#customization-palette #ctraddon_window-controls #minimize-button,
	#customization-palette #ctraddon_window-controls #restore-button,
	#customization-palette #ctraddon_window-controls #close-button{
	  background:none;
	  list-style-image:none;
	  min-width:0px;
	  width:0px;
	  max-width:0px;
	}
	
	/* palette items */
	#customization-palette #ctraddon_back-forward-dropmarker {
	  background:url("chrome://classic_theme_restorer/content/images/toolbarbutton-dropdown-arrow.png") center no-repeat;
	}
	
	#main-window:not([fx51plus="true"]) #customization-palette #ctraddon_window-controls{
	  background: url("chrome://classic_theme_restorer/content/images/windowControls.png") center no-repeat;
	  border:none;
	  min-width:100px;
	}
	
	#customization-palette #ctraddon_back-forward-button{
	  background:url("chrome://classic_theme_restorer/content/images/back-forward.png") center no-repeat;
	  border:none;
	  min-width:100px;
	  width:100px;
	  max-width:100px;
	  min-height:0px;
	  height:50px;
	}
	
	#customization-palette #ctraddon_back-forward-button #ctraddon_back-button,
	#customization-palette #ctraddon_back-forward-button #ctraddon_forward-button{
	  visibility:collapse;
	}

	#ctraddon_appbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_appbutton > .toolbarbutton-icon{
	  list-style-image: url(chrome://classic_theme_restorer/content/images/appbutton_menuPanel.png);
	}
	
	#main-window[fx51plus="true"] #ctraddon_appbutton[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_appbutton > .toolbarbutton-icon{
	  list-style-image: url(chrome://classic_theme_restorer/content/images/appbutton_menuPanel_2.png);
	}

	#ctraddon_panelui-button[cui-areatype="menu-panel"] #PanelUI-menu-button > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_panelui-button {
	  background: -moz-image-rect(url("chrome://classic_theme_restorer/content/images/menuPanel2.png"),
					0, 32, 32, 0) center no-repeat;
	  border:none;
	}
	
	#main-window[fx51plus="true"] #ctraddon_panelui-button[cui-areatype="menu-panel"] #PanelUI-menu-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_panelui-button {
	  background: -moz-image-rect(url("chrome://classic_theme_restorer/content/images/menuPanel2_2.png"),
					0, 32, 32, 0) center no-repeat;
	  border:none;
	}
	
	#ctraddon_panelui-button[cui-areatype="menu-panel"] #PanelUI-menu-button > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_panelui-button #PanelUI-menu-button > .toolbarbutton-icon{
	  list-style-image: none !important;
	}
	
	#main-window[defaultfxtheme="true"] #ctraddon_stop-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_stop-button > .toolbarbutton-icon,
	#ctraddon_stop-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_stop-button > .toolbarbutton-icon {
	  -moz-image-region: rect(0px, 96px, 32px, 64px);
	  list-style-image: url(chrome://browser/skin/menuPanel.png);
	}
	
	#main-window[defaultfxtheme="true"][fx51plus="true"]  #ctraddon_stop-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"][fx51plus="true"]  toolbarpaletteitem[place="palette"] > #ctraddon_stop-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] #ctraddon_stop-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_stop-button > .toolbarbutton-icon {
	  -moz-image-region: rect(0px, 96px, 32px, 64px);
	  list-style-image: url(chrome://browser/skin/menuPanel.svg);
	}

	#main-window[defaultfxtheme="true"] #ctraddon_reload-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_reload-button > .toolbarbutton-icon,
	#ctraddon_reload-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_reload-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 64px, 32px, 32px);
	  list-style-image: url(chrome://browser/skin/menuPanel.png);
	}
	
	#main-window[defaultfxtheme="true"][fx51plus="true"] #ctraddon_reload-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"][fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_reload-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] #ctraddon_reload-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_reload-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 64px, 32px, 32px);
	  list-style-image: url(chrome://browser/skin/menuPanel.svg);
	}

	#main-window[defaultfxtheme="true"] #ctraddon_go-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_go-button > .toolbarbutton-icon,
	#ctraddon_go-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_go-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 96px, 32px, 64px);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/menuPanel3.png);
	}
	
	#main-window[fx51plus="true"][defaultfxtheme="true"] #ctraddon_go-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"][defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_go-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] #ctraddon_go-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_go-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 96px, 32px, 64px);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/menuPanel3_2.png);
	}

	#main-window[defaultfxtheme="true"] #ctraddon_history-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-button > .toolbarbutton-icon,
	#ctraddon_history-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_history-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/history_sidebar.png);
	}
	
	#main-window[fx51plus="true"][defaultfxtheme="true"] #ctraddon_history-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"][defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] #ctraddon_history-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/history_sidebar_2.png);
	}
	
	#main-window[defaultfxtheme="true"] #ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon,
	#ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/history_menu.png);
	}
	
	#main-window[fx51plus="true"][defaultfxtheme="true"] #ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"][defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon,
	#main-window[fx51plus="true"] #ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_history-menu-toolbar-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/history_menu_2.png);
	}

	#ctraddon_bookmarks-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_bookmarks-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/bookmarks_sidebar.png);
	}
	
	#main-window[fx51plus="true"] #ctraddon_bookmarks-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_bookmarks-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/bookmarks_sidebar_2.png);
	}
	
	#ctraddon_preferences-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 768px, 32px, 736px);
	  list-style-image: url(chrome://browser/skin/menuPanel.png);
	}
	
	#main-window[fx51plus="true"] #ctraddon_preferences-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_preferences-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 768px, 32px, 736px);
	  list-style-image: url(chrome://browser/skin/menuPanel.svg);
	}
	
	
	#ctraddon_bookmarks-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_bookmarks-menu-toolbar-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/bookmarks_menu.png);
	}
	
	#main-window[fx51plus="true"] #ctraddon_bookmarks-menu-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[fx51plus="true"] toolbarpaletteitem[place="palette"] > #ctraddon_bookmarks-menu-toolbar-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/bookmarks_menu_2.png);
	}
	
	#main-window[defaultfxtheme="true"] #ctraddon_restart-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	#main-window[defaultfxtheme="true"] toolbarpaletteitem[place="palette"] > #ctraddon_restart-button > .toolbarbutton-icon,
	#ctraddon_restart-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_restart-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/ctrrestart@2x.png);
	}
	
	#ctraddon_bookmarks-menu-toolbar-button[cui-areatype="menu-panel"] dropmarker,
	toolbarpaletteitem[place="palette"] > #ctraddon_bookmarks-menu-toolbar-button  dropmarker,
	#ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] dropmarker,
	toolbarpaletteitem[place="palette"] > #ctraddon_history-menu-toolbar-button dropmarker{
	  visibility: collapse;
	}
	#ctraddon_bookmarks-menu-toolbar-button[cui-areatype="menu-panel"],
	#ctraddon_history-menu-toolbar-button[cui-areatype="menu-panel"] {
      -moz-box-orient: vertical !important;
	}
	
	#ctraddon_ctr-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
	toolbarpaletteitem[place="palette"] > #ctraddon_ctr-button > .toolbarbutton-icon{
	  -moz-image-region: rect(0px, 32px, 32px, 0);
	  list-style-image: url(chrome://classic_theme_restorer/content/images/palette_ctr.png);
	}
	
	/**/
	#ctraddon_go-button:-moz-locale-dir(rtl) .toolbarbutton-icon {
	  -moz-transform:rotate(180deg);
	}
	
	/* CTRs activity throbber */
	#ctraddon_navigator-throbber {
	  background:url("chrome://classic_theme_restorer/content/images/throbber_notloading.png") center no-repeat;
	}
	#ctraddon_navigator-throbber[busy] {
	  background:url("chrome://classic_theme_restorer/content/images/throbber_loading.png") center no-repeat;
	}
	toolbar #ctraddon_navigator-throbber{
	  width: 16px;
	  min-height: 16px;
	  margin: 0 3px;
	}
	#ctraddon_navigator-throbber[cui-areatype="menu-panel"],
	toolbarpaletteitem[place="palette"] > #ctraddon_navigator-throbber{
	  background:url("chrome://classic_theme_restorer/content/images/throbber_palette.png") center no-repeat;
	  border:none;
	  min-width:100px;
	  width:100px;
	  max-width:100px;
	  min-height:0px;
	  height:50px;
	}
	#ctraddon_navigator-throbber[cui-areatype="menu-panel"]{
	  margin-top:-30px !important;
	}

	#ctraddon_navigator-throbber {
	  visibility: collapse;
	}
	#wrapper-ctraddon_navigator-throbber {
	  display: none;
	}
	
	/* show missing icon */
	#main-window[defaultfxtheme="true"] #appmenu_unsortedBookmarks,
	#main-window[defaultfxtheme="true"] #ctraddon_BMB_unsortedBookmarks,
	#main-window[defaultfxtheme="true"] #ctraddon_BMB_unsortedBookmarks_m,
	#main-window[defaultfxtheme="true"] #ctraddon_BMB_unsortedBookmarks_m2,
	#main-window[defaultfxtheme="true"] #ctraddon_BMB_unsortedBookmarks_mm,
	#main-window[defaultfxtheme="true"] #ctraddon_BMB_unsortedBookmarks_mm2 {
	  list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
	  -moz-image-region: auto;
	}
	
	/* hide bookmark menus items */
	#ctraddon_BMB_viewBookmarksSidebar,
	#ctraddon_BMB_viewBookmarksToolbar {
	  display:none;
	}
	
	#ctraddon_BMB_unsortedBookmarks_mm2sep,
	#ctraddon_BMB_viewBookmarksToolbar + menuseparator {
	  visibility: collapse;
	}

	#ctraddon_BMB_unsortedBookmarks_m,
	#ctraddon_BMB_unsortedBookmarks_m2,
	#ctraddon_BMB_unsortedBookmarks_mm,
	#ctraddon_BMB_unsortedBookmarks_mm2 {
	  display:none;
	}

	/* adjust panel menu button on nav-bar */
	#main-window[defaultfxtheme="true"] #nav-bar #PanelUI-menu-button {
	  -moz-padding-start: 2px !important;
	  -moz-padding-end: 2px !important;
	}
	
	/*temporal fix*/
	#fireproxy-toolbaritem-menulist-proxytype .menulist-dropmarker{
	  background:none !important;
	}
	
	/* Multirow Bookmarks Toolbar Plus v1.2 glitch fix */
	#browser-bottombox #ctraddon_addon-bar:not([collapsed="true"]):not([hidden="true"])~#multibmtoolbar-showbar {
	  visibility: hidden !important;
	}
	
	/* Disconnect */
	#ctraddon_addon-bar #disconnect-item #disconnect-badge{
	  margin-top:4px !important;
	}
	
	/* hide unsupported menuitems items */
	#main-window #appmenu_devAppMgr {
	  visibility: collapse !important;
	}
	
	/*iconize some menu items*/
	#appmenu_BMB_readingList,
	#ctraddon_BMB_readingList {
	  list-style-image: url("chrome://browser/skin/readinglist/readinglist-icon.svg");
	  -moz-image-region: auto;
	}
	
	#ctraddon_BMB_bookmarksToolbar {
	  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
	  -moz-image-region: auto;
	}
	
	/* CTRs additional urlbar */
	#ctr_extraurlbar_button {
	  list-style-image: url("chrome://classic_theme_restorer/content/images/extraulbar_go.png");
	  opacity: 0.8;
	}
	#ctr_extraurlbar_button:hover {
	  opacity: 1.0;
	}
	#ctr_extraurlbar_button,
	#ctraddon_extraurlbar-close{
	  -moz-appearance: none !important;
	  background: none !important;
	  border: 0 !important;
	  min-width: 0px !important;
	}
	
	/* Fx44+ fix */
	toolbarbutton[id^="ctraddon_"] > .toolbarbutton-icon{
	  max-width: unset !important;
	}
	
	/* CTR preference items */
	#ctraddon_toolsmenu_preferencesOSX {
	  visibility: collapse;
	  display: none;
	}
	
	#wrapper-ctraddon_preferences-button,
	#ctraddon_preferences-button {
	  visibility: collapse; 
	  display: none;
	}
	
	/*toolbar context menu find items*/
	#ctraddon_menu_find_sep,
	#ctraddon_menu_find,
	#ctraddon_menu_findAgain {
	  visibility: collapse; 
	}
	
	/* private mask item */
	#ctraddon_pmask-item {
	  background:url("chrome://classic_theme_restorer/content/images/private_browsing-mask.png") center no-repeat;
	}

	toolbar #ctraddon_pmask-item{
	  width: 26px;
	  min-height: 16px;
	  margin: 0 3px;
	}
	#ctraddon_pmask-item[cui-areatype="menu-panel"],
	toolbarpaletteitem[place="palette"] > #ctraddon_pmask-item{
	  background:url("chrome://classic_theme_restorer/content/images/private_browsing-mask.png") center no-repeat;
	  border:none;
	  min-width:100px;
	  width:100px;
	  max-width:100px;
	  min-height:0px;
	  height:50px;
	}
	#ctraddon_pmask-item[cui-areatype="menu-panel"]{
	  margin-top:-30px !important;
	}
	
	#main-window:not([privatebrowsingmode=temporary]):not([customizing]) #ctraddon_pmask-item{
	  visibility: collapse;
	}
	
	toolbar:-moz-lwtheme-brighttext #ctraddon_pmask-item{
	  filter: brightness(1.5);
	}
	
	/* Firefox 44 large mode fix */
	#nav-bar[iconsize="large"] .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #ctraddon_preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button)) > .toolbarbutton-icon,
	#nav-bar[iconsize="large"] .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #ctraddon_preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button)) > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
	#nav-bar[iconsize="large"] .toolbarbutton-1:not(:-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button, #social-share-button, #open-file-button, #find-button, #developer-button, #preferences-button, #ctraddon_preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button)) > .toolbarbutton-badge-stack > .toolbarbutton-icon{
	  max-width: unset !important;
	}
	
	/* WebExtension action & toggle buttons */
	#nav-bar[iconsize="large"] .toolbarbutton-1[id*="-browser-action"] .toolbarbutton-icon,
	#nav-bar[iconsize="large"] .toolbarbutton-1[id*="-browser-toggle"] .toolbarbutton-icon {
	  width: 18px !important;
	  max-width: 18px !important;
	}

	/* Auto Form add-ons icon sizes*/
	toolbarbutton[id^="af_button"] .toolbarbutton-icon {
	  width: 18px !important;
	  max-width: 18px !important;
	}
	
	/* fix FireIE add-ons location bar icon */
	#urlbar #fireie-urlbar-switch image,
	#urlbar #fireie-urlbar-switch label,
	#urlbar #fireie-urlbar-switch {
	  -moz-appearance: none !important;
	  border: unset !important;
	  box-shadow: unset !important;
	  padding: unset !important;
	  margin: unset !important;
	}
	
	/* cui */
	@media not all and (-moz-windows-classic) {
		#ctraddon_cui-ctroldsearch,
		#ctraddon_cui-tabsnontop,
		#ctraddon_cui-smallnavbut-button2 {
		  background:#fbfbfb;
		}
		#ctraddon_cui-smallnavbut-button1 {
		  background:#dadada;
		}
		
		#ctraddon_cui-icons-button {
		  background:#dadada;
		}
		#ctraddon_cui-iconstext-button {
		  background:#fbfbfb;
		} 
		#ctraddon_cui-textonly-button {
		  background:#fbfbfb;
		}
	}
	
	@media all and (-moz-windows-classic) {
	  #ctraddon_cui-iconstext-button *,
	  #ctraddon_cui-textonly-button *,
	  #ctraddon_cui-ctroldsearch *,
	  #ctraddon_cui-tabsnontop *,
	  #ctraddon_cui-smallnavbut-button2 * {
		background:unset;
	  }
	  #ctraddon_cui-icons-button *,
	  #ctraddon_cui-smallnavbut-button1 * {
		background:#e7e3db;
	  }
	}
	
	/* hide CTRs spring/spacer/separators */
	#main-window[fx56plus="true"][photon-structure="true"] #wrapper-spring,
	#main-window[fx56plus="true"][photon-structure="true"] #wrapper-spacer,
	#main-window[fx56plus="true"][photon-structure="true"] #wrapper-separator,
	#main-window[fx56plus="true"][photon-structure="true"] .ctraddon_flexspaces,
	#main-window[fx56plus="true"][photon-structure="true"] .ctraddon_spaces,
	#main-window[fx56plus="true"][photon-structure="true"] .ctraddon_separators {
	  display: none !important;
	  visibility: collapse !important;
	}
	
	/* hide menus right arrow */
	#main-window[fx56plus="true"] #appmenu_webDeveloper .menu-right{
	  display: none !important;
	}
	
	#fuzzytime-contextmenu {
	  -moz-appearance: menupopup !important;
	  background: grey !important;
	  color: black !important;
	}