body.modal-open {
    overflow: hidden;
}

.modal_wrap {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    display: flex !important;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.modal_wrap.show {
    visibility: visible;
    opacity: 1;
}

.modal_wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal_content {
    position: relative;
    width: 90%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 9px 0 rgba(0, 0, 0, 0.18);
    z-index: 2001;
}

/* alert 모달 */
.modal_alert {
    padding: 24px 32px;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    position: relative;
    z-index: 2001;
}

.modal_alert.info {
    border: 2px solid #c6c6c6;
}

.modal_alert.success {
    border: 2px solid #acf7bc;
}

.modal_alert.warning {
    border: 2px solid #ffe79d;
}

.modal_alert.error {
    border: 2px solid #ffd1d0;
}

.modal_alert.question {
    border: 2px solid #cbbffc;
}

.modal_alert .modal_body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 24px;
}

.modal_alert .modal_body img {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.modal_alert .modal_body p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    text-align: left;
    word-break: keep-all;
}

.modal_alert .modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.modal_alert .modal_footer .btn {
    min-width: 80px;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn_light {
    background: #fff;
    border: 1px solid #ddd !important;
    color: #333;
}

.btn_light:hover {
    background: #f8f8f8;
    border-color: #ccc !important;
}

.btn_dark {
    background: #333;
    color: #fff;
}

.btn_dark:hover {
    background: #444;
}

/* 반응형 */
@media (max-width: 768px) {
    .modal_alert {
        padding: 20px 24px;
        max-width: calc(100% - 40px);
    }

    .modal_alert .modal_body p {
        font-size: 14px;
    }

    .modal_alert .modal_footer .btn {
        min-width: 70px;
        height: 32px;
        font-size: 13px;
    }
}