#bank_search_modal.lf_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    overflow: auto;
    padding: 30px 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#bank_search_modal.lf_modal_overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#bank_search_modal .lf_modal_shell {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    transform: scale(0.70);
    transform-origin: center center;
    opacity: 0;
    transition: transform 0.42s ease, opacity 0.42s ease;
}
#bank_search_modal.is-visible .lf_modal_shell {
    transform: scale(1);
    opacity: 1;
}
#bank_search_modal .lf_inline_content2 {
    position: relative;
    background: #fff;
    padding: 28px 32px;
    border-radius: 8px;
    overflow: hidden;
}
#bank_search_modal .lf_modal_header {
    position: relative;
}
#bank_search_modal .lf_modal_header .lf_pa_tbl_total {
    margin-right: 48px;
}
#bank_search_modal .lf_pa_search_box .lf_line {
    display: flex;
    align-items: center;
}
#bank_search_modal .lf_pa_search_box .lf_line > .lf_pa_inp_wrap {
    flex: 1 1 auto;
    margin-right: 8px;
}
#bank_search_modal .lf_pa_search_box .lf_line > .lf_pa_inp_wrap .searchbox {
    width: 100%;
    box-sizing: border-box;
}
#bank_search_modal .lf_pa_search_box .lf_line > .lf_btn_wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

@media screen and (max-width: 640px) {
    #bank_search_modal .lf_pa_search_box .lf_line {
        flex-direction: column;
        align-items: stretch;
    }
    #bank_search_modal .lf_pa_search_box .lf_line > .lf_pa_inp_wrap {
        margin-right: 0;
        margin-bottom: 10px;
    }
    #bank_search_modal .lf_pa_search_box .lf_line > .lf_btn_wrap {
        width: 100%;
        justify-content: flex-end;
    }
}
#bank_search_modal .lf_modal_close_btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    padding: 0;
}

/* ======================================
   pay_history_modal
   ====================================== */
#pay_history_modal.lf_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    overflow: auto;
    padding: 30px 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#pay_history_modal.lf_modal_overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#pay_history_modal .lf_modal_shell {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    transform: scale(0.70);
    transform-origin: center center;
    opacity: 0;
    transition: transform 0.42s ease, opacity 0.42s ease;
}
#pay_history_modal.is-visible .lf_modal_shell {
    transform: scale(1);
    opacity: 1;
}
#pay_history_modal .lf_inline_content2 {
    position: relative;
    background: #fff;
    padding: 28px 32px;
    border-radius: 8px;
    overflow: hidden;
}
@media screen and (max-width: 799px) {
    #pay_history_modal .lf_inline_content2 {
        position: relative;
        background: #fff;
        padding: 15px 10px;
        border-radius: 8px;
        overflow: hidden;
    }
}
#pay_history_modal .lf_modal_close_btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    padding: 0;
}
#pay_history_modal .lf_payhistory_footer_buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

@media screen and (max-width: 640px) {
    #pay_history_modal .lf_payhistory_footer_buttons {
        flex-direction: column;
        gap: 10px;
    }
}
