.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: 14rem;
  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;
}

/* ── Copy button for <pre> blocks in bugnotes ── */
.bugnote-note pre,
.bugnote pre {
  position: relative;
}

.pre-copy-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px 6px;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
  z-index: 2;
}

.bugnote-note pre:hover .pre-copy-btn,
.bugnote pre:hover .pre-copy-btn {
  opacity: 1;
}

.pre-copy-btn:hover {
  background: rgba(0, 0, 0, .7);
}

.pre-copy-btn.copied {
  background: rgba(40, 140, 60, .8);
  opacity: 1;
}
