/* 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/. */

/* ===== primaryToolbar.css =============================================
   == Images for the Mail primary toolbar.
   == This file is mainly about the general look-and-feel of
   == native-OS-style toolbars at the top of various windows, as well as
   == the specifically about the ones that appear on the 3-pane window and
   == the standalone message window.  The other native-OS-style toolbars
   == (addressbook and compose) are already styled elsewhere.
   ====================================================================== */

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

#navigation-toolbox {
  -moz-appearance: none;
  border-top-width: 0;
}

#tabs-toolbar {
  -moz-appearance: none;
  border-bottom: 1px solid rgba(10, 31, 51, .35);
}

#tabs-toolbar:-moz-lwtheme {
  border-bottom-color: transparent;
}


#tabs-toolbar {
%ifdef MOZ_MAIL_LEGACY
  -moz-box-ordinal-group: 20;
%else
  padding-bottom: 2px;
%endif
}


#tabs-toolbar[collapsed=true] {
  visibility: inherit;
  max-height: 1px;
  min-height: 1px;
}
#tabs-toolbar[collapsed=true] * {
  visibility: hidden;
}

#mail-toolbar-menubar2 {
%ifdef MOZ_MAIL_LEGACY
  -moz-box-ordinal-group: 10;
%endif
  padding: 0px 0 0;
  margin: 0 0 0px;
}

.mail-toolbox,
.contentTabToolbox {
  -moz-appearance: none;
  border-top: none;
}

%ifndef MOZ_MAIL_LEGACY
.mail-toolbox {
  border-bottom: 0px;
}
%endif

%ifdef MOZ_MAIL_LEGACY
.mail-toolbox,
%endif
.contentTabToolbox {
  background-image: -moz-linear-gradient(rgba(255, 255, 255, .5),
                    rgba(255, 255, 255, .1) 19px) !important;
  border-bottom: 1px solid threedshadow;
}

.mail-toolbox > toolbar:-moz-lwtheme,
.contentTabToolbox > toolbar:-moz-lwtheme {
  border-top: none;
  border-bottom: 1px solid threedshadow;
}

#mail-bar3 {
  padding: 1px 0;
}

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

.toolbarbutton-1 {
  -moz-box-orient: vertical;
}

toolbox[labelalign="end"] .toolbarbutton-1,
toolbox[labelalign="end"] .toolbarbutton-1[type="menu-button"]
  > .toolbarbutton-menubutton-button {
  -moz-box-orient: horizontal;
}

toolbox[labelalign="end"] > toolbar[mode="full"] .toolbarbutton-1 .toolbarbutton-text {
  -moz-padding-start: 2px;
}

toolbox[labelalign="end"] > toolbar[mode="full"] deck .toolbarbutton-text {
  text-align: start;
}

.toolbarbutton-1[type="menu"] {
  -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
}

toolbox[labelalign="end"] > toolbar[mode="full"] .toolbarbutton-1[type="menu"] {
  -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu");
}

#button-getmsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 24px 24px 0px);
}

#button-getmsg:hover {
  -moz-image-region: rect(24px 24px 48px 0px);
} 

#button-getmsg[disabled] {
  -moz-image-region: rect(48px 24px 72px 0px) !important;
} 

#button-newmsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 48px 24px 24px);
}

#button-newmsg:hover {
  -moz-image-region: rect(24px 48px 48px 24px);
} 

#button-newmsg[disabled] {
  -moz-image-region: rect(48px 48px 72px 24px) !important;
} 

#button-address {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 72px 24px 48px);
}

#button-address:hover {
  -moz-image-region: rect(24px 72px 48px 48px);
} 

#button-address[disabled="true"] {
  -moz-image-region: rect(48px 72px 72px 48px) !important;
} 

#button-reply {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 96px 24px 72px);
}

#button-reply:hover {
  -moz-image-region: rect(24px 96px 48px 72px);
} 

