/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt <hewitt@netscape.com>
 *   Manuel Reimer <Manuel.Reimer@gmx.de>
 *   Stefan Hermes <stefanh@inbox.com>
 *   Asaf Romano <mozilla.mano@sent.com>
 *   Kevin Gerich <kevin@kmgerich.com>
 *   Stephen Horlander <stephen@noved.org>
 *   Margaret Leibovic <margaret.leibovic@gmail.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

@import url("chrome://navigator/content/navigator.css");
@import url("chrome://communicator/skin/");
@import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");

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

#main-window {
  -moz-appearance: none;
  background-color: #EEEEEE;
}

/* ::::: primary toolbar buttons ::::: */

#back-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
  -moz-image-region: rect(60px 29px 89px 0);
}

#back-button:hover:active,
#back-button[open] {
  -moz-image-region: rect(60px 59px 89px 30px);
}

#back-button[disabled="true"] {
  -moz-image-region: rect(60px 89px 89px 60px) !important;
}

#forward-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
  -moz-image-region: rect(90px 29px 119px 0);
}

#forward-button:hover:active,
#forward-button[open] {
  -moz-image-region: rect(90px 59px 119px 30px);
}

#forward-button[disabled="true"] {
  -moz-image-region: rect(90px 89px 119px 60px) !important;
}

#reload-button {
  list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
  -moz-image-region: rect(0 29px 29px 0);
}

#reload-button:hover:active {
  -moz-image-region: rect(0 59px 29px 30px);
}

#reload-button[disabled="true"] {
  -moz-image-region: rect(0 89px 29px 60px) !important;
}

#stop-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
  -moz-image-region: rect(30px 29px 59px 0);
}

#stop-button:hover:active {
  -moz-image-region: rect(30px 59px 59px 30px);
}

#stop-button[disabled="true"] {
  -moz-image-region: rect(30px 89px 59px 60px) !important;
}

#home-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
  -moz-image-region: rect(120px 29px 149px 0);
}

#home-button:hover:active {
  -moz-image-region: rect(120px 59px 149px 30px);
}

#home-button[disabled="true"] {
  -moz-image-region: rect(120px 89px 149px 60px) !important;
}

#sync-button {
  list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
}

#sync-button[status=active] {
  list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
}

/* ::::: small primary toolbar buttons ::::: */

toolbar[iconsize="small"] > toolbarpaletteitem > #back-button,
toolbar[iconsize="small"] > #back-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
  -moz-image-region: rect(40px 19px 59px 0);
}

toolbar[iconsize="small"] > #back-button:hover:active,
toolbar[iconsize="small"] > #back-button[open] {
  -moz-image-region: rect(40px 39px 59px 20px);
}

toolbar[iconsize="small"] > #back-button[disabled="true"] {
  -moz-image-region: rect(40px 59px 59px 40px) !important;
}

toolbar[iconsize="small"] > toolbarpaletteitem > #forward-button,
toolbar[iconsize="small"] > #forward-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
  -moz-image-region: rect(60px 19px 79px 0);
}

toolbar[iconsize="small"] > #forward-button:hover:active,
toolbar[iconsize="small"] > #forward-button[open] {
  -moz-image-region: rect(60px 39px 79px 20px);
}

toolbar[iconsize="small"] > #forward-button[disabled="true"] {
  -moz-image-region: rect(60px 59px 79px 40px) !important;
}

toolbar[iconsize="small"] > toolbarpaletteitem > #reload-button,
toolbar[iconsize="small"] > #reload-button {
  list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
  -moz-image-region: rect(0 19px 19px 0);
}

toolbar[iconsize="small"] > #reload-button:hover:active {
  -moz-image-region: rect(0 39px 19px 20px);
}

toolbar[iconsize="small"] > #reload-button[disabled="true"] {
  -moz-image-region: rect(0 59px 19px 40px) !important;
}

toolbar[iconsize="small"] > toolbarpaletteitem > #stop-button,
toolbar[iconsize="small"] > #stop-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
  -moz-image-region: rect(20px 19px 39px 0);
}

toolbar[iconsize="small"] > #stop-button:hover:active {
  -moz-image-region: rect(20px 39px 39px 20px);
}

