/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@import url("chrome://global/skin/");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");








/* ::::: Colors ::::: */

:root {
  --toolbar-background: transparent;
  --toolbar-border-color: #a1a1a1;

  --tab-hover-background-color: #dadada;
  --tab-hover-bottom-line-color: #a1a1a1;
  --tab-selected-background-color: #e1e1e1;
  --tab-selected-bottom-line-color: Highlight;

  --panel-separator-color: hsla(210,4%,10%,.14); /* ThreeDShadow */
}

/*
:root {
  --backbutton-urlbar-overlap: 5px;

  --toolbarbutton-hover-background: hsla(0,0%,100%,.3) linear-gradient(hsla(0,0%,100%,.7), hsla(0,0%,100%,.2));
  --toolbarbutton-hover-boxshadow: 0 1px 0 hsla(0,0%,100%,.3) inset, 0 0 0 1px hsla(0,0%,100%,.2) inset, 0 1px 0 hsla(0,0%,0%,.03);
  --toolbarbutton-hover-bordercolor: rgb(154,154,154);

  --toolbarbutton-active-boxshadow: 0 1px 1px hsla(0,0%,0%,.1) inset, 0 0 1px hsla(0,0%,0%,.3) inset;
  --toolbarbutton-active-bordercolor: rgb(154,154,154);
  --toolbarbutton-active-background: rgba(154,154,154,.5) linear-gradient(hsla(0,0%,100%,.7), hsla(0,0%,100%,.4));

  --toolbarbutton-checkedhover-backgroundcolor: rgba(90%,90%,90%,.4);

  --toolbarbutton-combined-boxshadow: 0 0 0 1px hsla(0,0%,100%,.2);
  --toolbarbutton-combined-backgroundimage: linear-gradient(hsla(210,54%,20%,.2) 0, hsla(210,54%,20%,.2) 18px);

  --identity-box-verified-background-color: #fff;

  --panel-separator-color: ThreeDShadow;

  --urlbar-separator-color: hsla(0,0%,16%,.2);
}
*/

#main-window:-moz-lwtheme {
  --tab-hover-background-color: hsla(0,0%,100%,.15);
  --tab-selected-background-color: hsla(0,0%,100%,.38);
}

toolbar[brighttext] {
  --toolbar-background: #393f3f;
  --toolbar-border-color: #1c1f1f;

  --tab-hover-background-color: #313636;
  --tab-hover-bottom-line-color: #1c1f1f;
  --tab-selected-background-color: #343939;
  --tab-selected-bottom-line-color: #215d9c;
}

#main-window[privatebrowsingmode=temporary] {
  --tab-selected-bottom-line-color: #bc52ff;
}

#menubar-items {
  -moz-box-orient: vertical; /* for flex hack */
}

#main-menubar {
  -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
}

#navigator-toolbox {
  -moz-appearance: none;
  background-color: var(--toolbar-background);
  border-top: none;
}

#navigator-toolbox::after {
  content: "";
  display: -moz-box;
  -moz-box-ordinal-group: 101;
  height: 1px;
  background-color: var(--toolbar-border-color);
}

/* Toolbars */

#toolbar-menubar {
  -moz-box-ordinal-group: 5;
}

#nav-bar {
  -moz-box-ordinal-group: 20;
}

#TabsToolbar {
  -moz-box-ordinal-group: 100;
}

#TabsToolbar[tabsontop="true"] {
  -moz-box-ordinal-group: 10;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#nav-bar):not(#TabsToolbar) {
  -moz-box-ordinal-group: 50;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar) {
  padding-top: 1px;
  padding-bottom: 1px;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
  overflow: -moz-hidden-unscrollable;
  max-height: 4em;
  transition: min-height 170ms ease-out, max-height 170ms ease-out;
}

#navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
  min-height: 0.1px;
  max-height: 0;
  transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
}

#main-window:not([customizing]) #toolbar-menubar:not([autohide="true"]) {
  -moz-binding: url(chrome://browser/content/customizableui/toolbar.xml#toolbar-drag);
}
#main-window:not([customizing]) #nav-bar:not([tabsontop="true"]) {
  -moz-binding: url("chrome://browser/skin/gnomeBindings.xml#tabs-on-bottom") !important;
}

#navigator-toolbox > toolbar {
  -moz-appearance: none;
}

#navigator-toolbox > #toolbar-menubar,
#navigator-toolbox > #nav-bar {
  background: transparent;
}

#nav-bar ~ toolbar {
  background: transparent;
}

#nav-bar {
  border-top: none;
  padding: 4px 3px !important;
}

#nav-bar-customization-target {
  /* FIXME: It needs for shadow under buttons */
  margin-bottom: -1px;
  padding-bottom: 1px;
  /*
  overflow: visible;
  */
}

/* This only has an effect when this element is placed on the bookmarks toolbar.
 * It's 30px to make sure buttons with 18px icons fit along with the default 16px
 * icons, without changing the size of the toolbar.
 */
#personal-bookmarks {
  min-height: 30px;
}

#browser-bottombox {
  /* opaque for layers optimization */
  background-color: -moz-Dialog;
}

/* Places toolbar */
toolbarbutton.bookmark-item:not(.subviewbutton),
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
  margin: 0;
  padding: 2px 3px;
}

toolbarbutton.bookmark-item:not(.subviewbutton):not(:hover):not(:active):not([open]) {
  color: inherit;
}

toolbarbutton.bookmark-item:not(.subviewbutton):hover:active,
toolbarbutton.bookmark-item[open="true"] {
  padding-top: 3px;
  padding-bottom: 1px;
  -moz-padding-start: 4px;
  -moz-padding-end: 2px;
}

.bookmark-item:not(#home-button) > .toolbarbutton-icon,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

/* Force the display of the label for bookmarks */
.bookmark-item > .toolbarbutton-text,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text {
  display: -moz-box !important;
}

.bookmark-item > .toolbarbutton-menu-dropmarker {
  display: none;
}

/* Dropmarker for folder bookmarks */
.bookmark-item[container] > .toolbarbutton-menu-dropmarker {
  display: -moz-box !important;
}

#bookmarks-toolbar-placeholder {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
}

toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
#personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important;
}

/* ----- BOOKMARK STAR ANIMATION ----- */

@keyframes animation-bookmarkAdded {
  from { transform: rotate(0deg) translateX(-13px) rotate(0deg) scale(1); opacity: 0; }
  60%  { transform: rotate(180deg) translateX(-13px) rotate(-180deg) scale(2.2); opacity: 1; }
  80%  { opacity: 1; }
  to   { transform: rotate(180deg) translateX(-13px) rotate(-180deg) scale(1); opacity: 0; }
}

@keyframes animation-bookmarkAddedRB {
  from { transform: rotate(0deg) translateX(-16px) rotate(0deg) scale(1); opacity: 0; }
  60%  { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(2.2); opacity: 1; }
  80%  { opacity: 1; }
  to   { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(1); opacity: 0; }
}

@keyframes animation-bookmarkPulse {
  from { transform: scale(1); }
  50%  { transform: scale(1.3); }
  to   { transform: scale(1); }
}

#bookmarked-notification-container {
  min-height: 1px;
  min-width: 1px;
  height: 1px;
  margin-bottom: -1px;
  z-index: 5;
  position: relative;
}

#bookmarked-notification {
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  opacity: 0;
}

#bookmarked-notification-dropmarker-anchor {
  z-index: -1;
  position: relative;
}

#bookmarked-notification-dropmarker-icon {
  width: 16px;
  height: 16px;
  visibility: hidden;
}

#bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
  background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png");
  animation: animation-bookmarkAdded 800ms;
  animation-timing-function: ease, ease, ease;
}

#bookmarked-notification-anchor[reliefbuttons="true"][notification="finish"] > #bookmarked-notification {
  animation-name: animation-bookmarkAddedRB;
}

#bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  width: 16px;
  height: 16px;
}

#bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: none !important;
}

#bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon {
  visibility: visible;
  animation: animation-bookmarkPulse 300ms;
  animation-delay: 600ms;
  animation-timing-function: ease-out;
}

/* Bookmark menus */
menu.bookmark-item,
menuitem.bookmark-item {
  min-width: 0;
  max-width: 32em;
}

.bookmark-item:not(.subviewbutton) > .menu-iconic-left {
  margin-top: 0;
  margin-bottom: 0;
}

.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
  -moz-padding-start: 0px;
}

/* Bookmark drag and drop styles */
.bookmark-item[dragover-into="true"] {
  background: Highlight !important;
  color: HighlightText !important;
}

/* rules for menupopup drop indicators */
.menupopup-drop-indicator-bar {
  position: relative;
  /* these two margins must together compensate the indicator's height */
  margin-top: -1px;
  margin-bottom: -1px;
}

.menupopup-drop-indicator {
  list-style-image: none;
  height: 2px;
  -moz-margin-end: -4em;
  background-color: Highlight;
}

/* Bookmarks toolbar */
#PlacesToolbarDropIndicator {
  list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png);
}

/* Bookmark items */
.bookmark-item {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.bookmark-item[container] {
  list-style-image: url("chrome://symbolic-icons/skin/folder.svg");
}

.bookmark-item[container][livemark] {
  list-style-image: url("chrome://symbolic-icons/skin/rss-live.svg");
}

.bookmark-item[container][livemark] .bookmark-item {
  list-style-image: url("chrome://browser/skin/places/livemark-item.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

.bookmark-item[container][livemark] .bookmark-item[visited] {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

.bookmark-item[container][query] {
  list-style-image: url("chrome://symbolic-icons/skin/folder-saved-search.svg");
}

.bookmark-item[query][tagContainer] {
  list-style-image: url("chrome://browser/skin/places/tag.png");
}

.bookmark-item[query][dayContainer] {
  list-style-image: url("chrome://browser/skin/places/calendar.png");
}

.bookmark-item[query][hostContainer] {
  list-style-image: url("chrome://symbolic-icons/skin/folder.svg");
}

.bookmark-item[query][hostContainer][open] {
  list-style-image: url("chrome://symbolic-icons/skin/folder.svg");
}

.bookmark-item[cutting] > .toolbarbutton-icon,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
  opacity: 0.5;
}

.bookmark-item[cutting] > .toolbarbutton-text,
.bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
  opacity: 0.7;
}

/* Stock icons for the menu bar items */
menuitem:not([type]):not(.menuitem-tooltip):not(.menuitem-iconic-tooltip):not([endimage]) {
  -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
}

#placesContext_open\:newwindow,
#menu_newNavigator,
#context-openlink,
#context-openframe {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 80px 16px 64px);
}

#placesContext_open\:newtab,
#placesContext_openContainer\:tabs,
#menu_newNavigatorTab,
#context-openlinkintab,
#context-openframeintab {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 64px 16px 48px);
}

#menu_openFile {
  list-style-image: url("moz-icon://stock/gtk-open?size=menu");
}

#menu_close {
  list-style-image: url("moz-icon://stock/gtk-close?size=menu");
}

#context-media-play {
  list-style-image: url("moz-icon://stock/gtk-media-play?size=menu");
}

#context-media-pause {
  list-style-image: url("moz-icon://stock/gtk-media-pause?size=menu");
}

#menu_savePage,
#context-savelink,
#context-saveimage,
#context-savevideo,
#context-saveaudio,
#context-savepage,
#context-saveframe {
  list-style-image: url("moz-icon://stock/gtk-save-as?size=menu");
}

#menu_printPreview {
  list-style-image: url("moz-icon://stock/gtk-print-preview?size=menu");
}

#menu_print,
#context-printframe {
  list-style-image: url("moz-icon://stock/gtk-print?size=menu");
}

#menu_FileQuitItem {
  list-style-image: url("moz-icon://stock/gtk-quit?size=menu");
}

#menu_undo,
#context-undo {
  list-style-image: url("moz-icon://stock/gtk-undo?size=menu");
}

#menu_undo[disabled],
#context-undo[disabled] {
  list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled");
}

#menu_redo {
  list-style-image: url("moz-icon://stock/gtk-redo?size=menu");
}

#menu_redo[disabled] {
  list-style-image: url("moz-icon://stock/gtk-redo?size=menu&state=disabled");
}

#menu_cut,
#placesContext_cut,
#context-cut {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
}

#menu_cut[disabled],
#placesContext_cut[disabled],
#context-cut[disabled] {
  list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
}

#menu_copy,
#placesContext_copy,
#context-copy,
#context-copyimage,
#context-copyvideourl,
#context-copyaudiourl,
#context-copylink,
#context-copyemail {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
}

#menu_copy[disabled],
#placesContext_copy[disabled],
#context-copy[disabled] {
  list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
}

#menu_paste,
#placesContext_paste,
#context-paste {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
}

#menu_paste[disabled],
#placesContext_paste[disabled],
#context-paste[disabled] {
  list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
}

#menu_delete,
#placesContext_delete,
#placesContext_delete_history,
#context-delete {
  list-style-image: url("moz-icon://stock/gtk-delete?size=menu");
}

#menu_delete[disabled],
#placesContext_delete[disabled],
#placesContext_delete_history[disabled],
#context-delete[disabled] {
  list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled");
}

#menu_selectAll,
#context-selectall {
  list-style-image: url("moz-icon://stock/gtk-select-all?size=menu");
}

#menu_find {
  list-style-image: url("moz-icon://stock/gtk-find?size=menu");
}

#menu_find[disabled] {
  list-style-image: url("moz-icon://stock/gtk-find?size=menu&state=disabled");
}

#menu_preferences {
  list-style-image: url("moz-icon://stock/gtk-preferences?size=menu");
}

#placesContext_reload,
#context-reloadframe {
  list-style-image: url("moz-icon://stock/gtk-refresh?size=menu");
}

#menu_zoomEnlarge {
  list-style-image: url("moz-icon://stock/gtk-zoom-in?size=menu");
}

#menu_zoomReduce {
  list-style-image: url("moz-icon://stock/gtk-zoom-out?size=menu");
}

#menu_zoomReset {
  list-style-image: url("moz-icon://stock/gtk-zoom-100?size=menu");
}

#menu_showAllHistory {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 32px 16px 16px);
}

#bookmarksShowAll {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 48px 16px 32px);
}

#subscribeToPageMenuitem:not([disabled]),
#subscribeToPageMenupopup,
#BMB_subscribeToPageMenuitem:not([disabled]),
#BMB_subscribeToPageMenupopup {
  list-style-image: url("chrome://browser/skin/page-livemarks.png");
}

#bookmarksToolbarFolderMenu,
#BMB_bookmarksToolbar,
#panelMenu_bookmarksToolbar {
  list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
}

#BMB_unsortedBookmarks,
#panelMenu_unsortedBookmarks {
  list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
}

#panelMenu_pocket,
#menu_pocket,
#BMB_pocket {
  list-style-image: url("chrome://browser/content/pocket/panels/img/pocketmenuitem16.png");
}

#menu_openDownloads {
  list-style-image: url("chrome://browser/skin/Toolbar-small.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

#menu_openAddons {
  list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
}

#menu_pageInfo,
#context-viewinfo,
#context-viewframeinfo {
  list-style-image: url("moz-icon://stock/gtk-info?size=menu");
}

#placesContext_open\:newprivatewindow,
#privateBrowsingItem {
  list-style-image: url("chrome://browser/skin/Privacy-16.png");
}

#placesContext_show\:info {
  list-style-image: url("moz-icon://stock/gtk-properties?size=menu");
}

#sanitizeItem {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
}

#menu_openHelp {
  list-style-image: url("moz-icon://stock/gtk-help?size=menu");
}

#aboutName {
  list-style-image: url("moz-icon://stock/gtk-about?size=menu");
}

#javascriptConsole {
  list-style-image: url("chrome://global/skin/console/console.png");
}

/* Primary toolbar buttons */

/* ... */

toolbarbutton.badged-button[cui-areatype="toolbar"] > .toolbarbutton-badge-container > .toolbarbutton-icon,
toolbarbutton[type="socialmark"][cui-areatype="toolbar"] > .toolbarbutton-icon {
  max-width: 16px !important;
}

/* Help SDK icons fit: */
toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-icon,
toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-badge-stack > .toolbarbutton-icon {
  width: 16px;
}

#back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
#forward-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

/* tabview menu item */

#menu_tabview {
  list-style-image: url(chrome://symbolic-icons/skin/tabview.svg);
}

#menu_tabview[groups="0"] {
  list-style-image: url(chrome://symbolic-icons/skin/tabview-0.svg);
}

#menu_tabview[groups="1"] {
  list-style-image: url(chrome://symbolic-icons/skin/tabview-1.svg);
}

#menu_tabview[groups="2"] {
  list-style-image: url(chrome://symbolic-icons/skin/tabview-2.svg);
}

#menu_tabview[groups="3"] {
  list-style-image: url(chrome://symbolic-icons/skin/tabview-3.svg);
}

/* undo close tab menu item */
#alltabs_undoCloseTab {
  list-style-image: url(chrome://browser/skin/undoCloseTab.png);
}

.unified-nav-back[_moz-menuactive] {
  list-style-image: url(chrome://symbolic-icons/skin/go-previous.svg) !important;
}
.unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
  list-style-image: url(chrome://symbolic-icons/skin/go-next.svg) !important;
}
.unified-nav-forward[_moz-menuactive] {
  list-style-image: url(chrome://symbolic-icons/skin/go-next.svg) !important;
}
.unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
  list-style-image: url(chrome://symbolic-icons/skin/go-previous.svg) !important;
}

/* Menu panel buttons */

#back-button {
  list-style-image: url(chrome://symbolic-icons/skin/go-previous.svg);
}

#forward-button {
  list-style-image: url(chrome://symbolic-icons/skin/go-next.svg);
}

#home-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/user-home.svg);
}

#bookmarks-menu-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/bookmark-new.svg);
}

#bookmarks-menu-button[cui-areatype="toolbar"][starred] {
  list-style-image: url(chrome://symbolic-icons/skin/user-bookmarks.svg);
}

#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
  list-style-image: url(chrome://symbolic-icons/skin/view-more-bookmarks.svg);
}

#history-panelmenu[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/document-open-recent.svg);
}

#downloads-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/download.svg);
}

#add-ons-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/addon.svg);
}

#open-file-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/open.svg);
}

#save-page-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/document-save-as.svg);
}

#sync-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-synchronizing.svg);
}

#sync-button[cui-areatype="toolbar"][status="active"] > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#azure);
}

#feed-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/rss.svg);
}

#social-share-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-shared.svg);
}

#characterencoding-button[cui-areatype="toolbar"]{
  list-style-image: url(chrome://symbolic-icons/skin/accessories-character-map.svg);
}

#new-window-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/new-window.svg);
}

#e10s-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/new-window.svg);
}

#e10s-button > .toolbarbutton-icon {
  transform: scaleY(-1);
}

#new-tab-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/tab-new.svg);
}

#privatebrowsing-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/privatebrowsing.svg);
}

#find-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/edit-find.svg);
}

#print-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/printer.svg);
}

#fullscreen-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/view-fullscreen.svg);
}

#developer-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/devtools.svg);
}

#preferences-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-system.svg);
}

#PanelUI-menu-button {
  list-style-image: url(chrome://symbolic-icons/skin/open-menu.svg);
}

#PanelUI-menu-button.thumburger {
  list-style-image: url("chrome://browser/skin/customizableui/thumburger.png") !important;
  -moz-image-region: auto !important;
}

toolbar[brighttext] #PanelUI-menu-button.thumburger {
  list-style-image: url("chrome://browser/skin/customizableui/thumburger-inverted.png") !important;
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-cut.svg);
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-copy.svg);
}

#edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-paste.svg);
}

#zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button {
  list-style-image: url(chrome://symbolic-icons/skin/zoom-out.svg);
}

#zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button {
  list-style-image: url(chrome://symbolic-icons/skin/zoom-in.svg);
}

#nav-bar-overflow-button {
  list-style-image: url(chrome://symbolic-icons/skin/overflow-button.svg);
  -moz-image-region: auto;
}

#nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#tabview-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/tabview.svg);
}

#email-link-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/mail-unread.svg);
}

#sidebar-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/sidebar.svg);
}

#panic-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/forget.svg);
}

#panic-button[cui-areatype="toolbar"][open] {
  list-style-image: url(chrome://symbolic-icons/skin/forget-red.svg);
}

#panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#web-apps-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/moz-apps.svg);
}

#loop-button {
  list-style-image: url(chrome://browser/skin/loop/toolbar.png);
  -moz-image-region: rect(0, 18px, 18px, 0);
}

toolbar[brighttext] #loop-button {
  list-style-image: url(chrome://browser/skin/loop/toolbar-inverted.png);
}

#loop-button[state="disabled"],
#loop-button[disabled="true"] {
  -moz-image-region: rect(0, 36px, 18px, 18px);
}

#loop-button:not([disabled="true"])[state="error"] {
  -moz-image-region: rect(0, 54px, 18px, 36px);
}

#loop-button:not([disabled="true"])[state="action"] {
  -moz-image-region: rect(0, 72px, 18px, 54px);
}

#loop-button:not([disabled="true"])[state="action"]:-moz-any(:hover,:hover:active,[open]) {
  -moz-image-region: rect(0, 90px, 18px, 72px);
}

#loop-button:not([disabled="true"])[state="active"] {
  -moz-image-region: rect(0, 108px, 18px, 90px);
}

#loop-button:not([disabled="true"])[state="active"]:-moz-any(:hover,:hover:active,[open]) {
  -moz-image-region: rect(0, 126px, 18px, 108px);
}

#pocket-button[cui-areatype="toolbar"] {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket.svg);
}

#pocket-button[cui-areatype="toolbar"][open] {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket-added.svg);
}

/* Menu panel and palette styles */

toolbaritem[sdkstylewidget="true"] > toolbarbutton {
  /* FIXME */
  list-style-image: url(chrome://browser/skin/menuPanel.png);
}

#home-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #home-button {
  list-style-image: url(chrome://symbolic-icons/skin/user-home.svg);
}

#bookmarks-menu-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
  list-style-image: url(chrome://symbolic-icons/skin/user-bookmarks.svg);
}

#history-panelmenu[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #history-panelmenu {
  list-style-image: url(chrome://symbolic-icons/skin/document-open-recent.svg);
}

#downloads-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #downloads-button {
  list-style-image: url(chrome://symbolic-icons/skin/download.svg);
}

#add-ons-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #add-ons-button {
  list-style-image: url(chrome://symbolic-icons/skin/addon.svg);
}

#open-file-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #open-file-button {
  list-style-image: url(chrome://symbolic-icons/skin/open.svg);
}

#save-page-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #save-page-button {
  list-style-image: url(chrome://symbolic-icons/skin/document-save-as.svg);
}

#sync-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #sync-button {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-synchronizing.svg);
}

#sync-button[cui-areatype="menu-panel"][status="active"] .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#azure);
}

#feed-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #feed-button {
  list-style-image: url(chrome://symbolic-icons/skin/rss.svg);
}

#social-share-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #social-share-button {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-shared.svg);
}

#characterencoding-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #characterencoding-button {
  list-style-image: url(chrome://symbolic-icons/skin/accessories-character-map.svg);
}

#new-window-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #new-window-button {
  list-style-image: url(chrome://symbolic-icons/skin/new-window.svg);
}

#e10s-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #e10s-button {
  list-style-image: url(chrome://symbolic-icons/skin/new-window.svg);
}

#new-tab-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #new-tab-button {
  list-style-image: url(chrome://symbolic-icons/skin/tab-new.svg);
}

#privatebrowsing-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
  list-style-image: url(chrome://symbolic-icons/skin/privatebrowsing.svg);
}

#tabview-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #tabview-button {
  list-style-image: url(chrome://symbolic-icons/skin/tabview.svg);
}

#find-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #find-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-find.svg);
}

#print-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #print-button {
  list-style-image: url(chrome://symbolic-icons/skin/printer.svg);
}

#fullscreen-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #fullscreen-button {
  list-style-image: url(chrome://symbolic-icons/skin/view-fullscreen.svg);
}

#developer-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #developer-button {
  list-style-image: url(chrome://symbolic-icons/skin/devtools.svg);
}

#preferences-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #preferences-button {
  list-style-image: url(chrome://symbolic-icons/skin/emblem-system.svg);
}

#email-link-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #email-link-button {
  list-style-image: url(chrome://symbolic-icons/skin/mail-unread.svg);
}

#sidebar-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #sidebar-button {
  list-style-image: url(chrome://symbolic-icons/skin/sidebar.svg);
}

#panic-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #panic-button {
  list-style-image: url(chrome://symbolic-icons/skin/forget.svg);
}

#web-apps-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #web-apps-button {
  list-style-image: url(chrome://symbolic-icons/skin/moz-apps.svg);
}

#webide-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #webide-button {
  list-style-image: url(chrome://browser/skin/menuPanel.png);
  -moz-image-region: rect(0px, 960px, 32px, 928px);
}

#pocket-button[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #pocket-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket.svg);
}

toolbaritem[sdkstylewidget="true"] > toolbarbutton {
  /* FIXME */
  -moz-image-region: rect(0, 832px, 32px, 800px);
}

#loop-button[cui-areatype="menu-panel"] > .toolbarbutton-badge-container,
toolbarpaletteitem[place="palette"] > #loop-button > .toolbarbutton-badge-container {
  list-style-image: url(chrome://browser/skin/loop/menuPanel.png);
  -moz-image-region: rect(0, 32px, 32px, 0);
}

/* Make sure that the state icons are not shown in the customization palette. */
toolbarpaletteitem[place="palette"] > #loop-button > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 32px, 32px, 0) !important;
}

#loop-button[cui-areatype="menu-panel"][state="disabled"] > .toolbarbutton-badge-container,
#loop-button[cui-areatype="menu-panel"][disabled="true"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 64px, 32px, 32px);
}

#loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="error"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 96px, 32px, 64px);
}

#loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="action"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 128px, 32px, 96px);
}

#loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="action"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 160px, 32px, 128px);
}

#loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="active"] > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 192px, 32px, 160px);
}

#loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="active"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
  -moz-image-region: rect(0, 224px, 32px, 192px);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-cut.svg);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-copy.svg);
}

#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button,
toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
  list-style-image: url(chrome://symbolic-icons/skin/edit-paste.svg);
}

#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button,
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
  list-style-image: url(chrome://symbolic-icons/skin/zoom-out.svg);
}

#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button,
toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
  list-style-image: url(chrome://symbolic-icons/skin/zoom-in.svg);
}

#add-share-provider {
  list-style-image: url(chrome://browser/skin/menuPanel-small.png);
  -moz-image-region: rect(0px, 96px, 16px, 80px);
}

/* */

/*toolbaritem[sdkstylewidget="true"] > toolbarbutton .toolbarbutton-icon,*/
:-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, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)[cui-areatype="menu-panel"] .toolbarbutton-icon,
:-moz-any(#edit-controls, #zoom-controls)[cui-areatype="menu-panel"] .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > :-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, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button) .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > :-moz-any(#edit-controls, #zoom-controls) .toolbarbutton-icon {
  opacity: .6;
}

:-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, #privatebrowsing-button, #save-page-button, #add-ons-button, #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button, #email-link-button, #sidebar-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button, #pocket-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button, #copy-button, #paste-button)[cui-areatype="menu-panel"][panel-multiview-anchor=true] .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
  opacity: 1;
}

#main-window:not([customizing]) .toolbarbutton-1[cui-areatype="menu-panel"][disabled=true] > .toolbarbutton-icon,
#main-window:not([customizing]) .toolbarbutton-1[cui-areatype="menu-panel"][disabled=true] > .toolbarbutton-menu-dropmarker,
#main-window:not([customizing]) .toolbarbutton-1[cui-areatype="menu-panel"][disabled=true] > .toolbarbutton-menubutton-dropmarker,
#main-window:not([customizing]) .toolbarbutton-1[cui-areatype="menu-panel"][disabled=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#main-window:not([customizing]) .toolbarbutton-1[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-button[disabled=true] > .toolbarbutton-icon {
  opacity: .3;
}

/* ::::: Fullscreen window controls ::::: */

:-moz-any(#window-controls, .window-controls) {
  background: linear-gradient(transparent, rgba(197,197,197,0.9) 18%, rgba(197,197,197,1), rgba(197,197,197,0.9) 82%, transparent) no-repeat,
              linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1)) no-repeat;
  background-size: 1px 100%, 1px 100%;
  background-position: 0 0, 1px 0;

  overflow: hidden;
  margin: -1px 3px !important;
  -moz-margin-start: 3px !important;
  padding: 1px 0;
  -moz-padding-start: 7px;
}

toolbar[brighttext] :-moz-any(#window-controls, .window-controls) {
  background-image: linear-gradient(transparent, rgba(41,46,46,0.9) 18%, rgba(41,46,46,1), rgba(41,46,46,0.9) 82%, transparent),
                    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}

#toolbar-menubar > :-moz-any(#window-controls, .window-controls) {
  margin: 0 2px !important;
  -moz-margin-end: 6px !important;
  padding: 2px 0;
  -moz-padding-start: 7px;
}

#TabsToolbar > :-moz-any(#window-controls, .window-controls) {
  margin: 0px 3px 2px 3px !important;
  -moz-margin-start: 6px !important;
}

:-moz-any(#window-controls, .window-controls) > toolbarbutton {
  height: 100%;
  min-width: 28px !important;
  margin: 0 !important;
  position: relative;
}

/* Icons */

#minimize-button {
  list-style-image: url(chrome://symbolic-icons/skin/window-minimize.svg);
}

:-moz-any(#restore-button, #fullscreen-leave-button) {
  list-style-image: url(chrome://symbolic-icons/skin/view-fullscreen-leave.svg);
}

#close-button {
  list-style-image: url(chrome://symbolic-icons/skin/close.svg);
}

:-moz-any(#minimize-button, #restore-button, #fullscreen-leave-button, #close-button) > .toolbarbutton-icon {
  opacity: .8;
}

:-moz-any(#minimize-button, #restore-button, #fullscreen-leave-button, #close-button):active:hover > .toolbarbutton-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
  opacity: 1;
}

/* Show/hide buttons */

#minimize-button,
#close-button {
  display: none;
}

#TabsToolbar #window-controls {
  display: none;
}

#main-window:not([sizemode="fullscreen"]) .window-controls {
  display: none;
}

/* ::::: Location bar ::::: */

/* remove ugly white border around location and searchbars */
#urlbar, .searchbar-textbox {
 -moz-appearance: none;
  background: linear-gradient(to bottom, #f0f0f0, #fff);
  border: 1px solid;
  border-color: #b2b6b2 #b8bbb8 #bdbfbd;
  border-radius: 3px;
  box-shadow: inset 0px 1px 2px 0px rgba(0,0,0,0.15), 0px 1px 0 0 rgba(255,255,255,0.37);
  color: ButtonText;
  margin: 0px 3px;
  min-height: 28px;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  transition-property: border, box-shadow;
  transition-duration: 200ms;
}

#urlbar:-moz-lwtheme,
.searchbar-textbox:-moz-lwtheme {
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
  border-color: rgba(50,50,50,.4);
  box-shadow: inset 0px 1px 2px 0px rgba(0,0,0,0.15), 0px 1px 0 0 rgba(255,255,255,0.15);
}

toolbar[brighttext] #urlbar,
toolbar[brighttext] .searchbar-textbox {
  background: linear-gradient(to bottom, rgba(50,50,50,0.5), rgba(50,50,50,0.8));
  border-color: rgba(30,30,30,.4);
  box-shadow: inset 0px 1px 2px 0px rgba(0,0,0,0.15), 0px 1px 0 0 rgba(255,255,255,0.1);
  color: #fff;
}

#urlbar[focused="true"],
.searchbar-textbox[focused="true"] {
  border-color: #729fcf;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), inset 0 1px 2px 0 rgba(0,106,221,0.3);
}

.urlbar-textbox-container {
  -moz-appearance: none;
  -moz-box-align: stretch;
}

.urlbar-input-box {
  -moz-margin-start: 0;
  padding-top: 3px;
  padding-bottom: 3px;
}

#urlbar-container {
  /*
  -moz-box-align: center;
  */
  -moz-box-orient: horizontal;
  -moz-box-align: stretch;
}

#urlbar-icons {
  -moz-box-align: center;
}

.urlbar-icon {
  height: 26px;
  padding: 5px;
}

#urlbar-search-footer {
  border-top: 1px solid hsla(210,4%,10%,.14);
  background-color: hsla(210,4%,10%,.07);
}

#urlbar-search-settings {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  color: inherit;
  margin: 0;
  border: 0;
  padding: 8px 20px;
  background: transparent;
}

#urlbar-search-settings:hover {
  background-color: hsla(210,4%,10%,.07);
}

#urlbar-search-settings:hover:active {
  background-color: hsla(210,4%,10%,.12);
}

#urlbar-search-splitter {
  -moz-appearance: none;
  -moz-margin-start: -3px;
  -moz-margin-end: -3px;
  width: 6px;
}

#urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
}

#urlbar-display-box {
  margin-top: -1px;
  margin-bottom: -1px;
  -moz-border-end: 1px solid #AAA;
  -moz-margin-end: 3px;
}

.urlbar-display {
  margin-top: 0;
  margin-bottom: 0;
  -moz-margin-start: 0;
  color: GrayText;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] {
  border-bottom: 1px solid hsla(210, 4%, 10%, 0.14);
  background-color: hsla(210, 4%, 10%, 0.07);
  padding: 6px 0;
  -moz-padding-start: 44px;
  -moz-padding-end: 6px;
  background-image: url("chrome://browser/skin/info.svg");
  background-clip: padding-box;
  background-position: 20px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"]:-moz-locale-dir(rtl) {
  background-position: right 20px center;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description {
  margin: 0;
  padding: 0;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description > label.text-link {
  -moz-margin-start: 0;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button {
  -moz-appearance: none;
  -moz-user-focus: ignore;
  min-width: 80px;
  border-radius: 3px;
  padding: 4px 16px;
  margin: 0;
  -moz-margin-start: 10px;
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"] {
  color: hsl(210, 0%, 38%);
  background-color: hsl(210, 0%, 88%);
  border: 1px solid hsl(210, 0%, 82%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"]:hover {
  background-color: hsl(210, 0%, 84%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"] {
  color: white;
  background-color: hsl(93, 82%, 44%);
  border: 1px solid hsl(93, 82%, 44%);
}

#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"]:hover {
  background-color: hsl(93, 82%, 40%);
}

#search-container {
  min-width: calc(54px + 11ch);
}

/* ::::: Identity box ::::: */

#identity-box {
  padding: 1px;
  margin: 0;
  font-size: .9em;
  min-width: 26px;
}

#identity-box:-moz-focusring {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

#identity-icon-labels {
  -moz-padding-start: 2px;
  -moz-padding-end: 5px;
}

#identity-box:-moz-any(:hover:active, [open="true"]),
#identity-box:-moz-any(:hover:active, [open="true"]):before {
  background: linear-gradient(to bottom, #d1d1d1, #fff);
  box-shadow: inset 0 1px 1px -1px hsla(0,0%,0%,.15);
}
toolbar[brighttext] #identity-box:-moz-any(:hover:active, [open="true"]),
toolbar[brighttext] #identity-box:-moz-any(:hover:active, [open="true"]):before {
  background-image: linear-gradient(to bottom, #272727, #333333);
}

/* */
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI,
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI:before {
  background: hsla(0,0%,78%,.15);
}
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.chromeUI,
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:before {
  background: hsla(0,0%,100%,.05);
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI {
  -moz-border-end: 1px solid hsla(0,0%,39%,.25);
  -moz-margin-end: 4px;
}
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.chromeUI {
  -moz-border-end: 1px solid hsla(0,0%,0%,.25);
}

#urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-any(:hover:active, [open="true"]),
#urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-any(:hover:active, [open="true"]):before {
  background: linear-gradient(to bottom, #d1d1d1, #fff);
  box-shadow: inset 0 1px 1px -1px hsla(0,0%,0%,.15);
}

toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-any(:hover:active, [open="true"]),
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-any(:hover:active, [open="true"]):before {
  background-image: linear-gradient(to bottom, #272727, #333333);
}

/* */
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity,
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:before {
  background: hsla(90,81%,45%,.15);
}
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity,
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:before {
  background: hsla(0,0%,100%,.05);
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
  -moz-border-end: 1px solid hsla(90,81%,45%,.25);
  color: #00aa00;
  -moz-margin-end: 4px;
}
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
  -moz-border-end: 1px solid hsla(0,0%,0%,.25);
  color: inherit;
}

#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-any(:hover:active, [open="true"]),
#urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-any(:hover:active, [open="true"]):before {
  background: linear-gradient(to bottom, hsla(90,81%,45%,.25), hsla(90,81%,45%,.05));
}
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-any(:hover:active, [open="true"]),
toolbar[brighttext] #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-any(:hover:active, [open="true"]):before {
  background-image: linear-gradient(to bottom, #272727, #333333);
  box-shadow: inset 0 1px 1px -1px hsla(0,0%,0%,.15);
}

/* TRACKING PROTECTION ICON */

#tracking-protection-icon {
  width: 16px;
  height: 16px;
  margin-inline-start: 0;
  margin-inline-end: 2px;
  list-style-image: url(chrome://browser/skin/tracking-protection-16.svg);
  opacity: 1;
}

#tracking-protection-icon[state="loaded-tracking-content"] {
  list-style-image: url(chrome://browser/skin/tracking-protection-disabled-16.svg);
}

#tracking-protection-icon[animate] {
  transition: margin-left 200ms ease-out, margin-right 200ms ease-out;
}

#tracking-protection-icon:not([state]) {
  margin-inline-start: -18px;
  pointer-events: none;
  opacity: 0;
  /* Only animate the shield in, when it disappears hide it immediately. */
  transition: none;
}

#urlbar[pageproxystate="invalid"] > #identity-box > #identity-icons > #tracking-protection-icon {
  visibility: collapse;
}

/* page proxy icon */

#page-proxy-favicon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-bottom: 2px;
  -moz-margin-start: 4px;
  -moz-margin-end: 3px;
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#generic);
  opacity: 0.35;
}

toolbar[brighttext] #page-proxy-favicon {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#generic-bright);
  opacity: 0.2;
}

.chromeUI > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#brand);
}
toolbar[brighttext] .chromeUI > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#brand-bright);
}

.verifiedDomain > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#https);
}
toolbar[brighttext] .verifiedDomain > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#https-bright);
}

.verifiedIdentity > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#https-ev);
  opacity: 0.6;
}

.mixedActiveContent > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#https-mixed-active);
  opacity: 0.6;
}

.weakCipher > #identity-icons > #page-proxy-favicon[pageproxystate="valid"],
.mixedDisplayContent > #identity-icons > #page-proxy-favicon[pageproxystate="valid"],
.mixedDisplayContentLoadedActiveBlocked > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  list-style-image: url(chrome://symbolic-icons/skin/identity-icons.svg#https-mixed-display);
  opacity: 0.5;
}

.mixedActiveBlocked > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
  /* FIXME */
  list-style-image: url(chrome://browser/skin/identity-mixed-active-blocked.svg);
}

/* FIXME */
#urlbar[actiontype="searchengine"] > #identity-box > #identity-icons > #page-proxy-favicon {
  list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon);
}

#identity-popup.chromeUI > #identity-popup-container > #identity-popup-icon {
  list-style-image: url("chrome://branding/content/icon64.png");
}

#identity-popup-brandName {
  font-weight: bold;
  font-size: 1.25em;
  margin-top: .5em;
  margin-bottom: .5em;
}

#identity-popup-content-box {
  max-width: 50ch;
}

