.floating-text-format-popup {
  vertical-align: middle;
  z-index: 10;
  opacity: 0;
  will-change: transform;
  background: #fff;
  border-radius: 6px;
  height: 35px;
  padding: 4px;
  transition: opacity .5s;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 5px 10px #0000004d;
}

.floating-text-format-popup button.popup-item {
  cursor: pointer;
  vertical-align: middle;
  background: none;
  border: 0;
  border-radius: 6px;
  display: flex;
}

.floating-text-format-popup button.popup-item:disabled {
  cursor: not-allowed;
}

.floating-text-format-popup button.popup-item.spaced {
  margin-right: 2px;
}

.floating-text-format-popup button.popup-item i.format {
  vertical-align: -.25em;
  opacity: .6;
  background-size: contain;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  display: inline-block;
}

.floating-text-format-popup button.popup-item:disabled i.format {
  opacity: .2;
}

.floating-text-format-popup button.popup-item.active {
  background-color: #dfe8fa4d;
}

.floating-text-format-popup button.popup-item.active i {
  opacity: 1;
}

.floating-text-format-popup .popup-item:hover:not([disabled]) {
  background-color: #eee;
}

.floating-text-format-popup select.popup-item {
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #777;
  text-overflow: ellipsis;
  background: none;
  border: 0;
  border-radius: 6px;
  width: 70px;
  padding: 8px;
  font-size: 14px;
  display: flex;
}

.floating-text-format-popup select.code-language {
  text-transform: capitalize;
  width: 130px;
}

.floating-text-format-popup .popup-item .text {
  vertical-align: middle;
  color: #777;
  text-overflow: ellipsis;
  text-align: left;
  width: 200px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  overflow: hidden;
}

.floating-text-format-popup .popup-item .icon {
  -webkit-user-select: none;
  user-select: none;
  background-size: contain;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  line-height: 16px;
  display: flex;
}

.floating-text-format-popup i.chevron-down {
  -webkit-user-select: none;
  user-select: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  display: flex;
}

.floating-text-format-popup i.chevron-down.inside {
  pointer-events: none;
  width: 16px;
  height: 16px;
  margin-top: 11px;
  margin-left: -25px;
  margin-right: 10px;
  display: flex;
}

.floating-text-format-popup .divider {
  background-color: #eee;
  width: 1px;
  margin: 0 4px;
}

@media (max-width: 1024px) {
  .floating-text-format-popup button.insert-comment {
    display: none;
  }
}

.dark .floating-text-format-popup {
  background-color: var(--canvas-800);
  border: 1px solid var(--border-color);
}

.dark .floating-text-format-popup i {
  filter: invert();
}

.dark .floating-text-format-popup .popup-item:hover:not([disabled]) {
  background-color: #1c1c1c;
}

