.modal_remove {
    position: fixed;
    display: none;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    height: calc(var(--mobile_vh, 1vh) * 100);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(34, 51, 59, 0.9); 
    z-index: 999; 
}

.modal_remove.show {
    display: flex;
}

.close_button {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.close_button i {
    position: absolute;
    font-size: 20px;
    top: 10px;
    left: 10px;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-background);
    color: var(--secondary-button-text);
}

.modal {
    position: relative;
    background-color: var(--accent-background);
    box-sizing: border-box;
    z-index: 999;
    padding: 20px;
    width: 500px;
    height: calc(100% - 20px);
    border-radius: 10px;
    color: var(--white);
    margin-right: 10px;
    overflow-y: scroll;
    animation-name: animateright;
    animation-duration: 0.4s;
}

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

.modal_wrapper {
    position: relative;
    box-sizing: border-box;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 100%;
}

@keyframes animateright {
    from {right: -500px; opacity: 0}
    to {right: 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;
    text-align: left;
    color: var(--primary-text);
}

.modal option {
    color: var(--primary-text);
}

.modal .buttons_container {
    margin-top: 40px;
    justify-content: flex-end;
    flex-direction: row !important;
}

.modal .button {
    width: max-content;
}

.modal_wrapper .danger_button {
    background-color: var(--primary-color);
    color: var(--button-text);
    margin-left: 20px !important;
}

.mobile_close_button {
    display: none;
}

.modal .delete_button {
    background-color: var(--red);
    color: var(--white);
}

.modal .buttons_container .button_2 {
    background-color: var(--primary-color);
    color: var(--button-text);
}

.modal .review_buttons .button_2 {
    background-color: var(--primary-background);
    color: var(--secondary-button-text);
    margin-right: 10px;
}

.modal .email_icon {
    width: 80px;
    height: 80px;
    border: 5px solid var(--red);
    background-color: var(--red);
    border-radius: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 !important;
}

.modal .email_icon i {
    font-size: 24px;
    color: var(--white);
}

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

    .modal {
        width: calc(100% - 20px);
        margin: 10px auto 0;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        height: calc(100% - 10px);
        padding: 10px;
        animation-name: animatetop;
    }

    .modal_wrapper {
        min-height: 600px;
    }

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

    .modal h3,
    .modal p {
        text-align: center !important;
    }

    .close_button {
        display: none;
    }

    .mobile_close_button {
        display: flex;
        position: relative;
        margin-left: auto;
        width: 46px;
        height: 46px;
        border-radius: 5px;
        background-color: var(--primary-background);
    }

    .close_button i {
        top: 0;
        right: 0;
        left: unset;
        background-color: var(--primary-background);
    }

    .modal .buttons_container {
        display: flex;
        flex-direction: column !important;
        width: 100%;
    }

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

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

    .email_icon {
        width: 73px;
        height: 73px;
        margin: 30px auto !important;
    }
}

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

@media (min-width: 650px) and (max-height: 840px) {
    .modal h3 {
        margin-top: 0;
    }

    .modal_wrapper {
        min-height: 600px;
    }
}