﻿/* 전체 화면을 덮는 어두운 배경 */
    #msgOverlay {
        display: none;
        position: fixed;
        z-index: 9998;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
    }

    /* 팝업 박스 */
    #msgDialog {
        position: fixed;
        z-index: 9999;
        max-width: 420px;
        width: 90%;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        padding: 16px 16px 12px;
        box-sizing: border-box;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: sans-serif;
    }

    #msgDialogTitle {
        font-size: 1.0rem;
        font-weight: bold;
        margin-bottom: 8px;
    }

    #msgDialogBody {
        max-height: 300px;
        overflow-y: auto;
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 4px 0 8px;
    }

    #msgDialogButtons {
        margin-top: 8px;
        text-align: right;
    }

    #msgDialogButtons button {
        min-width: 72px;
        padding: 6px 12px;
        margin-left: 6px;
        border-radius: 4px;
        border: 1px solid #ccc;
        background: #f5f5f5;
        cursor: pointer;
        font-size: 0.85rem;
    }

    #msgDialogButtons button.btn-ok {
        background: #007bff;
        border-color: #007bff;
        color: #fff;
    }

    #msgDialogButtons button:hover {
        opacity: 0.9;
    }


/* 계좌 입력 팝업 전용 */
#bankDialog {
    display: none;
    position: fixed;
    z-index: 9999;
    max-width: 420px;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    padding: 16px 16px 12px;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
}

#bankDialogTitle {
    font-size: 1.0rem;
    font-weight: bold;
    margin-bottom: 12px;
}

#bankDialogBody {
    max-height: 420px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 4px 0 8px;
}

.bank-form-row {
    margin-bottom: 12px;
}

.bank-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.bank-form-input {
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
    outline: none;
}

.bank-form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.12);
}

.bank-form-comp {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #007bff;
    word-break: keep-all;
    text-align: center;
}

.bank-form-help {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    word-break: keep-all;
}

#bankDialogButtons {
    margin-top: 10px;
    text-align: right;
}

#bankDialogButtons button {
    min-width: 72px;
    padding: 6px 12px;
    margin-left: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.85rem;
}

#bankDialogButtons button.btn-ok {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

#bankDialogButtons button:hover {
    opacity: 0.9;
}

.bank-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-account-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.bank-account-row .bank-form-input {
    flex: 1;
}

.bank-account-row .bank-name-input {
    flex: 0 0 30%;
    font-size: 0.75rem;
}

.bank-account-row .bank-account-input {
    flex: 1 1 auto;
    font-size: 0.75rem;
}

.bank-row-remove {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.85rem;
}

.bank-row-remove:hover {
    opacity: 0.9;
}

.bank-dialog-tools {
    margin-top: 10px;
    margin-bottom: 8px;
}

.bank-dialog-tools .btn-add-row {
    min-width: 90px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #007bff;
    background: #fff;
    color: #007bff;
    cursor: pointer;
    font-size: 0.85rem;
}

.bank-dialog-tools .btn-add-row:hover {
    opacity: 0.9;
}

/* 주소찾기 관련 */
.postcode-wrap {
    display: none;
    width: 100%;
    margin-top: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

.postcode-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #e9e9e9;
    box-sizing: border-box;
    background: #fafafa;
}

.postcode-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.postcode-close {
    min-width: 56px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
}

.postcode-box {
    width: 100%;
    height: 460px; /* 초기 높이 */
    box-sizing: border-box;
}

/* 작은 화면에서는 좀 더 크게 */
@media (max-width: 480px) {
    .postcode-box {
        height: 500px;
    }
}