#identity-box:-moz-any(:hover, :active, [open="true"]) > #identity-icons > #page-proxy-favicon {
  opacity: 1;
}

/* ::::: Identity popup icons ::::: */

.popup-notification-icon {
  width: 64px;
  height: 64px;
  -moz-margin-end: 10px;
}

.popup-notification-icon[popupid="geolocation"] {
  list-style-image: url(chrome://browser/skin/Geolocation-64.png);
}

.popup-notification-icon[popupid="push"] {
  list-style-image: url(chrome://browser/skin/Push-64.png);
}

.popup-notification-icon[popupid="xpinstall-disabled"],
.popup-notification-icon[popupid="addon-install-blocked"],
.popup-notification-icon[popupid="addon-install-origin-blocked"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-blocked.svg);
}

.popup-notification-icon[popupid="addon-progress"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-downloading.svg);
}

.popup-notification-icon[popupid="addon-install-failed"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-error.svg);
}

.popup-notification-icon[popupid="addon-install-confirmation"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-confirm.svg);
}

#addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-warning.svg);
}

.popup-notification-icon[popupid="addon-install-complete"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-installed.svg);
}

.popup-notification-icon[popupid="addon-install-restart"] {
  list-style-image: url(chrome://browser/skin/addons/addon-install-restart.svg);
}

.popup-notification-icon[popupid="click-to-play-plugins"] {
  list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png);
}

.popup-notification-icon[popupid="web-notifications"] {
  list-style-image: url(chrome://browser/skin/notification-64.png);
}

.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
.popup-notification-icon[popupid*="offline-app-requested"],
.popup-notification-icon[popupid="offline-app-usage"] {
  list-style-image: url(chrome://global/skin/icons/question-64.png);
}

.popup-notification-icon[popupid="password"] {
  list-style-image: url(chrome://mozapps/skin/passwordmgr/key-64.png);
}

.popup-notification-icon[popupid="webapps-install-progress"],
.popup-notification-icon[popupid="webapps-install"] {
  list-style-image: url(chrome://global/skin/icons/webapps-64.png);
}

.popup-notification-icon[popupid="webRTC-sharingDevices"],
.popup-notification-icon[popupid="webRTC-shareDevices"] {
  list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png);
}

.popup-notification-icon[popupid="webRTC-sharingMicrophone"],
.popup-notification-icon[popupid="webRTC-shareMicrophone"] {
  list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64.png);
}

.popup-notification-icon[popupid="webRTC-sharingScreen"],
.popup-notification-icon[popupid="webRTC-shareScreen"] {
  list-style-image: url(chrome://browser/skin/webRTC-shareScreen-64.png);
}

@media (min-resolution: 1.1dppx) {
  .popup-notification-icon[popupid="webRTC-sharingDevices"],
  .popup-notification-icon[popupid="webRTC-shareDevices"] {
    list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64@2x.png);
  }

  .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
  .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
    list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64@2x.png);
  }

  .popup-notification-icon[popupid="webRTC-sharingScreen"],
  .popup-notification-icon[popupid="webRTC-shareScreen"] {
    list-style-image: url(chrome://browser/skin/webRTC-shareScreen-64@2x.png);
  }

}

.popup-notification-icon[popupid="pointerLock"] {
  list-style-image: url(chrome://browser/skin/pointerLock-64.png);
}

.popup-notification-icon[popupid="servicesInstall"] {
  list-style-image: url(chrome://browser/skin/social/services-64.png);
}

.addon-progress-description {
  width: 350px;
  max-width: 350px;
}

.popup-progress-label,
.popup-progress-meter {
  -moz-margin-start: 0;
  -moz-margin-end: 0;
}

.popup-progress-cancel {
  -moz-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  -moz-margin-start: 5px;
  min-height: 0;
  min-width: 0;
  list-style-image: url("moz-icon://stock/gtk-cancel?size=menu");
}

#notification-popup .close-icon > .toolbarbutton-icon {
  padding: 0;
}

/* Notification icon box */
#notification-popup-box {
  position: relative;
  background-color: hsla(0,0%,100%,.4);
  background-clip: padding-box;
  padding-left: 4px;
  border-radius: 2.5px 0 0 2.5px;
  border-width: 0 8px 0 0;
  border-style: solid;
  border-color: #fff;
  border-image: url(chrome://browser/skin/urlbar-arrow.svg) 0 8 0 0 fill;
  -moz-margin-end: 0;
  z-index: 1;
}

toolbar[brighttext] #notification-popup-box {
  background-color: hsla(0,0%,100%,.05);
  border-image: url(chrome://browser/skin/urlbar-arrow-dark.svg) 0 8 0 0 fill;
}

#notification-popup-box[hidden] {
  /* Override display:none to make the pluginBlockedNotification animation work
     when showing the notification repeatedly. */
  display: -moz-box;
  visibility: collapse;
}

#notification-popup-box:-moz-locale-dir(rtl),
.notification-anchor-icon:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

#notification-popup-box[hidden] + #identity-box:before {
  display: none;
}

.notification-anchor-icon {
  list-style-image: url(moz-icon://stock/gtk-dialog-info?size=16);
  width: 16px;
  height: 16px;
  opacity: 0.5;
  margin: 0 2px;
}

@media (min-resolution: 1.1dppx) {
  .notification-anchor-icon {
    list-style-image: url(moz-icon://stock/gtk-dialog-info?size=dialog);
  }
}

.notification-anchor-icon:-moz-focusring {
  outline: 1px dotted -moz-DialogText;
}

toolbar[brighttext] #notification-popup-box .notification-anchor-icon {
  opacity: 0.4;
}

#identity-box {
  position: relative;
}

#notification-popup-box:not([hidden]) + #identity-box {
  border-radius: 0;
}

#identity-box:before {
  clip-path: url(chrome://browser/skin/identity-box.svg#arrow-clip-path);
  content: "";
  display: -moz-box;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 8px;
  margin: 0;
  -moz-margin-start: -8px;
}
#identity-box:-moz-locale-dir(rtl):before {
  right: 0;
  transform: scaleX(-1);
}

.default-notification-icon,
#default-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/information.svg);
}

.identity-notification-icon,
#identity-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/profile.svg);
}

.geo-notification-icon,
#geo-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/geolocation.svg);
}

#push-notification-icon {
  list-style-image: url(chrome://browser/skin/Push-16.png);
}

#addons-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/addon.svg);
}

.indexedDB-notification-icon,
#indexedDB-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/question.svg);
}

#password-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/key.svg);
}

#login-fill-notification-icon {
  /* Temporary icon until the capture and fill doorhangers are unified. */
  list-style-image: url(chrome://symbolic-icons/skin/key.svg);
  transform: scaleX(-1);
}

.webapps-notification-icon,
#webapps-notification-icon {
  /** FIXME **/
  /*
  list-style-image: url(chrome://browser/skin/webapps-16.png);
  */
  list-style-image: url(chrome://symbolic-icons/skin/plugin.svg);
}

#plugins-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/plugin.svg);
}

#plugins-notification-icon.plugin-hidden {
  list-style-image: url(chrome://symbolic-icons/skin/plugin-alert.svg);
}

#plugins-notification-icon.plugin-blocked {
  list-style-image: url(chrome://symbolic-icons/skin/plugin-blocked.svg);
}

#plugins-notification-icon.plugin-blocked[showing] {
  animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
}

@keyframes pluginBlockedNotification {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.webRTC-shareDevices-notification-icon,
#webRTC-shareDevices-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/webRTC-share-device.svg);
}

.webRTC-sharingDevices-notification-icon,
#webRTC-sharingDevices-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/webRTC-sharing-device.svg);
}

.webRTC-shareMicrophone-notification-icon,
#webRTC-shareMicrophone-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16.png);
}

.webRTC-sharingMicrophone-notification-icon,
#webRTC-sharingMicrophone-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16.png);
}

.webRTC-shareScreen-notification-icon,
#webRTC-shareScreen-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16.png);
}

.webRTC-sharingScreen-notification-icon,
#webRTC-sharingScreen-notification-icon {
  list-style-image: url(chrome://browser/skin/webRTC-sharingScreen-16.png);
}

@media (min-resolution: 1.1dppx) {
  .webRTC-shareMicrophone-notification-icon,
  #webRTC-shareMicrophone-notification-icon {
    list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16@2x.png);
  }

  .webRTC-sharingMicrophone-notification-icon,
  #webRTC-sharingMicrophone-notification-icon {
    list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16@2x.png);
  }

  .webRTC-shareScreen-notification-icon,
  #webRTC-shareScreen-notification-icon {
    list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16@2x.png);
  }

  .webRTC-sharingScreen-notification-icon,
  #webRTC-sharingScreen-notification-icon {
    list-style-image: url(chrome://browser/skin/webRTC-sharingScreen-16@2x.png);
  }
}

.web-notifications-notification-icon,
#web-notifications-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/notification.svg);
}

.pointerLock-notification-icon,
#pointerLock-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/pointer-lock.svg);
}

#servicesInstall-notification-icon {
  list-style-image: url(chrome://browser/skin/social/services-16.png);
}

/* EME notifications */

.popup-notification-icon[popupid="drmContentPlaying"],
#eme-notification-icon {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
}

#eme-notification-icon:hover:active {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains-pressed");
}

#eme-notification-icon[firstplay=true] {
  animation: emeTeachingMoment 0.2s linear 0s 5 normal;
}

@keyframes emeTeachingMoment {
  0% {transform: translateX(0); }
  25% {transform: translateX(3px) }
  75% {transform: translateX(-3px) }
  100% { transform: translateX(0); }
}

.popup-notification-body[popupid="addon-progress"],
.popup-notification-body[popupid="addon-install-confirmation"] {
  width: 28em;
  max-width: 28em;
}

.addon-install-confirmation-name {
  font-weight: bold;
}

.indexedDB-notification-icon,
#indexedDB-notification-icon {
  list-style-image: url(moz-icon://stock/gtk-dialog-question?size=16);
}

.translate-notification-icon,
#translate-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/translate.svg);
  opacity: .3;
}

.translated-notification-icon,
#translated-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/translate.svg);
}

/* Translation infobar */

/* See also global/notificationButton.inc.css */

notification[value="translation"] .messageImage {
  list-style-image: url(chrome://browser/skin/translation-16.png);
  -moz-image-region: rect(0, 32px, 16px, 16px);
  filter: none;
}

@media (min-resolution: 1.25dppx) {
  notification[value="translation"] .messageImage {
    list-style-image: url(chrome://browser/skin/translation-16@2x.png);
    -moz-image-region: rect(0, 64px, 32px, 32px);
  }
}

notification[value="translation"][state="translating"] .messageImage {
  list-style-image: url(chrome://browser/skin/translating-16.png);
  -moz-image-region: auto;
  filter: none;
}

@media (min-resolution: 1.25dppx) {
  notification[value="translation"][state="translating"] .messageImage {
    list-style-image: url(chrome://browser/skin/translating-16@2x.png);
  }
}

notification[value="translation"] hbox[anonid="details"] {
  overflow: hidden;
}

notification[value="translation"] button,
notification[value="translation"] menulist {
  -moz-appearance: none;
  border-width: 1px;
  -moz-border-top-colors: none;
  -moz-border-right-colors: none;
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  border-radius: 2px;
  min-width: 0;
  box-shadow: 0 1px rgba(255, 255, 255, 0.5), 0 1px rgba(255, 255, 255, 0.5) inset;
}

notification[value="translation"] menulist > .menulist-dropmarker {
  -moz-appearance: toolbarbutton-dropdown;
  border: none;
  background-color: transparent;
  margin: auto;
  padding: 5px 0;
}

.translation-menupopup arrowscrollbox {
  padding-bottom: 0;
}

.translation-attribution {
  cursor: pointer;
  -moz-box-align: end;
  font-size: small;
}

.translation-attribution > label {
  margin-bottom: 0;
}

.translation-attribution > image {
  width: 70px;
}

.translation-welcome-panel {
  width: 305px;
}

.translation-welcome-logo {
  height: 32px;
  width: 32px;
  list-style-image: url(chrome://browser/skin/translation-16@2x.png);
  -moz-image-region: rect(0, 64px, 32px, 32px);
}

.translation-welcome-content {
  -moz-margin-start: 16px;
}

.translation-welcome-headline {
  font-size: larger;
  font-weight: bold;
}

.translation-welcome-body {
  padding: 1em 0;
  margin: 0 0;
}

/* */
notification[value="translation"] {
  min-height: 40px;
}

notification[value="translation"],
notification[value="translation"] button,
notification[value="translation"] menulist {
  min-height: 30px;
  color: #5A5959;
}

notification[value="translation"] {
  background-color: #F2F1F0;
}

notification[value="translation"] button,
notification[value="translation"] menulist {
  -moz-padding-end: 1ch;
}

notification[value="translation"] menulist {
  border: 1px solid #C1C1C1;
  background-color: #FFF;
}

notification[value="translation"] button {
  border: 1px solid #C1C1C1;
  background-color: #F2F1F0;
}

notification[value="translation"] button,
notification[value="translation"] menulist,
notification[value="translation"] menulist > .menulist-label-box {
  -moz-margin-start: 1ch;
  -moz-margin-end: 1ch;
}

notification[value="translation"] button:hover,
notification[value="translation"] button:active,
notification[value="translation"] menulist:hover,
notification[value="translation"] menulist:active {
  background-color: #E2E1E0;
}

notification[value="translation"] button[anonid="translate"] {
  color: #FFF;
  background-image: linear-gradient(#9FB938, #8DA726);
  box-shadow: none;
  border: 1px solid #829C1C;
}

notification[value="translation"] button[anonid="translate"]:hover,
notification[value="translation"] button[anonid="translate"]:active {
  background-image: linear-gradient(#8DA726, #8DA726);
}

notification[value="translation"] button > .button-box,
notification[value="translation"] button[type="menu"] > .button-box > .button-menu-dropmarker {
  padding: 0;
  -moz-margin-start: 3ch;
}

notification[value="translation"] button:not([type="menu"]) > .button-box {
  -moz-margin-end: 3ch;
}

notification[value="translation"] menulist > .menulist-dropmarker {
  display: block;
}

/* Loop/ Hello browser styles */

notification[value="loop-sharing-notification"] .button-menubutton-button {
  min-width: 0;
}

notification[value="loop-sharing-notification"] .messageImage {
  list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16.png);
}

#treecolAutoCompleteImage {
  max-width: 36px;
}

.ac-result-type-bookmark,
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#bookmark);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-bookmark,
.autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage, selected) {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#bookmark-active);
}

.ac-result-type-keyword,
.autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage),
richlistitem[type~="action"][actiontype="searchengine"] > .ac-title-box > .ac-site-icon {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#keyword);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-keyword,
.autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage, selected),
richlistitem[type~="action"][actiontype="searchengine"][selected="true"] > .ac-title-box > .ac-site-icon {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#keyword-active);
}

.ac-result-type-tag,
.autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#tag);
  width: 16px;
  height: 16px;
}
richlistitem[selected="true"] .ac-result-type-tag,
.autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage, selected) {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#tag-active);
}

.ac-comment,
#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description,
#PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button {
  font-size: 1.05em;
}

.ac-extra > .ac-comment {
  font-size: inherit;
}

/** Color for URL bar, from Evandro (efg) on #gnome-design **/
.ac-url-text,
.ac-action-text {
  font-size: 90%;
  color: gray;
}

richlistitem {
  /*
  color: -moz-nativehyperlinktext;
  font-size: 0.9em;
  */
}

richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#tab);
  padding: 0 3px;
}
richlistitem[selected="true"][type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
  list-style-image: url(chrome://symbolic-icons/skin/autocomplete-icons.svg#tab-active);
}

.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
  color: GrayText;
}

.ac-comment[selected="true"],
.ac-url-text[selected="true"],
.ac-action-text[selected="true"] {
  color: #ffffff !important;
}

.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
  color: GrayText;
  font-size: smaller;
}

.autocomplete-treebody::-moz-tree-cell(suggesthint) {
  border-top: 1px solid GrayText;
}

/* ::::: Combined go/reload/stop button in location bar ::::: */

#urlbar > toolbarbutton,
#urlbar-icons > :-moz-any(box, image, menupopup), /* It needs for extensions */
#urlbar .urlbar-history-dropmarker {
  -moz-appearance: none;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 26px;
  min-width: 26px;
  padding: 5px;
}

#urlbar > toolbarbutton,
#urlbar-icons > :-moz-any(box, image, menupopup) {
  background: transparent !important;
}

#urlbar > toolbarbutton:not([disabled="true"]):active {
  background: linear-gradient(to bottom, #d1d1d1, #fff) !important;
  box-shadow: inset 0 1px 1px 0 rgba(0,0,0,0.15) !important;
}

toolbar[brighttext] #urlbar > toolbarbutton:not([disabled="true"]):active {
  background-image: linear-gradient(to bottom, #272727, #333333) !important;
}

#urlbar-go-button {
  list-style-image: url(chrome://symbolic-icons/skin/go-next.svg);
}

#go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
#urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

#urlbar-reload-button {
  list-style-image: url(chrome://symbolic-icons/skin/view-refresh.svg);
}

#urlbar-stop-button {
  list-style-image: url(chrome://symbolic-icons/skin/process-stop.svg);
}

.urlbar-history-dropmarker {
  -moz-box-align: center;
  list-style-image: url(chrome://symbolic-icons/skin/go-down.svg);
}

#urlbar[hidehistorydropmarker] .urlbar-history-dropmarker {
  display: none;
}

#urlbar-go-button,
#urlbar-stop-button,
#urlbar-reload-button,
.urlbar-history-dropmarker {
  opacity: .35;
}

toolbar[brighttext] #urlbar-go-button:not(:hover),
toolbar[brighttext] #urlbar-stop-button:not(:hover),
toolbar[brighttext] #urlbar-reload-button:not(:hover),
toolbar[brighttext] .urlbar-history-dropmarker:not(:hover) {
  opacity: .2;
}

/* Adjust opacity of the URL bar icons on hover */
#urlbar-go-button:hover,
#urlbar-reload-button:hover,
#urlbar-stop-button:hover,
.urlbar-history-dropmarker:hover,
.urlbar-history-dropmarker[open="true"] {
  opacity: 1;
}

/* Popup blocker button */
#page-report-button {
  list-style-image: url(chrome://symbolic-icons/skin/info.svg);
  opacity: .5;
}

/* Reader mode button */

#reader-mode-button {
  list-style-image: url("chrome://browser/skin/readerMode.svg");
  -moz-image-region: rect(0, 16px, 16px, 0);
}

#reader-mode-button:hover,
#reader-mode-button[readeractive]:hover {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

#reader-mode-button:hover:active,
#reader-mode-button[readeractive] {
  -moz-image-region: rect(0, 48px, 16px, 32px);
}

/* social share panel */

.social-share-frame {
  border-top: 1px solid #f8f8f8;
  width: 756px;
  height: 150px;
}

#share-container {
  min-width: 756px;
  background-color: white;
  background-repeat: no-repeat;
  background-position: center center;
}
#share-container[loading] {
  background-image: url(chrome://browser/skin/tabbrowser/pendingpaint.png);
}
#share-container > browser {
  transition: opacity 150ms ease-in-out;
  opacity: 1;
}
#share-container[loading] > browser {
  opacity: 0;
}

.social-share-toolbar {
  border-bottom: 1px solid #dedede;
  padding: 2px;
}

#social-share-provider-buttons {
  padding: 0;
  margin: 0;
}

.share-provider-button {
  padding: 5px;
  margin: 2px;
}

.share-provider-button > .toolbarbutton-text {
  display: none;
}
.share-provider-button > .toolbarbutton-icon {
  width: 16px;
  min-height: 16px;
  max-height: 16px;
}

/* social recommending panel */

#social-mark-button {
  -moz-image-region: rect(0, 16px, 16px, 0);
}

/* bookmarks menu-button */

#bookmarks-menu-button {
  min-width: 52px !important;
}

