.link-editor {
  z-index: 10;
  opacity: 0;
  will-change: transform;
  background-color: #fff;
  border-radius: 6px;
  width: 100%;
  max-width: 400px;
  transition: opacity .5s;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 5px 10px #0000004d;
}

.link-editor .button {
  cursor: pointer;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  margin: 0 2px;
  padding: 6px;
  display: inline-block;
}

.link-editor .button.hovered {
  background-color: #eee;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.link-editor .button i, .actions i {
  vertical-align: -.25em;
  background-size: contain;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.link-editor .button.active, .toolbar .button.active {
  background-color: #dfe8fa;
}

.link-editor .link-input {
  box-sizing: border-box;
  color: #050505;
  background-color: #eee;
  border: 0;
  border-radius: 8px;
  outline: 0;
  min-height: 26px;
  margin: 8px 4px 8px 10px;
  padding: 2px;
  font-family: inherit;
  font-size: 15px;
  display: block;
  position: relative;
}

.link-editor .link-view a {
  word-break: break-word;
  width: calc(100% - 33px);
  display: block;
}

.link-editor div.link-edit {
  vertical-align: -.25em;
  cursor: pointer;
  background-image: url(../../../../static/svg/pencil-fill.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  width: 35px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 30px;
}

.link-editor div.link-trash {
  vertical-align: -.25em;
  cursor: pointer;
  background-image: url(../../../../static/svg/trash.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  width: 35px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.link-editor .link-input a {
  color: #216fdb;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-right: 30px;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.link-editor .link-input a:hover {
  text-decoration: underline;
}

.link-editor .font-size-wrapper, .link-editor .font-family-wrapper {
  margin: 0 4px;
  display: flex;
}

.link-editor select {
  background-color: #00000013;
  border: none;
  border-radius: 4px;
  padding: 6px;
}

.dark .link-editor {
  background-color: var(--canvas-800);
}

