@import "../common/index.less";

.ph-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(181, 183, 188, .2);

  &.is-pad {
    .loading-wrapper {
      width: @r * 200px;
      padding: (@r * 20px) (@r * 10px);
      border-radius: @r * 8px;

      .lls-ui-loading__gd {
        width: @r * 36px;
        height: @r * 36px;
        border-width: @r * 5px;
      }

      .loading-text {
        margin-top: @r * 15px;
        font-size: @r * 18px;
      }
    }
  }

  &.info-loading {
    .loading-wrapper {
      background-color: #fff;
    }
  }

  .loading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    padding: 20px 10px;
    text-align: center;
    border-radius: 8px;
    transform: translate(-50%, -50%);

    .lls-ui-loading__gd {
      margin: 0 auto;
    }

    .loading-text {
      margin-top: 15px;
      margin-bottom: 0;
      word-break: break-all;
    }
  }
}
