$modal-prefix-cls: $prefix-name + "modal";

@mixin FixedCented {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.#{$modal-prefix-cls} {
    width: auto;
    margin: 0 auto;
    position: relative;
    outline: none;
    top: 100px;


    &-mask {
        background-color: rgba(55, 55, 55, 0.6);
        height: 100%;
        z-index: $zindex-modal;
        @include FixedCented();
    }

    &-box {
        overflow: auto;
        @include FixedCented();
        z-index: $zindex-modal;
        -webkit-overflow-scrolling: touch;
        outline: 0;

        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }

    }

    &-center {
        display: flex;
        align-items: center;
        justify-content: center;

        .#{$modal-prefix-cls} {
            top: 0;
        }
    }


    &-header {
        border-bottom: 1px solid #e8eaec;
        padding: 15px 16px;
        line-height: 1;
        font-size: 16px;
        position: relative; 

        &-inner {
            display: inline-block;
            width: 100%;
            height: 20px;
            line-height: 20px;
            font-size: $fontSize;
            color: $titleColor;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            position: relative;
        }
    }

    &-close {
        font-size: $fontSize;
        height: $fontSize;
        position: absolute;
        right: 16px;
        top: 0px;
        bottom: 0;
        margin: auto;
        overflow: hidden;
        cursor: pointer;

        .#{$icon-prefix-cls}-close {
            @include close-base(0, 14px);
        }
    }

    &-footer {
        border-top: 1px solid $borderColorSplit;
        padding: 12px 18px 12px 18px;
        text-align: right;

        button+button {
            margin-left: 8px;
            margin-bottom: 0;
        }
    }

    &-content {
        position: relative;
        background-color: #fff;
        border: 0;
        border-radius: $borderRadius;
        background-clip: padding-box;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
        display: flex;
        flex-direction: column;

    }

    &-body {
        padding: 16px;
        font-size: 14px;
        line-height: $lineHeight;
        flex: 1;
    }






}