body:has(.error-modal-bg) {
    overflow: hidden;
    padding-right: 15px;
}

.error-modal-bg {
    display: block;
    z-index: 998;

    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    opacity: 0.5;
    background-color: #000;
}

.error-modal-wrapper {
    display: block;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.error-modal {
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #666;
    border-radius: 10px;
    margin: 10vh auto;
    width: fit-content;
    max-width: 75vw;
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    /*width: 100%;*/
    border-bottom: 1px solid #666;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    align-items: center;
}

.error-modal-body {
    /*width: 100%;*/
    padding: 0 10px;
    display: block;
}

.error-modal-body span {
    display: block;
}

.error-modal-footer {
    display: flex;
    justify-content: center;
    /*width: 100%;*/
    border-top: 1px solid #666;
    padding: 10px;
}