.messaging .messaging-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  gap: 41px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.messaging .messaging-wrapper aside {
  max-width: 360px;
  width: 100%;
  padding: 0;
}

.messaging .messaging-wrapper .container-medium {
  width: 100%;
}

.messaging .messaging-wrapper main {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.messaging .messaging-wrapper aside .select {
  margin-bottom: 48px;
}

.select2-container {
  width: 100% !important;
}

.messaging .messaging-wrapper aside .message-list .message {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e6ddcc;
}
.select .select2-container--default .select2-selection--single {
  height: 50px;
  border: 1px solid #c9c9c9 !important;
}
.select
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding-left: 10px;
  padding-top: 10px;
}
.select
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 10px;
}
.messaging .messaging-wrapper aside .message-list .message.first.active {
  background: #242424;
  border-top-right-radius: 30px;
  border-top-left-radius: 30px;
  border-bottom: 1px solid #c9c9c9;
  color: #ffffff;
}
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--multiple {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.messaging .messaging-wrapper aside .message-list .message.active {
  background: #e6ddcc;
  border-bottom: 1px solid #c9c9c9;
  color: #ffffff;
}
.messaging .messaging-wrapper aside .message-list .message.active .text .name {
  color: #000;
}
.messaging
  .messaging-wrapper
  aside
  .message-list
  .message.active
  .text
  .subject {
  color: #000;
}
.messaging .messaging-wrapper aside .message-list .message {
  border-radius: 0;
  border-bottom: 1px solid #c9c9c9;
}
.messaging .messaging-wrapper aside .message-list .message.last {
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}
.select .input-container .select2-container .select2-selection--single {
  border-radius: 10px;
}
.messaging .messaging-wrapper aside .message-list .message:last-child {
  border: 0;
}

.messaging .messaging-wrapper aside .message-list .message .image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  position: relative;
  background: #fff;
  overflow: hidden;
  border: 3px solid var(--red);
}

.messaging .messaging-wrapper aside .message-list .message .image img {
  display: block;
  width: 50px;
  height: 50px;
  -o-object-fit: cover;
  object-fit: cover;
}

.messaging .messaging-wrapper aside .message-list .message .text {
  width: calc(100% - (80px + 33px));
}

.messaging .messaging-wrapper aside .message-list .message .text .name {
  font-family: "Raleway-Bold";
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
  padding-bottom: 0;
  float: left;
}
.messaging .messaging-wrapper aside .message-list .text {
  margin-bottom: 0px;
}
.messaging .messaging-wrapper aside .message-list .message .text .subject {
  font-size: 16px;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
  color: #333;
  font-family: "Raleway";
}
#action-file-trigger {
  cursor: pointer;
}
.messaging .messaging-wrapper aside .message-list .message .image {
  border-radius: 100%;
}

.messaging .messaging-wrapper aside .message-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: #fff;
  /* padding: 10px; */
  border-radius: 10px;
  border: 1px solid #c9c9c9;
  overflow: hidden;
}

.messaging .messaging-wrapper main .message-wrapper {
  /* background: #e6ddcc; */
  border-radius: 10px;
  /* padding: 30px; */
  border: 1px solid #c8c8c8;
}