toolbar[iconsize="small"] > #stop-button[disabled="true"] {
  -moz-image-region: rect(20px 59px 39px 40px) !important;
}

toolbar[iconsize="small"] > toolbarpaletteitem > #home-button,
toolbar[iconsize="small"] > #home-button {
  list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
  -moz-image-region: rect(80px 19px 99px 0);
}

toolbar[iconsize="small"] > #home-button:hover:active {
  -moz-image-region: rect(80px 39px 99px 20px);
}

toolbar[iconsize="small"] > #home-button[disabled="true"] {
  -moz-image-region: rect(80px 59px 99px 40px) !important;
}

toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
toolbar[iconsize="small"] > #sync-button {
  list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
}

toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
toolbar[iconsize="small"] > #sync-button[status=active] {
  list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
}

#FindToolbar {
  border-top: none;
  border-bottom: 1px solid #888888;
}

/* ::::: fullscreen window controls ::::: */

#window-controls {
  -moz-box-align: center;
  padding-top: 0px;
  padding-bottom: 0px;
  -moz-padding-start: 4px;
  -moz-padding-end: 2px;
}

toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
  display: -moz-box;
}

#restore-button {
  list-style-image: url("chrome://navigator/skin/icons/restore.png");
}
  
/* ::::: nav-bar-inner ::::: */

.nav-bar-class {
  -moz-box-align: center;
  min-width: 0px;
}

/* nsNativeThemeCocoa adds top/bottom padding to textfields... */
#urlbar > .autocomplete-textbox-container,
#urlbar > .autocomplete-history-dropmarker {
  margin-top: -1px;
  margin-bottom: -2px;
  padding-top: 1px;
  padding-bottom: 1px;
}

#urlbar[level="high"] > .autocomplete-textbox-container,
#urlbar[level="low"] > .autocomplete-textbox-container {
  -moz-appearance: none;
  background-color: InfoBackground;
  color: InfoText;
}

#urlbar[level="high"] > .autocomplete-history-dropmarker,
#urlbar[level="low"] > .autocomplete-history-dropmarker {
  background-color: InfoBackground !important;
}

#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
  display: none;
}

/* ::::: notification popups ::::: */

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

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

.popup-notification-icon[popupid="addon-install-disabled"],
.popup-notification-icon[popupid="addon-install-blocked"],
.popup-notification-icon[popupid="addon-install-started"],
.popup-notification-icon[popupid="addon-install-cancelled"],
.popup-notification-icon[popupid="addon-install-failed"],
.popup-notification-icon[popupid="addon-install-complete"],
.popup-notification-icon[popupid="lwtheme-install-request"],
.popup-notification-icon[popupid="lwtheme-install-notification"] {
  list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
  width: 32px;
  height: 32px;
}

.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
.popup-notification-icon[popupid="indexedDB-quota-prompt"] {
  list-style-image: url("chrome://global/skin/icons/question64.png");
}

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

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

/* Notification icon box */
#notification-popup-box {
  margin: 0 3px;
}

.notification-anchor-icon:-moz-focusring {
  box-shadow: 0 0 2px 1px -moz-mac-focusring inset,
              0 0 2px 2px -moz-mac-focusring;
}

#default-notification-icon {
  list-style-image: url("chrome://global/skin/icons/information-16.png");
  width: 16px;
  height: 16px;
}

#geo-notification-icon {
  list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
  width: 16px;
  height: 16px;
}

#addons-notification-icon {
  list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
  width: 16px;
  height: 16px;
}

#indexedDB-notification-icon {
  list-style-image: url("chrome://global/skin/icons/question-16.png");
  width: 16px;
  height: 16px;
}

#password-notification-icon {
  list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
  width: 16px;
  height: 16px;
}

/* ::::: page proxy icon ::::: */

#page-proxy-deck,
#page-proxy-favicon,
#page-proxy-button {
  width: 16px;
  height: 16px;
}

#page-proxy-deck {
  cursor: -moz-grab;
  margin: 0 3px 1px 3px;
}

#page-proxy-button {
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.png"); 
}

#page-proxy-favicon {
  list-style-image: none;
}

