@charset "UTF-8";
/* 모달 */
body:has(div.ks-modal) {
    height: 100%;
    overflow: hidden;
}
.ks-modal {
    position: relative;
}
.ks-modal .ks-modal-dialog {
    position: fixed;
    background: rgba(1,1,1,.6);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:10000;
}

.ks-modal .ks-modal-dialog .ks-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 300px;
    background-color: white;
    z-index: 200;

    display: inline-block;
    /*width: 800px;*/
    vertical-align: middle;
    text-align: left;
    /* IE : bug */
    /* margin-left: -3px; */
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;

    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    overflow: hidden;
    overflow-y: auto;
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header {
    padding: 15px;
    /*background-color: #113569;*/
    position: relative;z-index: 1;
    /*border-bottom: 1px solid #eee;*/
    font-size: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 10px;
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-sub-header{
    padding: 15px 0;
    border-bottom: 2px solid black;
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header > h3 {
    color: #1f5fae;
    -webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
    -ms-flex-item-align: center;-ms-grid-row-align: center;align-self: center;
}
.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-sub-header > h3 {
    -webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
    -ms-flex-item-align: start;-ms-grid-row-align: start;align-self: start;
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header .ks-modal-title {
    font-size: 20px;
    /*font-weight: bold;*/
    /*color: #FFF;*/
}
.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-sub-header .ks-modal-sub-title {
    font-size: 15px;
    font-weight: bold;
    /*color: #FFF;*/
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-body {
    background-color: #fff;
    position: relative;
    padding: 0 20px 0 20px;
    overflow: hidden;
    overflow-y: auto;
    /* max-height: calc(100vh - 200px); */
}
.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-body::after {
    content: '';
    display: block;
    height: 10px;
    font-size: 0;
}

.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-footer {
    background-color: #fff;
    position: relative;
    z-index: 1;
    border-top: 1px solid #eee;
    min-height: 10px;
    padding-top: 10px;
    text-align: right;
}
.ks-modal-group {
    background-color: #F5F5FA;
    outline: 1px solid #BBBBBB;
    margin: 20px 0px 30px 0px;
    display: flex;
    padding: 15px;
    flex-wrap: wrap;
}
/*.ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-body {
    max-height: 460px;
}*/

.popup-container{
    width: 300px;
    max-height: 700px;
    background-color: #FFFFE3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    font-size: 14px;
    top: 15%;
    right: 10%;
    z-index: 9999;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:10px;
}

.popup-header span {
    font-weight: bold;
    font-size: 16px;
}

.popup-close-btn {
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.popup-content {
    /*text-align: center;*/
    margin-bottom: 20px;
    padding: 0 20px;
}
.popup-content a {
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}
.popup-content:has(figure) {
    /*text-align: center;*/
    margin-bottom: 20px;
    padding: 0 0;
}

.popup-detail-btn {
    padding: 10px 20px;
    background-color: #3F4444;
    color: #EAE825;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}
.popup-detail-btn:hover {
    background-color: #333;
}

.popup-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #A0A0A0;
    height: 50px;
    background-color: #fff;
}

.popup-footer label {
    font-size: 14px;
    border-right: 1px solid #A0A0A0;
    flex-basis: 50%;
    height: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}
.popup-footer label>input {
    margin-right: 10px;
}

.popup-close-footer-btn {
    background-color: transparent;
    border: none;
    color: #6D6C56;
    cursor: pointer;
    font-size: 14px;
    flex-basis: 50%;
}

@media (min-width: 916px) {
    .ks-modal .ks-modal-dialog .ks-modal-content {
        border: 1px solid #999;
        -webkit-box-shadow: 0px 1px 6px 2px rgba(0, 0, 0, .136);
        box-shadow: 0px 1px 6px 2px rgba(0, 0, 0, .136);
    }

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header {
        /*border-radius: 6px 6px 0 0;*/
    }

    /* .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-body {
         max-height: 460px;
     }*/

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-footer {
        /*border-radius: 0 0 6px 6px;*/
        margin:20px;
    }
}
@media (max-width: 916px) {
    .ks-modal .ks-modal-dialog .ks-modal-content {
        /*width: 100%;*/
        /*max-width: 400px;*/
        /*max-height: 600px;*/
        overflow-y: auto;
        /*margin-left: 0 !important;*/
        /*height: 100%;*/
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        background-color: #fff;
        width: 100%;
        max-width: calc(100% - 50px);
        max-height: 600px;
        margin-left: 0;
    }

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header {
        display: block !important;
        padding: 14px 0;
    }

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-header > h3 {
        color: #000;
        font-size: 14px !important;
        text-align: center;
        font-weight: bold;
        padding: 0 35px;
        min-height: 20px;
    }

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-body {
        max-height: none !important;
        /*height: 0;*/
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
        -webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
    }

    .ks-modal .ks-modal-dialog .ks-modal-content .ks-modal-footer {
        min-height: auto;
        margin: 10px;
    }
}