//Modal

.nb-modal {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: $radius;
    border: 0;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: nb-slide-up;
    animation-duration: 0.4s;

    .nb-modal-header {
        border-radius: $radius;
        padding: 2px 16px;
        color: white;
        text-align: center;

        h2 {
            display: inline-block;
            color: white;
            width: 50%;
            border-bottom: 1px solid white;
            padding: 18px;
            margin: 0;
        }

        h3 {
            color: white;
            font-size: 1em;
            margin: 0.6em 0;
            padding: 0;
        }

        h2,
        h3 {

            &:before,
            &:after {
                display: none;
            }
        }

        .close {
            cursor: pointer;
            position: absolute;
            top: 4px;
            left: 10px;
        }
    }

    .nb-modal-body {
        padding: 2px 16px;
        text-align: center;

        button {
            transition: background 0.5s ease-in-out;
            margin: 1em 0;
            border: none;
            border-radius: 5px;
            box-sizing: border-box;
            color: #fff;
            font-size: 1em;
            line-height: 1.2;
            outline: none;
            padding: 0.8em 1em;
            text-decoration: none;
            vertical-align: bottom;

            i {
                margin-right: 0.4em;
                color: #fff;
            }

            &:hover {
                filter: grayscale(0.8);
                transition: filter 0.5s;
                cursor: pointer;
            }
        }

        button[disabled] {
            background: $lightGrey;
            cursor: not-allowed;

            &:hover {
                background: $lightGrey;
            }
        }

    }
}