.ReactModal__Overlay {
    z-index: var(--override-z-index);
    width: 100%;
    height: 100%;
    animation: fade-in var(--transition-duration);
    background: rgba(67, 101, 148, 0.9) !important;

    @media (--md-up) {
        display: table;
    }
}

/* We need to use !important because the react modal library we use sets inline-styles */
.ReactModal__Content {
    position: static !important;
    pointer-events: none;
    border: none !important;

    @media (--sm-down) {
        position: absolute !important;
        margin-top: 0;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }

    @media (--md-up) {
        margin-top: 2em;
    }

    & .close {
        position: absolute;
        right: 20px;
        top: 20px;
        border: none;
        opacity: 0.4;

        [dir='rtl'] & {
            left: 20px;
            right: unset;
        }
    }

    & .inner {
        position: relative;
        margin: 0 auto;

        padding: 2rem;
        width: 100%;
        max-width: 40rem;
        min-height: 99vh;
        text-align: center;
        background: var(--white);
        pointer-events: all;
        box-shadow: 0 2px 44px 0 color-mod(#0043a0 alpha(50%));

        @media (--md-up) {
            min-height: auto;
        }

        a {
            color: var(--anchor-text-blue);
        }
    }

    & .buttons {
        margin-top: 1rem;
        min-width: 12rem;
        display: flex;
        justify-content: center;

        @media (--sm-down) {
            flex-direction: column;
        }

        & .button {
            margin: var(--standard-margin);
        }
    }
}
