ui-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  .container {
    &_discussion {
      border: 2px solid;
      height: 95vh;
      width: 50vw;
      position: relative;
    }
    &_icone {
      width: 25vw;
    }
    &_header_discussion {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      border-bottom: 2px solid;
    }
    &_messages {
      list-style: none;
      margin: 0;
      padding: 0;
      margin: 10px;
      margin-bottom: 80px;
      height: 100%;
      overflow: auto;
      .message_info img {
        background-color: $gray-50;
      }
    }
    &_message_info {
      width: 100%;
      margin: 10px;
    }
    &_textarea {
      height: 100%;
      word-break: break-word;
    }
  }
  .icone {
    width: 20px;
  }
  .name {
    font-weight: bold;
    text-align: left;
    &_user {
      font-weight: 800;
    }
  }
  .header {
    &_element {
      display: flex;
      justify-content: space-between;
      width: 25vw;
    }
  }
  .message {
    padding: 10px;
    border-radius: 10px;
    border-top-left-radius: 0;
    margin-top: 10px;
    > span {
      font-weight: bold;
    }
    &_element {
      display: flex;
      justify-content: space-between;
    }
    &_info {
      display: flex;
      justify-content: space-between;
      width: 100%;
      align-items: center;
    }
    &_line {
      display: grid;
      margin-left: 35px;
      grid-template-columns: 1fr auto;
      grid-auto-flow: column;
    }
  }
  .photo {
    &_user {
      width: 35px;
      margin: auto;
    }
  }
  .body_discussion {
    overflow: hidden;
  }
  .footer {
    &_discussion {
      display: grid;
      grid-template-columns: auto 1fr auto;
      width: 100%;
      align-items: center;
      margin-top: auto;
      margin-bottom: 0;
      border: 2px solid;
      > .container_textarea {
        padding: 5px;
        width: 100%;
      }
      > .button {
        display: flex;
      }
      .ui-chat--input-text {
        &:focus-visible {
          border: solid 1px lightgray !important;
        }
      }
    }
    &__footer {
      display: none;
    }
  }
  .button {
    width: 20%;
  }
  .write {
    margin-top: 0;
  }
  .edit_button_group {
    size: 50%;
    margin: auto;
    display: flex;
    justify-content: space-between;
  }
  .first_message_of_day {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    > hr {
      width: 33%;
    }
  }
  .ui-chat {
    &--input-text {
      &:empty:not(:focus):before {
        content: attr(data-placeholder);
      }
      background: none;
      color: inherit;
      border: 1px solid lightgray;
      border-radius: 5px;
      min-height: 50px;
      padding: 5px;
    }
  }
}
floating-box-view.chat-view {
  .header-footer-fixed {
    &__content {
      overflow: hidden;
      padding: 0 !important;
      > ui-chat {
        > .body_discussion,
        > .footer_discussion {
          padding: 0 40px;
        }
        > .footer_discussion {
          background-color: var(--primary-white-10, mix($primary, $white, 10%));
          .ui-chat--input-text {
            background-color: white;
            &:focus-visible {
              border: solid 1px lightgray !important;
            }
          }
          ui-button {
            padding: 10px;
            width: 45px;
            height: 45px;
            .ui-btn__icon {
              padding-top: 3px;
            }
            &:hover {
              color: var(--primary, $primary);
            }
          }
        }
      }
    }
    &__footer {
      display: none;
    }
  }
}
/*#region tribute */
/* --- TO DO LATTER --- */
.tribute-container {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  overflow: auto;
  display: block;
  z-index: 999999;
  overflow-y: scroll;
  max-height: 40%;
  border-radius: 5px;
}
.tribute-container::-webkit-scrollbar {
  border-radius: 5px;
}
.tribute-container ul {
  margin: 0;
  margin-top: 2px;
  padding: 0;
  list-style: none;
}
.tribute-container li {
  padding: 8px 5px;
  cursor: pointer;
}
.tribute-container li span {
  font-weight: bold;
}
.tribute-container li.no-match {
  cursor: default;
}
.tribute-container .menu-highlighted {
  font-weight: bold;
}
/*#endregion*/
