/* 공용 모달 스타일 — alert/confirm 팝업 공통 */

body.modal-open { overflow: hidden; }

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 40, 44, .45);
    z-index: 1000;
}

.modal-box {
    width: 520px;
    max-width: 92vw;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-pop);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.modal-head h2 {
    margin: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-semibold);
}

.modal-close {
    border: 0;
    background: none;
    color: var(--color-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-body {
    max-height: 60vh;
    overflow: auto;
    padding: var(--space-5);
}

.modal-body .form-row {
    margin-bottom: 14px;
}

.modal-body .form-row > label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-sub);
    font-size: 13px;
    font-weight: 500;
}

.modal-body .form-row .input,
.modal-body .form-row input[type=file] {
    width: 100%;
    box-sizing: border-box;
}

.modal-body .form-row.two {
    display: flex;
    gap: 12px;
}

.modal-body .form-row.two > div {
    flex: 1;
}

.modal-body .req {
    color: var(--color-primary);
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.partner-common-modal { z-index: 1200; }
.partner-common-modal-box { width: 420px; }
.partner-common-modal-message {
    margin: 0;
    color: var(--color-text);
    font-size: var(--fs-14);
    line-height: 1.6;
    white-space: pre-line;
}
