.root {
  --base-bottom-pos: 6rem;

  position: absolute;
  bottom: var(--base-bottom-pos);
  right: max(1rem, env(safe-area-inset-right));
  opacity: 0;
  transform: translateY(4.5rem);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  z-index: var(--z-scroll-down-button);
  pointer-events: none;

  .unread {
    pointer-events: none;
  }

  :global(body.animation-level-0) & {
    transform: none !important;

    transition: opacity 0.15s;
  }

  @media (max-width: 600px) {
    right: 0.5rem;
    bottom: 4.5rem;

    :global(body:not(.keyboard-visible)) & {
      bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
  }

  &.revealed {
    transform: translateY(0);
    opacity: 1;

    .unread {
      pointer-events: all;
    }

    &.no-composer.no-extra-shift {
      transform: translateY(4rem);
    }
  }

  &.only-reactions {
    transform: translateY(4rem);

    .unread {
      opacity: 0;
      pointer-events: none;
    }
  }

  @media (max-width: 600px) {
    body.is-symbol-menu-open & {
      bottom: calc(var(--base-bottom-pos) + var(--symbol-menu-height) + var(--symbol-menu-footer-height));
    }
  }
}
