/* =================================================================================
   Стиль для скрипта автозамены слов в форме ответа. Сделано Kolobdur. Версия 1.9.
==================================================================================== */

/* ===============================
   Загрузка Material Icons
   =============================== */

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(https://forumstatic.ru/files/001a/ad/c5/75551.woff2)
       format('woff2');
}

#suggestBox {
  position: absolute;
  display: none; 
  max-height: 200px;
  border: 1px solid #aaa;
  background: #fff;
  z-index: 9999;        
  overflow-y: auto;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
} 

.replaceCheckboxes {
  margin: 10px 0 0;
  font-size: 10px;
}

.replaceCheckboxes input {
  height: 11px;
}

#replaceModal {
  display: none;
  position: fixed;
  align-items: center;
  z-index: 9999;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.replaceWindow {
  width: 600px;
  height: auto;
  margin: auto;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.replaceWindow h1 {
  text-align: center;
  margin: 0;
  padding-bottom: 10px;
  color: #006597;
  font-size: 1.8em;
}

.replaceWindow > div {
  height: 446px;
  padding: 10px 20px;
  overflow: auto;
}

.replaceRules {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 12px;
}

#replaceBBPanel {
  margin-bottom: 2px;
}

#replaceEditor {
  width: 100%;
  height: 80px;
}

#rulesCount {
  font-size: 12px;
  margin-top: 5px;
  color: #555;
}

.replaceButtons {
  margin-top: 10px;
}

.replaceRadio label {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}

.replaceRadio input {
  margin-right: 2px;
}

.replaceButtons2 {
  margin-top: 0;
  text-align: right;
}

#replaceViewer {
  display: none;
  width: 100%;
  height: 120px;
  margin-top: 10px;
  background: #fafafa;
}

#replaceImportArea {
  display: none;
  width: 100%;
  height: 120px;
  margin-top: 10px;
}

#replaceBBPanel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: auto;
  background: #F0F0F0 url(https://forumstatic.ru/files/0013/49/9f/22436.gif) repeat-x top left;
  border: 1px solid #E0E7EF;
  cursor: pointer;
  color: #006597;
}

#replaceBBPanel button::before {
  font-family: 'Material Icons';
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
}

#replaceBBPanel button[data-tag="size"]::before     { content: '\e245'; } /* format_size */
#replaceBBPanel button[data-tag="b"]::before        { content: '\e238'; } /* format_bold */
#replaceBBPanel button[data-tag="i"]::before        { content: '\e23f'; } /* format_italic */
#replaceBBPanel button[data-tag="u"]::before        { content: '\e249'; } /* format_underlined */
#replaceBBPanel button[data-tag="s"]::before        { content: '\e257'; } /* strikethrough_s */
#replaceBBPanel button[data-tag="url"]::before      { content: '\e157'; } /* link */
#replaceBBPanel button[data-tag="img"]::before      { content: '\e3f4'; } /* image */
#replaceBBPanel button[data-tag="quote"]::before    { content: '\e244'; } /* format_quote */
#replaceBBPanel button[data-tag="code"]::before     { content: '\e86f'; } /* code */
#replaceBBPanel button[data-tag="color"]::before    { content: '\e40a'; } /* palette */
#replaceBBPanel button[data-tag="spoiler"]::before  { content: '\e313'; } /* expand_more */

#replaceBBPanel button:hover {
  background-position: bottom left;
  color: #D46400;
}