.weui-popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;

  &_hidden {
    pointer-events: none;
  }

  &__mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    // ref: https://github.com/Tencent/weui/blob/master/src/style/widget/weui-tips/weui-mask.less#L26
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;

    &_transparent {
      background: transparent;
    }
  }

  &_center {
    justify-content: center;
    align-items: center;
  }

  &_top {
    justify-content: center;
    align-items: flex-start;
  }

  &_bottom {
    justify-content: center;
    align-items: flex-end;
  }

  &_left {
    justify-content: flex-start;
    align-items: center;
  }

  &_right {
    justify-content: flex-end;
    align-items: center;
  }
}
