@import '../../style/theme/default.less';

@toast-prefix-cls: ~'@{kui-prefix}-toast';

.@{toast-prefix-cls} {
  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
  }

  &-container {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    min-width: 226px;
    max-width: calc(100vw - 40px);
    padding: 24px 30px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    transform: translate(-50%, -50%);
  }

  &-nowrap {
    max-width: initial;
    white-space: nowrap;
  }

  &-loading {
    padding-top: 16px;
    margin-bottom: 40px;

    .kui-loading-spinner {
      width: 62px;
      height: 62px;
    }
  }

  &-icon {
    padding-top: 16px;
    margin-bottom: 42px;
    line-height: 1;
    color: #fff;
    text-align: center;
    vertical-align: middle;

    .@{kui-prefix}-icon {
      font-size: 60px;
    }
  }

  &-image {
    width: 60px;
    height: 60px;
    padding-top: 6px;
    margin: 0 auto 40px;

    img {
      display: block;
    }
  }

  &-custom {
    margin-bottom: 40px;
  }

  &-text {
    font-family: PingFangSC-Regular, PingFang SC;
    font-size: 32px;
    font-weight: 400;
    line-height: 45px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    word-break: break-all;
  }

  * + &-text {
    padding-bottom: 6px;
    font-size: 28px;
    line-height: 1;
  }
}
