
.generic-modal {
    background-color: var(--grey-150);
    margin: auto;
    border: 1px solid var(--grey-400);
    height: auto;
    width: auto;
    max-width: 580px;
    max-height: 300px;
    overflow: hidden;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.generic-modal:after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.generic-modal.open {
    display: flex;
    flex-direction: column;
}

.generic-modal-body {
    padding: 32px;
    background: var(--grey-150);
    flex: 1;
    overflow: auto;
}

body.generic-open {
    overflow: hidden;
}

.button-modal-body {
    border-radius: 25px;
    margin-bottom: 0;
    width: 9.5em;
    border: 1px solid;
    text-align: center;
    font-size: 14px;
    padding: 9px;
    font-weight: 700;
    box-shadow: 0 2px 8px 0 var(--modal-shadow);
    background-color: var(--pp-mint-700-prim-main);
    color: var(--white-100);
    border-color: var(--pp-mint-850-prim);
}


.button-modal-body:hover {
    background: var(--pp-mint-700-prim-main);
    border-color: var(--pp-mint-850-prim);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.20);
    border-width: 2px;
    padding: 8px 9px;
}


.generic-modal-header {
    background-color: var(--white-100);
    text-align: left;
    box-shadow: 0 2px 8px 0 var(--modal-shadow);
    padding: 19px 32px;
    color: var(--black-900);
    z-index: 1;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.generic-modal-header--left, .generic-modal-header--right {
    height: 21px;
    width: 21px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}

.generic-modal-header--left {
    display: none;
}

.generic-modal-header--right {
    margin-right: -14px;
    margin-left: 20px;
}

.generic-modal-header--left-icon, .generic-modal-header--right-icon {
    width: 100%;
}


.generic-modal-header--title {
    font-weight: 700;
    line-height: 1.4;
    font-size: 2.4rem;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--black-900);
    flex-basis: 100%;
}

.generic-modal-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-shadow: 0 0 16px 0 var(--modal-footer-shadow-1), 1px 12px 24px -12px var(--modal-footer-shadow-2);
    padding: 18px 24px;
    border-top: solid 1px var(--grey-400);
    background: var(--white-100);
}

.generic-modal-footer--actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-direction: row-reverse;
    align-items: flex-start;
}

.generic-modal-body-message {
    padding: 0 !important;
    text-align: left;
    font-weight: 400;
    font-size: 1.6rem;
    overflow-x: visible;
    color: var(--black-900);
    margin-bottom: 20px;
}


/* MODAL MOBILE STYLES */
@media only screen and (max-width: 600px) {

    .generic-modal {
        margin: auto 20px;
    }

    .generic-modal-header {
        padding: 12px 20px;
    }

    .generic-modal-header--title {
        font-size: 1.6rem;
    }

    .generic-modal-header--right {
        margin-right: 0;
    }

    .generic-modal-body {
        padding: 20px;
        height: calc(100vh - 78px - 107px);
        overflow: auto;
    }

    .generic-modal-body-message {
        margin-bottom: 28px;
    }


    .button-modal-body {
        width: 100%;
    }
}
