.overlay_main {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    display: grid;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    padding: 40px 0;

}

.overlay_box {
    display: block;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 7px -1px #00000031;
    border-radius: 10px;
    color: var(--overlay-box-text);
    z-index: 3;
    margin-bottom: 40px;

}

.overlay_blur {
    position: fixed;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.overlay_close {
    font-size: 18px;
    cursor: pointer;
    color: var(--overlay-box-close);
}

.close {
    width: 27px;
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--overlay-box-close);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 999999;
}

.overlay_body {
    width: 100%;
    height: 100%;
    padding: 5px 15px 10px 15px;
    overflow: auto;
    max-height: 65vh;
}

.overlay_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 13px 15px 13px;
    border-bottom: 0.5px solid var(--overlay-box-lines);
}

.overlay_head_no {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 10px 13px;
    border-bottom: 0.5px solid var(--overlay-box-lines);
    position: absolute;
}

.overlay_footer {
    display: flow-root;
    padding: 8px 13px;
    border-top: 0.5px solid var(--overlay-box-lines);
}

.overlay_head h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

@media(max-width: 768px) {
    .overlay_box {
        position: relative;
        height: 100%;
        margin-bottom: 0;
        width: 100%;
        min-width: 100% !important;
    }

    .overlay_main {
        padding-top: 0px;
        justify-content: unset;
        padding-bottom: 60px;
        top: auto !important;
        bottom: 0;
        padding: 0 !important;
        max-height: 80vh;
        height: auto;
    }

    .overlay_body {
        overflow: auto;
    }
}