/* 전체 배경 */
.cmsg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(0, 0, 0, 0.38);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* 메시지 박스 */
.cmsg-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 26px 24px 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.16);
    animation: cmsg-show .2s ease-out;
    overflow: hidden;
}

/* 아이콘 */
.cmsg-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .10);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: 700;
}

/* 제목 */
.cmsg-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* 메시지 */
.cmsg-message {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin-bottom: 22px;
}

/* 버튼 */
.cmsg-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cmsg-btn {
    min-width: 95px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.cmsg-btn-confirm {
    background: var(--bs-primary);
    color: #fff;
}

.cmsg-btn-confirm:hover {
    filter: brightness(.92);
}

.cmsg-btn-cancel {
    background: #f1f3f5;
    color: #555;
}

.cmsg-btn-cancel:hover {
    background: #e9ecef;
}

/* 남은 시간 */
.cmsg-time {
    margin-top: 20px;
}

.cmsg-time-text {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.cmsg-time-count {
    color: var(--bs-primary);
    font-weight: 700;
}

/* 프로그레스바 */
.cmsg-progress {
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: #eceff1;
    overflow: hidden;
}

.cmsg-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--bs-primary);
    border-radius: 10px;
    transition: width .1s linear;
}

/* 등장 애니메이션 */
@keyframes cmsg-show {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


