@import '../../style/mixins';
@import '../../style/themes/default';
@import '../../overlay/style/index';

@PopupPrefixCls: fm-popup;

.@{PopupPrefixCls} {
  position: fixed;
  max-height: 100%;
  z-index: @popup-zindex;
  background-color: @fill-base;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;

  &--center {
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
  }

  &--top {
    top: 0;
    left: 0;
    width: 100%;
  }

  &--bottom {
    bottom: 0;
    left: 0;
    width: 100%;
  }

  &--left {
    top: 0;
    left: 0;
    height: 100%;
  }

  &--right {
    top: 0;
    right: 0;
    height: 100%;
  }
}
