
:global .Modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .7);
    z-index: 999;
}

:global .Modal-header {
    position: relative;
    padding: 8px 20px 4px;
    color: #777;
    border-bottom: thin solid #d9d9d9;

    & .Modal-close {
        float: right;
        cursor: pointer;
        font-size: 14px;

        &:hover {
            color: $google;
        }
    }
}

:global .Modal-footer {
    padding: 8px 12px;
}

:global .Modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 240px;
    font-size: 12px;
    color: #777;
    z-index: 999;
    transform: translate(-50%, -50%);

    & > div {
        pointer-events: all;
        background: #fff;
        border-radius: 1px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    }
}

:global .Modal-body {
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

:global .Modal-overlay-enter {
    opacity: 0;
    visibility: hidden;
    transition: .2s;

    &.Modal-overlay-enter-active {
        opacity: 1;
        visibility: visible;
    }
}

:global .Modal-overlay-leave {
    opacity: 1;
    visibility: visible;
    transition: .2s;

    &.Modal-overlay-leave-active {
        opacity: 0;
        visibility: hidden;
    }
}

:global .Modal-body-enter {
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0;
    transition: .2s cubic-bezier(.5, -.55, .4, 1.55);

    &.Modal-body-enter-active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

:global .Modal-body-leave {
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: .14s;

    &.Modal-body-leave-active {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
}
