.richtext-emoji.wrapper {
  max-width: 85vw;
}

.richtext-emoji .btn-toolbar {
  max-width: 32rem;
  position: relative !important;
}

.richtext-emoji-tooltip {
  position: absolute;
  right: -10%;
  top: 0%;
  max-height: 10rem;
}

.richtext-emoji-tooltip:not(.shown) {
  display: none;
}

.richtext-emoji-tooltip emoji-picker {
  max-height: 18rem;
}

.richtext-emoji .btn-toolbar {
  background-color: #f4f4f4;
  padding: 0.4rem;
}

.richtext-emoji .btn {
  background-color: #888888;
  border-radius: 0.2rem;
  margin: 0 !important;
  border: 0 !important;
  border-color: transparent !important;
  min-width: 1.8rem;
}

.richtext-emoji #richtext-emoji-text {
  background-color: rgba(255, 255, 255, .9);
  color: #020214 !important;
  border: 1px rgba(50, 50, 50, .5) solid;
  min-height: 12rem;
  padding: 0.4rem 0.6rem;
  max-height: 60vh;
  max-width: 100%;
  overflow-y: auto;
  position: relative;
}

.richtext-emoji #richtext-emoji-text.private-note {
  background-color: #fbf4e2 !important;
}

#richtext-emoji-text:empty:before {
  content: attr(placeholder);
  position: absolute;
  left: 5px;
  font-size: 13px;
  color: #aaa;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  direction: ltr;
}

.bugnote-votes {
  transform: translateZ(1);
}

.btn-vote-button {
  display: inline-block;
  border: unset;
  border-radius: 40px;
  background-color: unset;
  transition: all 0.2s ease;
  padding: 3px 5px !important;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  filter: grayscale(0.4);

}

.btn-vote-button.active {
  filter: drop-shadow(3px 3px 1px rgba(4, 107, 176, .2));
}

.btn-vote-button:hover {
  background-color: rgba(0, 113, 165, 0.308) !important;
  box-shadow: unset !important;
  filter: grayscale(0);
  text-decoration: none !important;
}

.vote-count {
  font-weight: normal;
  font-size: 10px;
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 0px 5px;
  transform: translate(6px, -10px);
  visibility: hidden;
}

.vote-count.shown {
  visibility: visible;
}