.modal_remove {
    position: fixed;
    display: none;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8); 
    z-index: 999; 
}

.show {
    display: flex;
    transition: 0.4s all ease-in-out;
}

.close_button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    color: var(--white);
}

.close_button i {
    position: absolute;
    font-size: 20px;
    top: 25px;
    right: 25px;
    height: 42px;
    width: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
    background-color: var(--white);
    border: 2px solid var(--border-grey);
}

.modal {
    position: relative;
    background-color: var(--white);
    padding: 15px;
    box-sizing: border-box;
    z-index: 999;
    padding: 15px;
    width: 500px;
    height: 100%;
    overflow-y: scroll;
    animation-name: animateleft;
    animation-duration: 0.4s;
}

.age_modal {
    width: 510px;
}

/* width */
.modal::-webkit-scrollbar {
    display: none;
}
  
/* Track */
.modal::-webkit-scrollbar-track {
    display: none;
}
  
/* Handle */
.modal::-webkit-scrollbar-thumb {
    display: none;
}

.modal_wrapper {
    position: relative;
    background-color: var(--light-grey);
    border: 2px solid var(--border-grey);
    padding: 15px;
    box-sizing: border-box;
    min-height: 750px;
    height: 100%;
}

@keyframes animateleft {
    from {left: -500px; opacity: 0}
    to {left: 0; opacity: 1}
}

.modal h3 {
    text-align: left;
    margin: 81px auto 0;
    font-size: 24px;
}

.modal h3:hover {
    transition: none;
    cursor: unset;
}

.modal p {
    margin: 20px auto !important;
    text-align: left;
    color: var(--black) !important;
    font-weight: 400 !important;
}

.modal form {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
}

.modal form .form_fields {
    width: 100%;
}

.modal form .form_label {
    margin: 20px 0 5px !important;
    font-weight: 500 !important;
}

.modal .buttons_container {
    position: absolute;
    bottom: 15px;
    right: 15px;
    justify-content: center;
}

.modal .button {
    width: max-content;
    margin-right: 0 !important;
}

.danger_button {
    background-color: var(--dark-blue);
    color: var(--white);
    margin-left: 15px !important;
}

.mobile_close_button {
    display: none;
}

@media (max-width: 650px) {
    .modal_remove {
        align-items: flex-end;
    }

    .modal_wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100%;
        height: max-content;
    }

    .modal {
        width: calc(100% - 40px);
        margin: 0 auto;
        border-bottom: 0;
        min-height: 100%;
        animation-name: animatetop;
        overflow-y: scroll;
    }

    .modal h3 {
        margin-top: 30px;
    }

    .close_button {
        display: none;
    }

    .mobile_close_button {
        display: flex;
        position: relative;
        margin-left: auto;
        width: 46px;
        height: 46px;
    }

    .close_button i {
        top: 0;
        right: 0;
    }

    .modal .buttons_container {
        position: relative;
        bottom: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 50px;
        background-color: var(--light-grey);
    }

    .modal .buttons_container .button,
    .modal .buttons_container .button_2 {
        width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
    }

    .modal .buttons_container .button_2 {
        margin-bottom: 15px !important;
    }
}

@keyframes animatetop {
    from {bottom: -100%; opacity: 0}
    to {bottom: 0; opacity: 1}
}