/* [2026-09-11] 공통 모달 스타일 (SCModal) : 안내 문구가 괜히 두 줄로 접히지 않게 카드 폭을 문구에 맞추고 상한을 둠 */
.scm-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    animation: scmFadeIn 0.2s ease;
}
.scm-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    /* 문구 길이에 맞춰 넓어지되 320px ~ 480px 사이로 제한 (가장 긴 안내 문구 실측 361px + 좌우 여백 64px) */
    width: 320px;              /* max-content 를 모르는 옛 브라우저용 */
    width: max-content;
    min-width: 320px;
    max-width: 90vw;           /* min() 을 모르는 옛 브라우저용 */
    max-width: min(90vw, 480px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    text-align: center;
    animation: scmPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scm-msg {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: keep-all;
}
.scm-btns {
    display: flex;
    gap: 8px;
}
.scm-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    outline: none;
}
.scm-btn:hover { opacity: 0.85; }
.scm-btn:focus { box-shadow: 0 0 0 2px rgba(178,0,136,0.3); }
.scm-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}
.scm-btn-cancel:hover { background: #e5e7eb; }
.scm-btn-ok {
    background: #b20088;
    color: #fff;
}
@keyframes scmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scmPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