#nav-bar[reliefbuttons="true"] #bookmarks-menu-button {
  min-width: 64px !important;
}

#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker {
  -moz-appearance: none !important;
  -moz-padding-end: 3px;
  -moz-padding-start: 3px;
}

#nav-bar[reliefbuttons="true"] #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker {
  -moz-padding-end: 6px;
  -moz-padding-start: 6px;
  -moz-margin-start: 0;
  -moz-box-align: center;
}

#bookmarks-menu-button[disabled][cui-areatype="toolbar"] > .toolbarbutton-icon,
#bookmarks-menu-button[disabled][cui-areatype="toolbar"] > .toolbarbutton-menu-dropmarker,
#bookmarks-menu-button[disabled][cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker,
#bookmarks-menu-button[disabled][cui-areatype="toolbar"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
#bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button[disabled] > .toolbarbutton-icon {
  opacity: .4;
}

#BMB_bookmarksPopup[side="top"],
#BMB_bookmarksPopup[side="bottom"] {
  margin-left: -30px;
  margin-right: -30px;
}

#BMB_bookmarksPopup[side="left"],
#BMB_bookmarksPopup[side="right"] {
  margin-top: -30px;
  margin-bottom: -30px;
}

#nav-bar .toolbarbutton-1 > menupopup[side="top"].cui-widget-panel,
#nav-bar .toolbarbutton-1 > menupopup[side="bottom"].cui-widget-panel {
  margin-top: -4px;
}

/* Bookmarking panel */
#editBookmarkPanelStarIcon {
  list-style-image: url("chrome://browser/skin/places/starred48.png");
  width: 48px;
  height: 48px;
}

#editBookmarkPanelStarIcon[unstarred] {
  list-style-image: url("chrome://browser/skin/places/unstarred48.png");
}

#editBookmarkPanelTitle {
  font-size: 130%;
}

#editBookmarkPanelHeader,
#editBookmarkPanelContent {
  margin-bottom: .5em;
}

/* Implements editBookmarkPanel resizing on folderTree un-collapse. */
#editBMPanel_folderTree {
  min-width: 27em;
}

.panel-promo-box {
  margin: 8px -10px -10px -10px;
  padding: 8px 10px;
  border-top: 1px solid ThreeDShadow;
  background-image: linear-gradient(hsla(0,0%,0%,.15), hsla(0,0%,0%,.08) 6px);
}

.panel-promo-icon {
  list-style-image: url("chrome://browser/skin/sync-notification-24.png");
  -moz-margin-end: 10px;
  vertical-align: middle;
}

.panel-promo-closebutton {
  -moz-appearance: none;
  height: 16px;
  width: 16px;
}

.panel-promo-closebutton > .toolbarbutton-text {
  padding: 0;
}

/* Sidebar */
#sidebar {
  background-color: Window;
  padding-bottom: 3px;
}

#sidebar-splitter {
  -moz-appearance: none;
  border-right: 1px solid ThreeDShadow;
  min-width: 4px !important;
  width: 4px !important;
}

#sidebar-box {
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
}

#sidebar-header {
  font-weight: bold;
  color: ButtonText;
  padding: 10px 11px 10px 17px;
  margin: 0;
}

#sidebar-title, #sidebar-throbber {
  padding: 0;
  margin: 0;
}

#sidebar-header > .tabs-closebutton {
  margin-bottom: 0px !important;
  padding: 2px !important;
}

#sidebar-header > .tabs-closebutton > .toolbarbutton-icon {
  min-height: 16px;
  min-width: 16px;
}

#sidebar-throbber[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
  -moz-margin-end: 4px;
}

.browserContainer > findbar {
  background-color: -moz-dialog;
  color: -moz-DialogText;
  text-shadow: none;
}

/* Tabstrip */

#TabsToolbar {
  -moz-appearance: none;
  background: #d6d6d6;
  border-top: 1px solid var(--toolbar-border-color);
  border-bottom: 0;
  box-shadow: 0 -1px #d9d9d9,
              inset 0 2px 3px -1px hsla(0,0%,0%,.15);
  min-height: 0;
  padding: 0 10px !important; /* FIXME */
  margin-bottom: -1px;
  position: relative;
}

#TabsToolbar:-moz-lwtheme {
  background: hsla(0,0%,0%,.048);
  border-top-color: hsla(120,100%,2.8%,.338);
  box-shadow: 0 -1px hsla(0,0%,0%,.048),
              inset 0 2px 3px -1px hsla(0,0%,0%,.15);
}

#TabsToolbar[brighttext] {
  background: #303535;
  box-shadow: inset 0 2px 3px -1px hsla(0,0%,0%,.15);
}

#main-window[privatebrowsingmode=temporary] #TabsToolbar {
  background-image: repeating-linear-gradient(-45deg, hsla(0,0%,0%,.02), hsla(0,0%,0%,.02) 10px, transparent 10px, transparent 20px);
}

/*
 * Draw the bottom border of the tabstrip:
 */
#TabsToolbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  border-bottom: 1px solid var(--toolbar-border-color);
}

/*
#toolbar-menubar:not([autohide="true"]):not(:-moz-lwtheme):-moz-system-metric(menubar-drag),
#TabsToolbar:not(:-moz-lwtheme):-moz-system-metric(menubar-drag) {
  -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag");
}
*/

.tabbrowser-tabs {
  -moz-margin-start: 0;
}

#tabbrowser-tabs {
  min-height: 35px;
  /* override the global style to allow the selected tab to be above the nav-bar */
  z-index: auto;
}

#TabsToolbar toolbarbutton {
  -moz-appearance: none;
  margin-bottom: 2px;
}

#TabsToolbar > toolbarbutton toolbarbutton {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.tabs-newtab-button {
  margin-top: 2px;
}

.tabbrowser-tab {
  -moz-appearance: none;
  -moz-box-align: stretch;
  background: transparent;
  border: none;
/*  color: inherit;*/
  color: ButtonText;
  margin: 0;
  padding: 0;

  /* Uncomment it for test transition property */
  /*  transition-duration: 30s !important;*/
}

.tabbrowser-tab:-moz-lwtheme-brighttext {
  text-shadow: none;
}

#TabsToolbar[brighttext] .tabbrowser-tab {
  color: #eeeeec;
}

#tabbrowser-tabs[tabmaxwidth="small"] .tabbrowser-tab:not([pinned]) {
  max-width: 170px;
}
#tabbrowser-tabs[tabmaxwidth="normal"] .tabbrowser-tab:not([pinned]) {
  max-width: 210px;
}
#tabbrowser-tabs[tabmaxwidth="large"] .tabbrowser-tab:not([pinned]) {
  max-width: 350px;
}
#tabbrowser-tabs[tabmaxwidth="stretch"] .tabbrowser-tab:not([pinned]) {
  max-width: none;
}

#tabbrowser-tabs .tabbrowser-tab:not([pinned]):not([fadein]) {
  max-width: 0.1px;
}

.tabbrowser-tab[visuallyselected=true] {
  position: relative;
  z-index: 2;
}

.tabbrowser-tab:not([visuallyselected=true]) {
  color: #8d9091;
}
#TabsToolbar[brighttext] .tabbrowser-tab:not([visuallyselected=true]) {
  color: #a6a8a7;
}

.tabbrowser-tab:not([visuallyselected=true]):hover {
  color: #5d6263;
}
#TabsToolbar[brighttext] .tabbrowser-tab:not([visuallyselected=true]):hover {
  color: #d3d4d2;
}

.tab-background-middle {
  -moz-box-flex: 1;
  background-clip: padding-box;
  margin: 0;
  border-bottom: 3px solid transparent;
}

.tabbrowser-tab:-moz-any([visuallyselected=true], :hover) .tab-background-middle {
  box-shadow: inset 0 3px hsla(0,0%,0%,.025), inset 0 2px hsla(0,0%,0%,.025), inset 0 1px hsla(0,0%,0%,.025);
}

.tabbrowser-tab:-moz-any([visuallyselected=true], :hover) .tab-background-middle:-moz-lwtheme {
  box-shadow: inset 0 3px hsla(0,0%,0%,.01), inset 0 2px hsla(0,0%,0%,.01), inset 0 1px hsla(0,0%,0%,.01);
}

.tabbrowser-tab:hover .tab-background-middle {
  background: var(--tab-hover-background-color);
  -moz-border-bottom-colors: var(--tab-hover-bottom-line-color);
}

.tabbrowser-tab[visuallyselected=true] .tab-background-middle {
  background: var(--tab-selected-background-color);
  -moz-border-bottom-colors: var(--tab-selected-bottom-line-color);
}

.tab-background-start,
.tab-background-end {
  min-height: 31px;
  width: 1px;
}

.tab-background-start[visuallyselected=true],
.tab-background-end[visuallyselected=true] {
  background: #c0c0c0;
  background-image: linear-gradient(to top, var(--tab-selected-bottom-line-color), #c0c0c0 2px, #c0c0c0);
}

#TabsToolbar[brighttext] .tab-background-start[visuallyselected=true],
#TabsToolbar[brighttext] .tab-background-end[visuallyselected=true] {
  background: #282b2b;
  background-image: linear-gradient(to top, var(--tab-selected-bottom-line-color), #282b2b 2px, #282b2b);
}

.tabbrowser-tab:hover .tab-background-start:not([visuallyselected=true]),
.tabbrowser-tab:hover .tab-background-end:not([visuallyselected=true]) {
  background: hsla(0,0%,68%,.3); /* #c9c9c9 */
}

#TabsToolbar[brighttext] .tabbrowser-tab:hover .tab-background-start:not([visuallyselected=true]),
#TabsToolbar[brighttext] .tabbrowser-tab:hover .tab-background-end:not([visuallyselected=true]) {
  background: #2a2f2f;
}

.tab-background {
  -moz-margin-end: -1px;
  -moz-margin-start: 0;
}

.tabbrowser-tab > .tab-stack {
  min-height: 35px;
  margin: 0;
  padding: 0;
}

.tabbrowser-tab:not([pinned]):not([fadein]) > .tab-stack .tab-label,
.tabbrowser-tab:not([pinned]):not([fadein]) > .tab-stack .tab-icon-image {
  display: inherit !important;
  visibility: hidden;
  width: 0;
}

.tabbrowser-tab[remote] {
  text-decoration: underline;
}

.tabbrowser-tab[pinned] > .tab-stack {
  padding-left: 0;
  padding-right: 0;
}

.tab-content {
  -moz-binding: url(chrome://browser/skin/gnomeBindings.xml#label-center);
  -moz-padding-end: 9px;
  -moz-padding-start: 9px;
}

.tabbrowser-tab[pinned] .tab-content {
  -moz-padding-end: 6px;
  -moz-padding-start: 7px;
}

.tab-throbber,
.tab-icon-image {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  margin: 1px 0;
  -moz-margin-start: -1px;
  -moz-margin-end: 3px;
  list-style-image: url(chrome://mozapps/skin/places/defaultFavicon.png);
}

.tab-icon-overlay {
  width: 16px;
  height: 16px;
  margin-top: -10px;
  -moz-margin-start: -12px;
  -moz-margin-end: -4px;
  display: none;
}

/*
.tab-icon-overlay[soundplaying],
.tab-icon-overlay[muted]:not([crashed]),
.tab-icon-sound,
.tab-close-button {
  pointer-events: auto;
}
*/

.tab-icon-overlay[crashed] {
  display: -moz-box;
  list-style-image: url("chrome://browser/skin/tabbrowser/crashed.svg");
}

.tabbrowser-tab[pinned][titlechanged]:not([visuallyselected="true"]) .tab-icon-overlay:not([crashed]) {
  display: -moz-box;
  list-style-image: url("chrome://browser/skin/tabbrowser/titlechanged.svg");
}

/**/

.tab-icon-overlay[soundplaying],
.tab-icon-overlay[muted]:not([crashed]) {
  border-radius: 8px;
}

.tab-icon-overlay[soundplaying]:hover,
.tab-icon-overlay[muted]:not([crashed]):hover {
  background-color: white;
}

.tab-icon-overlay[soundplaying] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio");
}

.tab-icon-overlay[muted]:not([crashed]) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted");
}

#TabsToolbar[brighttext] .tab-icon-overlay[soundplaying]:not(:hover) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white");
}

#TabsToolbar[brighttext] .tab-icon-overlay[muted]:not([crashed]):not(:hover) {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white-muted");
}

/**/

.tab-throbber[busy] {
  list-style-image: url(chrome://browser/skin/tabbrowser/connecting.png);
}

.tab-throbber[progress] {
  list-style-image: url(chrome://browser/skin/tabbrowser/loading.png);
}

#TabsToolbar[brighttext] .tab-throbber {
  list-style-image: url(chrome://browser/skin/tabbrowser/connecting-inverted.png);
}

#TabsToolbar[brighttext] .tab-throbber[progress] {
  list-style-image: url(chrome://browser/skin/tabbrowser/loading-inverted.png);
}

.tab-throbber[pinned],
.tab-icon-image[pinned],
.tabs-newtab-button > .toolbarbutton-icon {
  -moz-margin-start: 0px;
  -moz-margin-end: 0px;
}

.tabbrowser-tab:focus > .tab-stack > .tab-content {
  outline: 1px dotted;
  outline-offset: -6px;
}

#context_reloadTab {
  list-style-image: url("moz-icon://stock/gtk-refresh?size=menu");
}

#context_closeOtherTabs {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
}

#context_closeOtherTabs[disabled] {
  list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled");
}

#context_undoCloseTab {
  list-style-image: url("moz-icon://stock/gtk-undelete?size=menu");
}

#context_closeTab {
  list-style-image: url("moz-icon://stock/gtk-close?size=menu");
}

/* Tab drag and drop */
.tab-drop-indicator {
  list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png);
  margin-bottom: -11px;
  z-index: 3;
}

/* Sound icon */

.tab-icon-sound {
  -moz-margin-start: 4px;
  width: 16px;
  height: 16px;
  padding: 0;
}

.tab-icon-sound[soundplaying] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab");
}

.tab-icon-sound[soundplaying]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-hover");
}

.tab-icon-sound[soundplaying]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-pressed");
}

.tab-icon-sound[muted] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted");
}

.tab-icon-sound[muted]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted-hover");
}

.tab-icon-sound[muted]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted-pressed");
}

.tab-icon-sound[visuallyselected=true][soundplaying] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio");
}

.tab-icon-sound[visuallyselected=true][soundplaying]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover");
}

.tab-icon-sound[visuallyselected=true][soundplaying]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed");
}

.tab-icon-sound[visuallyselected=true][muted] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted");
}

.tab-icon-sound[visuallyselected=true][muted]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover");
}

.tab-icon-sound[visuallyselected=true][muted]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed");
}

#TabsToolbar[brighttext] .tab-icon-sound[soundplaying] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white");
}

#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white-hover");
}

#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white-pressed");
}

#TabsToolbar[brighttext] .tab-icon-sound[muted] {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white");
}

#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white-hover");
}

#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active {
  list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white-pressed");
}

/* Tabstrip close button */
.tabs-closebutton {
  list-style-image: url(chrome://symbolic-icons/skin/close.svg);
  -moz-image-region: auto;
  margin: 0;
  padding: 0 5px;
}

.tabs-closebutton > .toolbarbutton-icon {
  margin: 0;
}

/* Tab close button */
#TabsToolbar .tab-close-button {
  -moz-appearance: none;
  margin: 1px 0;
  -moz-margin-end: -3px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: none;

  transition-property: background, border;
  transition-duration: 200ms, 200ms;
  transition-timing-function: ease-out;
}

#TabsToolbar .tab-close-button:hover {
  border-color: rgba(0, 0, 0, 0.1);
  transition-timing-function: ease-in;
}

#TabsToolbar .tab-close-button:active:hover {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.13) 1px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.07) 100%);
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.27);
  transition-timing-function: ease-in;
}

#TabsToolbar .tab-close-button > .toolbarbutton-icon {
  background-image: -moz-image-rect(url(chrome://browser/skin/tabbrowser/close.svg), 0, 32, 16, 16);
  background-position: center center;
  background-repeat: no-repeat;
  min-width: 16px;
  min-height: 16px;
  opacity: .31;

  transition: opacity 200ms ease-in;
}
#TabsToolbar[brighttext] .tab-close-button > .toolbarbutton-icon {
  background-image: -moz-image-rect(url(chrome://browser/skin/tabbrowser/close-dark.svg), 0, 32, 16, 16);
}

#TabsToolbar .tab-close-button:hover > .toolbarbutton-icon {
  background-image: -moz-image-rect(url(chrome://browser/skin/tabbrowser/close.svg), 0, 48, 16, 32);
  opacity: 1;
  transition-timing-function: ease-in;
}
#TabsToolbar[brighttext] .tab-close-button:hover > .toolbarbutton-icon {
  background-image: -moz-image-rect(url(chrome://browser/skin/tabbrowser/close-dark.svg), 0, 48, 16, 32);
}

/* Tabstrip new tab button */
.tabs-newtab-button,
#TabsToolbar > #new-tab-button,
#TabsToolbar > #wrapper-new-tab-button > #new-tab-button {
  list-style-image: url(chrome://symbolic-icons/skin/list-add.svg);
  -moz-image-region: auto;
}

.tabs-newtab-button {
  margin: 0;
  -moz-margin-end: -1px;
  padding: 0 5px;
}

/* Tabbrowser arrowscrollbox arrows */

.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
  -moz-padding-end: 1px;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox > .scrollbutton-down {
  -moz-appearance: none;
  margin: 0;
  padding: 0 5px;
}

.tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):not(:active) {
  -moz-border-end-color: #c0c0c0 !important;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):not(:active) {
  -moz-border-start-color: #c0c0c0 !important;
}

#TabsToolbar[brighttext] .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):not(:active) {
  -moz-border-end-color: hsla(0,0%,0%,.1) !important;
}

#TabsToolbar[brighttext] .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):not(:active) {
  -moz-border-start-color: hsla(0,0%,0%,.1) !important;
}

.tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
  background: #93bfed !important;
  transition: 0.5s background ease-out !important;
}

:-moz-any(.scrollbutton-up, .scrollbutton-down) > .toolbarbutton-icon {
  -moz-appearance: none;
  height: 10px;
  width: 10px;
  margin: 3px;
}

.scrollbutton-up > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/go-previous.svg);
}

.scrollbutton-down > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/go-next.svg);
}

:-moz-any(.scrollbutton-up, .scrollbutton-down):not(:hover) > .toolbarbutton-icon {
  opacity: .7;
}

:-moz-any(.scrollbutton-up, .scrollbutton-down)[disabled="true"] > .toolbarbutton-icon {
  opacity: .18;
}

/* */

/*
#TabsToolbar .toolbarbutton-1 {
  margin-bottom: 1px;
}

#TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
#TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  margin-top: -2px;
  margin-bottom: -2px;
}
*/

/* All tabs button */

#alltabs-button > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/view-more.svg);
}
#alltabs-button[type="menu"] > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/go-down.svg);
}

/* All tabs menupopup */
.alltabs-item > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
}

.alltabs-item[selected="true"] {
  font-weight: bold;
}

.alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}

.alltabs-item[tabIsVisible] {
  /* box-shadow instead of background-color to work around native styling */
  box-shadow: inset -5px 0 ThreeDShadow;
}

toolbarbutton.chevron {
  list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
}

toolbar[brighttext] toolbarbutton.chevron:not(:hover):not([open="true"]) {
  list-style-image: url("chrome://global/skin/toolbar/chevron-inverted.png") !important;
}

toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon {
  transform: scaleX(-1);
}

toolbarbutton.chevron > .toolbarbutton-text,
toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
  display: none;
}

toolbarbutton.chevron > .toolbarbutton-icon {
  margin: 0;
}

/* Ctrl-Tab */

.ctrlTab-preview {
  -moz-appearance: toolbarbutton;
}

.tabPreview-canvas {
  box-shadow: 0 0 5px ThreeDShadow;
}