#button-reply[disabled] {
  -moz-image-region: rect(48px 96px 72px 72px) !important;
} 

#button-replyall {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 120px 24px 96px);
}

#button-replyall:hover {
  -moz-image-region: rect(24px 120px 48px 96px);
} 

#button-replyall[disabled] {
  -moz-image-region: rect(48px 120px 72px 96px) !important;
} 

#button-forward {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 144px 24px 120px);
}

#button-forward:hover {
  -moz-image-region: rect(24px 144px 48px 120px);
} 

#button-forward[disabled] {
  -moz-image-region: rect(48px 144px 72px 120px) !important;
}

#button-replylist {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 168px 24px 144px);
}

#button-replylist:hover {
  -moz-image-region: rect(24px 168px 48px 144px);
}

#button-replylist[disabled] {
  -moz-image-region: rect(48px 168px 72px 144px) !important;
}

.delete-button {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 192px 24px 168px);
}

.delete-button:hover {
  -moz-image-region: rect(24px 192px 48px 168px);
} 

.delete-button[disabled] {
  -moz-image-region: rect(48px 192px 72px 168px) !important;
}

#button-compact {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 456px 24px 432px);
}

#button-compact:hover {
  -moz-image-region: rect(24px 456px 48px 432px);
}

#button-compact[disabled] {
  -moz-image-region: rect(48px 456px 72px 432px) !important;
}

.junk-button {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 216px 24px 192px);
}

.junk-button:hover {
  -moz-image-region: rect(24px 216px 48px 192px);
}

.junk-button[disabled="true"] {
  -moz-image-region: rect(48px 216px 72px 192px) !important;
}

#button-print {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 240px 24px 216px);
}

#button-print:hover {
  -moz-image-region: rect(24px 240px 48px 216px);
}

#button-print[disabled] {
  -moz-image-region: rect(48px 240px 72px 216px) !important;
}

#button-stop {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 264px 24px 240px);
}

#button-stop:hover {
  -moz-image-region: rect(24px 264px 48px 240px);
} 

#button-stop[disabled="true"] {
  -moz-image-region: rect(48px 264px 72px 240px) !important;
}

#button-file {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 288px 24px 264px);
}

#button-file:hover,
#button-file[open] {
  -moz-image-region: rect(24px 288px 48px 264px);
} 

#button-file[disabled] {
  -moz-image-region: rect(48px 288px 72px 264px) !important;
}

#button-nextUnread {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 312px 24px 288px);
}

#button-nextUnread:hover {
  -moz-image-region: rect(24px 312px 48px 288px);
}

#button-nextUnread[disabled] {
  -moz-image-region: rect(48px 312px 72px 288px) !important;
}

#button-previousUnread {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 336px 24px 312px);
}

#button-previousUnread:hover {
  -moz-image-region: rect(24px 336px 48px 312px);
}

#button-previousUnread[disabled] {
  -moz-image-region: rect(48px 336px 72px 312px) !important;
}

#button-mark {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 360px 24px 336px);
}

#button-mark:hover {
  -moz-image-region: rect(24px 360px 48px 336px);
} 

#button-mark[disabled] {
  -moz-image-region: rect(48px 360px 72px 336px) !important;
} 

#button-tag {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 384px 24px 360px);
}

#button-tag:hover {
  -moz-image-region: rect(24px 384px 48px 360px);
} 

#button-tag[disabled] {
  -moz-image-region: rect(48px 384px 72px 360px) !important;
} 

#button-goback, #button-goforward:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 408px 24px 384px);
}

#button-goback:hover, #button-goforward:hover:-moz-locale-dir(rtl) {
  -moz-image-region: rect(24px 408px 48px 384px);
} 

#button-goback[disabled], #button-goforward:-moz-locale-dir(rtl)[disabled] {
  -moz-image-region: rect(48px 408px 72px 384px) !important;
} 

