.maha-richtextfield {
  display: flex;
  border: 1px solid fadeout(@black, 85);
  background-color: @white;
  border-radius: 0.5em;
  position: relative;
  .maha-emojis {
    position: absolute;
    right: 0;
    bottom: 40px;
  }
  .maha-emojis-panel {
  	position: relative;
    &:after, &:before {
    	top: 100%;
    	border: solid transparent;
    	content: " ";
    	height: 0;
    	width: 0;
    	position: absolute;
    	pointer-events: none;
    }
    &:after {
    	border-color: rgba(255, 255, 255, 0);
    	border-top-color: @white;
    	border-width: 6px;
    	margin-left: -6px;
      right: 42px;
    }
    &:before {
    	border-color: rgba(153, 0, 0, 0);
    	border-top-color: fadeout(@black, 85);;
    	border-width: 8px;
    	margin-left: -8px;
      right: 40px;
    }
  }
}
.maha-richtextfield-input {
  flex: 1;
  textarea {
    border-radius: 0.5em;
    width: 100%;
    border: none;
    box-shadow: none;
    outline: none;
    line-height: 1.6em;
    padding: 0.4em;
    resize: none;
    display: block;;
  }
}
.maha-richtextfield-tools {
  display: flex;
  padding: 0.2em;
  .fa {
    padding: 0.2em 0.3em;
    color: fadeout(@black, 80);
    cursor: pointer;
    font-size: 1.4em;
  }
  .fa-smile-o {
    &:hover {
      color: @yellow;
    }
  }
  .fa-camera {
    &:hover {
      color: @green;
    }
  }
}

@media (max-width: 414px) {
  .maha-richtextfield {
    .maha-emojis {
      width: 100%;
    }
  }

}
