/*
 * Meetus workspace40
 * Local Twemoji rendering and isolated channel
 * emoji background layer.
 */

.message-bubble.workspace40-channel-emoji {
  position: relative !important;
  isolation: isolate !important;

  box-sizing: border-box !important;

  min-width: 215px !important;
  max-width: min(520px, 82vw) !important;

  padding:
    12px
    14px
    0 !important;

  border-radius:
    16px
    16px
    4px
    16px !important;

  background: transparent !important;
  overflow: hidden !important;
}

/*
 * This is a real DOM element, not the background
 * of the bubble. Old emoji-only CSS cannot erase it.
 */
.workspace40-channel-emoji-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;

  display: block !important;

  pointer-events: none !important;

  background:
    linear-gradient(
      145deg,
      #9275ee 0%,
      #7b5bd9 100%
    ) !important;

  border:
    1px solid
    rgba(255, 255, 255, 0.09) !important;

  border-radius:
    inherit !important;

  box-shadow:
    0 5px 16px
    rgba(25, 15, 62, 0.20) !important;
}

.message-bubble.workspace40-channel-emoji
> :not(.workspace40-channel-emoji-bg) {
  position: relative !important;
  z-index: 1 !important;
}

.message-bubble.workspace40-channel-emoji
.message-text {
  display: flex !important;
  align-items: center !important;

  min-height: 58px !important;

  margin: 0 3px 5px 0 !important;
  padding: 0 !important;

  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;

  color: #ffffff !important;
  background: transparent !important;

  align-content: center !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/*
 * Emoji are now SVG images instead of characters
 * from the Windows system font.
 */
.message-bubble.workspace40-channel-emoji
img.workspace40-twemoji,
.message-bubble.workspace40-channel-emoji
img.emoji {
  display: inline-block !important;

  width: 1em !important;
  height: 1em !important;

  margin:
    0
    0.04em !important;

  vertical-align: -0.1em !important;

  object-fit: contain !important;
}

.message-bubble.workspace40-channel-emoji
.channel-comment-bar {
  margin:
    9px
    -14px
    0 !important;

  padding:
    8px
    12px !important;

  background:
    rgba(46, 31, 111, 0.20) !important;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.12) !important;
}

.message-bubble.workspace40-channel-emoji
.workspace-comment-toggle-chip {
  margin-left: -14px !important;
  margin-right: -14px !important;

  background:
    rgba(46, 31, 111, 0.16) !important;
}