#button-goforward, #button-goback:-moz-locale-dir(rtl) {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 432px 24px 408px);
}

#button-goforward:hover, #button-goback:hover:-moz-locale-dir(rtl) {
  -moz-image-region: rect(24px 432px 48px 408px);
} 

#button-goforward[disabled], #button-goback:-moz-locale-dir(rtl)[disabled] {
  -moz-image-region: rect(48px 432px 72px 408px) !important;
}

#button-archive {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 480px 24px 456px);
}

#button-archive:hover {
  -moz-image-region: rect(24px 480px 48px 456px);
}

#button-archive[disabled] {
  -moz-image-region: rect(48px 480px 72px 456px) !important;
}

#button-chat {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 528px 24px 504px);
}

#button-chat:hover {
  -moz-image-region: rect(24px 528px 48px 504px);
}

#button-chat[disabled] {
  -moz-image-region: rect(48px 528px 72px 504px) !important;
}

#button-chat[unreadMessages="true"] {
  -moz-image-region: rect(72px 528px 96px 504px);
}

#button-nextMsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 552px 24px 528px);
}
 
#button-nextMsg:hover {
  -moz-image-region: rect(24px 552px 48px 528px);
}
 
#button-nextMsg[disabled] {
  -moz-image-region: rect(48px 552px 72px 528px) !important;
}

#button-previousMsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 576px 24px 552px);
}

#button-previousMsg:hover {
  -moz-image-region: rect(24px 576px 48px 552px);
}

#button-previousMsg[disabled] {
  -moz-image-region: rect(48px 576px 72px 552px) !important;
}

#button-showconversation {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 624px 24px 600px);
}

#button-showconversation:hover {
  -moz-image-region: rect(24px 624px 48px 600px);
}

#button-showconversation[disabled] {
  -moz-image-region: rect(48px 624px 72px 600px) !important;
}

.button-appmenu {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 600px 24px 576px);
  min-width: 35px !important;
}

.button-appmenu:hover {
  -moz-image-region: rect(24px 600px 48px 576px);
}

.button-appmenu[disabled] {
  -moz-image-region: rect(48px 600px 72px 576px) !important;
}

.button-appmenu .toolbarbutton-text,
.button-appmenu .toolbarbutton-menu-dropmarker {
  display: none;
}

toolbar[mode="text"] .button-appmenu .toolbarbutton-icon {
  display: -moz-box;
}

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

toolbar[iconsize="small"] #button-getmsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 16px 16px 0px);
}

toolbar[iconsize="small"] #button-getmsg:hover {
  -moz-image-region: rect(16px 16px 32px 0px);
} 

toolbar[iconsize="small"] #button-getmsg[disabled] {
  -moz-image-region: rect(32px 16px 48px 0px) !important;
} 

toolbar[iconsize="small"] #button-newmsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 32px 16px 16px);
}

toolbar[iconsize="small"] #button-newmsg:hover {
  -moz-image-region: rect(16px 32px 32px 16px);
} 

toolbar[iconsize="small"] #button-newmsg[disabled] {
   -moz-image-region: rect(32px 32px 48px 16px) !important;
} 

toolbar[iconsize="small"] #button-address {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 48px 16px 32px);
}

toolbar[iconsize="small"] #button-address:hover {
  -moz-image-region: rect(16px 48px 32px 32px);
} 

toolbar[iconsize="small"] #button-address[disabled="true"] {
  -moz-image-region: rect(32px 48px 48px 32px) !important;
} 

toolbar[iconsize="small"] #button-reply {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 64px 16px 48px);
}

toolbar[iconsize="small"] #button-reply:hover {
  -moz-image-region: rect(16px 64px 32px 48px);
} 

toolbar[iconsize="small"] #button-reply[disabled] {
  -moz-image-region: rect(32px 64px 48px 48px) !important;
} 

toolbar[iconsize="small"] #button-replyall {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 80px 16px 64px);
}

