/* MEETUS 0.6.25.2 COMMUNITY2-TG11-WORKSPACE21 */

/* Attachment menu: WORKSPACE20 calculated viewport coordinates inside a
   transformed chat pane, which shifted the menu to the middle of the screen.
   WORKSPACE21 positions it relative to the chat pane next to the real plus. */
#attachmentMenu {
  z-index: 2700 !important;
}

/* Cleaner channel discussion footer. */
.workspace21-channel-post > .channel-comment-bar {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 8px -10px -8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 0 0 11px 11px !important;
  background: transparent !important;
}

.workspace21-channel-post.visual-media-bubble > .channel-comment-bar {
  margin: 8px -3px -3px !important;
}

.workspace21-channel-post .channel-comment-button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 7px 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #65bcf7 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.workspace21-channel-post .channel-comment-button:hover {
  background: rgba(101,188,247,.07) !important;
}

.workspace21-channel-post .channel-comment-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  gap: 7px !important;
  overflow: hidden !important;
}

.workspace21-channel-post .community2-comment-empty-avatar {
  width: 27px !important;
  height: 27px !important;
  flex-basis: 27px !important;
}

.workspace21-channel-post .channel-comment-arrow {
  width: 18px !important;
  height: 26px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  overflow: hidden !important;
}

/* Keep the actual message time/checkmarks immediately above the footer. */
.workspace21-channel-post > .message-meta {
  right: 7px !important;
  bottom: calc(var(--workspace21-comment-footer-height, 42px) + 4px) !important;
  z-index: 10 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Admin comments switch is a small status line, not a large coloured slab. */
.workspace21-channel-post > .workspace-comment-toggle-chip {
  box-sizing: border-box !important;
  width: auto !important;
  min-height: 24px !important;
  margin: 0 -10px -8px !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 0 0 11px 11px !important;
  background: transparent !important;
  color: rgba(255,255,255,.48) !important;
  font-size: 10px !important;
  line-height: 16px !important;
  text-align: center !important;
}

.workspace21-channel-post.visual-media-bubble > .workspace-comment-toggle-chip {
  margin-left: -3px !important;
  margin-right: -3px !important;
  margin-bottom: -3px !important;
}

.workspace21-channel-post.workspace-comments-disabled > .channel-comment-bar {
  display: none !important;
}

.workspace21-channel-post.workspace-comments-disabled > .workspace-comment-toggle-chip {
  color: #ff9ca8 !important;
  background: rgba(233,89,101,.07) !important;
}

.workspace21-channel-post.workspace-comments-disabled .workspace-comments-off,
.workspace-comments-disabled .workspace-comments-off {
  display: block !important;
  margin: 7px 0 0 !important;
  padding: 5px 7px !important;
  color: #ff9ca8 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

/* Discussion workspace pin remains in normal layout and leaves a real gap
   before the source publication. */
#community2Workspace .community2-thread-pinned {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
  width: min(760px, 100%) !important;
  margin: 0 auto 16px !important;
  flex: 0 0 auto !important;
}

#community2Workspace .community2-thread-pinned + .community2-thread-source-wrap {
  margin-top: 4px !important;
}

#community2Workspace .community2-workspace-body {
  scroll-padding-top: 16px !important;
}

/* Restore the original, compact thread composer dimensions from before W20. */
#community2Workspace .community2-thread-form {
  min-height: 62px !important;
  padding: 9px 14px max(9px, env(safe-area-inset-bottom)) !important;
  gap: 5px !important;
}

#community2Workspace .community2-input-shell {
  min-height: 42px !important;
  border-radius: 22px !important;
}

#community2Workspace .community2-thread-form textarea,
#community2Workspace .community2-thread-form textarea:focus {
  min-height: 40px !important;
  padding: 10px 15px !important;
  line-height: 20px !important;
}

@media (max-width: 700px) {
  .workspace21-channel-post > .channel-comment-bar {
    margin-top: 7px !important;
  }

  .workspace21-channel-post .channel-comment-button {
    min-height: 42px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }

  .workspace21-channel-post .channel-comment-arrow {
    width: 16px !important;
    flex-basis: 16px !important;
    font-size: 23px !important;
  }

  #community2Workspace .community2-workspace-body {
    padding: 12px 10px 18px !important;
    scroll-padding-top: 18px !important;
  }

  #community2Workspace .community2-thread-pinned {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 0 18px !important;
    border-radius: 10px !important;
  }

  #community2Workspace .community2-thread-pinned + .community2-thread-source-wrap {
    margin-top: 0 !important;
  }

  #community2Workspace .community2-thread-form {
    min-height: 62px !important;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom)) !important;
    gap: 2px !important;
  }

  #community2Workspace .community2-input-shell {
    min-height: 42px !important;
  }

  #community2Workspace .community2-thread-form textarea,
  #community2Workspace .community2-thread-form textarea:focus {
    min-height: 40px !important;
    padding: 10px 15px !important;
    line-height: 20px !important;
  }
}
