@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Roboto, Helvetica Neue, -apple-system, Arial, sans-serif;
  border: none;
  outline: none;
  background: none;
  text-decoration: none;
  list-style: none;
}

body {
  background-color: #202227;
}

body.mod-inner {
  padding-top: 7.5rem !important;
}

@media only screen and (max-width:767px){
  body.mod-inner {
    padding-top: 4rem !important;
  }
}

.row-content {
  padding-top: 0 !important;
}

.chatbox {
  background: none;
  border-radius: 0;
  margin-bottom: 0;
  border: none;
}

.chatbox-messages__bubble-right {
  background: none;
}

.chatbox-users__user {
  border-top: none;  
}

.chatbox-counter {
  position: absolute;
  right: auto;
  bottom: -1.2rem;
  left: 1rem;
  font-size: 0.7rem;
  color: #d6d6d6;
  z-index: 2;
}
.emoji-wysiwyg-editor {
  padding: 5px 10px 5px 35px !important;
}
.breadcrumbs {
  display: none !important;
}

.emoji-picker-icon.messageWink, .emoji-picker-icon-attach.messagePaperclip {
  position: absolute;
  top: auto;
  left: 0.5rem;
  font-size: 1.1rem;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0.5rem;
}

.emoji-picker-icon-attach.messagePaperclip {
  left: calc(100% - 5rem);
}

.chatbox-attaches-block {
  position: absolute;
  bottom: 3.5rem;
  z-index: 100;
}

.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list-header .name {
  margin: 0 !important;
}

.chatbox-messages__delele{
  position: static;
  font-size: 0.6rem;
}

.wrapper {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 1rem;
}