#page-proxy-button[pageproxystate="invalid"] {
  cursor: default;
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item-dis.png");
}

/* ::::: autocomplete ::::: */

.autocomplete-textbox-container {
  font: -moz-info;
  -moz-box-align: center;
}

.autocomplete-treebody::-moz-tree-cell-text(value) {
  -moz-padding-start: 15px;
}

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

.autocomplete-history-popup > .popup-internal-box {
  padding: 0 !important;
}

.autocomplete-history-popup > menuitem {
  -moz-appearance: none !important;
  max-width: none !important;
  font: inherit;
  padding: 2px;
  margin: 0;
}

.autocomplete-history-popup > menuitem[_moz-menuactive="true"],
.autocomplete-search-engine[menuactive="true"] {
  background-color: Highlight !important;
  color: HighlightText !important;
}

.autocomplete-search-engine {
  border-top: 1px solid #D9D9D9; /* Same color as menuseparator is probably sane here */
  padding: 2px;
}

.autocomplete-search-engine-img {
  -moz-margin-end: 4px;
}

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

/* ::::: searchbutton ::::: */

#search-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style-image: url("chrome://global/skin/icons/search-textbox.png");
}

toolbar[mode="text"] #search-button > .button-box > .button-icon,
toolbar[mode="icons"] #search-button > .button-box > .button-text {
  display: none;
}

/* ::::: search bar ::::: */

.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;
}

/* ::::: sidebar splitter ::::: */

#sidebar-splitter {
  border-left: none;
  border-right: none;
  min-width: 5px;
}

/* ::::: content area ::::: */

#security-button {
  list-style-image: url("chrome://communicator/skin/icons/lock-insecure.png");
}

/* |high| and |low| styles could be different, to better reflect the secure level... */
#security-button[level="high"] > .statusbarpanel-contentbox,
#security-button[level="low"] > .statusbarpanel-contentbox {
  list-style-image: url("chrome://communicator/skin/icons/lock-secure.png");
  background-color: #E8DB99;
}

#security-button[level="broken"] > .statusbarpanel-contentbox {
  list-style-image: url("chrome://communicator/skin/icons/lock-broken.png");
  background-color: #E83404;
}

#security-button[label] > .statusbarpanel-contentbox {
  background-color: #62C441;
}

#security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
  margin: 0px;
  color: #FFFFFF;
  text-shadow: none;
}

/* make same background-color translucent on lwthemes */
#security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme,
#security-button[level="low"] > .statusbarpanel-contentbox:-moz-lwtheme {
  background-color: rgba(232, 219, 153, .8);
}

#security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme {
  background-color: rgba(232, 52, 4, .8);
}

#security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme {
  background-color: rgba(98, 196, 65, .8);
}

#ev-button {
  list-style-image: url("chrome://communicator/skin/icons/identity.png");
}

#popupIcon {
  list-style-image: url("chrome://navigator/skin/icons/popup-blocked.png");
}

#invalid-form-popup {
  -moz-appearance: tooltip;
  padding: 2px 3px 0px 3px;
  max-width: 40em;
  color: InfoText;
  font-weight: bold;
}

/* Set default text-shadow that we will override if this is in the PT. */
#personal-bookmarks {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ::::: personal toolbar ::::: */

#PersonalToolbar {
  -moz-appearance: none;
  background-color: #d5d5d5;
  background-image: url("chrome://communicator/skin/toolbar/toolbar-gradient22.png");
  background-repeat: repeat-x;
  border-bottom: 1px solid rgb(159, 159, 159);
}

#PersonalToolbar:-moz-lwtheme {
  background-color: transparent;
  background-image: none;
}

/* No text-shadow when we're in the PT. */
#PersonalToolbar > toolbarbutton,
#PersonalToolbar > #personal-bookmarks {
  text-shadow: none;
}

/* text-shadow styling depends on where the items are, so use inheritance. */
#PlacesToolbar > .bookmark-item,
#PlacesToolbarItems > .bookmark-item {
  text-shadow: inherit;
}

#PersonalToolbar > toolbarbutton:hover:active,
#PersonalToolbar > toolbarbutton[open],
#PlacesToolbarItems > .bookmark-item:hover:active,
#PlacesToolbarItems > .bookmark-item[open] {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7) !important;
}

