.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 24px 16px;
    pointer-events: none;
}

.notification-overlay.visible {
    display: flex;
}

.notification-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 100vh;
    border-radius: 8px;
    pointer-events: all;
    background-color: #fff;
    box-shadow: 0px 22px 50px rgba(0, 0, 0, 0.02), 0px 12px 30px rgba(0, 0, 0, 0.02), 0px 8px 10px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 1px 3px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.1);
}

.notification-container.limited-height {
    max-height: 50vh;
}

.modal-template-container {
    position: relative;
    padding: 24px 24px 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

.modal-template-container.limited-height {
    max-height: 50vh;
}

.modal-template-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    flex-shrink: 0;
}

.modal-template-header > h4 {
    position: relative;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -1px;
    flex: 1;
    margin: 0;
    z-index: 1;
}

.modal-template-footer.buttons-factory {
    position: relative;
    display: flex;
    justify-content: flex-end;
    flex-direction: column-reverse;
    padding-bottom: 16px;
}

.modal-template-footer.buttons-factory:before {
    content: "";
    position: absolute;
    top: -3.2rem;
    left: 0;
    width: 100%;
    height: 3.2rem;
    background: linear-gradient(rgba(0,0,0,0),#fff);
    z-index: 5;
}

.modal-template-footer > * {
    margin-bottom: 16px;
}

.modal-template-footer:first-child {
    margin: 0;
}

.modal-template-footer .buttons-factory > * {
    position: relative;
    z-index: 6;
}


.close-button {
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
}

.close-button:before,
.close-button:after {
    position: absolute;
    content: "";
    width: 2px;
    height: 17px;
    background-color: #000;
    top: 2px;
    right: 9px;
    border-radius: .5px;
}

.close-button:before {
    transform: rotate(-45deg);
}

.close-button:after {
    transform: rotate(45deg);
}

.modal-template-header > .close-button {
    padding-left: 24px;
}

.modal-template-content-container {
    overflow-y: auto;
    height: fit-content;
    margin-bottom: 0;
}

.modal-template-content-container.without-footer {
    margin-bottom: 32px;
}

.modal-template-content {
    color: rgba(0, 0, 0, 0.6);
    font-family: 'GilroySemiBold', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.3px;
    padding-bottom: 32px;
}

.modal-template-content.without-footer {
    padding-bottom: 0;
}

.modal-template-content a {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.3px;
    color: #22A271;
}

.modal-template-content a:hover {
    text-decoration: underline;
}

.modal-template-footer button {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 6px 28px;
    background-color: #2CD091;
    color: #000000;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 800;
    border-radius: 30px;
    border: none;
    transition: background-color .2s, color .2s ease-out;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.modal-template-footer button:hover {
    background-color: #7EE4BD;
    color: #187350;
}

.modal-template-footer button:focus {
    outline: none;
}

.modal-template-footer button:focus:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 26px;
    transition: .2s;
}

.modal-template-footer button:active {
    border: 0;
    background-color: #22A271;
    color: #000000;
    outline: none;
}

.modal-template-footer .tertiary {
    background-color: #fff;
    color: #000000;
    box-shadow: 0px 2px 16px rgb(0 0 0 / 2%), 0px 2px 7px rgb(0 0 0 / 4%), 0px 1px 3.5px rgb(0 0 0 / 4%),
        0px 1px 2.00345px rgb(0 0 0 / 4%), 0px 0px 1px rgb(0 0 0 / 5%), 0px 0px 0.5px rgb(0 0 0 / 6%);
}

.modal-template-footer .tertiary:hover {
    background-color: #000000;
    color: #fff;
}

.modal-template-footer .tertiary:focus:after {
    width: 100%;
    height: 100%;
    border-color: #2CD091;
}

@media screen and (min-width: 500px) {
    .notification-overlay.children-position-top {
        align-items: flex-start;
    }
    
    .notification-overlay.children-position-top-left {
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .notification-overlay.children-position-top-right {
        align-items: flex-start;
        justify-content: flex-end;
    }
    
    .notification-overlay.children-position-bottom-left {
        align-items: flex-end;
        justify-content: flex-start;
    }
    
    .notification-overlay.children-position-bottom-right {
        align-items: flex-end;
        justify-content: flex-end;
    }
    
    .notification-overlay.children-position-bottom {
        align-items: flex-end;
        justify-content: center;
    }

    .notification-container.size-s {
        max-width: 480px;
    }

    .notification-container.size-m {
        max-width: 720px;
    }

    .notification-container.size-l {
        max-width: 1344px;
    }
}

@media screen and (min-width: 768px) {
    .notification-overlay {
        padding: 24px;
    }

    .notification-overlay.size-l {
        padding: 48px;
    }

    .modal-template-container {
        padding: 32px 32px 8px;
    }

    .modal-template-container.size-l {
        padding: 32px 48px 16px;
    }

    .modal-template-header {
        padding-bottom: 24px;
    }

    .modal-template-header > h4 {
        font-size: 24px;
        line-height: 32px;
    }

    .modal-template-footer {
        flex-direction: row;
    }

    .modal-template-footer > * {
        margin: 0 16px 0 0;
    }

    .modal-template-footer button {
        width: initial;
    }

    .modal-template-footer:first-child {
        margin: 0 16px 0 0;
    }

    .modal-template-footer.buttons-factory {
        flex-direction: row;
    }
}

@media screen and (min-width: 1024px) {
    .notification-overlay {
        padding: 48px;
    } 
}