body.modal-open {
    height: 100vh;
    overflow: hidden;
    padding-right: 15px;
}



.modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &.show .modal-card {
        animation: modal-appear 0.2s forwards;
    }

    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.2);
        position: fixed;
        inset: 0;
        z-index: -1;
        opacity: 0;

        &:not(.show) {
            animation: modal-overlay-disappear 0.2s forwards;
        }
    }

    &.show .modal-overlay {
        animation: modal-overlay-appear 0.2s forwards;
    }
}

.modal.hide {
    display: none;
}

@keyframes modal-overlay-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-overlay-disappear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modal-disappear {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.modal-header {
    padding: 0px 30px 0px;
}

.modal-card {
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(-100px);

    &:not(.show) {
        animation: modal-disappear 0.2s forwards;
    }

}

.modal-inner {
    flex: 1;
    max-height: 90dvh;
    background-color: #fff;
    margin: 20px;
    border-radius: 5px;
    max-width: 980px;
    width: 90%;
    width: calc(100% - 20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 40px;
}

.modal-inner hr {
    width: calc(100% + 35px * 2);
    height: 1px;
    border: none;
    background-color: hsl(0deg 0% 96%);
    margin: 15px -35px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
    width: 30px;
    height: 30px;
    border-radius: 100px;
    border: 0px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        width: 15px;
        height: 15px;
    }

}

.modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-footer {
    display: flex;
    width: 100%;
    margin-top: auto;
}

.modal-footer>button:only-child {
    margin: 0 auto;
}

@media(max-width:1124px) {

    .modal-header {
        display: none;
    }

    .modal-inner {
        padding-top: 20px;
    }

    .modal-inner {
        max-height: 80dvh;
        margin: 0px;
        width: 100%;
    }

    .modal-close {
        top: -10px;
        right: 10px;
        background: var(--color-white);
    }
}