/* Copyright 2013 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/
/**
 * Defines the styles for the prompt UI.
 */

button {
  margin-bottom: 10px;
}

form {
  margin-top: 10px;
}

input[type="text"],
input[type="password"] {
  width: 548px;
}

textarea {
  border: none;
  border-bottom: 1px solid #cfcfcf;
  box-sizing: border-box;
  display: block;
  height: 240px;
  min-width: 650px;
  resize: vertical;
  width: 100%;
}

textarea:focus {
  outline: none;
}

#pgpBody input[type="checkbox"],
#pgpBody input[type="password"] {
  margin: 8px 8px 0 0;
}

#pgpBody > #pgpKeySelect {
  margin-bottom: 8px;
}

#pgpBody .pgpActions {
  padding: 0 8px;
}

.buttons-container {
  float: right;
}

.buttons-container img {
  cursor: auto;
  opacity: .4;
}

.buttons-container img:hover {
  cursor: pointer;
  opacity: .8;
}

#errorDiv {
  color: #dd4b39;
  display: block;
  font-size: 1em;
  height: 16px;
  margin-bottom: 7px;
  text-align: center;
}

#chipHolder, #fromHolder {
  min-height: 33px;
}

#chipHolder, #fromHolder, #subjectHolder {
  border-bottom: 1px solid #cfcfcf;
  color: #777;
  line-height: 18px;
  margin-bottom: 0;
}

#fromHolder > * {
  display: inline-block;
  margin: 2px;
}

#fromHolder > div:first-child,
#subjectHolder > div:first-child,
#subjectHolder > input,
#pgpKeySelect > .uid-chips > input,
#pgpKeySelect > .uid-chips > span {
  margin-left: 7px;
}

#pgpKeySelect > .uid-chips > input {
  margin: 8px;
  height: 20px;
}

#subjectHolder > div:first-child {
  float: left;
}

#pgpKeySelect:focus,
#fromHolder:focus {
  color: #0c0c0c;
  content: '';
}

#pgpKeySelect input,
#pgpKeySelect input:hover,
#pgpKeySelect input:focus,
#subjectHolder input,
#subjectHolder input:hover,
#subjectHolder input:focus {
  border: 0;
  display: inline-block;
  overflow: hidden;
  padding: 0;
  width: 100px;
}

#subjectHolder #subject {
  width: 590px;
}

#pgpKeySelect input:hover,
#pgpKeySelect input:focus {
  border: 0;
  display: inline-block;
  overflow: hidden;
  padding: 0;
  width: 100px;
}


#pgpKeySelect > .uid-chips,
#pgpKeySelect > .uid-chips div {
  display: inline-block;
}

#pgpKeySelect > .uid-chips {
  padding: 2px;
}

#pgpKeySelect > .uid-chips > div {
  background-color: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  color: #0c0c0c;
  margin: 5px;
  padding: 2px;
}

#pgpKeySelect > .uid-chips > .uid-bad-chip {
  background-color: #f4cccc;
}

#pgpSignerSelect {
  background-color: white;
  border: 0;
  margin-left: 5px;
  outline: none;
  padding: 1px;
}

#pgpSignerSelect:disabled {
  -webkit-appearance: initial;
}

.passphraseEncryptionLink {
  float: right;
  margin-top: 10px;
}

.passphraseEncryptionLink,
.select-all-link {
  color: #777;
  cursor: pointer;
  margin-right: 10px;
  padding-bottom: 8px;
  text-align: right;
}

.passphraseEncryptionLink:hover,
.select-all-link:hover {
  color: #0c0c0c;
}

.ac-renderer {
  background-color: white;
  border: 1px solid #acacac;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  padding: 6px 0;
  position: absolute;
  z-index: 100;
}

.ac-row {
  padding: 10px;
}

.ac-active {
  background: #eeeeee;
}

.uid-chip > div,
.uid-chip img {
  margin-bottom: 2px;
  vertical-align: bottom;
}

.uid-chip img {
  cursor: pointer;
  height: 16px;
  margin: 0 0 2px 5px;
  opacity: 0.3;
  vertical-align: middle;
  width: 16px;
}

.uid-chip img:hover {
  opacity: 1;
}

.goog-menu {
  background-color: white;
  border: 1px solid #acacac;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: default;
  margin: 0;
  outline: none;
  padding: 4px 0;
  position: absolute;
  z-index: 20000; /* Arbitrary, but some apps depend on it... */
}

/* State: resting. */
.goog-menuitem {
  color: #000;
  font: normal 13px Arial, sans-serif;
  list-style: none;
  margin: 0;
  /* 28px on the left for icon or checkbox; 7em on the right for shortcut. */
  padding: 4px 7em 4px 28px;
  white-space: nowrap;
}

/* If a menu doesn't have checkable items or items with icons, remove padding. */
.goog-menu-nocheckbox .goog-menuitem,
.goog-menu-noicon .goog-menuitem {
  padding-left: 12px;
}

/*
 * If a menu doesn't have items with shortcuts, leave just enough room for
 * submenu arrows, if they are rendered.
 */
.goog-menu-noaccel .goog-menuitem {
  padding-right: 20px;
}

.goog-menuitem-content {
  color: #000;
  font: normal 13px Arial, sans-serif;
}

/* State: disabled. */
.goog-menuitem-disabled .goog-menuitem-accel,
.goog-menuitem-disabled .goog-menuitem-content {
  color: #ccc !important;
}
.goog-menuitem-disabled .goog-menuitem-icon {
  opacity: 0.3;
}

/* State: hover. */
.goog-menuitem-highlight,
.goog-menuitem-hover {
  background-color: #f5f5f5;
  /* Use an explicit top and bottom border so that the selection is visible
   * in high contrast mode. */
  border-color: #d6e9f8;
  border-style: dotted;
  border-width: 1px 0;
  cursor: pointer;
  padding-bottom: 3px;
  padding-top: 3px;
}

/* State: selected/checked. */
.goog-menuitem-checkbox,
.goog-menuitem-icon {
  background-repeat: no-repeat;
  height: 16px;
  left: 6px;
  position: absolute;
  right: auto;
  vertical-align: middle;
  width: 16px;
}
.goog-option-selected .goog-menuitem-checkbox,
.goog-option-selected .goog-menuitem-icon {
  /* Client apps may override the URL at which they serve the sprite. */
  background: url(https://ssl.gstatic.com/editor/editortoolbar.png) no-repeat -512px 0;
}

/* Keyboard shortcut ("accelerator") style. */
.goog-menuitem-accel {
  color: #999;
  /* Keyboard shortcuts are untranslated; always left-to-right. */
  /* @noflip */ direction: ltr;
  left: auto;
  padding: 0 6px;
  position: absolute;
  right: 0;
  text-align: right;
}

#popupResizeWorkaround {
  height: 1px;
  overflow: hidden;
  width: 1px;
}