.chat-section {
  height: calc(100svh - 7.6rem);
  /* Fallback for older iOS versions that don't support svh */
  height: -webkit-calc(100vh - 7.6rem);
  height: calc(100vh - 7.6rem);
  position: relative;
  z-index: 1;
  /* iOS Safari fix: Force proper rendering layer */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.chat-section .wrapper {
  height: 100%;
}
.chat-section .wrapper .chat-area {
  display: flex;
  color: #FFFFFF;
  height: 100%;
}
.chat-section .wrapper .chat-area .chat-left-area {
  max-width: 25rem;
  width: 100%;
  border-right: 1px solid #474752;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button-area {
  padding: 1rem 1rem 0;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button-area.active .switch-button::after {
  left: 74%;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button {
  padding: 0.5rem;
  background-color: #42424c;
  border-radius: 0.4rem;
  position: relative;
  height: 2.5rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button::after {
  content: "";
  position: absolute;
  height: 2rem;
  background-color: #12141B;
  width: 50%;
  top: 50%;
  left: 26.2%;
  transform: translate(-50%, -50%);
  border-radius: 0.4rem;
  box-shadow: 0 0 10px rgba(20, 20, 20, 0.9);
  transition: 0.4s ease;
  z-index: 1;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button button {
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button button.active {
  color: #FFFFFF;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button button.active small {
  background-color: #CB3288;
}
.chat-section .wrapper .chat-area .chat-left-area .switch-button button small {
  position: absolute;
  top: 50%;
  left: 90%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  height: 1rem;
  width: 1rem;
  background-color: #7C7D80;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  display: none;
}
.chat-section .wrapper .chat-area .chat-left-area .chat-list-search-area {
  padding: 0 1rem 0;
}
.chat-section .wrapper .chat-area .chat-left-area .chat-list-search {
  position: relative;
  margin-bottom: 1rem;
}
.chat-section .wrapper .chat-area .chat-left-area .chat-list-search input {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.4rem;
  background-color: #42424C;
  color: #FFFFFF;
  border: none;
  outline: none;
  padding: 0 1.5rem 0 2rem;
  font-size: 1rem;
}
.chat-section .wrapper .chat-area .chat-left-area .chat-list-search input::placeholder {
  font-size: 0.8rem;
  color: #9d9dac;
}
.chat-section .wrapper .chat-area .chat-left-area .chat-list-search i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: #828294;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area {
  height: calc(100svh - 16rem);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area ::-webkit-scrollbar {
  display: none;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #c4c5ce;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 1rem;
  margin: 1.5rem 0;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .messages-conversations-area {
  overflow: hidden;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .messages-conversations-area .messages-conversations {
  width: 200%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: -100%;
  transition: 0.4s ease;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list {
  width: 100%;
  overflow-y: auto;
  height: calc(100svh - 19rem);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  height: auto;
  padding: 1rem 0.8rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0.4rem;
  align-items: flex-start;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-top: 0 !important;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user:hover .chat-delete {
  opacity: 1;
  pointer-events: all;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.unread {
  height: 4.8rem;
  padding: 0 0.8rem;
  align-items: center;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.unread .user-details .user-details-area .latest-message {
  font-weight: 400;
  color: #FFFFFF;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.active {
  border-left: 3px solid #CB3288;
  background: linear-gradient(90deg, rgba(203, 50, 136, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user:last-child {
  border-bottom: 0;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 8rem);
  width: 100%;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image {
  height: 3rem;
  width: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image.active::after {
  background-color: #95F121;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image::after {
  content: "";
  position: absolute;
  height: 0.5rem;
  width: 0.5rem;
  background-color: #E3E1E5;
  border-radius: 50%;
  bottom: 1px;
  right: 1px;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image .user-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area {
  max-width: calc(100% - 3.5rem);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .name {
  font-size: 0.9rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .latest-message {
  font-size: 0.75rem;
  color: #828294;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-weight: 300;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details-area {
  max-width: 7.5rem;
  width: 100%;
  height: 3rem;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details-area .latest-message-image {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  border-radius: 0.4rem;
  overflow: hidden;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details-area .latest-message-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details {
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: flex-end;
  flex-direction: column;
  margin-top: 0.55rem;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details .time {
  font-size: 0.8rem;
  color: #828294;
  margin-bottom: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-delete {
  position: absolute;
  top: 0.2rem;
  right: 0.5rem;
  height: 1.1rem;
  width: 1.1rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #36393D;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(20, 20, 20, 0.6);
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-delete:hover {
  background-color: #42464b;
  transform: scale(1.2);
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-delete i {
  font-size: 0.6rem;
  color: #FFFFFF;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .unread-count {
  font-size: 0.57rem;
  color: #FFFFFF;
  background-color: #CB3288;
  height: 1.3rem;
  width: 1.3rem;
  border-radius: 50%;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .unread-count span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.chat-section .wrapper .chat-area .chat-right-area {
  max-width: calc(100% - 25rem);
  width: 100%;
  height: 100%;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #474752;
  position: relative;
  z-index: 1;
  /* iOS Safari fix: Force proper rendering layer */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .back-button {
  cursor: pointer;
  user-select: none;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  margin-right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: none;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section a {
  max-width: calc(100% - 3rem);
  width: 100%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .option-button {
  height: 2.5rem;
  width: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .option-button:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner {
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner.active .user-details {
  background-color: rgba(255, 255, 255, 0.06);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner.active .options {
  opacity: 1;
  pointer-events: auto;
  top: 3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options {
  position: absolute;
  top: 1rem;
  left: -1rem;
  width: 15.5rem;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
  z-index: 10;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul {
  border-radius: 0.3rem;
  padding: 0.5rem;
  background-color: #303237;
  box-shadow: 0 0 10px rgba(20, 20, 20, 0.8);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li {
  border-radius: 0.3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li button {
  color: #FFFFFF;
  padding: 0.8rem 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 0.3rem;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 0.8rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li button:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li button i {
  font-size: 1.1rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .info-button {
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .info-button:hover .fa-info {
  background-color: rgba(255, 255, 255, 0.06);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .info-button:hover .info-popup {
  right: 1.25rem;
  opacity: 1;
  pointer-events: auto;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .info-button .info-popup {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 11rem;
  font-size: 0.8rem;
  padding: 0.35rem;
  border-radius: 1rem;
  text-align: center;
  background-color: #303237;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .fa-info {
  height: 1.2rem;
  width: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.6rem;
  cursor: pointer;
  user-select: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits {
  text-align: right;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button {
  gap: 0.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #d9d9d9;
  font-size: 0.8rem;
  cursor: pointer;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button:hover {
  color: #FFFFFF;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button i {
  font-size: 1rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  min-width: 13.5rem;
  max-width: 30.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .image {
  height: 3rem;
  width: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .image .user-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area {
  max-width: calc(100% - 3.5rem);
  width: 100%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .status {
  font-size: 0.8rem;
  color: #828294;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.chat-section .wrapper .chat-area .chat-right-area ::-webkit-scrollbar {
  width: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area ::-webkit-scrollbar-track {
  background-color: #1A1A23;
}
.chat-section .wrapper .chat-area .chat-right-area ::-webkit-scrollbar-thumb {
  background-color: #474752;
}
.chat-section .wrapper .chat-area .chat-right-area ::-webkit-scrollbar-thumb:hover {
  background-color: #3b3b44;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area {
  padding: 1rem;
  height: calc(100vh - 16.8rem);
  overflow-y: scroll;
  /* iOS Safari fix: Enable momentum scrolling */
  -webkit-overflow-scrolling: touch;
  /* iOS Safari fix: Force proper rendering layer */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-body {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-date {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #828294;
  text-align: center;
  width: 100%;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-date p {
  background-color: #202227;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 2;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-date::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: #474752;
  z-index: 1;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self {
    justify-content: flex-end;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content .image {
  order: 2;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content .message-group-area {
  align-items: flex-end;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content .message-group {
  align-items: flex-end;
  position: relative;
  padding-left: 2rem;
  padding-right: 0;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content .delete-message-button {
  left: -0.5rem;
  right: auto;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content p {
  background-color: #CB3288;
  margin-right: 0;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message.self .message-content p:nth-last-child(1) {
  border-radius: 0.3rem 0.3rem 0 0.3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-items: flex-end;
  gap: 0.5rem;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 2rem);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .time {
  font-size: 0.7rem;
  color: #828294;
  margin-bottom: 0.1rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 2rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group .delete-message-button {
  position: absolute;
  right: -0.5rem;
  bottom: 0.7rem;
  height: 1.5rem;
  width: 1.5rem;
  font-size: 0.6rem;
  border-radius: 50%;
  background-color: #474752;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group .delete-message-button:hover {
  background-color: #3b3b44;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area {
  margin-bottom: 0.3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group {
  position: relative;
  max-width: 20rem;
  border-radius: 0.4rem;
  overflow: hidden;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group:hover .controls {
  opacity: 1;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-fit: contain;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  opacity: 0;
  transition: 0.4s ease;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #play-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  height: 3.5rem;
  width: 3.5rem;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #play-pause:hover {
  background-color: rgba(255, 255, 255, 0.6);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls .control-footer {
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;
  padding: 4rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #full-screen {
  color: #FFFFFF;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #full-screen:hover {
  transform: scale(1.5);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #seek-bar {
  width: 76%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background-color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #seek-bar::-webkit-slider-thumb:hover {
  background: #CB3288;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #seek-bar::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background-color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #seek-bar::-moz-range-thumb:hover {
  background: #CB3288;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls .mute-area {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls .mute-area:hover .volume-area {
  grid-template-columns: 1fr;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls .mute-area:hover .volume-area #volume-bar {
  overflow: visible;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #mute {
  cursor: pointer;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.6);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls .volume-area {
  display: grid;
  grid-template-columns: 0fr;
  transition: 0.3s cubic-bezier(0.46, 0.23, 0.48, 1.55);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #volume-bar {
  overflow: hidden;
  cursor: pointer;
  height: 5px;
  background: rgba(20, 20, 20, 0.4);
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #volume-bar::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  background-color: #CB3288;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #volume-bar::-webkit-slider-thumb:hover {
  background: #CB3288;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #volume-bar::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background-color: #CB3288;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls #volume-bar::-moz-range-thumb:hover {
  background: #CB3288;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area {
  margin-bottom: 0.3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area .message-image-group {
  max-width: 20rem;
  border-radius: 0.4rem;
  overflow: hidden;
  display: grid;
  position: relative;
  gap: 0.3rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area .message-image-group.single-image {
  grid-template-columns: 1fr;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area .message-image-group.multiple-images {
  grid-template-columns: 1fr 1fr;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area .message-image-group img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-image-area .message-image-group .extra-images {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content p {
  font-size: 1rem;
  font-weight: 300;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 0.3rem;
  margin-bottom: 0.3rem;
  line-height: 1.4333;
  letter-spacing: 0.5px;
  max-width: 50rem;
  word-wrap: break-word;
  word-break: break-word;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content p:nth-last-child(1) {
  border-radius: 0.3rem 0.3rem 0.3rem 0;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .image {
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .image .user-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  padding: 1rem;
  user-select: none;
  z-index: 10;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chatbox-counter {
  position: absolute;
  bottom: -1.2rem;
  left: 1rem;
  font-size: 0.7rem;
  color: #d6d6d6;
  z-index: 2;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
  display: none;
  max-height: 20rem;
  overflow: auto;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list.active {
  display: flex;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list .file {
  height: 5rem;
  width: 5rem;
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list .file .delete-file {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list .file .delete-file:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .choosen-file-list .file img {
  border-radius: 0.3rem;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area {
  border: 1px solid #474752;
  border-radius: 1rem;
  background: rgba(18, 20, 26, 0.8);
  backdrop-filter: blur(15px);
  position: relative;
  height: 100%;
  width: 100%;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: flex-end;
  padding: 0.6rem 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .message-input {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(100% - 5rem);
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-input {
  border: none;
  outline: none;
  background-color: transparent;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 0.4rem 0;
  width: 100%;
  min-height: 10px;
  max-height: 300px;
  border-radius: 5px;
  resize: none;
  overflow: hidden;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  width: 14rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .choole-file-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group #emoji-button {
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  background-color: #CB3288;
  border-radius: 0.4rem;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button {
  margin-left: 1rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .choole-file-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group #emoji-button {
  background: none;
  width: auto;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area {
  position: relative;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area #emoji-search {
  height: 2rem;
  width: 100%;
  border-radius: 0.4rem;
  padding: 0 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area #category-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area #emoji-container {
  height: 10rem;
  overflow-y: auto;
  overflow-x: hidden;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-button {
  font-size: 1rem;
  cursor: pointer;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker {
  position: absolute;
  top: -340%;
  left: -200%;
  transform: translate(-50%, -50%);
  width: 17rem;
  background-color: #141414;
  border: 1px solid #474752;
  border-radius: 0.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker.hidden {
  display: none;
}
.chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker span {
  font-size: 24px;
  margin: 5px;
  cursor: pointer;
  user-select: none;
}
@media (hover: none) and (pointer: coarse), (hover: none) and (pointer: fine) {
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-delete {
    opacity: 1;
    pointer-events: auto;
  }
}
@media only screen and (max-width: 991px) and (min-width: 850px) {
  .chat-section .wrapper {
    height: 100%;
  }
  .chat-section .wrapper .chat-area .chat-left-area {
    max-width: 18rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button {
    height: 2rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button button {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button::after {
    height: 1.6rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search {
    margin-bottom: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search input {
    height: 2rem;
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search input::placeholder {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search i {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user {
    padding: 0.5rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details {
    max-width: calc(100% - 3rem);
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image {
    height: 2.4rem;
    width: 2.4rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area {
    max-width: calc(100% - 3rem);
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .name {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .latest-message {
    font-size: 0.7rem;
  }
  /* .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details {
    max-width: 3rem;
  } */
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details .time {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details .unread-count {
    height: 1rem;
    width: 1rem;
    font-size: 0.45rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area {
    max-width: calc(100% - 18rem);
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header {
    padding: 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner.active .options {
    top: 2.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .image {
    height: 2.5rem;
    width: 2.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name {
    font-size: 0.8rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .status {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area {
    padding: 1rem;
    height: calc(100vh - 15.5rem);
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-date {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .time {
    font-size: 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group {
    max-width: 16rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group .controls #play-pause {
    height: 3rem;
    width: 3rem;
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group .controls #mute {
    height: 1.7rem;
    width: 1.7rem;
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-image-area .message-image-group {
    max-width: 16rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area p {
    font-size: 0.9rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer {
    padding: 0.6rem;
  }
  /* .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area {
    padding: 0.6rem;
  } */
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-input {
    font-size: 1rem;
    padding: 0.3rem 0;
    min-height: 5px;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group {
    width: 100%;
    gap: 0.4rem;
    max-width: 5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .choole-file-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group #emoji-button {
    height: 1.4rem;
    width: 1.4rem;
    font-size: 0.8rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button {
    margin-left: 0.7rem;
    height: 1.6rem;
    width: 1.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area #emoji-search {
    height: 1.8rem;
    border-radius: 0.3rem;
    padding: 0 0.6rem;
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker {
    top: -540%;
    left: -200%;
    width: 14.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker span {
    font-size: 0.9rem;
  }
}
@media only screen and (max-width: 850px) {
  /* Ensure parent has position relative for emoji icons */
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area {
    position: relative !important;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-footer-inner {
    position: relative !important;
  }
  /* Ensure emoji picker icons are visible on mobile */
  .emoji-picker-icon.messageWink, .emoji-picker-icon-attach.messagePaperclip {
    position: absolute !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    z-index: 999 !important;
    pointer-events: auto !important;
  }
  .emoji-picker-icon.messageWink {
    left: 0.5rem !important;
    top: auto !important;
    bottom: 0.5rem !important;
  }
  .emoji-picker-icon-attach.messagePaperclip {
    right: 3.5rem !important;
    left: auto !important;
    top: auto !important;
    bottom: 0.5rem !important;
  }
  /* Mobile upload area adjustments */
  #dnd_upload .drag-area p {
    font-size: 0.85rem !important;
    color: #828294 !important;
    visibility: hidden !important;
    position: relative !important;
  }
  #dnd_upload .drag-area p::after {
    content: "(Max 10MB)" !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }
  #dnd_upload {
    min-height: 50px !important;
  }
  .chatbox-attaches-block .upload-btn {
    text-align: center !important;
    margin: 1rem 0 !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] {
    display: inline-block !important;
    background-color: #CB3288 !important;
    padding: 1rem 2rem !important;
    border-radius: 2rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(203, 50, 136, 0.3) !important;
    margin-top: -8px !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] s {
    text-decoration: none !important;
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    visibility: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] s::after {
    content: "📷 Select Photos" !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }
  .chatbox-attaches-block .upload-btn {
    font-size: 0 !important;
  }
  .chat-section {
    height: calc(100svh - 4.2rem);
  }
  .chat-section .wrapper {
    overflow: hidden;
    padding: 0;
  }
  .chat-section .wrapper .chat-area {
    width: 200%;
    transition: 0.4s ease;
  }
  .chat-section .wrapper .chat-area.active {
    margin-left: -100%;
  }
  .chat-section .wrapper .chat-area .chat-left-area {
    max-width: 100%;
    border: none;
  }
  /* Fix for chat header getting stuck behind main header on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #202227;
    /* iOS Safari fix: Force hardware acceleration and proper layer compositing */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area {
    height: calc(100svh - 12rem);
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list {
    height: calc(100svh - 14.5rem);
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.active {
    border-left: 3px solid transparent;
    background: none;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-delete {
    opacity: 1;
    pointer-events: auto;
  }
  /* Mobile chat list styling */
  .chatbox-users__user {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    background-color: rgb(66 66 76 / 53%) !important;
    min-height: 84px;
    position: relative;
    z-index: 1;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image {
    height: 4rem !important;
    width: 4rem !important;
    min-width: 4rem;
  }
  .unread-count span {
    font-weight: 600;
    top: 58% !important;
  }
  .chat-section .wrapper .chat-area .chat-right-area {
    max-width: 100%;
  }
  /* Make header slightly bigger on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header {
    padding: 0.8rem 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .back-button {
    display: flex;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section {
    max-width: calc(100% - 3rem);
  }
  /* Make profile image slightly bigger on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .image {
    height: 3.5rem !important;
    width: 3.5rem !important;
    min-width: 3.5rem !important;
    min-height: 3.5rem !important;
    flex-shrink: 0;
  }
  /* Make age slightly bigger on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name {
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name small {
    font-size: 0.95rem;
  }
  /* Hide information button on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .info-button {
    display: none;
  }
  /* Make credit button easier to push on mobile */
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button {
    padding: 0.7rem 0.8rem;
    background-color: #CB3288;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    min-height: 3rem;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(203, 50, 136, 0.3);
    transition: all 0.2s ease;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(203, 50, 136, 0.4);
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button:hover {
    background-color: #e03898;
    box-shadow: 0 3px 12px rgba(203, 50, 136, 0.4);
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button i {
    font-size: 1.2rem;
    color: #FFFFFF;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-video-area .message-video-group .controls {
    opacity: 1;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details-area .latest-message-image {
    height: 1.8rem;
    width: 1.8rem;
    top: 30%;
    left: 30%;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details {
    gap: 0rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details-area {
    max-width: 6.5rem;
    padding-left: 12px !important;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area {
    padding-left: 12px !important;
    .name {
      font-size: 1rem !important;
    }
    .latest-message {
      font-size: 0.8rem !important;
      word-break: break-all;
    }
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user {
    min-height: 90px;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.unread {
    background: linear-gradient(90deg, rgba(203, 50, 136, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
  }
}
@media only screen and (max-width: 575px) {
  /* Ensure parent has position relative for emoji icons */
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area {
    position: relative !important;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-footer-inner {
    position: relative !important;
  }
  .emoji-picker-icon.messageWink, .emoji-picker-icon-attach.messagePaperclip {
    position: absolute !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    height: 1.5rem;
    width: 1.5rem;
    bottom: 0.85rem;
    z-index: 999 !important;
    pointer-events: auto !important;
  }
  .emoji-picker-icon.messageWink {
    left: 0.5rem !important;
    top: auto !important;
  }
  .emoji-picker-icon-attach.messagePaperclip {
    right: 3.5rem !important;
    left: auto !important;
    top: auto !important;
  }
  /* Mobile upload area adjustments for small screens */
  #dnd_upload .drag-area p {
    font-size: 0.8rem !important;
    color: #828294 !important;
    visibility: hidden !important;
    position: relative !important;
  }
  #dnd_upload .drag-area p::after {
    content: "(Max 10MB)" !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }
  #dnd_upload {
    min-height: 40px !important;
  }
  .chatbox-attaches-block .upload-btn {
    text-align: center !important;
    margin: 0.8rem 0 !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] {
    display: inline-block !important;
    background-color: #CB3288 !important;
    padding: 0.9rem 1.8rem !important;
    border-radius: 2rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(203, 50, 136, 0.3) !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] s {
    text-decoration: none !important;
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    visibility: hidden !important;
    position: relative !important;
  }
  .chatbox-attaches-block .upload-btn span[data-role="filebutton"] s::after {
    content: "📷 Select Photos" !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }
  .chatbox-attaches-block .upload-btn {
    font-size: 0 !important;
  }
  .chat-section .wrapper .chat-area .chat-left-area {
    max-width: 100%;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button {
    height: 2rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button button {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .switch-button::after {
    height: 1.6rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search {
    margin-bottom: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search input {
    height: 2rem;
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search input::placeholder {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .chat-list-search i {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list {
    padding: 0 0.4rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user {
    padding: 0.8rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user.unread {
    height: 4.6rem;
    padding: 0 0.8rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .image {
    height: 2.4rem;
    width: 2.4rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .name {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .user-details .user-details-area .latest-message {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details .time {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-left-area .user-list-area .user-list .user .chat-details .unread-count {
    height: 1rem;
    width: 1rem;
    font-size: 0.45rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area {
    max-width: 100%;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header {
    padding: 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .fa-info {
    height: 1rem;
    width: 1rem;
    font-size: 0.55rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button {
    font-size: 0.65rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-credits .credits button i {
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner.active .options {
    top: 2.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .back-button {
    height: 1.9rem;
    width: 1.9rem;
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options {
    width: 13.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li button {
    padding: 0.8rem 0.5rem;
    font-size: 0.775rem;
    gap: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details-section .user-details-inner .options ul li button i {
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details {
    min-width: 11.5rem;
    max-width: 12.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .image {
    height: 2.5rem;
    width: 2.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .name {
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-header .user-details .user-details-area .status {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area {
    padding: 1rem;
    height: calc(100vh - 15.5rem);
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .chat-date {
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .time {
    font-size: 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group {
    max-width: 16rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group .controls #play-pause {
    height: 3rem;
    width: 3rem;
    font-size: 1rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-video-area .message-video-group .controls #mute {
    height: 1.7rem;
    width: 1.7rem;
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area .message-image-area .message-image-group {
    max-width: 16rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-body-area .message .message-content .message-group-area p {
    font-size: 0.9rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer {
    padding: 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chatbox-counter {
    bottom: -1.6rem; 
    left: 0.5rem;
  }
  @supports (-webkit-touch-callout: none) {
    .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chatbox-counter {
      bottom: -0.6rem;
      pointer-events: none;
    }
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area {
    padding: 0.4rem 0.4rem 0.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-footer-inner {
    padding: 0.3rem 0.4rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .chat-input {
    font-size: 1rem;
    padding: 0.3rem 0;
    min-height: 5px;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group {
    width: 10rem;
    gap: 0.4rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .choole-file-button, .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group #emoji-button {
    height: 1.4rem;
    width: 1.4rem;
    font-size: 0.8rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .button-group .send-button {
    margin-left: 0.7rem;
    height: 1.6rem;
    width: 1.6rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area .emoji-picker-area #emoji-search {
    height: 1.8rem;
    border-radius: 0.3rem;
    padding: 0 0.6rem;
    font-size: 0.7rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker {
    top: -540%;
    left: -200%;
    width: 14.5rem;
  }
  .chat-section .wrapper .chat-area .chat-right-area .chat-footer .chat-footer-area #emoji-picker span {
    font-size: 0.9rem;
  }
} /*# sourceMappingURL=styles.css.map */

/* Safari mobile send button fix - always show counter on mobile */
@media only screen and (max-width: 850px) {
  .chatbox-counter {
    display: block !important;
  }
}