/* VelChat chat compact input + voice memo removal.
   Keeps the stable chat behaviour; only removes broken voice-record UI and tightens the mobile composer. */

/* Remove voice memo recording UI everywhere, including cached/ajax-loaded nodes. */
.tag_msg_record,
#messages-record,
.record-chat-audio,
.record_timei,
.tag_cht_rec_time,
.messages-rtime,
.tag_pubbox_record,
#recordPostAudio,
#postRecordingTime,
.record-comment-audio,
[class*="record-comment-audio"],
span[data-comment-rtime] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .tag_messages .tag_msg_write {
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tag_messages .tag_msg_write form.sendMessages > .valign:not(.message_reply_text):not(.message_reply_story_text) {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .tag_messages .tag_write_msg {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .tag_messages .tag_write_msg > textarea#sendMessage {
    min-height: 38px !important;
    height: 38px !important;
    max-height: 74px !important;
    padding: 7px 38px 7px 38px !important;
    border-radius: 19px !important;
    font-size: 16px !important;
    line-height: 22px !important;
  }

  .tag_messages .tag_msg_write .message-option-btn,
  .tag_messages .tag_msg_write .send-button {
    margin-left: 8px !important;
    flex: 0 0 auto !important;
  }

  .tag_messages .tag_msg_write .tag_msg_select_clr {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
  }

  .tag_messages .tag_msg_write .tag_msg_select_clr svg {
    width: 21px !important;
    height: 21px !important;
    vertical-align: middle !important;
  }

  .tag_messages .tag_msg_write .send-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tag_messages .tag_msg_write .send-button svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  .tag_messages .tag_msg_emostick .dropdown-toggle {
    left: 12px !important;
    bottom: 8px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .tag_messages .tag_msg_emostick .dropdown-toggle svg {
    width: 20px !important;
    height: 20px !important;
  }

  .tag_messages .message_reply_text,
  .tag_messages .message_reply_story_text {
    margin-bottom: 7px !important;
  }
}

@media (max-width: 380px) {
  .tag_messages .tag_msg_write {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .tag_messages .tag_msg_write .message-option-btn,
  .tag_messages .tag_msg_write .send-button {
    margin-left: 6px !important;
  }
  .tag_messages .tag_msg_write .tag_msg_select_clr {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }
  .tag_messages .tag_msg_write .send-button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
  }
}
