.ce-inline-toolbar {
  --y-offset: 8px;

  /** These variables duplicate the ones defined in popover. @todo move them to single place */
  --color-background-icon-active: rgba(56, 138, 229, 0.1);
  --color-text-icon-active: #388AE5;
  --color-text-primary: black;

  position: absolute;
  visibility: hidden;
  transition: opacity 250ms ease;
  will-change: opacity, left, top;
  top: 0;
  left: 0;
  z-index: 3;
  opacity: 1;
  visibility: visible;

  [hidden] {
    display: none !important;
  }

  &__toggler-and-button-wrapper {
    display: flex;
    width: 100%;
    padding: 0 6px;
  }

  &__buttons {
    display: flex;
  }

  &__actions {
  }

  &__dropdown {
    display: flex;
    padding: 6px;
    margin: 0 6px 0 -6px;
    align-items: center;
    cursor: pointer;
    border-right: 1px solid var(--color-gray-border);
    box-sizing: border-box;

    @media (--can-hover) {
      &:hover {
        background: var(--bg-light);
      }
    }

    &--hidden {
      display: none;
    }

    &-content,
    &-arrow {
      display: flex;
      svg {
        width: var(--icon-size);
        height: var(--icon-size);
      }
    }
  }

  &__shortcut {
    opacity: 0.6;
    word-spacing: -3px;
    margin-top: 3px;
  }
}

.ce-inline-tool {
  color: var(--color-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;

  border: 0;
  border-radius: 4px;
  line-height: normal;
  height: 100%;
  padding: 0;
  width: 28px;
  background-color: transparent;
  cursor: pointer;

  @media (--mobile) {
    width: 36px;
    height: 36px;
  }

  @media (--can-hover) {
    &:hover {
      background-color: #F8F8F8; /* @todo replace with 'var(--color-background-item-hover)' */
    }
  }

  svg {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);

    @media (--mobile) {
      width: var(--icon-size--mobile);
      height: var(--icon-size--mobile);
    }
  }

  &--link {
    .icon--unlink {
      display: none;
    }
  }

  &--unlink {
    .icon--link {
      display: none;
    }
    .icon--unlink {
      display: inline-block;
      margin-bottom: -1px;
    }
  }

  &-input {
    background: #F8F8F8;
    border: 1px solid rgba(226,226,229,0.20);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 22px;


    outline: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: none;
    font-weight: 500;
    -webkit-appearance: none;
    font-family: inherit;

    @media (--mobile){
      font-size: 15px;
      font-weight: 500;
    }

    &::placeholder {
      color: var(--grayText);
    }

    &--showed {
      display: block;
    }
  }

  &--active {
    background: var(--color-background-icon-active);
    color: var(--color-text-icon-active);
  }
}