.ctrlTab-preview:focus .tabPreview-canvas,
.ctrlTab-preview:hover .tabPreview-canvas {
  box-shadow: none;
}

.ctrlTab-favicon[src] {
  background-color: white;
  width: 20px;
  height: 20px;
  padding: 2px;
}

#ctrlTab-panel {
  padding: 10px;
}

.ctrlTab-preview:not(#ctrlTab-showAll) .tabPreview-canvas {
  margin-bottom: 2px;
}

#ctrlTab-showAll {
  -moz-appearance: button;
  color: ButtonText;
  padding: 0 3px;
  margin-top: 10px;
}

/* Sync Panel */

.sync-panel-icon {
  height: 32px;
  width: 32px;
  background: url("chrome://browser/content/abouthome/sync.png") top left no-repeat;
}

.sync-panel-inner {
  width: 0;
  padding-left: 10px;
}

.sync-panel-button-box {
  margin-top: 1em;
}

#sync-error-panel-title,
#sync-start-panel-title {
  font-size: 120%;
  font-weight: bold;
  margin-bottom: 5px;
}

#sync-start-panel-subtitle,
#sync-error-panel-subtitle {
  margin: 0;
}

/* Status panel */

.statuspanel-label {
  margin: 0;
  padding: 2px 4px;
  background: linear-gradient(#fff, #ddd);
  border: 1px none #ccc;
  border-top-style: solid;
  color: #333;
  text-shadow: none;
}

.statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
.statuspanel-label:-moz-locale-dir(rtl)[mirror] {
  border-right-style: solid;
  border-top-right-radius: .3em;
  margin-right: 1em;
}

.statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
.statuspanel-label:-moz-locale-dir(ltr)[mirror] {
  border-left-style: solid;
  border-top-left-radius: .3em;
  margin-left: 1em;
}

#full-screen-warning-message {
  background-image: url("chrome://browser/skin/fullscreen-darknoise.png");
  color: white;
  border-radius: 4px;
  margin-top: 30px;
  padding: 30px 50px;
  box-shadow: 0 0 2px white;
}

.full-screen-description {
  font-size: 150%;
}

#full-screen-domain-text {
  font-size: 300%;
}


/* Responsive Mode */

.browserContainer[responsivemode] {
  background-color: #222;
  padding: 0 20px 20px 20px;
}

.browserStack[responsivemode] {
  box-shadow: 0 0 7px black;
}

.devtools-responsiveui-toolbar {
  -moz-appearance: none;
  background: transparent;
  /* text color is textColor from dark theme, since no theme is applied to
   * the responsive toolbar.
   */
  color: hsl(210,30%,85%);
  margin: 10px 0;
  padding: 0;
  box-shadow: none;
  border-bottom-width: 0;
}

.devtools-responsiveui-menulist,
.devtools-responsiveui-toolbarbutton {
  -moz-appearance: none;
  -moz-box-align: center;
  min-width: 32px;
  min-height: 22px;
  text-shadow: 0 -1px 0 hsla(210,8%,5%,.45);
  border: 1px solid hsla(210,8%,5%,.45);
  border-radius: 0;
  background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box;
  box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset, 0 0 0 1px hsla(210,16%,76%,.15) inset, 0 1px 0 hsla(210,16%,76%,.15);
  margin: 0 3px;
  color: inherit;
}

.devtools-responsiveui-menulist .menulist-editable-box {
  -moz-appearance: none;
  background-color: transparent;
}

.devtools-responsiveui-menulist html|*.menulist-editable-input {
  -moz-appearance: none;
  color: inherit;
  text-align: center;
}

.devtools-responsiveui-menulist html|*.menulist-editable-input::-moz-selection {
  background: hsla(212,7%,57%,.35);
}

.devtools-responsiveui-toolbarbutton > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

.devtools-responsiveui-toolbarbutton > .toolbarbutton-menubutton-button {
  -moz-box-orient: horizontal;
}

.devtools-responsiveui-menulist:-moz-focusring,
.devtools-responsiveui-toolbarbutton:-moz-focusring {
  outline: 1px dotted hsla(210,30%,85%,0.7);
  outline-offset: -4px;
}

.devtools-responsiveui-toolbarbutton:not([label]) > .toolbarbutton-text {
  display: none;
}

.devtools-responsiveui-toolbarbutton:not([checked=true]):hover:active {
  border-color: hsla(210,8%,5%,.6);
  background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
  box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-menulist[open=true],
.devtools-responsiveui-toolbarbutton[open=true],
.devtools-responsiveui-toolbarbutton[checked=true] {
  border-color: hsla(210,8%,5%,.6) !important;
  background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
  box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[checked=true] {
  color: hsl(208,100%,60%);
}

.devtools-responsiveui-toolbarbutton[checked=true]:hover {
  background-color: transparent !important;
}

.devtools-responsiveui-toolbarbutton[checked=true]:hover:active {
  background-color: hsla(210,8%,5%,.2) !important;
}

.devtools-responsiveui-menulist > .menulist-label-box {
  text-align: center;
}

.devtools-responsiveui-menulist > .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  background-color: transparent;
  list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
  -moz-box-align: center;
  border-width: 0;
  min-width: 16px;
}

.devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
  -moz-appearance: none;
  color: inherit;
  border-width: 0;
  -moz-border-end: 1px solid hsla(210,8%,5%,.45);
  box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
  box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);
}

.devtools-responsiveui-toolbarbutton[type=menu-button] {
  padding: 0 1px;
  -moz-box-align: stretch;
}

.devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
.devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
  -moz-appearance: none !important;
  list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
  -moz-box-align: center;
  padding: 0 3px;
}

.devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
.devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
  margin-left: 0;
}

.devtools-responsiveui-close {
  list-style-image: url("chrome://browser/skin/devtools/close.png");
}

.devtools-responsiveui-rotate {
  list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate.png");
}

@media (min-resolution: 1.25dppx) {
  .devtools-responsiveui-close {
    list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
  }

  .devtools-responsiveui-rotate {
    list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate@2x.png");
  }
}

.devtools-responsiveui-touch {
  list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch.png");
  -moz-image-region: rect(0px,16px,16px,0px);
}

.devtools-responsiveui-touch[checked] {
  -moz-image-region: rect(0px,32px,16px,16px);
}

@media (min-resolution: 1.25dppx) {
  .devtools-responsiveui-touch {
    list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch@2x.png");
    -moz-image-region: rect(0px,32px,32px,0px);
  }

  .devtools-responsiveui-touch[checked] {
    -moz-image-region: rect(0px,64px,32px,32px);
  }
}

.devtools-responsiveui-screenshot {
  list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot.png");
}

@media (min-resolution: 1.25dppx) {
  .devtools-responsiveui-screenshot {
    list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot@2x.png");
  }
}

.devtools-responsiveui-resizebarV {
  width: 7px;
  height: 24px;
  cursor: ew-resize;
  transform: translate(12px, -12px);
  background-size: cover;
  background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer.png");
}

.devtools-responsiveui-resizebarH {
  width: 24px;
  height: 7px;
  cursor: ns-resize;
  transform: translate(-12px, 12px);
  background-size: cover;
  background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer.png");
}

.devtools-responsiveui-resizehandle {
  width: 16px;
  height: 16px;
  cursor: se-resize;
  transform: translate(12px, 12px);
  background-size: cover;
  background-image: url("chrome://browser/skin/devtools/responsive-se-resizer.png");
}

/* FxOS custom mode with additional buttons and phone look'n feel */

/* Hide devtools manual resizer */
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizehandle,
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarH,
.browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarV {
  display: none;
}

/* Gives responsive mode a phone look'n feel */
.browserStack[responsivemode].fxos-mode {
  padding: 60px 15px 0;

  border-radius: 25px / 20px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border: 1px solid #FFFFFF;
  border-bottom-width: 0;

  background-color: #353535;

  box-shadow: 0 3px 0.7px 1px #777777, 0 5px rgba(0, 0, 0, 0.4) inset;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
  min-width: 320px;
}

.devtools-responsiveui-hardware-buttons {
  -moz-appearance: none;
  padding: 20px;

  border: 1px solid #FFFFFF;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  border-top-width: 0;

  box-shadow: 0 3px 0.7px 1px #777777, 0 -7px rgba(0, 0, 0, 0.4) inset;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
}

.devtools-responsiveui-home-button {
  width: 40px;
  height: 30px;
  list-style-image: url("chrome://browser/skin/devtools/responsiveui-home.png");
}

.devtools-responsiveui-sleep-button {
  -moz-appearance: none;
  /* compensate browserStack top padding */
  margin-top: -67px;
  margin-right: 10px;

  min-width: 10px;
  width: 50px;
  height: 5px;

  border: 1px solid #444;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  border-bottom-color: transparent;

  background-image: linear-gradient(to top, #111 11%, #333 56%);
}

.devtools-responsiveui-sleep-button:hover:active {
  background-image: linear-gradient(to top, #aaa 11%, #ddd 56%);
}

.devtools-responsiveui-volume-buttons {
  margin-left: -29px;
}

.devtools-responsiveui-volume-up-button,
.devtools-responsiveui-volume-down-button {
  -moz-appearance: none;
  border: 1px solid red;
  min-width: 8px;
  height: 40px;

  border: 1px solid #444;
  border-right-color: transparent;

  background-image: linear-gradient(to right, #111 11%, #333 56%);
}

.devtools-responsiveui-volume-up-button:hover:active,
.devtools-responsiveui-volume-down-button:hover:active {
  background-image: linear-gradient(to right, #aaa 11%, #ddd 56%);
}

.devtools-responsiveui-volume-up-button {
  border-top-left-radius: 12px;
}

.devtools-responsiveui-volume-down-button {
  border-bottom-left-radius: 12px;
}

@media (min-resolution: 1.25dppx) {
  .devtools-responsiveui-resizebarV {
    background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer@2x.png");
  }

  .devtools-responsiveui-resizebarH {
    background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer@2x.png");
  }

  .devtools-responsiveui-resizehandle {
    background-image: url("chrome://browser/skin/devtools/responsive-se-resizer@2x.png");
  }
}

/* Developer toolbar */

/* NOTE: THESE NEED TO STAY IN SYNC WITH LIGHT-THEME.CSS AND DARK-THEME.CSS.
   We are copy/pasting variables from light-theme and dark-theme,
   since they aren't loaded in this context (within browser.css). */
:root[devtoolstheme="light"] #developer-toolbar {
  --gcli-background-color: #ebeced; /* --theme-tab-toolbar-background */
  --gcli-input-background: #f0f1f2; /* --theme-toolbar-background */
  --gcli-input-focused-background: #f7f7f7; /* --theme-sidebar-background */
  --gcli-input-color: #18191a; /* --theme-body-color */
  --gcli-border-color: #aaaaaa; /* --theme-splitter-color */
  --selection-background: #4c9ed9; /* --theme-selection-background */
  --selection-color: #f5f7fa; /* --theme-selection-color */
}

:root[devtoolstheme="dark"] #developer-toolbar {
  --gcli-background-color: #343c45; /* --theme-toolbar-background */
  --gcli-input-background: rgba(37, 44, 51, .6); /* --theme-tab-toolbar-background */
  --gcli-input-focused-background: #252c33; /* --theme-tab-toolbar-background */
  --gcli-input-color: #b6babf; /* --theme-body-color-alt */
  --gcli-border-color: black; /* --theme-splitter-color */
  --selection-background: #1d4f73; /* --theme-selection-background */
  --selection-color: #f5f7fa; /* --theme-selection-color */
}

#developer-toolbar {
  -moz-appearance: none;
  padding: 0;
  min-height: 32px;
  background-color: var(--gcli-background-color);
  border-top: 1px solid var(--gcli-border-color);
}

#developer-toolbar > toolbarbutton {
  -moz-appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0 10px;
  width: 32px;
}

.developer-toolbar-button > image {
  margin: auto 10px;
}

:root[devtoolstheme="light"] #developer-toolbar > toolbarbutton:not([checked=true]) > image,
:root[devtoolstheme="light"] .gclitoolbar-input-node:not([focused=true])::before  {
  filter: url("chrome://browser/skin/devtools/filters.svg#invert");
}

.developer-toolbar-button > .toolbarbutton-icon,
#developer-toolbar-closebutton > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

#developer-toolbar-toolbox-button {
  list-style-image: url("chrome://browser/skin/devtools/toggle-tools.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

#developer-toolbar-toolbox-button > label {
  display: none;
}

#developer-toolbar-toolbox-button:hover {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

#developer-toolbar-toolbox-button:hover:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

#developer-toolbar-toolbox-button[checked=true] {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}

@media (min-resolution: 1.25dppx) {
  #developer-toolbar-toolbox-button {
    list-style-image: url("chrome://browser/skin/devtools/toggle-tools@2x.png");
    -moz-image-region: rect(0px, 32px, 32px, 0px);
  }

  #developer-toolbar-toolbox-button:hover {
    -moz-image-region: rect(0px, 64px, 32px, 32px);
  }

  #developer-toolbar-toolbox-button:hover:active {
    -moz-image-region: rect(0px, 96px, 32px, 64px);
  }

  #developer-toolbar-toolbox-button[checked=true] {
    -moz-image-region: rect(0px, 128px, 32px, 96px);
  }
}

#developer-toolbar-closebutton {
  list-style-image: url("chrome://browser/skin/devtools/close.png");
  -moz-appearance: none;
  border: none;
  margin: 0 4px;
  min-width: 16px;
  width: 16px;
  opacity: 0.6;
}

@media (min-resolution: 1.25dppx) {
  #developer-toolbar-closebutton {
    list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
  }
}

#developer-toolbar-closebutton > .toolbarbutton-icon {
  /* XXX Buttons have padding in widget/ that we don't want here but can't override with good CSS, so we must
     use evil CSS to give the impression of smaller content */
  margin: -4px;
}

#developer-toolbar-closebutton > .toolbarbutton-text {
  display: none;
}

#developer-toolbar-closebutton:hover {
  opacity: 0.8;
}

#developer-toolbar-closebutton:hover:active {
  opacity: 1;
}

/* GCLI */

html|*#gcli-tooltip-frame,
html|*#gcli-output-frame {
  padding: 0;
  border-width: 0;
  background-color: transparent;
}

#gcli-output,
#gcli-tooltip {
  border-width: 0;
  background-color: transparent;
  -moz-appearance: none;
}

.gclitoolbar-input-node,
.gclitoolbar-complete-node {
  margin: 0;
  -moz-box-align: center;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 8px;
  text-shadow: none;
  box-shadow: none;
  border-width: 0;
  background-color: transparent;
  border-radius: 0;
}

.gclitoolbar-input-node {
  -moz-appearance: none;
  color: var(--gcli-input-color);
  background-color: var(--gcli-input-background);
  background-repeat: no-repeat;
  background-position: 4px center;
  box-shadow: 1px 0 0 var(--gcli-border-color) inset,
              -1px 0 0 var(--gcli-border-color) inset;

  line-height: 32px;
  outline-style: none;
  padding: 0;
}

.gclitoolbar-input-node[focused="true"] {
  background-color: var(--gcli-input-focused-background);
}

.gclitoolbar-input-node::before {
  content: "";
  display: inline-block;
  -moz-box-ordinal-group: 0;
  width: 16px;
  height: 16px;
  margin: 0 2px;
  background-image: url("chrome://browser/skin/devtools/commandline-icon.png");
  background-position: 0 center;
  background-size: 32px 16px;
}

.gclitoolbar-input-node[focused="true"]::before {
  background-position: -16px center;
}

@media (min-resolution: 1.25dppx) {
  .gclitoolbar-input-node::before {
    background-image: url("chrome://browser/skin/devtools/commandline-icon@2x.png");
  }
}

.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
  background-color: var(--selection-background);
  color: var(--selection-color);
  text-shadow: none;
}

.gclitoolbar-complete-node {
  padding-left: 21px;
  background-color: transparent;
  color: transparent;
  z-index: 100;
  pointer-events: none;
}

.gcli-in-incomplete,
.gcli-in-error,
.gcli-in-ontab,
.gcli-in-todo,
.gcli-in-closebrace,
.gcli-in-param,
.gcli-in-valid {
  margin: 0;
  padding: 0;
}

.gcli-in-incomplete {
  border-bottom: 2px dotted #999;
}

.gcli-in-error {
  border-bottom: 2px dotted #F00;
}

.gcli-in-ontab {
  color: hsl(210,0%,35%);
}

.gcli-in-todo {
  color: hsl(210,50%,35%);
}

.gcli-in-closebrace {
  color: hsl(0,0%,80%);
}
#notification-popup[popupid="click-to-play-plugins"] > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0px;
}

.click-to-play-plugins-notification-center-box {
  border: 1px solid ThreeDShadow;
  margin: 10px;
}

.plugin-popupnotification-centeritem:nth-child(odd) {
  background-color: rgba(0,0,0,0.1);
}

.center-item-label {
  -moz-margin-start: 6px;
  margin-bottom: 0;
  text-overflow: ellipsis;
}

.center-item-warning-icon {
  background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.png");
  background-repeat: no-repeat;
  width: 16px;
  height: 15px;
  -moz-margin-start: 6px;
}

.click-to-play-plugins-notification-button-container {
  background-color: hsla(180,20%,10%,.07);
  border-top: 1px solid hsla(180,20%,10%,.14);
  padding: 10px;
  margin-top: 5px;
}

.click-to-play-popup-button {
  width: 50%;
}

.click-to-play-plugins-notification-description-box {
  padding: 10px;
}

.click-to-play-plugins-outer-description {
  margin-top: 8px;
}

.click-to-play-plugins-notification-link,
.center-item-link {
  margin: 0;
}

.messageImage[value="plugin-hidden"] {
  list-style-image: url("chrome://browser/skin/notification-pluginNormal.png");
  -moz-image-region: rect(0, 16px, 16px, 0);
}

/* Keep any changes to this style in sync with pluginProblem.css */
notification.pluginVulnerable {
  background-color: rgb(72,72,72);
  background-image: url(chrome://mozapps/skin/plugins/contentPluginStripe.png);
  color: white;
}

notification.pluginVulnerable .messageImage {
  list-style-image: url("chrome://browser/skin/notification-pluginBlocked.png");
}

#notification-popup[popupid="login-fill"] > .panel-arrowcontainer > .panel-arrowcontent {
  /* Since we display a sliding subview that extends to the border, we cannot
   * keep the default padding of arrow panels. We use the same padding in the
   * individual content views instead. Since we removed the padding, we also
   * have to ensure the contents are clipped to the border box. */
  padding: 0;
  overflow: hidden;
}

#login-fill-mainview,
#login-fill-details {
  padding: var(--panel-arrowcontent-padding);
}

#login-fill-doorhanger[inDetailView] > #login-fill-mainview {
  transform: translateX(-14px);
}

#login-fill-mainview,
#login-fill-details {
  transition: transform 150ms;
}

#login-fill-doorhanger:not([inDetailView]) > #login-fill-details {
  transform: translateX(105%);
}

#login-fill-doorhanger:not([inDetailView]) > #login-fill-details:-moz-locale-dir(rtl) {
  transform: translateX(-105%);
}

#login-fill-doorhanger[inDetailView] > #login-fill-clickcapturer {
  background-color: hsla(180,20%,10%,.1);
}

#login-fill-testing {
  color: #b33;
  font-weight: bold;
}

#login-fill-list {
  border: 1px solid black;
  max-height: 20em;
}

.login-fill-item[disabled] {
  color: #888;
  background-color: #fff;
}

.login-fill-item[disabled][selected] {
  background-color: #eef;
}

.login-hostname {
  margin: 4px;
  font-weight: bold;
}

.login-fill-item.different-hostname > .login-hostname {
  color: #888;
  font-style: italic;
}

.login-username {
  margin: 4px;
  color: #888;
}