.message_container {
  max-height: 416px;
  overflow-y: scroll;
  height: 416px;
  padding: 30px;
  margin-top: 20px;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-action
  .input-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: end;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  align-items: center;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-action
  .input-container
  input {
  width: 100%;
  padding: 18px;
  max-height: 50px;
  border-color: white;
  border-radius: 10px;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-action
  .input-container
  input::placeholder {
  color: #242424;
  opacity: 1;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-action
  .input-container
  .button {
  min-height: 50px;
  padding: 0;
  width: 100%;
  max-width: 144px;
  color: #ffffff;
  cursor: pointer;
  margin: 0;
  background-color: var(--red);
  border-radius: 10px;
  border: none;
  position: relative;
}
.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-action
  .input-container
  .button
  i {
  font-size: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.messaging .input-container input::placeholder {
  color: #bababa !important;
}

.message_container .date {
  text-align: center;
  margin-bottom: 20px;
  color: #757575;
  font-family: "Raleway-Bold";
}
.message-wrapper .message-action {
  padding-top: 10px;
  border-top: 1px solid #c8c8c8;
  padding: 30px;
}
.message_container {
  scrollbar-width: thin;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-received {
  padding-left: calc(40px + 25px);
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container
  .image {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: transparent;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid var(--red);
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container
  .image
  img {
  width: 100%;
  display: block;
  width: 40px;
  height: 40px;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
  object-position: center center;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-received
  .message {
  word-break: break-word;
  word-wrap: break-word;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-received
  .message {
  max-width: 596px;
  box-sizing: border-box;
  background: #a5ad9f;
  border: 1px solid #a5ad9f;
  border-radius: 10px;
  font-family: "Raleway";
  font-size: 14px;
  line-height: 17px;
  color: var(--black);
  padding-left: 18px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 16px;
}

.messaging .messaging-wrapper main .message-wrapper .message-box .title-date {
  display: -webkit-box;
  display: -ms-flexbox;
  display: none;
  gap: 20px;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  margin-bottom: 30px;
}
.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-sent
  .message {
  font-size: 16px;
  padding: 19px;
  border: 1px solid #c9c9c9;
  border-radius: 20px;
  width: fit-content;
  text-align: right;
  margin-right: 45px;
  font-family: "Raleway";
}
.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .title-date
  .name {
  font-size: 30px;
  color: #ff5a01;
}
.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .title-date
  .date {
  font-size: 16px;
  font-weight: bold;
  color: #ff5a01;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  margin-bottom: 30px;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-sent {
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-sent
  .image {
  left: unset;
  right: 0;
}

.messaging
  .messaging-wrapper
  main
  .message-wrapper
  .message-box
  .message-container.message-sent
  .message {
  font-size: 16px;
  padding: 19px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  width: fit-content;
  text-align: right;
  color: #000;
}
#chatpage,
.chat-page {
  width: 100%;
}

#chatpage .container {
  max-width: 1450px;
  margin: 0 auto;
}

/* .chat-page .container .title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 60px;
} */
.message-box {
  display: none;
}

.message-action .input-container .file input {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0 !important;
  cursor: pointer;

  /* opacity: 0; */
}
.file.filesupload.fileupload {
  padding: 18px;
  max-height: 50px;
  border-radius: 10px;
}
.message-action .input-container .file {
  position: relative;
  border: none;
  background-color: var(--red);
}

/* chat from slicing */

.news-section .title {
  font-size: 20px;
  font-family: "Raleway-Bold";
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 80px 0;
}

.news-section .massage-section {
  max-width: 1144px;
  width: 100%;
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  padding-bottom: 80px;
  padding: 0 20px;
  margin-bottom: 72px;
}

.massage-container {
  max-width: 764px;
  width: 100%;
  box-sizing: border-box;
  background: #e6ddcc;
  border: 1px solid #e6ddcc;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 40px;
}

.massage-section .massage-content .date {
  font-family: "Raleway";
  font-size: 16px;
  color: var(--black);
  padding-top: 31px;
  padding-bottom: 31px;
  text-align: center;
}

.massage-section .massage-content {
  max-width: 764px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.massage-section .send-massage {
  max-width: 764px;
  width: 100%;
  box-sizing: border-box;
  background: #e6ddcc;
  border: 1px solid #ccbb9a;
  display: flex;
  border-top: none;
  gap: 5px;
  align-items: center;
  padding: 30px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.massage-section .send-massage .input-massage {
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
}

.massage-section .send-massage .input-massage input {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  border: none;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 15px;
  padding-right: 15px;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  font-size: "Raleway";
  text-overflow: ellipsis;
  overflow: hidden;
}

.massage-section .massage-container .chatter {
  display: flex;
  max-width: 641px;
  width: 100%;
  gap: 15px;
  align-items: center;
  padding-left: 30px;
}

.massage-section .massage-container .chatter .profile-img {
  max-width: 30px;
  width: 100%;
  border-radius: 360px;
  box-sizing: border-box;
}

.massage-section .massage-container .chatter .profile-img img {
  height: 30px;
  width: 100%;
  border-radius: 360px;
  box-sizing: border-box;
  border: 2px solid #ff9300;
  object-fit: cover;
}

.massage-section .massage-container .chatter .text {
  max-width: 596px;
  box-sizing: border-box;
  background: #a5ad9f;
  border: 1px solid #a5ad9f;
  border-radius: 10px;
  font-family: "Raleway";
  font-size: 14px;
  line-height: 17px;
  color: var(--black);
  padding-left: 18px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 16px;
}

.massage-section .massage-container .response-chatter {
  width: 100%;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: end;
  padding-right: 30px;
  box-sizing: border-box;
}
.massage-section .massage-container .response-chatter .response-text {
  max-width: 402px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  font-family: "Raleway";
  font-size: 14px;
  line-height: 17px;
  text-align: right;
  color: var(--black);
  padding-top: 14px;
  padding-bottom: 16px;
  padding-left: 15px;
  padding-right: 9px;
}

.massage-section .send-massage .uploader {
  max-width: 50px;
  width: 100%;
  border-radius: 10px;
  background-color: #ff9300;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.massage-section .send-massage .sender-btn {
  max-width: 144px;
  width: 100%;
  border-radius: 10px;
  background-color: #ff9300;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.massage-section .second-list {
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.massage-section .second-list .select {
  max-width: 350px;
  width: 100%;
}

.massage-section .second-list .persons-list {
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6ddcc;
  border-radius: 10px;
  background-color: #e6ddcc;
}

.massage-section .second-list .persons-list .person {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-top: 15px;
  padding-left: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebebeb;
}

.massage-section .second-list .persons-list .person.active-mess {
  background: rgba(140, 140, 140, 0.3);
  background-color: #2d221c;
}

.massage-section .second-list .persons-list .person:last-child {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-top: 15px;
  padding-left: 15px;
  padding-bottom: 16px;
  border-bottom: none;
}

.massage-container .response-chatter .profile-img {
  max-width: 30px;
  width: 100%;
  border-radius: 360px;
}

.massage-container .response-chatter .profile-img img {
  height: 30px;
  width: 100%;
  border-radius: 360px;
  border: 2px solid #ff9300;
}

.massage-section .second-list .persons-list .person .profile-img {
  max-width: 50px;
  width: 100%;
  border-radius: 360px;
}

.massage-section .second-list .persons-list .person .profile-img img {
  height: 50px;
  width: 100%;
  border-radius: 360px;
  border: 2px solid #ff9300;
}

.massage-section .second-list .persons-list .name-and-mass {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.massage-section .second-list .persons-list .name-and-mass .name {
  font-size: 16px;
  font-family: "Raleway-Bold";
  color: #333;
}

.massage-section .second-list .persons-list .name-and-mass .mass {
  font-size: 16px;
  font-family: "Raleway";
  color: #333;
}

.massage-section .second-list .select select {
  width: 100%;
  height: 50px;
  background-color: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  font-size: 16px;
  font-family: "Raleway";
}

.person.active-mess .name-and-mass .name {
  color: #fff !important;
}

.person.active-mess .name-and-mass .mass {
  color: #fff !important;
}

/* end chat from slicing */
.button.purple i {
  background-color: var(--red) !important;
}
.fa-paper-plane::before {
  color: white;
}
.file.filesupload.fileupload svg {
  margin-top: -10px;
}
.select .select2-container--default .select2-selection--single:hover {
  color: white;
  font-family: "Raleway";
}
@media screen and (max-width: 600px) {
  .messaging
    .messaging-wrapper
    main
    .message-wrapper
    .message-action
    .input-container
    > .parsley-errors-list.filled {
    position: relative;
  }
  .messaging
    .messaging-wrapper
    main
    .message-wrapper
    .message-action
    .input-container
    > .parsley-errors-list {
    position: absolute;
  }
  .messaging
    .messaging-wrapper
    main
    .message-wrapper
    .message-action
    .input-container
    .parsley-errors-list.filled {
    right: unset;
  }
}
