@charset "UTF-8";

/* 풋터 자체 스타일은 FCP 퍼블 적용으로 ui/style.css(layout-footer-link, layout-footer-wrap 등)를 사용.
   이 파일은 풋터 프래그먼트에 포함된 공통 알럿 모달/로딩 레이어 스타일만 유지한다. */

/* ── 공통 알럿 모달 (showCommonModal) ── */
.ca-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.ca-modal-overlay.active {
    display: flex;
}
.ca-modal-container {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(380px, calc(100% - 40px));
    text-align: center;
}
.ca-modal-text-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
}
.ca-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #131416;
    letter-spacing: -0.02em;
}
.ca-modal-desc {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #58616A;
    line-height: 1.6;
}
.ca-modal-btn-area {
    display: flex;
    gap: 12px;
}
.ca-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.ca-modal-btn-confirm {
    background: #1E2124;
    border: 0;
    color: #fff;
}

/* ── 공통 로딩 레이어 (showLoading / hideLoading) ── */
.ui-loading-layer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.ui-loading-layer.is-active {
    display: flex;
}
.ui-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.ui-loading-spinner {
    display: block;
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #1E2124;
    border-radius: 50%;
    animation: ui-loading-spin 0.8s linear infinite;
}
@keyframes ui-loading-spin {
    to { transform: rotate(360deg); }
}
.ui-loading-msg {
    margin: 0;
    font-size: 14px;
    color: #58616A;
    font-weight: 500;
}