#login-fill-details {
  padding: 4px;
  background: var(--panel-arrowcontent-background);
  color: var(--panel-arrowcontent-color);
  background-clip: padding-box;
  border-left: 1px solid hsla(180,20%,10%,.3);
  box-shadow: 0 3px 5px hsla(180,20%,10%,.1),
              0 0 7px hsla(180,20%,10%,.1);
  -moz-margin-start: 38px;
}

/*** Status and progress indicator ***/

#downloads-animation-container {
  min-height: 1px;
  min-width: 1px;
  height: 1px;
  margin-bottom: -1px;
  /* Makes the outermost animation container element positioned, so that its
     contents are rendered over the main browser window in the Z order.
     This is required by the animated event notification. */
  position: relative;
  /* The selected tab may overlap #downloads-indicator-notification */
  z-index: 5;
}

#downloads-button > #downloads-indicator-anchor {
  min-width: 16px;
  min-height: 16px;
  filter: none;
}

#downloads-button > #downloads-indicator-anchor {
  min-width: 16px;
  min-height: 16px;
}

/*** Main indicator icon ***/

#downloads-button[cui-areatype="toolbar"] > #downloads-indicator-anchor > #downloads-indicator-icon {
  background: -moz-image-rect(url(chrome://symbolic-icons/skin/download.svg),
                              0, 16, 16, 0) center no-repeat;
}

#downloads-button[cui-areatype="toolbar"][attention] > #downloads-indicator-anchor > #downloads-indicator-icon {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#azure);
}

#downloads-button[cui-areatype="menu-panel"][attention] {
  list-style-image: url("chrome://browser/skin/downloads/download-glow-menuPanel.png");
  -moz-image-region: auto;
}

/* In the next few rules, we use :not([counter]) as a shortcut that is
   equivalent to -moz-any([progress], [paused]). */

#downloads-button:not([counter]) > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  background: -moz-image-rect(url(chrome://symbolic-icons/skin/download.svg),
                              0, 16, 16, 0) center no-repeat;
  background-size: 12px;
}

#downloads-button:not([counter])[attention] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-counter {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#azure);
}

/*** Download notifications ***/

#downloads-indicator-notification {
  opacity: 0;
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}

@keyframes downloadsIndicatorNotificationStartRight {
  from { opacity: 0; transform: translate(-128px, 128px) scale(8); }
  20%  { opacity: .85; animation-timing-function: ease-out; }
  to   { opacity: 0; transform: translate(0) scale(1); }
}

@keyframes downloadsIndicatorNotificationStartLeft {
  from { opacity: 0; transform: translate(128px, 128px) scale(8); }
  20%  { opacity: .85; animation-timing-function: ease-out; }
  to   { opacity: 0; transform: translate(0) scale(1); }
}

#downloads-notification-anchor[notification="start"] > #downloads-indicator-notification {
  background-image: url("chrome://browser/skin/downloads/download-notification-start.png");
  animation-name: downloadsIndicatorNotificationStartRight;
  animation-duration: 1s;
}

#downloads-notification-anchor[notification="start"]:-moz-locale-dir(rtl) > #downloads-indicator-notification {
  animation-name: downloadsIndicatorNotificationStartLeft;
}

@keyframes downloadsIndicatorNotificationFinish {
  from { opacity: 0; transform: scale(1); }
  20%  { opacity: .65; animation-timing-function: ease-in; }
  to   { opacity: 0; transform: scale(8); }
}

#downloads-notification-anchor[notification="finish"] > #downloads-indicator-notification {
  background-image: url("chrome://browser/skin/downloads/download-notification-finish.png");
  animation-name: downloadsIndicatorNotificationFinish;
  animation-duration: 1s;
}

/*** Progress bar and text ***/

#downloads-indicator-counter {
  height: 10px;
  margin: 0;
  color: ButtonText;
  text-shadow: 0 1px 0 hsla(0,0%,100%,.5);
  font-size: 10px;
  line-height: 10px;
  text-align: center;
}

#downloads-indicator-progress {
  width: 16px;
  height: 4px;
  min-width: 0;
  min-height: 0;
  margin-top: 1px;
  margin-bottom: 2px;
  border-radius: 2px;
  box-shadow: 0 1px 0 hsla(0,0%,100%,.4);
}

#downloads-indicator-progress > .progress-bar {
  -moz-appearance: none;
  min-width: 0;
  min-height: 0;
  /* The background-clip: border-box; and background-image: none; are there to expand the background-color behind the border */
  background-clip: padding-box, border-box;
  background-color: #73d216;
  border: 1px solid;
  border-color: rgba(0,43,86,.6) rgba(0,43,86,.4) rgba(0,43,86,.4);
  border-radius: 2px 0 0 2px;
}

toolbar[brighttext] #downloads-indicator-progress > .progress-bar {
  border-color: hsla(0,0%,100%,.2);
}

#downloads-indicator-progress > .progress-remainder {
  -moz-appearance: none;
  min-width: 0;
  min-height: 0;
  background-color: #555753;
  border: 1px solid;
  border-color: hsla(0,0%,0%,.6) hsla(0,0%,0%,.4) hsla(0,0%,0%,.4);
  -moz-border-start: none;
  border-radius: 0 2px 2px 0;
}

toolbar[brighttext] #downloads-indicator-progress > .progress-remainder {
  border-color: hsla(0,0%,100%,.2);
}

#downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-bar {
  background-color: #dce651;
}

#downloads-button[paused] > #downloads-indicator-anchor > #downloads-indicator-progress-area > #downloads-indicator-progress > .progress-remainder {
  background-color: #edd400;
}

.gcli-panel {
  padding: 0;
}

.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
  color: hsl(210,11%,16%);
}

/* Error counter */

#developer-toolbar-toolbox-button[error-count]:before {
  color: #FDF3DE;
  min-width: 16px;
  text-shadow: none;
  background-image: linear-gradient(#B4211B, #8A1915);
  border-radius: 1px;
  -moz-margin-end: 2px;
}

/* Social toolbar item */

.social-activation-icon {
  width: auto;
  height: auto;
  max-height: 64px;
  max-width: 64px;
}

#social-activation-message {
  max-width: 250px;
}

#social-activation-message > label {
  margin: 0;
}

/* social toolbar provider menu */
#social-statusarea-popup {
  margin-top: 0;
  margin-left: -12px;
  margin-right: -12px;
}

.social-statusarea-user {
  list-style-image:url("chrome://global/skin/icons/information-32.png");
}

.social-statusarea-user-portrait {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  margin: 10px;
}

.social-panel > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0;
}


#social-sidebar-header {
  padding: 3px;
}

#manage-share-providers,
#social-sidebar-button {
  list-style-image: url("chrome://browser/skin/Toolbar.png");
  -moz-image-region: rect(0, 468px, 18px, 450px);
}

#social-sidebar-button {
  -moz-appearance: none;
  border: none;
  padding: 0;
  margin: 2px;
}
#manage-share-providers > .toolbarbutton-icon,
#social-sidebar-button > .toolbarbutton-icon {
  min-height: 18px;
  min-width: 18px;
}

#social-sidebar-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

#social-sidebar-button[loading="true"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}

#social-sidebar-favico {
  max-height: 16px;
  max-width: 16px;
  padding: 0;
  margin: 2px;
}

.chat-status-icon {
  max-height: 16px;
  max-width: 16px;
  padding: 0;
}

.chat-toolbarbutton {
  -moz-appearance: none;
  border: none;
  padding: 0 3px;
  margin: 0;
  background: none;
}

.chat-toolbarbutton:hover {
  background-color: rgba(255,255,255,.35);
}

.chat-toolbarbutton:hover:active {
  background-color: rgba(255,255,255,.5);
}

.chat-toolbarbutton > .toolbarbutton-text {
  display: none;
}

.chat-toolbarbutton > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

.chat-close-button {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close");
}

.chat-close-button:-moz-any(:hover,:hover:active) {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close-active");
}

.chat-minimize-button {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize");
}

.chat-minimize-button:-moz-any(:hover,:hover:active) {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize-active");
}

.chat-swap-button {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand");
  transform: rotate(180deg);
}

.chat-swap-button:-moz-any(:hover,:hover:active) {
  list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand-active");
}

chatbar > chatbox > .chat-titlebar > .chat-swap-button {
  transform: none;
}

.chat-title {
  font-weight: bold;
  color: black;
  text-shadow: none;
  cursor: inherit;
}

.chat-titlebar {
  height: 30px;
  min-height: 30px;
  width: 100%;
  margin: 0;
  padding: 7px 6px;
  border: none;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.chat-titlebar > .notification-anchor-icon {
  margin-left: 2px;
  margin-right: 2px;
}

.chat-titlebar[minimized="true"] {
  border-bottom: none;
}

.chat-titlebar[activity] {
  background-image: radial-gradient(ellipse closest-side at center, rgb(255,255,255), transparent);
  background-repeat: no-repeat;
  background-size: 100% 20px;
  background-position: 0 -10px;
}

chatbox[dark=true] > .chat-titlebar,
chatbox[dark=true] > .chat-titlebar[selected] {
  border-bottom: none;
  background-color: #000;
  background-image: none;
}

chatbox[dark=true] > .chat-titlebar > hbox > .chat-title {
  font-weight: normal;
  color: #c1c1c1;
}

.chat-frame {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.chatbar-button {
  list-style-image: url("chrome://browser/skin/social/services-16.png");
  margin: 0;
  padding: 2px;
  height: 21px;
  width: 21px;
  border: 1px solid #ccc;
  border-bottom: none;
}

@media (min-resolution: 2dppx) {
  .chatbar-button {
    list-style-image: url("chrome://browser/skin/social/services-16@2x.png");
  }
}

.chatbar-button > .toolbarbutton-icon {
  width: 16px;
}

.chatbar-button > menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
  width: auto;
  height: auto;
  max-height: 16px;
  max-width: 16px;
}

.chatbar-button[open="true"] {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 1px rgba(255,255,255,0.2);
}

.chatbar-button > .toolbarbutton-text,
.chatbar-button > .toolbarbutton-menu-dropmarker {
  display: none;
}

.chatbar-button > menupopup > menuitem[activity] {
  font-weight: bold;
}

.chatbar-innerbox {
  background: transparent;
  overflow: hidden;
}

chatbar {
  -moz-margin-end: 20px;
}

chatbox {
  -moz-margin-start: 4px;
  background-color: white;
  border: 1px solid #ccc;
  border-bottom: none;
}

window > chatbox {
  -moz-margin-start: 0px;
  margin: 0px;
  border: none;
  padding: 0px;
}

.chat-titlebar {
  background-color: #d9d9d9;
  background-image: linear-gradient(rgba(255,255,255,.3), transparent);
}

.chat-titlebar[selected] {
  background-color: #f0f0f0;
}

.chatbar-button {
  -moz-appearance: none;
  background-color: #d9d9d9;
  background-image: radial-gradient(circle farthest-corner at center 3px, rgb(233,242,252) 3%, rgba(172,206,255,0.75) 40%, rgba(87,151,201,0.5) 80%, transparent);
}

.chatbar-button > .toolbarbutton-icon {
  -moz-margin-end: 0;
}

.chatbar-button:hover,
.chatbar-button[open="true"] {
  background-color: #f0f0f0;
}

.chatbar-button[activity] {
  background-image: radial-gradient(circle farthest-corner at center 3px, rgb(233,242,252) 3%, rgba(172,206,255,0.75) 40%, rgba(87,151,201,0.5) 80%, transparent);
}

chatbox {
  border-top-left-radius: 2.5px;
  border-top-right-radius: 2.5px;
}

/* Customization mode */

#main-window[customizing] #navigator-toolbox {
  background: Window;
}

#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox {
  margin-bottom: 2em;
}

#main-window:-moz-any([customize-entering],[customize-entered]) #content-deck,
#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
#main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
  margin-left: 2em;
  margin-right: 2em;
}

#main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
  margin-top: 2em;
}

#main-window:-moz-any([customize-entering],[customize-exiting]) #tab-view-deck {
  pointer-events: none;
}

#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
#PanelUI-contents > .panel-customization-placeholder {
  -moz-outline-radius: 2.5px;
  outline: 1px dashed transparent;
}

#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before {
  /* Prevent jumping of tabs when switching a window between inactive and active (bug 853415). */
  -moz-box-ordinal-group: 0;
  content: "";
  display: -moz-box;
  height: 100%;
  left: 0;
  outline-offset: -2px;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Shift the TabsToolbar outline up 2px since the #nav-bar is shifted up by 1px and the
   #TabsToolbar::after is a pixel higher to draw the bottom border of the tabstrip so this makes the
   offset from the bottom effectively the same as other targets (-2px). */
#main-window[customize-entered] #TabsToolbar.customization-target::before {
  top: -2px;
}

/* The parents of the outline pseudo-elements need to be positioned so that the outline is positioned relative to it. */
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover,
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)),
#main-window[customize-entered] #nav-bar-customization-target.customization-target {
  position: relative;
}

/* Most target outlines are shown on hover and drag over but the panel menu uses
   placeholders instead. */
#main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover::before,
#main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
/* nav-bar and panel outlines are always shown */
#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
  outline-color: rgb(102,102,102);
}

#nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
  transition: outline-color 250ms linear;
}

#PanelUI-contents[showoutline=true] > .panel-customization-placeholder {
  transition: outline-color 250ms linear;
  outline-color: #bbb;
}

#PanelUI-contents > .panel-customization-placeholder {
  cursor: auto;
  outline-offset: -5px;
}

#main-window[customizing] .customization-target:not(#PanelUI-contents) {
  min-width: 100px;
  padding-left: 10px;
  padding-right: 10px;
}

#customization-container {
  background-color: -moz-Field;
  color: -moz-FieldText;
  text-shadow: none;
}

#customization-palette,
#customization-empty {
  padding: 0 25px 25px;
}

#customization-header {
  font-size: 1.75em;
  line-height: 1.75em;
  color: #666;
  font-weight: 200;
  margin: 25px 25px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

#customization-panel-container {
  padding: 15px 25px 25px;
  background-image: linear-gradient(to bottom, #3e86ce, #3878ba);
}

#main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
#customization-footer {
  background-color: Window;
}

#customization-footer {
  border-top: 1px solid hsla(0,0%,0%,0.1);
  padding: 10px;
}

.customizationmode-button {
  border: 1px solid hsla(0,0%,0%,0.2);
  border-radius: 3px;
  margin: 5px;
  padding: 2px 12px;
  background-color: -moz-Field;
  color: -moz-FieldText;
  box-shadow: 0 1px hsla(0,0%,100%,0.04),
              inset 0 1px hsla(0,0%,100%,0.04);
  -moz-appearance: none;
}

#customization-titlebar-visibility-button[checked],
#customization-devedition-theme-button[checked] {
  background-color: rgb(218, 218, 218);
  border-color: rgb(168, 168, 168);
  text-shadow: 0 1px rgb(236, 236, 236);
  box-shadow: 0 1px rgba(255, 255, 255, 0.5),
              inset 0 1px rgb(196, 196, 196);
}

.customizationmode-button[disabled="true"] {
  opacity: .5;
}

/* Tweaks extension uses this class */
.customizationmode-link {
  color: #4a90d9;
  text-decoration: underline;
  margin: 5px;
  padding: 2px 4px;
  min-width: 0;
}

.customizationmode-button > .box-inherit > .box-inherit > .button-icon,
.customizationmode-button > .button-box > .button-icon {
  height: 24px;
}

#customization-titlebar-visibility-button {
  list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle.png");
  -moz-image-region: rect(0, 24px, 24px, 0);
}

#customization-lwtheme-button,
#customization-titlebar-visibility-button  {
  padding: 2px 7px;
}

#customization-lwtheme-button > .box-inherit > .box-inherit > .button-text,
#customization-titlebar-visibility-button > .button-box > .button-text {
  /* Sadly, button.css thinks its margins are perfect for everyone. */
  -moz-margin-start: 6px !important;
}

#customization-lwtheme-button > .box-inherit > .box-inherit > .button-icon {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background-size: contain;
}

#customization-titlebar-visibility-button > .button-box > .button-icon {
  vertical-align: middle;
}

#customization-titlebar-visibility-button[checked] {
  -moz-image-region: rect(0, 48px, 24px, 24px);
}

@media (min-resolution: 1.1dppx) {
  #customization-titlebar-visibility-button {
    list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
    -moz-image-region: rect(0, 48px, 48px, 0);
  }

  #customization-titlebar-visibility-button[checked] {
    -moz-image-region: rect(0, 96px, 48px, 48px);
  }
}

#main-window[customize-entered] #customization-panel-container {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-separatorHorizontal.png"),
                    url("chrome://browser/skin/customizableui/customizeMode-separatorVertical.png"),
                    url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
                    url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
                    linear-gradient(to bottom, #3e86ce, #3878ba);
  background-position: center top, left center, left top, left top, left top;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: auto 12px, 12px 100%, auto, auto, auto;
  background-attachment: scroll, scroll, fixed, fixed, scroll;
}

toolbarpaletteitem[place="toolbar"] {
  transition: border-width 250ms ease-in-out;
}

toolbarpaletteitem[mousedown] {
  cursor: -moz-grabbing;
}

.panel-customization-placeholder,
toolbarpaletteitem[place="palette"],
toolbarpaletteitem[place="panel"] {
  transition: transform .3s ease-in-out;
}

#customization-palette {
  transition: opacity .3s ease-in-out;
  opacity: 0;
}

#customization-palette[showing="true"] {
  opacity: 1;
}

toolbarpaletteitem[notransition].panel-customization-placeholder,
toolbarpaletteitem[notransition][place="toolbar"],
toolbarpaletteitem[notransition][place="palette"],
toolbarpaletteitem[notransition][place="panel"] {
  transition: none;
}

toolbarpaletteitem > toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon,
toolbarpaletteitem > toolbaritem.panel-wide-item,
toolbarpaletteitem > toolbarbutton[type="menu-button"] {
  transition: transform .3s cubic-bezier(.6, 2, .75, 1.5) !important;
}

toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon {
  transform: scale(1.3);
}

toolbarpaletteitem[mousedown] > toolbaritem.panel-wide-item,
toolbarpaletteitem[mousedown] > toolbarbutton[type="menu-button"] {
  transform: scale(1.1);
}

/* Override the toolkit styling for items being dragged over. */
toolbarpaletteitem[place="toolbar"] {
  border-left-width: 0;
  border-right-width: 0;
  margin-right: 0;
  margin-left: 0;
}

#customization-palette:not([hidden]) {
  margin-bottom: 25px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
#wrapper-edit-controls[place="palette"] > #edit-controls > separator,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > separator {
  margin-top: 20px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton {
  margin-left: 0;
  margin-right: 0;
  max-width: 24px;
  min-width: 24px;
  max-height: 24px;
  min-height: 24px;
  padding: 4px;
}

#wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton > .toolbarbutton-icon,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton > .toolbarbutton-icon {
  width: 16px;
}

#wrapper-edit-controls:not([place="toolbar"]) > #edit-controls > toolbarbutton > .toolbarbutton-icon {
  opacity: .6; /* To ensure these buttons always look enabled in customize mode */
}

#wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button,
#wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button + separator {
  display: none;
}

#wrapper-personal-bookmarks:not([place="toolbar"]) > #personal-bookmarks {
  -moz-box-pack: center;
  min-height: 48px;
}

#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
  -moz-margin-end: 5px;
}

#customization-palette > toolbarpaletteitem > label {
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

#customization-lwtheme-menu > .panel-arrowcontainer > .panel-arrowcontent {
  -moz-box-orient: vertical;
  /* Make the panel padding uniform across all platforms due to the
     styling of the section headers and footer. */
  padding: 10px;
}

.customization-lwtheme-menu-theme > .toolbarbutton-icon {
  width: 32px;
  height: 32px;
}

.customization-lwtheme-menu-theme {
  -moz-appearance: none;
  border: 1px solid transparent;
  margin: 0 -5px 5px;
  padding-top: 0;
  -moz-padding-end: 5px;
  padding-bottom: 0;
  -moz-padding-start: 0;
}