#PersonalToolbar > toolbarbutton > .toolbarbutton-text,
.bookmark-item > .toolbarbutton-text {
  margin: 0 3px 0 2px;
}

#PersonalToolbar > toolbarbutton > .toolbarbutton-icon,
.bookmark-item > .toolbarbutton-icon {
  padding: 0;
}

#bookmarks-button {
  list-style-image: url("chrome://global/skin/tree/folder.png");
  padding: 0;
}

toolbarbutton.chevron {
  list-style-image: url("chrome://navigator/skin/icons/chevron.gif");
  height: 16px;
  width: 16px;
}

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

toolbarbutton.chevron > .toolbarbutton-text {
  display: none; /* hide chevron label which has a width even if blank */
}

toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
  display: -moz-box; /* display chevron icon in text mode */
}

/* Prevent [mode="icons"|"text"] from hiding the label and icon */
#PlacesToolbarItems .bookmark-item > .toolbarbutton-text,
#PlacesToolbarItems .bookmark-item > .toolbarbutton-icon {
  display: -moz-box !important;
}

#PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
#PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
  width: 16px;
  height: 16px;
}

/*
  In customize mode we hide the normal bookmark items and show a placeholder
  for the drag/drop UI.
*/
.bookmarks-toolbar-customize {
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
  display: none;
  max-width: 15em !important;
}

#wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
  width: 16px;
  height: 16px;
  background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
}

/* ::::: star button ::::: */

#star-button {
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
  -moz-image-region: rect(16px 16px 32px 0px);
}

#star-button:hover {
  -moz-image-region: rect(16px 32px 32px 16px);
}

#star-button:hover:active {
  -moz-image-region: rect(16px 48px 32px 32px);
}

#star-button[starred="true"] {
  -moz-image-region: rect(0px 16px 16px 0px);
}

#star-button[starred="true"]:hover {
  -moz-image-region: rect(0px 32px 16px 16px);
}

#star-button[starred="true"]:hover:active {
  -moz-image-region: rect(0px 48px 16px 32px);
}

#editBookmarkPanelStarIcon {
  list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

#editBookmarkPanelTitle {
  font-size: 130%;
  font-weight: bold;
}

/* ::::: Edit bookmark panel ::::: */

.editBookmarkPanelHeaderButton,
.editBookmarkPanelBottomButton {
  -moz-appearance: none;
  color: #FFFFFF;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  background-image: -moz-linear-gradient(rgba(110, 110, 110, 0.9),
                                         rgba(70, 70, 70, 0.9) 49%,
                                         rgba(50, 50, 50, 0.9) 51%,
                                         rgba(40, 40, 40, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              inset 0 0 1px rgba(255, 255, 255, 0.1),
              0 1px 0 rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
  background-origin: padding-box;
  padding: 2px 9px;
  margin: 6px;
  min-height: 22px;
}

.editBookmarkPanelHeaderButton:hover:active,
.editBookmarkPanelBottomButton:hover:active {
  background-image: -moz-linear-gradient(rgba(40, 40, 40, 0.9),
                                         rgba(70, 70, 70, 0.9));
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 7px rgba(0, 0, 0, 0.4),
              0 1px 0 rgba(255, 255, 255, 0.1);
}

.editBookmarkPanelHeaderButton:-moz-focusring,
.editBookmarkPanelBottomButton:-moz-focusring {
  box-shadow: inset 0 0 1px -moz-mac-focusring,
              0 0 4px 1px -moz-mac-focusring,
              0 0 2px 1px -moz-mac-focusring;
}

.editBookmarkPanelBottomButton[default="true"] {
  background-color: #666666;
}

#editBookmarkPanelHeader {
  margin-bottom: 6px;
}

#editBMPanel_editColumn {
  color: #FFFFFF;
}

/* The following elements come from editBookmarkOverlay.xul, but the styling is
   specific to the HUD-styled editBookmarkPanel. Styling shared by all
   editBookmarkOverlay.xul consumers should be in editBookmarkOverlay.css. */

