/* CSP 공통 비동기 로딩 오버레이 — frag_loading을 사용하는 모든 화면에서 로드한다. */
#csa-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* 포털 레이어(10000/10010) 위, 공통 알림(10030) 아래에 표시한다. */
    z-index: 10020;
    background: rgba(0, 0, 0, 0.35);
}

#csa-loading-overlay .csa-box {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
}

#csa-loading-overlay .csa-spinner {
    width: 46px;
    height: 46px;
    border: 5px solid #d9e6f5;
    border-top-color: #3a7bca;
    border-radius: 50%;
    animation: csa-spin 0.8s linear infinite;
}

#csa-loading-overlay .csa-msg {
    color: #333;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    white-space: pre-line;
}

#csa-loading-overlay .csa-msg:empty {
    display: none;
}

@keyframes csa-spin {
    to {
        transform: rotate(360deg);
    }
}
