
.chat {
  background-color: $cf-gray;
  background-repeat: no-repeat;
  background-size: 100%;
}

.header-picture {
  max-width: 41px;
  max-height: 41px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px
}

.message-list {
  margin-top: 12px;
  padding: 0 5%;
}

.message-wrapper {
  margin-bottom: 9px;

  &::after {
    content: "";
    display: table;
    clear: both;
  }
}

.message {
  display: inline-block;
  position: relative;
  max-width: 236px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);

  &.message-mine {
    float: right;
    background-color: $assertive;
    color:white;
  }

  &.message-other {
    float: left;
    background-color: #FFF;
    color: $assertive;
  }

  &.message-other::before, &.message-mine::before, {
    content: "";
    position: absolute;
    bottom: 3px;
    width: 12px;
    height: 19px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
  }

  &.message-other::before {
    left: -11px;
    background-image: url(/img/message-other.png)
  }

  &.message-mine::before {
    right: -11px;
    background-image: url(/img/message-mine-assertive.png);
    color: $assertive;
  }

  .message-text {
    padding: 5px 7px;
    word-wrap: break-word;

    &::after {
      content: " \00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0\00a0";
      display: inline;
    }
  }
  
  .message-image{
      padding: 5px 7px;
      img{
          width: 80%;
           }
  }

  .message-timestamp {
    position: absolute;
    bottom: 2px;
    right: 7px;
    color: #E0E0E0;
    font-size: 10px;
  }
}

.footer-chat {
    .item-input-wrapper {
        background-color: #FFF;
        input{
            color:$cf-grayest;   
        }
    }
    .button.button-icon {
        width: 18%;
    }


}