@import 'elementor';

.eafl-admin-modal-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.eafl-admin-modal {
    box-sizing: border-box;
    border: 1px solid black;
    background-color: white;
    border-radius: 4px;
    outline: none;
    width: 90%;
    height: auto;
    max-height: 95%;

    display: flex;
    flex-flow: column nowrap;

    * {
        box-sizing: border-box;
    }

    .eafl-admin-modal-header {
        flex: none;
        padding: 10px;
        background-color: #23282d;

        display: flex;
        justify-content: space-between;
        align-content: center;

        h2 {
            margin: 0;
            color: white;
        }

        .eafl-admin-modal-close {
            margin-bottom: -2px;
            svg line {
                stroke: white;
            }
        }
    }

    .eafl-admin-modal-content {
        flex: 1 1 auto;
        overflow: auto;

        padding: 10px;
    }

    .eafl-admin-modal-footer {
        flex: none;
        padding: 10px;
        background-color: #23282d;

        display: flex;
        justify-content: center;
        align-items: center;

        a {
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }

        span, a {
            color: white;
        }

        span, a, .button {
            margin: 0 5px;
        }
    }
}

// Override secondary button styles. Their transparent background doesn't work well with the dark footer.
.eafl-admin-modal-footer {
    button.button-secondary {
        background-color: white !important;
        color: #444;
        border-color: white;
    }
}

@media screen and (min-width: 782px) {
    .eafl-admin-modal {
        .eafl-admin-modal-footer {
            justify-content: flex-end;
    
            .button:last-child {
                margin-right: 0;
            }
        }
    }
}
