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

/* ===== messengercompose.css ===========================================
  == Styles for the main Messenger Compose window.
  ======================================================================= */

@import url("chrome://messenger/skin/messenger.css");
@import url("chrome://messenger/skin/shared/messengercompose.css");

@namespace html url("http://www.w3.org/1999/xhtml");

#mail-menubar:-moz-lwtheme {
  color: inherit;
}

#compose-toolbox {
  border-bottom: 1px solid var(--chrome-content-separator-color);
}

/* ::::: special toolbar colors ::::: */

#subjectLabel {
  margin-bottom: 0;
  margin-inline-end: 6px;
}

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

.autocomplete-richlistitem[type$="-abook"] > .ac-site-icon {
  display: flex;
  margin: 1px 5px;
}

#composeContentBox {
  background-color: -moz-dialog;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
}

#composeContentBox:-moz-window-inactive {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) inset;
}

#MsgHeadersToolbar {
  appearance: none !important;
  color: WindowText;
  text-shadow: none;
  padding-block-start: 7px;
}

.address-container {
  padding: 1px 4px;
}

.address-label-container {
  padding-top: 6px;
}

#msgIdentity,
.address-container {
  min-height: 30px;
}

#msgSubject {
  min-height: 28px;
}

.address-pill {
  padding-block: 2px;
}

.address-pill label {
  margin-block: 0;
}

.pill-indicator {
  margin-top: -2px;
}

#identityLabel-box {
  margin-top: 1px;
}

#msgIdentity {
  margin-block: 2px 0;
  padding-block: 4px;
  padding-inline: 2px 20px;
}

#msgIdentity::part(label-box) {
  background: none;
  padding-inline-end: initial;
}

#msgIdentity::part(text-input) {
  appearance: none;
  padding-block: 1px 2px;
  padding-inline: 3px 12px;
  background-color: transparent;
  color: inherit;
}

#msgIdentity[editable="true"]::part(dropmarker) {
  margin-inline-end: 0;
  width: 12px;
}

#msgIdentity[open="true"] {
  color: FieldText;
}

:root[lwt-tree] #msgIdentity[open="true"] {
  color: var(--lwt-toolbar-field-color);
}

/* ::::: format toolbar ::::: */

#FormatToolbar {
  appearance: none;
  color: WindowText;
  margin-inline: 3px;
  padding-block: 4px;
}

toolbarbutton.formatting-button {
  margin: 1px;
}

.formatting-button > .toolbarbutton-menu-dropmarker {
  appearance: none !important;
  margin-inline-start: 3px;
}

/* ::::: address book sidebar ::::: */

#contactsBrowser {
  background-color: Window;
}

menu[command="cmd_attachCloud"] .menu-iconic-left,
menu[command="cmd_convertCloud"] .menu-iconic-left {
  /* Ensure that the provider icons are visible even if the Gnome theme says
     menus shouldn't have icons. */
  visibility: visible;
}

/* Styles for the default system dark theme */

:root[lwt-tree] #MsgHeadersToolbar {
  background-image: none;
}

:root[lwt-tree] #FormatToolbar {
  color: inherit;
  background-image: none;
}