toolbar[iconsize="small"] #button-replyall:hover {
  -moz-image-region: rect(16px 80px 32px 64px);
} 

toolbar[iconsize="small"] #button-replyall[disabled] {
  -moz-image-region: rect(32px 80px 48px 64px) !important;
} 

toolbar[iconsize="small"] #button-forward {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 96px 16px 80px);
}

toolbar[iconsize="small"] #button-forward:hover {
  -moz-image-region: rect(16px 96px 32px 80px);
} 

toolbar[iconsize="small"] #button-forward[disabled] {
  -moz-image-region: rect(32px 96px 48px 80px) !important;
}

toolbar[iconsize="small"] #button-replylist {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 112px 16px 96px);
}

toolbar[iconsize="small"] #button-replylist:hover {
  -moz-image-region: rect(16px 112px 32px 96px);
}

toolbar[iconsize="small"] #button-replylist[disabled] {
  -moz-image-region: rect(32px 112px 48px 96px) !important;
}

toolbar[iconsize="small"] .delete-button {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 128px 16px 112px);
}

toolbar[iconsize="small"] .delete-button:hover {
  -moz-image-region: rect(16px 128px 32px 112px);
} 

toolbar[iconsize="small"] .delete-button[disabled] {
  -moz-image-region: rect(32px 128px 48px 112px) !important;
} 

toolbar[iconsize="small"] .junk-button{
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 144px 16px 128px);
}

toolbar[iconsize="small"] .junk-button:hover {
  -moz-image-region: rect(16px 144px 32px 128px);
}

toolbar[iconsize="small"] .junk-button[disabled="true"] {
  -moz-image-region: rect(32px 144px 48px 128px) !important;
}

toolbar[iconsize="small"] #button-print {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 160px 16px 144px);
}

toolbar[iconsize="small"] #button-print:hover {
  -moz-image-region: rect(16px 160px 32px 144px);
}

toolbar[iconsize="small"] #button-print[disabled] {
  -moz-image-region: rect(32px 160px 48px 144px) !important;
}

toolbar[iconsize="small"] #button-stop {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 176px 16px 160px);
}

toolbar[iconsize="small"] #button-stop:hover {
  -moz-image-region: rect(16px 176px 32px 160px);
} 

toolbar[iconsize="small"] #button-stop[disabled="true"] {
  -moz-image-region: rect(32px 176px 48px 160px) !important;
}

toolbar[iconsize="small"] #button-file {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 192px 16px 176px);
}

toolbar[iconsize="small"] #button-file:hover,
toolbar[iconsize="small"] #button-file[open] {
  -moz-image-region: rect(16px 192px 32px 176px);
} 

toolbar[iconsize="small"] #button-file[disabled] {
  -moz-image-region: rect(32px 192px 48px 176px) !important;
} 

toolbar[iconsize="small"] #button-nextUnread {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 208px 16px 192px);
}

toolbar[iconsize="small"] #button-nextUnread:hover {
  -moz-image-region: rect(16px 208px 32px 192px);
}

toolbar[iconsize="small"] #button-nextUnread[disabled] {
  -moz-image-region: rect(32px 208px 48px 192px) !important;
}

toolbar[iconsize="small"] #button-previousUnread {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 224px 16px 208px);
}

toolbar[iconsize="small"] #button-previousUnread:hover {
  -moz-image-region: rect(16px 224px 32px 208px);
}

toolbar[iconsize="small"] #button-previousUnread[disabled] {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(32px 224px 48px 208px) !important;
}

toolbar[iconsize="small"] #button-mark {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 240px 16px 224px);
}

toolbar[iconsize="small"] #button-mark:hover {
  -moz-image-region: rect(16px 240px 32px 224px);
} 

toolbar[iconsize="small"] #button-mark[disabled] {
  -moz-image-region: rect(32px 240px 48px 224px) !important;
}

toolbar[iconsize="small"] #button-tag {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 256px 16px 240px);
}