#editBMPanel_newFolderBox {
  background-image: -moz-linear-gradient(rgb(90, 90 , 90), rgb(40, 40, 40));
  background-origin: padding-box;
  background-clip: padding-box;
  border-radius: 0 0 3px 3px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-top: none;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15),
              0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 0;
  margin-left: 4px;
  margin-right: 4px;
  margin-bottom: 8px;
  height:  20px;
}

#editBMPanel_newFolderButton {
  -moz-appearance: none;
  border: 0;
  -moz-border-end-width: 3px;
  border-style: solid;
  -moz-border-right-colors: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.1);
  -moz-border-left-colors: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.1);
  padding: 0 9px;
  margin: 0;
  min-width: 21px;
  min-height: 20px;
  height: 20px;
  color: #FFFFFF;
  list-style-image: url("chrome://navigator/skin/icons/hud-style-new-folder-plus-sign.png");
  position: relative;
}

#editBMPanel_newFolderButton .button-text {
  display: none;
}

#editBMPanel_folderMenuList,
#editBMPanel_tagsSelectorExpander,
#editBMPanel_foldersExpander {
  -moz-appearance: none;
  color: #FFFFFF;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  background-image: -moz-linear-gradient(rgba(110, 110, 110, 0.9),
                                         rgba(70, 70, 70, 0.9) 49%,
                                         rgba(50, 50, 50, 0.9) 51%,
                                         rgba(40, 40, 40, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              inset 0 0 1px rgba(255, 255, 255, 0.1),
              0 1px 0 rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
  background-origin: padding-box;
  border-radius: 3px;
}

#editBMPanel_folderMenuList {
  padding: 2px 9px;
  min-height: 22px;
  -moz-padding-start: 4px;
  -moz-padding-end: 0;
}

#editBMPanel_tagsSelectorExpander,
#editBMPanel_foldersExpander {
  -moz-margin-start: 4px;
  -moz-margin-end: 2px;
  padding: 0;
  -moz-padding-start: 4px;
  min-width: 10px;
  min-height: 20px;
}

#editBMPanel_folderMenuList > .menulist-dropmarker {
  -moz-appearance: none;
  display: -moz-box;
  background-color: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

#editBMPanel_folderMenuList > .menulist-dropmarker > .dropmarker-icon {
  list-style-image: url("chrome://navigator/skin/icons/hud-style-dropmarker-double-arrows.png");
}

#editBMPanel_tagsSelector {
  -moz-appearance: none;
  border-radius: 2px;
  background-color: rgba(50, 50, 50, 1);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15),
              0 1px 0 rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* hover:active */
#editBMPanel_newFolderButton:hover:active,
#editBMPanel_folderMenuList[open="true"],
#editBMPanel_folderMenuList:hover:active,
#editBMPanel_tagsSelectorExpander:hover:active,
#editBMPanel_foldersExpander:hover:active {
  background-image: -moz-linear-gradient(rgba(40, 40, 40, 0.9),
                                         rgba(70, 70, 70, 0.9));
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 7px rgba(0, 0, 0, 0.4),
              0 1px 0 rgba(255, 255, 255, 0.1);
}

/* focus ring */
#editBMPanel_newFolderButton:-moz-focusring,
#editBMPanel_folderMenuList:-moz-focusring,
#editBMPanel_tagsSelector:-moz-focusring,
#editBMPanel_tagsSelectorExpander:-moz-focusring,
#editBMPanel_foldersExpander:-moz-focusring,
#editBMPanel_tagsField[focused="true"],
#editBMPanel_namePicker[droppable="false"][focused="true"] > .menulist-editable-box {
  box-shadow: inset 0 0 1px -moz-mac-focusring,
              0 0 4px 1px -moz-mac-focusring,
              0 0 2px 1px -moz-mac-focusring;
}

/* expander icons */
#editBMPanel_rows > row > hbox > .expander-up {
  list-style-image: url("chrome://navigator/skin/icons/hud-style-expander-open.png");
}

#editBMPanel_rows > row > hbox > .expander-down {
  list-style-image: url("chrome://navigator/skin/icons/hud-style-expander-closed.png");
}

/* folder tree */
#editBMPanel_folderTree {
  -moz-appearance: none;
  border-radius: 2px 2px 0 0;
  background-color: rgba(50, 50, 50, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
  min-width: 27em;
  position: relative;
}

