.c-rte-floating-text-format-tb-plugin {
  vertical-align: middle;
  background-color: #fff;
  transition: opacity 0.5s;
  height: 43px;
  will-change: transform;
  box-sizing: border-box;
  @apply absolute left-0 top-0 z-10 flex gap-0.5 rounded-md bg-elevate p-1 opacity-0 shadow-md;

  &__format-icon {
    @apply h-full w-full bg-[length:18px_18px] bg-center bg-no-repeat opacity-60;

    &.selected {
      @apply bg-purple-50-900 opacity-100;
    }
  }
}

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

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

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

.c-floating-text-format-popup button.popup-item i.format {
  background-size: contain;
  display: inline-block;
  height: 18px;
  width: 18px;
  margin-top: 2px;
  vertical-align: -0.25em;
  display: flex;
  opacity: 0.6;
}

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

.c-floating-text-format-popup button.popup-item.active {
  background-color: rgba(223, 232, 250, 0.3);
}

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

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

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

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

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

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

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

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

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

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