
/* 공통 로딩 스피너 모달 */
.loading-spinner-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 16, 12, .45);
    backdrop-filter: blur(2px);
}

.loading-spinner-overlay.show {
    display: flex !important;
}

.loading-spinner-modal {
    width: min(92vw, 340px);
    background: #fff;
    border-radius: 18px;
    border-top: 5px solid var(--theme);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .18);
    padding: 26px 22px 22px;
    text-align: center;
}

.loading-spinner-icon-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
}

.loading-spinner-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(0 64 183 / 0.18) 0%, rgb(0 119 183 / 0.03) 72%);
}

.loading-spinner-icon {
    width: 50px;
    height: 50px;
    display: inline-block;
    border: 2px solid #ddd;
    border-top-color: #111;
    border-radius: 50%;
    animation: loading-spin 2s linear infinite;
}
@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner-symbol {
    position: absolute;
    /*font-size: 1.05rem;*/
    width: 55px;
    color: #fff;
    z-index: 2;
}

.loading-spinner-message {
    font-weight: 500;
    margin-top: 4px;
    color: #2d343e;
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: -.01em;
    word-break: keep-all;
}

@media (max-width: 640px) {
    .loading-spinner-modal {
        border-radius: 14px;
        padding: 22px 16px 18px;
    }

    .loading-spinner-icon-wrap {
        width: 72px;
        height: 72px;
    }

    .loading-spinner-icon {
        font-size: 2.6rem;
    }
}

@keyframes floatingModalPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@media (max-width: 800px) {
    .floating-modal-overlay {
        padding: 16px;
    }

    .floating-modal-message {
        text-align: center;
    }

    .floating-modal-dialog {
        width: 100%;
        max-width: 100%;
        padding: 20px 30px 22px;
        border-radius: 14px;
    }

    .floating-modal-title {
        font-size: 1.2rem;
    }

    .floating-modal-actions {
        justify-content: stretch;
    }

    .floating-modal-btn {
        flex: 1;
        min-width: 0;
    }

}