.customization-lwtheme-menu-theme[defaulttheme] {
  list-style-image: url(chrome://browser/skin/theme-switcher-icon.png);
}

.customization-lwtheme-menu-theme[active="true"],
.customization-lwtheme-menu-theme:hover {
  background-color: hsla(180,20%,10%,.08);
  border-color: hsla(180,20%,10%,.11);
}

.customization-lwtheme-menu-theme[active="true"],
.customization-lwtheme-menu-theme:hover:active {
  background-color: hsla(180,20%,10%,.15);
}

.customization-lwtheme-menu-theme > .toolbarbutton-icon {
  margin: 5px;
}

.customization-lwtheme-menu-theme > .toolbarbutton-text {
  text-align: start;
}

#customization-lwtheme-menu-header,
#customization-lwtheme-menu-recommended {
  padding: 10px;
  margin-bottom: 5px;
}

#customization-lwtheme-menu-header,
#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer {
  background-color: hsla(180,20%,10%,.05);
  color: hsl(0,0%,50%);
  margin-right: -10px;
  margin-left: -10px;
}

#customization-lwtheme-menu-header {
  margin-top: -10px;
  border-bottom: 1px solid hsla(180,20%,10%,.05);
}

#customization-lwtheme-menu-recommended {
  border-top: 1px solid hsla(180,20%,10%,.05);
  border-bottom: 1px solid hsla(180,20%,10%,.05);
}

#customization-lwtheme-menu-footer {
  background: linear-gradient(hsla(180,20%,10%,.05) 60%, transparent) border-box;
  border-top: 1px solid hsla(180,20%,10%,.05);
  margin-bottom: -10px;
}

.customization-lwtheme-menu-footeritem {
  -moz-appearance: none;
  -moz-box-flex: 1;
  color: hsl(0,0%,50%);
  border-style: none;
  padding: 10px;
  margin-left: 0;
  margin-right: 0;
}

.customization-lwtheme-menu-footeritem:hover {
  background: linear-gradient(hsla(180,20%,10%,.08) 40%, transparent) padding-box;
}

.customization-lwtheme-menu-footeritem:first-child {
  -moz-border-end: 1px solid hsla(180,20%,10%,.15);
}

#customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0;
  margin: 0;
  min-width: 400px;
  max-width: 1000px;
  min-height: 200px;
  border-radius: 3px;
  background-image: linear-gradient(90deg, #a0dfff 0%, #ceeeff 100%);
  border: 0px solid rgba(0,148,221,.5);
  box-shadow: 0 1px 5px 0 rgba(0,0,0,.5), inset 0 1px 1px 0 #fff;
  color: rgb(51,51,51);
}

#customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent:-moz-locale-dir(rtl) {
  background-image: linear-gradient(90deg, #ceeeff 0%, #a0dfff 100%);
}

.customization-tipPanel-infoBox {
  margin: 20px 25px 25px;
  width: 25px;
  background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip.png);
  background-repeat: no-repeat;
}

.customization-tipPanel-content {
  margin: 25px 0;
  font-size: 12px;
  line-height: 18px;
}

.customization-tipPanel-em {
  margin: 0;
  font-weight: bold;
}

.customization-tipPanel-contentImage {
  margin-top: 25px;
  list-style-image: url(chrome://browser/skin/customizableui/customize-illustration.png);
  min-width: 300px;
  max-width: 300px;
  min-height: 190px;
  max-height: 190px;
  display: -moz-box;
}

.customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
  list-style-image: url(chrome://browser/skin/customizableui/customize-illustration-rtl.png);
}

.customization-tipPanel-link {
  -moz-appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgb(25,82,171);
  margin: 0;
  cursor: pointer;
}

.customization-tipPanel-link > .button-box > .button-text {
  margin: 0 !important;
}

.customization-tipPanel-closeBox > .close-icon {
  -moz-appearance: none;
  border: 0;
  -moz-margin-end: -25px;
}

#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
#customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
  list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip.png");
}

#main-window[customize-entered] > #tab-view-deck {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
                    linear-gradient(to bottom, #bcbcbc, #b5b5b5);
  background-attachment: fixed;
}

#main-window[customization-lwtheme] > #tab-view-deck:-moz-lwtheme {
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
  /* The image will get set from CustomizeMode.jsm */
  background-image: none;
  background-color: transparent;
}

#main-window[customization-lwtheme]:-moz-lwtheme {
  background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
                    url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
                    linear-gradient(to bottom, #bcbcbc, #b5b5b5);
  background-color: #b5b5b5;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: left top;
}

#main-window[customize-entered] #browser-bottombox,
#main-window[customize-entered] #navigator-toolbox,
#main-window[customize-entered] #customization-container {
  border-left: 3px solid hsla(0,0%,0%,.1);
  border-right: 3px solid hsla(0,0%,0%,.1);
  background-clip: padding-box;
  background-origin: padding-box;
  -moz-border-right-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
  -moz-border-left-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
}

#main-window[customize-entered] #navigator-toolbox {
  border-top: 3px solid hsla(0,0%,0%,.1);
  -moz-border-top-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
}

#main-window[customize-entered] #browser-bottombox {
  border-bottom: 3px solid hsla(0,0%,0%,.1);
  -moz-border-bottom-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
}

/* The :hover:active style from toolkit doesn't seem to work in this panel so just use :active. */
.customization-tipPanel-closeBox > .close-icon:active {
  background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 48, 16, 32);
}

/* End customization mode */

/*
#main-window[privatebrowsingmode=temporary] #private-browsing-indicator {
  background: url(chrome://symbolic-icons/skin/privatebrowsing.svg) center no-repeat;
  width: 36px;
  -moz-margin-start: -10px;
  opacity: 0.4;
}
*/

/* UI Tour */

#UITourHighlightContainer {
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  /* This is a buffer to compensate for the movement in the "wobble" effect */
  padding: 4px;
}

#UITourHighlight {
  background-image: radial-gradient(50% 100%, rgba(0,149,220,0.4) 50%, rgba(0,149,220,0.6) 100%);
  border-radius: 40px;
  border: 1px solid white;
  /* The box-shadow opacity needs to be < 0.5 so it doesn't appear at 100% opacity
     on Linux without an X compositor where opacity is either 0 or 1. */
  box-shadow: 0 0 3px 0 rgba(0,0,0,0.49);
  min-height: 32px;
  min-width: 32px;
}

#UITourTooltipBody {
  -moz-margin-end: 14px;
}

#UITourTooltipBody > vbox {
  padding-top: 4px;
}

#UITourTooltipIconContainer {
  -moz-margin-start: -16px;
}

#UITourTooltipIcon {
  width: 48px;
  height: 48px;
  -moz-margin-start: 28px;
  -moz-margin-end: 28px;
}

#UITourTooltipTitle,
#UITourTooltipDescription {
  max-width: 20rem;
}

#UITourTooltipTitle {
  font-size: 1.45rem;
  font-weight: bold;
  -moz-margin-start: 0;
  -moz-margin-end: 0;
  margin: 0 0 9px 0;
}

#UITourTooltipDescription {
  -moz-margin-start: 0;
  -moz-margin-end: 0;
  font-size: 1.15rem;
  line-height: 1.8rem;
  margin-bottom: 0; /* Override global.css */
}

#UITourTooltipClose {
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  min-width: 0;
  -moz-margin-start: 4px;
  margin-top: -2px;
}

#UITourTooltipClose > .toolbarbutton-text {
  display: none;
}

#UITourTooltipButtons {
  -moz-box-pack: end;
  background-color: hsla(180,20%,10%,.07);
  border-top: 1px solid hsla(180,20%,10%,.14);
  margin: 24px -16px -16px;
  padding: 2em 15px;
}

#UITourTooltipButtons > label,
#UITourTooltipButtons > button {
  margin: 0 15px;
}

#UITourTooltipButtons > label:first-child,
#UITourTooltipButtons > button:first-child {
  -moz-margin-start: 0;
}

#UITourTooltipButtons > button[image] > .button-box > .button-icon {
  width: 16px;
  height: 16px;
  -moz-margin-end: 5px;
}

#UITourTooltipButtons > label,
#UITourTooltipButtons > button .button-text {
  font-size: 1.15rem;
}

#UITourTooltipButtons > button:not(.button-link) {
  -moz-appearance: none;
  background-color: rgb(251,251,251);
  border-radius: 3px;
  border: 1px solid;
  border-color: rgb(192,192,192);
  color: rgb(71,71,71);
  padding: 4px 30px;
  transition-property: background-color, border-color;
  transition-duration: 150ms;
}

#UITourTooltipButtons > button:not(.button-link):not(:active):hover {
  background-color: hsla(180,20%,10%,.15);
  border-color: hsla(180,20%,10%,.15);
  box-shadow: 0 1px 0 0 hsla(180,20%,10%,.05) inset;
}

#UITourTooltipButtons > label,
#UITourTooltipButtons > button.button-link {
  -moz-appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(0,0,0,0.35);
  padding-left: 10px;
  padding-right: 10px;
}

#UITourTooltipButtons > button.button-link:hover {
  color: black;
}

/* The primary button gets the same color as the customize button. */
#UITourTooltipButtons > button.button-primary {
  background-color: rgb(116,191,67);
  color: white;
  padding-left: 30px;
  padding-right: 30px;
}

#UITourTooltipButtons > button.button-primary:not(:active):hover {
  background-color: rgb(105,173,61);
}

/* Notification overrides for Heartbeat UI */

notification.heartbeat {
  background-color: #F1F1F1;
  border-bottom: 1px solid #C1C1C1;
  height: 40px;
}

/* In themes/osx/global/notification.css the close icon is inverted because notifications
   on OSX are usually dark. Heartbeat is light, so override that behaviour. */

@keyframes pulse-onshow {
 0% {
   opacity: 0;
   transform: scale(1.0);
 }
 25% {
   opacity: 1;
   transform: scale(1.1);
 }
 50% {
   transform: scale(1.0);
 }
 75% {
   transform: scale(1.1);
 }
 100% {
   transform: scale(1.0);
 }
}

@keyframes pulse-twice {
 0% {
   transform: scale(1.1);
 }
 50% {
   transform: scale(0.8);
 }
 100% {
   transform: scale(1);
 }
}

.messageText.heartbeat {
  color: #333333;
  text-shadow: none;
  -moz-margin-start: 0px;
  /* The !important is required to override OSX default style. */
  -moz-margin-end: 12px !important;
}

.messageImage.heartbeat {
  width: 24px;
  height: 24px;
  -moz-margin-start: 8px;
  -moz-margin-end: 8px;
}

.messageImage.heartbeat.pulse-onshow {
  animation-name: pulse-onshow;
  animation-duration: 1.5s;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(.7,1.8,.9,1.1);
}

.messageImage.heartbeat.pulse-twice {
  animation-name: pulse-twice;
  animation-duration: 1s;
  animation-iteration-count: 2;
  animation-timing-function: linear;
}

/* Learn More link styles */
.heartbeat > .text-link {
  color: #0095DD;
  -moz-margin-start: 0px;
}

.heartbeat > .text-link:hover {
  color: #008ACB;
  text-decoration: none;
}

.heartbeat > .text-link:hover:active {
  color: #006B9D;
}

/* Heartbeat UI Rating Star Classes */
.heartbeat > #star-rating-container {
  display: -moz-box;
  margin-bottom: 4px;
}

.heartbeat > #star-rating-container > #star5 {
  -moz-box-ordinal-group: 5;
}

.heartbeat > #star-rating-container > #star4 {
  -moz-box-ordinal-group: 4;
}

.heartbeat > #star-rating-container > #star3 {
  -moz-box-ordinal-group: 3;
}

.heartbeat > #star-rating-container > #star2 {
  -moz-box-ordinal-group: 2;
}

.heartbeat > #star-rating-container > .star-x  {
  background: url("chrome://browser/skin/heartbeat-star-off.svg");
  cursor: pointer;
  /* Overrides the -moz-margin-end for all platforms defined in the .plain class */
  -moz-margin-end: 4px !important;
  width: 16px;
  height: 16px;
}

.heartbeat > #star-rating-container > .star-x:hover,
.heartbeat > #star-rating-container > .star-x:hover ~ .star-x {
  background: url("chrome://browser/skin/heartbeat-star-lit.svg");
}

#UITourHighlight {
  /* Below are some fixes for people without an X compositor on Linux.
     This is why we can't have nice things: */
  /* Animations don't repaint properly without an X compositor. */
  animation-name: none !important;
  /* Opacity rounds to 0 or 1 on Linux without an X compositor so make the
     background be transparent in that case by having all alpha values < 0.5 */
  background-image: radial-gradient(50% 100%, rgba(0,149,220,0.3) 50%, rgba(0,149,220,0.49) 100%);
  /* The highlight isn't anti-aliased without an X compositor so make it thicker.
     Make it a darker color since we don't have the box-shadow in this case. */
  border: 4px solid rgb(0,149,220);
}

#UITourTooltipDescription {
  font-size: 1.05rem;
}

#UITourTooltipClose {
  -moz-margin-end: -4px;
  height: 16px;
  width: 16px;
}

#UITourTooltipButtons {
  margin-bottom: -10px;
}

#context-navigation > .menuitem-iconic {
  -moz-box-flex: 1;
  -moz-box-pack: center;
  -moz-box-align: center;
}

#context-navigation > .menuitem-iconic > .menu-iconic-left {
  -moz-appearance: none;
}

#context-back {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back");
}

#context-back[_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-active");
}

#context-back[disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-disabled");
}

#context-forward {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward");
}

#context-forward[_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-active");
}

#context-forward[disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-disabled");
}

#context-reload {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload");
}

#context-reload[_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-active");
}

#context-reload[disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-disabled");
}

#context-stop {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop");
}

#context-stop[_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-active");
}

#context-stop[disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-disabled");
}

#context-bookmarkpage {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark");
}

#context-bookmarkpage[_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-active");
}

#context-bookmarkpage[disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-disabled");
}

#context-bookmarkpage[starred=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked");
}

#context-bookmarkpage[starred=true][_moz-menuactive=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked-active");
}

#context-bookmarkpage[starred=true][disabled=true] {
  list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked-disabled");
}

#context-back:-moz-locale-dir(rtl),
#context-forward:-moz-locale-dir(rtl),
#context-reload:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

#context-navigation > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
  width: 20px;
  height: 20px;
  margin: 3px;
}

#context-navigation {
  padding-top: 4px;
}

#context-media-eme-learnmore {
  list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
}

#context-navigation > .menuitem-iconic > .menu-iconic-left {
  visibility: visible;
  /* override toolkit/themes/linux/global/menu.css */
  -moz-padding-end: 0 !important;
  -moz-margin-end: 0 !important;
}

/*
.browser-action-panel > .panel-arrowcontainer > .panel-arrowcontent {
  padding: 0;
}
*/

/* ::::: Extensions ::::: */



/* Default */
#abp-toolbarbutton .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#default);
  -moz-image-region: auto;
}

#abp-toolbarbutton[cui-areatype="menu-panel"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#default-panel);
  -moz-image-region: auto;
}

#main-window[darkvariant] #abp-toolbarbutton[cui-areatype="toolbar"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#default-bright);
  -moz-image-region: auto;
}

#main-window[darkvariant="full"] #abp-toolbarbutton[cui-areatype="menu-panel"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#default-panel-bright);
  -moz-image-region: auto;
}

/* Stopped */
#abp-toolbarbutton[abpstate="disabled"] .toolbarbutton-icon,
#abp-toolbarbutton[abpstate="whitelisted"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#stopped);
  -moz-image-region: auto;
}

#abp-toolbarbutton[abpstate="disabled"][cui-areatype="menu-panel"] .toolbarbutton-icon,
#abp-toolbarbutton[abpstate="whitelisted"][cui-areatype="menu-panel"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#stopped-panel);
  -moz-image-region: auto;
}

#main-window[darkvariant] #abp-toolbarbutton:-moz-any([abpstate="disabled"], [abpstate="whitelisted"])[cui-areatype="toolbar"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#stopped-bright);
  -moz-image-region: auto;
}

#main-window[darkvariant="full"] #abp-toolbarbutton:-moz-any([abpstate="disabled"], [abpstate="whitelisted"])[cui-areatype="menu-panel"] .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#stopped-panel-bright);
  -moz-image-region: auto;
}

/* Palette */
toolbarpaletteitem[place="palette"] > #abp-toolbarbutton .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/adblock-plus.svg#default-panel) !important;
  -moz-image-region: auto;
}


/* FIXME: Need fix toolbar view. */

#at_toolbarBtn {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/addthis.svg) !important;
}
#at_toolbarBtn > .toolbarbutton-icon {
  -moz-margin-end: 0 !important;
}

#at_urlbarBtn {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/addthis.svg) !important;
  opacity: .35;
}
#at_urlbarBtn:hover {
  opacity: 1;
}

@-moz-document url("chrome://browser/content/browser.xul") {

#aios-sbhtoolbar > .tabs-closebutton {
  list-style-image: url(chrome://symbolic-icons/skin/close.svg);
}
#aios-sbhtoolbar > .tabs-closebutton > .toolbarbutton-icon {
  margin: 0;
}

#addons-button.aios-tbutton {
  list-style-image: url(chrome://symbolic-icons/skin/addon.svg) !important;
  -moz-image-region: auto !important;
}

#pageinfo-button.aios-tbutton {
  list-style-image: url(chrome://symbolic-icons/skin/information.svg) !important;
  -moz-image-region: auto !important;
}

#multipanel-button.aios-tbutton {
}

}

@-moz-document url("about:addons") {

#addons-page[aios-inSidebar] {
  background: none;
}

#addons-page[aios-inSidebar] #header {
  border-top: 1px solid #a7a7a7;
}

#addons-page[aios-inSidebar] .category-icon {
  display: -moz-box;
}

#addons-page[aios-inSidebar] .category {
  border: none;
}

}


#readable_by_evernote__button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/clearly.svg) !important;
}

#readable_by_evernote__button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #readable_by_evernote__button > .toolbarbutton-icon {
  opacity: .6;
}

:-moz-any(#wrapper-colorzilla-navbar-button, #colorzilla-navbar-button) .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/colorzilla.svg) !important;
}

:-moz-any(#wrapper-colorzilla-navbar-button, #colorzilla-navbar-button)[cui-areatype="menu-panel"] .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > :-moz-any(#wrapper-colorzilla-navbar-button, #colorzilla-navbar-button) .toolbarbutton-icon {
  opacity: .6;
}


#dta-manager-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/dta-manager.svg) !important;
  -moz-image-region: auto !important;
}

#dta-manager-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #dta-manager-button > .toolbarbutton-icon {
  opacity: .6;
}


#facebook-disconnect-icon:not([src]) {
  display: none;
}

#feedly-toolbar-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/feedly.svg) !important;
}

#feedly-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #feedly-toolbar-button > .toolbarbutton-icon {
  opacity: .6;
}

#firebug-button {
  filter: none !important;
  list-style-image: none !important;
  -moz-image-region: rect(16px, 16px, 32px, 0) !important;
}

#firebug-button > .fb-toolbarbutton > .toolbarbutton-icon {
  background: url(chrome://symbolic-icons/skin/extensions/firebug.svg) no-repeat center !important;
  opacity: 0.5;
}

#firebug-button[firebugActive="true"] > .fb-toolbarbutton > .toolbarbutton-icon {
  opacity: 1;
}

#firebug-button[cui-areatype="menu-panel"] > .fb-toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #firebug-button > .fb-toolbarbutton > .toolbarbutton-icon {
  background-size: 32px 32px !important;
  opacity: .3;
}

#firebug-button[firebugActive="true"][cui-areatype="menu-panel"] > .fb-toolbarbutton > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #firebug-button[firebugActive="true"] > .fb-toolbarbutton > .toolbarbutton-icon {
  opacity: .6;
}

