/* 不带 mask 的 modal 默认撑满全屏 */
.modal-mask,
.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: auto;
  z-index: 999999;
}

.modal {
  background-color: white;

  .modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 30px;
    padding: 30px;
    color: white;

    &.gray,
    &.grey {
      color: #999;
    }
  }
}

.modal-mask {
  background-color: rgba(0, 0, 0, 0.3);

  &.transparent {
    background-color: transparent;
  }

  /* 带 mask 的 modal 需自定义 box */
  .modal {
    position: absolute;
  }
}

/* 居中的 modal 需要自定义 width/height */
.modal-centered {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

