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

imconversation {
  -moz-binding: url("chrome://messenger/content/chat/imconversation.xml#conversation");
}

imgroup {
  -moz-binding: url("chrome://messenger/content/chat/imgroup.xml#group");
  -moz-box-align: center;
}

imcontact {
  -moz-binding: url("chrome://messenger/content/chat/imcontact.xml#contact");
  -moz-box-align: center;
}

.startChatBubble, .closeConversationButton {
  cursor: pointer;
  -moz-user-focus: ignore;
  display: none;
}

imcontact[cansend]:hover .startChatBubble,
imconv:hover .closeConversationButton {
  display: -moz-box;
}

imconv {
  -moz-binding: url("chrome://messenger/content/chat/imconv.xml#conv");
  -moz-box-align: center;
}

.convUnreadCount[value="0"],
.convUnreadTargetedCount[value="0"] {
  display: none;
}

tooltip[type="im"] {
  -moz-binding: url("chrome://chat/content/imtooltip.xml#tooltip");
}

browser[type="content-conversation"] {
  -moz-binding: url("chrome://chat/content/convbrowser.xml#browser");
}

#contextPaneFlexibleBox {
  overflow: hidden;
}

#contextPane:not([chat]) > vbox > .conv-chat {
  display: none;
}

.conv-top-info {
  -moz-binding: url("chrome://messenger/content/chat/imconversation.xml#conv-info-large") !important;
}

#IMSearchInput {
  -moz-binding: url("chrome://messenger/content/search.xml#glodaSearch");
}

#statusTypeIcon:not([disabled]) {
  cursor: pointer;
}

#statusMessage {
  width: 15em;
}

#statusMessage:not([statusType="offline"]):not([disabled]), .statusMessage[editable] {
  cursor: text;
}

#statusMessage[editing], .statusMessage[editing] {
  -moz-appearance: textfield;
  -moz-binding: url('chrome://global/content/bindings/textbox.xml#textbox');
}

#button-chat {
  -moz-binding: url('chrome://messenger/content/chat/badgebutton.xml#badgebutton');
}

toolbar[mode="text"] #button-chat {
  -moz-box-orient: horizontal;
}

.badgeButton-badge {
  display: none;
  background-color: red;
  border: 1px solid white;
  border-radius: 12px;
  box-shadow: 1px 1px 1px black;
  color: white;
  font: 8px Helvetica, Verdana, Tahoma;
  height: 11px;
  min-width: 11px;
  text-align: center;
  margin-top: -1px;
  -moz-margin-start: 5px;
  -moz-margin-end: 0;
  margin-bottom: 5px;
  padding: 0 2px;
}

toolbar[iconsize="large"] .badgeButton-badge {
  -moz-margin-start: 13px;
  margin-bottom: 13px;
}

toolbar[mode="text"] .badgeButton-badge {
  margin: 0;
  margin-bottom: 3px;
}

#button-chat[showingBadge="true"] > stack > .badgeButton-badge {
  display: block;
}