#firebug-button .badge > .label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #242b33 !important;
  text-shadow: none !important;
}

#flagfox-button {
  padding: 0 !important;
}

#flashblockToggle-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/flashblock.svg) !important;
}

#flashblockToggle-button:-moz-any([state="disabled"], [disabled="true"]) .toolbarbutton-icon {
  opacity: .5;
}

#flashblockToggle-button[cui-areatype="menu-panel"] .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #flashblockToggle-button .toolbarbutton-icon {
  opacity: .6;
}

#flashblockToggle-button:-moz-any([state="disabled"], [disabled="true"])[cui-areatype="menu-panel"] .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #flashblockToggle-button:-moz-any([state="disabled"], [disabled="true"]) .toolbarbutton-icon {
  opacity: .3;
}

/* Replace video icon */

#flashgot-media-tbb {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/flashgot-video.svg) !important;
}

#sendtophone-toolbar-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/foxtophone.svg) !important;
  -moz-image-region: auto !important;
}

#sendtophone-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #sendtophone-toolbar-button > .toolbarbutton-icon {
  opacity: .6;
}


#navigator-toolbox[iconsize=large] > #nav-bar[reliefbuttons="true"] #ghostery-button {
  min-width: 32px !important;
}

#ghostery-button[image*="icon19"] > .toolbarbutton-icon {
  background: url(chrome://symbolic-icons/skin/extensions/ghostery.svg) no-repeat center !important;
  width: 16px !important;
  height: 16px !important;
  -moz-padding-start: 16px !important;
  overflow: hidden !important;
}

#ghostery-button[image*="icon19_off"] > .toolbarbutton-icon {
  background-image: url(chrome://symbolic-icons/skin/extensions/ghostery-grayscale.svg) !important;
  opacity: 0.5;
}

toolbaritem[cui-areatype="menu-panel"] #ghostery-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] #ghostery-button > .toolbarbutton-icon {
  background-size: 32px 32px !important;
  width: 32px !important;
  height: 32px !important;
  -moz-padding-start: 32px !important;
}

toolbaritem[cui-areatype="menu-panel"] #ghostery-button[image*="off"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] #ghostery-button[image*="off"] > .toolbarbutton-icon {
  opacity: .3;
}

#ghostery-button-badge {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #242b33 !important;
  text-shadow: 0px 0px 1px #fff !important;
}

.tbb-scripts-available > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  background-image: url(chrome://symbolic-icons/skin/extensions/greasefire.svg) !important;
}

.tbb-scripts-available[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > .tbb-scripts-available > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  background-size: 32px 32px !important;
}

#greasemonkey-tbb {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/greasemonkey.svg) !important;
}

#greasemonkey-tbb[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #greasemonkey-tbb > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  opacity: .6;
}

#greasemonkey-tbb[disabled="true"][cui-areatype="menu-panel"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #greasemonkey-tbb[disabled="true"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  opacity: .3;
}


#https-everywhere-button > .https-everywhere-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/https-everywhere.svg) !important;
}

#https-everywhere-button[status="disabled"] > .https-everywhere-button > .toolbarbutton-icon {
  opacity: .5 !important;
}

#https-everywhere-button[cui-areatype="menu-panel"] > .https-everywhere-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #https-everywhere-button > .https-everywhere-button > .toolbarbutton-icon {
  opacity: .6 !important;
}

#https-everywhere-button[status="disabled"][cui-areatype="menu-panel"] > .https-everywhere-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #https-everywhere-button[status="disabled"] > .https-everywhere-button > .toolbarbutton-icon {
  opacity: .3 !important;
}

/* Font fixes */

#https-everywhere-button menuitem.active-item label {
  color: inherit !important;
  font-weight: normal !important;
}

#https-everywhere-button menuitem.moot-item label {
  color: inherit !important;
  opacity: 0.5 !important;
  font-weight: normal !important;
}

#https-everywhere-button menuitem.breaking-item label {
  color: inherit !important;
  font-weight: normal !important;
}

#https-everywhere-button menuitem.inactive-item label {
  color: inherit !important;
  font-weight: normal !important;
}

/* Icons */

#main-window[sizemode="normal"] #window-controls[htitle="true"] > #restore-button {
  list-style-image: url(chrome://symbolic-icons/skin/window-maximize.svg);
}

#main-window[sizemode="maximized"] #window-controls[htitle="true"] > #restore-button {
  list-style-image: url(chrome://symbolic-icons/skin/window-restore.svg);
}

/* Show/hide window controls */

#window-controls[htitle="true"] > :-moz-any(#minimize-button, #restore-button) {
  display: none !important;
}

#window-controls[htitle="true"][htitlebuttonlayout*="minimize"] > #minimize-button, /* HTitle 3+ */
#window-controls[htitle="true"][htitle-button-layout*="minimize"] > #minimize-button,
#window-controls[htitle="true"][htitlebuttonlayout*="maximize"] > #restore-button,
#window-controls[htitle="true"][htitle-button-layout*="maximize"] > #restore-button,
#window-controls[htitle="true"] > #close-button {
  display: -moz-box !important;
}

#main-window[sizemode="fullscreen"] #window-controls[htitle="true"],
#main-window[sizemode="fullscreen"] #window-controls[htitle="true"] > #restore-button {
  display: -moz-box !important;
}

#main-window[sizemode="fullscreen"] #window-controls[htitle="true"] > :-moz-any(#minimize-button, #close-button) {
  display: none !important;
}

/* Hide theme's window controls */

#main-window[htitlemode] .window-controls {
  display: none !important;
}

/* Remove "toolbar-drag" binding */

#main-window[htitlemode]:not([customizing]) #TabsToolbar:not([tabsontop="true"]) {
  -moz-binding: url(chrome://browser/content/customizableui/toolbar.xml#toolbar) !important;
}


/* Globe */

#KeeFox_Menu-Button,
toolbar[iconsize="small"] #KeeFox_Menu-Button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/keeforms.svg) !important;
}

/* Lock */

#KeeFox_Logins-Button,
toolbar[iconsize="small"] #KeeFox_Logins-Button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/keelock.svg) !important;
}

/* Lock (Disabled) */

#KeeFox_Logins-Button[disabled="true"],
toolbar[iconsize="small"] #KeeFox_Logins-Button[disabled="true"] {
  opacity: .5;
}

/* Key */

toolbarbutton#KeeFox_Main-Button,
toolbar[iconsize="small"] toolbarbutton#KeeFox_Main-Button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/keekey.svg) !important;
}

toolbarbutton.highlight, toolbarbutton.login-found,
toolbar[iconsize="small"] toolbarbutton.highlight,
toolbar[iconsize="small"] toolbarbutton.login-found {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/keekey-orange.svg) !important;
}


#lpt_lastpass-compact-btn {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/lastpass-password-manager.svg) !important;
}

#lpt_lastpass-compact-btn > .toolbarbutton-icon {
  opacity: .5;
}

#lpt_lastpass-compact-btn:-moz-any(.lploggedin, .lploggediniconsetff4) > .toolbarbutton-icon {
  opacity: 1;
}

#lpt_lastpass-compact-btn[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #lpt_lastpass-compact-btn > .toolbarbutton-icon {
  opacity: .3;
}

#lpt_lastpass-compact-btn:-moz-any(.lploggedin, .lploggediniconsetff4)[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #lpt_lastpass-compact-btn:-moz-any(.lploggedin, .lploggediniconsetff4) > .toolbarbutton-icon {
  opacity: .6;
}


/* ::::: global/notification.css ::::: */

notification[value="maf-original-info"] .text-link {
  color: inherit !important;
  text-decoration: underline;
}

notification[value="maf-original-info"] .messageImage {
  background: no-repeat center !important;
  filter: url(chrome://global/skin/filters.svg#notification-icon);
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  -moz-padding-start: 16px !important;
  overflow: hidden !important;
}

notification[value="maf-original-info"] .messageImage {
  background-image: url(chrome://symbolic-icons/skin/information.svg) !important;
}



#omnibar-defaultEngineName {
  color: -moz-FieldText !important;
  opacity: 0.54 !important;
}


#pbff-pinmenu {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pinboard-extension.svg) !important;
}

/* Toolbar button */

#RIL_toolbar_button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket.svg) !important;
}

#RIL_toolbar_button[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #RIL_toolbar_button > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
  opacity: .6;
}

/* URL-bar icon */

#RIL_urlbar_add {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket.svg) !important;
}

#RIL_urlbar_mark {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/pocket-added.svg) !important;
}

#RIL_urlbar_add {
  opacity: 0.35;
}

#RIL_urlbar_mark {
  opacity: 0.7;
}

#RIL_urlbar_add:hover,
#RIL_urlbar_mark:hover {
  opacity: 1;
}





/* remove original icon */
#toggle-button--jid1-bycqofyfmbmd9ajetpack-pushbullet-widget[cui-areatype="toolbar"] .toolbarbutton-icon {
  display: none;
}

/* invisible label, used only for background-image */
#toggle-button--jid1-bycqofyfmbmd9ajetpack-pushbullet-widget[cui-areatype="toolbar"] .toolbarbutton-text {
  color: rgba(0, 0, 0, 0.0);
  display: block;
  width: 1em;
  height: 1em;
  background: url(chrome://symbolic-icons/skin/extensions/pushbullet.svg) center no-repeat !important;
  text-shadow: none;
}

toolbar[brighttext] #toggle-button--jid1-bycqofyfmbmd9ajetpack-pushbullet-widget[cui-areatype="toolbar"] .toolbarbutton-text {
  filter: url(chrome://browser/skin/symbolic-icons-colors.svg#white);
}


#requestpolicyToolbarButton {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/requestpolicy.svg) !important;
}

toolbar[requestpolicyBlocked="true"] #requestpolicyToolbarButton,
[requestpolicyBlocked="true"] toolbar #requestpolicyToolbarButton {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/requestpolicy-blocked.svg) !important;
}

toolbar[requestpolicyPermissive="true"] #requestpolicyToolbarButton,
[requestpolicyPermissive="true"] toolbar #requestpolicyToolbarButton {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/requestpolicy.svg) !important;
}
toolbar[requestpolicyPermissive="true"] #requestpolicyToolbarButton .toolbarbutton-icon,
[requestpolicyPermissive="true"] toolbar #requestpolicyToolbarButton .toolbarbutton-icon {
  opacity: .5;
}

#requestpolicyToolbarButton[cui-areatype="menu-panel"] .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #requestpolicyToolbarButton .toolbarbutton-icon {
  opacity: .6;
}


#stylish-toolbar-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/stylish.svg) !important;
}

#stylish-toolbar-button:not([styles-applied~="site"]) > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/stylish-stopped.svg) !important;
}

#stylish-toolbar-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #stylish-toolbar-button > .toolbarbutton-icon {
  opacity: .6;
}

#stylish-toolbar-button:not([styles-applied~="site"])[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #stylish-toolbar-button:not([styles-applied~="site"]) > .toolbarbutton-icon {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/stylish-stopped-menuPanel.svg) !important;
  opacity: 1;
}


#tdiconmenu-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/tamperdataiconredux.svg) !important;
}

#tdiconmenu-button[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] > #tdiconmenu-button > .toolbarbutton-icon {
  opacity: .6;
}

#visibo-tmt-palette-button {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/toomanytabs-toggle-button.png) !important;
}

.toomanytabs-tgbutton {
  -moz-image-region: rect(0px 40px 16px 24px) !important;
}

.toomanytabs-tgbutton:hover {
  -moz-image-region: rect(24px 40px 40px 24px) !important;
}

/* The following buttons won't work with svg's */

#visibo-tmt-view-options,
#visibo-tmt-view-options-v {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/toomanytabs-gears.png) !important;
}

#visibo-tmt-closed-tabs,
#visibo-tmt-closed-tabs-v {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/toomanytabs-trash.png) !important;
}

#visibo-tmt-view-row,
#visibo-tmt-view-row-v {
  list-style-image: url(chrome://symbolic-icons/skin/extensions/toomanytabs-down.png) !important;
}





/* ====== Sidebar ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) {
  background: #fafafa;
  border: none;
  box-shadow: none;
  padding: 0 !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="horizontal"] {
  height: 30px !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[treestyletab-tabbar-position="bottom"] {
  position: relative !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] {
  background: #454c4c;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-arrowscrollbox {
  border: none;
  box-shadow: none;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .scrollbox-innerbox,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabs-newtab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #new-tab-button {
  border: none !important;
  box-shadow: none;
  background: transparent;
}

/* ====== Button ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabs-newtab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #new-tab-button {
  border-top: 1px solid #e1e1e1 !important;
  background: transparent !important;
  height: 30px !important;
  max-width: calc(100% - 3px) !important;
  margin: 0 0 0 3px !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabs-newtab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] #new-tab-button {
  border-color: #3e4545 !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tabbar-position="right"] .tabs-newtab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tabbar-position="right"] #new-tab-button {
  margin: 0 3px 0 3px !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #new-tab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabs-newtab-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab > .tab-stack {
  min-height: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #new-tab-button:hover,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabs-newtab-button:hover {
  background: transparent;
}

/* "Fix" for scrollbox going off screen, only works for 1 row of pinned tabs */
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tabs {
  max-height: calc(100% - 64px) !important;
}
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #alltabs-button {
  display: none;
}

/* ====== Splitter ====== */

.treestyletab-splitter[orient="horizontal"] {
  -moz-appearance: none !important;
  background: #fafafa;
  min-width: 4px;
  width: 4px;
  border-right: 1px solid;
  border-color: #a7aba7 !important;
}

tabbrowser[treestyletab-tabbar-position="right"] .treestyletab-splitter[orient="horizontal"] {
  border-right: none;
  border-left: 1px solid;
}

.treestyletab-splitter[orient="horizontal"]:hover {
  cursor: col-resize;
}
.treestyletab-splitter[orient="horizontal"] grippy {
  display: none !important;
}

toolbar[brighttext] .treestyletab-splitter {
  background: #454c4c;
  border-color: #1e2222 !important;
}

/* ====== Tab ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab > .tab-stack {
  border: none;
  box-shadow: none;
  background: transparent;
  color: #555555;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabbrowser-tab,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabbrowser-tab > .tab-stack {
  color: #eeeeec;
}

/* Outline --- on hover */
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab:hover,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabs-newtab-button:hover,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) #new-tab-button:hover {
  outline: 1px dashed #cccccc;
  outline-offset: -3px;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[visuallyselected]:hover,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabbrowser-tab:hover,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabs-newtab-button:hover, 
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] #new-tab-button:hover {
  outline: 1px dashed rgba(255, 255, 255, 0.27);
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab {
  padding: 4px 0;
}

/* ====== Content ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tab-spacer {
  /* disable centered labels */  
  display: none;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tab-content .tab-text {
  margin: 0 4px;
}

/* Invert indentation (right aligned) */
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tab-inverted] .tab-content .tab-text {
  text-align: right;
}

/* Invert content (icon on the right) */
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tab-contents-inverted] .tab-content .tab-icon-image,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tab-contents-inverted] .tab-close-button {
  margin: 0 2px;
}

/* ====== Close Button ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-narrow-scrollbar] .tab-close-button {
  display: none;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab:hover .tab-close-button,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[visuallyselected] .tab-close-button {
  display: block;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[pinned] .tab-close-button {
  display: none;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[visuallyselected] .tab-close-button {
  list-style-image: url(chrome://symbolic-icons/skin/close_white.svg) !important;
}

/* ====== Selected Tab ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab:hover .tab-background-start,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab:hover .tab-background-middle,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab:hover .tab-background-end,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab[visuallyselected] .tab-background-start,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab[visuallyselected] .tab-background-middle,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"] .tabbrowser-tab[visuallyselected] .tab-background-end {
  display: none;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[visuallyselected] {
  border-radius: 0;
  background: Highlight;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[darkvariant] .tabbrowser-tab[visuallyselected] {
  background: #215d9c;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[visuallyselected] > .tab-stack {
  color: HighlightText;
}

/* ====== Pinned Tabs ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[pinned] {
  padding-bottom: 30px;
  padding-right: 30px;
  min-width: 34px;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[pinned] .tab-stack {
  margin: 0 4px;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[pinned] .tab-content {
  margin: 0 4px !important;
}

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tabbrowser-tab[pinned] .tab-icon-image {
  width: 18px;
  height: 18px;
  margin: 0 4px !important;
}

/* ====== Expander Icon ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"] .treestyletab-twisty {
	list-style-image: url("chrome://symbolic-icons/skin/extensions/twisty-adwaita-default-l.png") !important;
  margin: 0 -1px 0 -4px !important;
}
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"][treestyletab-tab-contents-inverted] .treestyletab-twisty {
	list-style-image: url("chrome://symbolic-icons/skin/extensions/twisty-adwaita-default-r.png") !important;
}

/* Selected or Dark theme*/
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"] .tabbrowser-tab[visuallyselected] .treestyletab-twisty,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"][darkvariant] .treestyletab-twisty {
  list-style-image: url("chrome://symbolic-icons/skin/extensions/twisty-adwaita-white-l.png") !important;
}
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"][treestyletab-tab-contents-inverted] .tabbrowser-tab[visuallyselected] .treestyletab-twisty,
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-twisty-style="modern-black"][darkvariant][treestyletab-tab-contents-inverted] .treestyletab-twisty {
  list-style-image: url("chrome://symbolic-icons/skin/extensions/twisty-adwaita-white-r.png") !important;
}

/* ====== Tab Notification Bubble ====== */

#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style]) .tab-icon-overlay {
  margin-top: -10px !important;
  -moz-margin-start: -16px !important;
  -moz-margin-end: 0 !important;
}
#TabsToolbar.treestyletab-tabbar-toolbar[orient="vertical"]:not([treestyletab-style])[treestyletab-tab-contents-inverted] .tab-icon-overlay {
  -moz-margin-start: -8px !important;
  -moz-margin-end: -8px !important;
}



#ubufox-restart-notification-icon {
  list-style-image: url(chrome://symbolic-icons/skin/reboot-notifier.svg) !important;
}


/* Toolbar buttons */
/* TODO: Add icons for all buttons */

#foxmarks-toolbar-my > .toolbarbutton-icon {
  background: url(chrome://symbolic-icons/skin/extensions/xmarks-sync-grayscale.svg) no-repeat center !important;
  width: 16px !important;
  height: 16px !important;
  -moz-padding-start: 16px !important;
  overflow: hidden !important;
}

#foxmarks-toolbar-my[cui-areatype="menu-panel"] > .toolbarbutton-icon,
toolbarpaletteitem[place="palette"] #foxmarks-toolbar-my > .toolbarbutton-icon {
  background-size: 32px 32px !important;
  width: 32px !important;
  height: 32px !important;
  -moz-padding-start: 32px !important;
  opacity: .6;
}

/* On status bar */

#foxmarks-statusbarpanel > #foxmarks-statusimage {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-image: url(chrome://symbolic-icons/skin/extensions/xmarks-sync.svg) !important;
}
#foxmarks-statusbarpanel > #foxmarks-statusimage[src*="ready"] {
  background-image: url(chrome://symbolic-icons/skin/extensions/xmarks-sync-grayscale.svg) !important;
}
#foxmarks-statusbarpanel > #foxmarks-statusimage[src*="dirty"] {
  background-image: url(chrome://symbolic-icons/skin/extensions/xmarks-sync-syncing.svg) !important;
}
#foxmarks-statusbarpanel > #foxmarks-statusimage[src*="wheel"] {
  background-image: url(chrome://symbolic-icons/skin/extensions/xmarks-sync.svg) !important;
}
#foxmarks-statusbarpanel > #foxmarks-statusimage[src*="error"] {
  background-image: url(chrome://symbolic-icons/skin/extensions/xmarks-sync-error.svg) !important;
}

#foxmarks-statusbarpanel > #foxmarks-statusimage {
  -moz-appearance: none !important;
  min-width: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  -moz-padding-start: 16px !important;
  overflow: hidden !important;
}