#editBMPanel_folderTree:-moz-focusring {
  box-shadow: 0 0 4px 1px -moz-mac-focusring,
              0 0 2px 1px -moz-mac-focusring;
}

#editBMPanel_folderTree > treechildren::-moz-tree-twisty {
  -moz-appearance: none;
  list-style-image: url("chrome://navigator/skin/icons/hud-style-twisties.png");
  -moz-image-region: rect(0px, 10px, 10px, 0px);
  margin-top: 1px;
  -moz-margin-end: 1px;
}

#editBMPanel_folderTree > treechildren::-moz-tree-twisty(open) {
  -moz-image-region: rect(0px, 20px, 10px, 10px);
}

#editBMPanel_folderTree > treechildren::-moz-tree-twisty(selected) {
  -moz-image-region: rect(0px, 30px, 10px, 20px);
}

#editBMPanel_folderTree > treechildren::-moz-tree-twisty(selected, open) {
  -moz-image-region: rect(0px, 40px, 10px, 30px);
}

#editBMPanel_folderTree  > treechildren::-moz-tree-row {
  color: #FFFFFF;
  background-color: transparent;
  border: none;
}

#editBMPanel_folderTree > treechildren::-moz-tree-row(selected) {
  background-color: #B3B3B3;
}

#editBMPanel_folderTree > treechildren::-moz-tree-cell-text(selected),
#editBMPanel_folderTree > treechildren::-moz-tree-cell-text(selected, focus) {
  color: #222222;
}

#editBMPanel_folderTree > treechildren::-moz-tree-row(selected, focus) {
  background-color: #B3B3B3;
}

#editBMPanel_tagsSelector > listitem[selected="true"] {
  color: #222222;
  background-color: #B3B3B3;
}

/* name picker & text fields */
#editBMPanel_tagsField,
#editBMPanel_namePicker[droppable="false"] > .menulist-editable-box {
  -moz-appearance: none !important;
  -moz-padding-start: 3px !important;
  margin: 2px !important;
  border: 1px solid rgba(0, 0, 0, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3);
  background-color: #666666 !important;
  background-clip: padding-box;
  background-origin: padding-box;
  color: #FFFFFF !important;
  min-height: 20px;
}

#editBMPanel_namePicker[droppable="false"] > .menulist-editable-box > html|*.menulist-editable-input {
  color: inherit;
}

#editBMPanel_tagsField > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder {
  color: #BBBBBB;
}

#editBMPanel_tagsField[focused="true"],
#editBMPanel_namePicker[droppable="false"][focused="true"] > .menulist-editable-box {
  background-color: #EEEEEE !important;
  color: #000000 !important;
}

#editBMPanel_namePicker[droppable="false"][disabled="true"] > .menulist-editable-box {
  color: #FFFFFF !important;
}

.editBMPanel_rowLabel {
  text-align: end;
}

/* checkboxes */
#editBMPanel_loadInSidebarCheckbox > .checkbox-check,
#editBMPanel_tagsSelector .listcell-check {
  -moz-appearance: none;
  border: 0;
  background: url("chrome://navigator/skin/icons/hud-style-check-box-empty.png") no-repeat 50% 50%;
  min-height: 14px;
  min-width: 14px;
}

#editBMPanel_loadInSidebarCheckbox > .checkbox-check[checked="true"],
#editBMPanel_tagsSelector .listcell-check[checked="true"] {
  background-image: url("chrome://navigator/skin/icons/hud-style-check-box-checked.png");
}

/* ::::: feeds ::::: */

.feedsMenu {
  list-style-image: url("chrome://communicator/skin/icons/feedIcon16.png");
}

#BMB_feedsMenu[disabled="true"] {
  list-style-image: url("chrome://communicator/skin/icons/feedIcon16-disabled.png");
}

#feedsButton {
  list-style-image: url("chrome://navigator/skin/btn1/feeds.png");
  -moz-image-region: rect(0px 32px 16px 16px);
}

#feedsButton[open="true"] {
  -moz-image-region: rect(48px 32px 64px 16px) !important;
}
