.#{$modal-prefix-cls} {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: $modal-zindex;
  width: 5.28rem;
  background-color: $white;
  border-radius: .2rem;
  box-shadow: $modal-box-shadow;
  transform: translate(-50%, -50%);
  padding-top: .5rem;

  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $modal-zindex;
    height: 100%;
    background-color: $mask-bg;

    &--hidden {
      display: none;
    }
  }

  &__content {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  &__header {
    padding: 0 $modal-body-padding .2rem;
    .#{$modal-prefix-cls}__title {
      font-size: 0.36rem;
      color: $modal-title-color;
      text-align: center;
      line-height: 0.48rem;
    }
  }

  &__body {
    flex: 1;
    height: 100%;
    padding: 0 $modal-body-padding $modal-body-padding-bottom;
    overflow: auto;
    color: $modal-body-color;
    text-align: center;
    line-height: 0.42rem;
    font-size: 0.3rem;

    &.no-button {
      padding-bottom: 0.5rem;
    }
  }

  &__footer {
    display: flex;
    border-top: 0.01rem solid #E5E5E5;
    overflow: hidden;
    border-radius: 0 0 .2rem .2rem;

    .#{$modal-prefix-cls}__button {
      display: block;
      flex: 1;
      height: $modal-button-height;
      font-size: $modal-button-font-size;
      line-height: $modal-button-height;
      color: $modal-body-color;
      text-align: center;
      @extend %text-truncate;

      &:not(:last-child) {
        border-right: 0.01rem solid #E5E5E5;
      }

      &:active {
        background-color: #E5E5E5;
      }

      &--primary {
        color: #32AAFF;
      }
    }
  }
}