toolbar[iconsize="small"] #button-tag:hover {
  -moz-image-region: rect(16px 256px 32px 240px);
} 

toolbar[iconsize="small"] #button-tag[disabled] {
  -moz-image-region: rect(32px 256px 48px 240px) !important;
}

toolbar[iconsize="small"] #button-goback {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 272px 16px 256px);
}

toolbar[iconsize="small"] #button-goback:hover {
  -moz-image-region: rect(16px 272px 32px 256px);
} 

toolbar[iconsize="small"] #button-goback[disabled] {
  -moz-image-region: rect(32px 272px 48px 256px) !important;
}

toolbar[iconsize="small"] #button-goforward {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 288px 16px 272px);
}

toolbar[iconsize="small"] #button-goforward:hover {
  -moz-image-region: rect(16px 288px 32px 272px);
} 

toolbar[iconsize="small"] #button-goforward[disabled] {
  -moz-image-region: rect(32px 288px 48px 272px) !important;
}

toolbar[iconsize="small"] #button-compact {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 304px 16px 288px);
}

toolbar[iconsize="small"] #button-compact:hover {
  -moz-image-region: rect(16px 304px 32px 288px);
}

toolbar[iconsize="small"] #button-compact[disabled] {
  -moz-image-region: rect(32px 304px 48px 288px) !important;
}

toolbar[iconsize="small"] #button-archive {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 320px 16px 304px);
}

toolbar[iconsize="small"] #button-archive:hover {
  -moz-image-region: rect(16px 320px 32px 304px);
}

toolbar[iconsize="small"] #button-archive[disabled] {
  -moz-image-region: rect(32px 320px 48px 304px) !important;
}

toolbar[iconsize="small"] #button-chat {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 352px 16px 336px);
}

toolbar[iconsize="small"] #button-chat:hover {
  -moz-image-region: rect(16px 352px 32px 336px);
}

toolbar[iconsize="small"] #button-chat[disabled] {
  -moz-image-region: rect(32px 352px 48px 336px) !important;
}

toolbar[iconsize="small"] #button-chat[unreadMessages="true"] {
  -moz-image-region: rect(48px 352px 64px 336px) !important;
}

toolbar[iconsize="small"] #button-nextMsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 368px 16px 352px);
}

toolbar[iconsize="small"] #button-nextMsg:hover {
  -moz-image-region: rect(16px 368px 32px 352px);
}

toolbar[iconsize="small"] #button-nextMsg[disabled] {
  -moz-image-region: rect(32px 368px 48px 352px) !important;
}

toolbar[iconsize="small"] #button-previousMsg {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 384px 16px 368px);
}

toolbar[iconsize="small"] #button-previousMsg:hover {
  -moz-image-region: rect(16px 384px 32px 368px);
}

toolbar[iconsize="small"] #button-previousMsg[disabled] {
  -moz-image-region: rect(32px 384px 48px 368px) !important;
}

toolbar[iconsize="small"] #button-showconversation {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 416px 16px 400px);
}

toolbar[iconsize="small"] #button-showconversation:hover {
  -moz-image-region: rect(16px 416px 32px 400px);
}

toolbar[iconsize="small"] #button-showconversation[disabled] {
  -moz-image-region: rect(32px 416px 48px 400px) !important;
}

toolbar[iconsize="small"] .button-appmenu {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar-small.png");
  -moz-image-region: rect(0px 400px 16px 384px);
}

toolbar[iconsize="small"] .button-appmenu:hover {
  -moz-image-region: rect(16px 400px 32px 384px);
}

toolbar[iconsize="small"] .button-appmenu[disabled] {
  -moz-image-region: rect(32px 400px 48px 384px) !important;
}

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

/* ::::: toolbar buttons on tabbar toolbar ::::: */

