.MessageContextMenu {
  user-select: none;
  position: absolute;
  font-size: 1rem;

  &_items {
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0.5rem 0;
  }

  &.compact &_items {
    padding: 0.25rem 0;
  }

  .bubble {
    overflow: initial;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
  }

  &.with-reactions .bubble {
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none;
  }

  &.with-reactions &_items {
    padding: 0.25rem 0;
    border-radius: var(--border-radius-default);

    background: var(--color-background-compact-menu);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.25rem 0.5rem 0.125rem var(--color-default-shadow);

    body.no-menu-blur & {
      background: var(--color-background);
      backdrop-filter: none;
    }

    @media (min-width: 600px) {
      margin-inline-end: 2.75rem;
    }
  }

  .backdrop {
    touch-action: none;
  }

  &--seen-by-label-wrapper {
    position: relative;
    flex-grow: 1;
  }

  &--seen-by-label {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);

    overflow: hidden;

    text-align: initial;
    text-overflow: ellipsis;
  }

  .avatars {
    padding-inline-start: 1rem;
  }

  .ReactionSelector {
    position: absolute;
    top: 0;
    transform: translateY(calc(-100% - 0.5rem));
  }

  .TranslationToneSelector {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(0.5rem);
  }

  .no-forwards-notice {
    min-width: 12rem;
  }
}

.translation-tone-menu .bubble {
  min-width: 0;

  .icon {
    margin-inline: 0.25rem;
  }
}
