.ps-tooltip {
  &.ps-tooltip--notification {
    &:hover {
      &:after {        
        @if $rtl {
          left: 100%;
          right: auto;
        } @else {
          right: 100%;
          left: auto;
        }
      }
    }
  }

  @if $comp_mode {
    &[data-tooltip] {
      z-index: 10;

      &:after {
        visibility: unset;
        opacity: unset;
        width: auto;
        border: none;
        line-height: normal;
        left: unset;
        transform: unset;
      }

      &:before {
        visibility: unset;
        opacity: unset;
      }

      &:hover {
        &:before {
          visibility: unset;
          opacity: unset;
        }

        &:after {
          visibility: unset;
          opacity: unset;
        }
      }
    }

    &.ps-tooltip--postbox {
      &:hover {
        &:after {
          left: 50%;
          right: auto;
          transform: translateX(-50%);
        }
      }
    }

    &.ps-tooltip--reaction {
      &:hover {
        &:after {
          left: 50%;
          right: auto;
          bottom: 110%;
          padding: 6px;
          font-size: 10px;
          line-height: 1;
          transform: translateX(-50%);
        }
      }
    }

    &.ps-tooltip--notification {
      &:hover {
        &:after {
          top: 50%;
          right: 100%;
          left: auto;
          bottom: auto;
          transform: translateY(-50%);
          padding: 4px 8px;
        }
      }

      &:before {
        display: none;
      }
    }

    &.ps-tooltip--permalink {
      &:hover {
        &:after {
          display: block;
          left: 50%;
          right: auto;
          transform: translateX(-50%);
        }

        &:before {
          display: none;
        }
      }

      &:before {
        display: none;
      }
    }
  }
}