#tabbar-toolbar .toolbarbutton-1 {
  margin-top: 1px;
  margin-bottom: 1px;
  padding-top: 3px;
  padding-bottom: 3px;
}

#tabbar-toolbar .toolbarbutton-1:hover:active:not([disabled]),
#tabbar-toolbar .toolbarbutton-1[open="true"],
#tabbar-toolbar .toolbarbutton-menubutton-button:hover:active:not([disabled]),
#tabbar-toolbar .toolbarbutton-menubutton-button[open="true"] {
  padding-top: 4px;
  padding-bottom: 2px;
}

#tabbar-toolbar .toolbarbutton-1[checked="true"] {
  padding-top: 4px !important;
  padding-bottom: 2px !important;
}

#palette-box #qfb-show-filter-bar {
  list-style-image: url("chrome://messenger/skin/icons/mail-toolbar.png");
  -moz-image-region: rect(0px 504px 24px 480px);
}

#folderPane-toolbar #locationFolders,
#folderPane-toolbar > #folder-location-container,
#folderPane-toolbar > #folderpane-mode-selector {
  -moz-box-flex: 1;
}

/* Force the folder location and mail view items to fit in the available width
   in the Customize Toolbar dialog. */
#palette-box #locationFolders,
#palette-box #folder-location-container,
#palette-box #folderpane-mode-selector,
#palette-box #viewPicker {
  -moz-box-flex: 1;
}

/* ::::: message notification bar style rules ::::: */

.msgNotificationBar {
  background-color: InfoBackground;
  color: InfoText;  
  border-bottom: 1px solid ThreeDDarkShadow;
  padding: 3px;
}

.msgNotificationBarText {
  font-weight: bold;
}

.msgNotificaton-smallText {
  -moz-padding-start: 10px;
  font-size: 90%;
}

#junkBarImage {
  list-style-image: url("chrome://messenger/skin/icons/junk.png");
}

#junkIcon {
  list-style-image: url("chrome://messenger/skin/icons/folder-junk.png");
}

#remoteContentImage {
  list-style-image: url("chrome://messenger/skin/icons/remote-blocked.png"); 
}

#phishingBarImage {
  list-style-image: url("chrome://messenger/skin/icons/phishing.png");
}

#mdnBarImage {
  list-style-image: url("chrome://global/skin/icons/question-24.png");
}

/* AppMenu styling */

.splitmenu-menuitem {
  -moz-margin-end: 1px;
}

.splitmenu-menu {
  -moz-box-pack: end;
}

.appmenu-edit-button {
  -moz-appearance: none;
  border: 1px solid transparent;
  padding: 2px;
  background: transparent;
  border-radius: 3px;
}

.appmenu-edit-button[disabled="true"] {
  opacity: .3;
}

#appmenuPrimaryPane {
  -moz-border-end: 1px solid ThreeDShadow;
}

.appmenuPane-spacer {
  min-height: 1em;
}

#appmenu-editmenu {
  -moz-box-pack: end;
}

#appmenu_print,
#appmenu_print_popup,
.appmenu-edit-button,
#appmenu-editmenu-cut,
#appmenu-editmenu-copy,
#appmenu-editmenu-paste,
#appmenu-quit {
  list-style-image: url("icons/appmenu-icons.png");
}

#appmenu-cut,
#appmenu-editmenu-cut {
  -moz-image-region: rect(0 16px 16px 0);
}

#appmenu-copy,
#appmenu-editmenu-copy {
  -moz-image-region: rect(0 32px 16px 16px);
}

#appmenu-paste,
#appmenu-editmenu-paste {
  -moz-image-region: rect(0 48px 16px 32px);
}

#appmenu_print,
#appmenu_print_popup {
  -moz-image-region: rect(0 64px 16px 48px);
}

#appmenu-quit {
  -moz-image-region: rect(0 80px 16px 64px);
}

#appmenu-edit-label {
  -moz-appearance: none;
  background: transparent;
  font-style: italic;
}

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