/* ===== /m 앱에 본사이트 연동 기능(푸시 알림 배너, 에러 모달, 개발자와 채팅)을 붙이기 위한 최소 스타일.
   mobile_app.css와 독립적으로 관리되는 /m 시스템 취지에 맞춰, base.css를 그대로 불러오지 않고
   필요한 컴포넌트만 --m-* 팔레트/동일한 값으로 옮겨왔다. ===== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(35,33,43,.45);
    align-items: flex-start;
    justify-content: center;
    padding: 56px 24px;
    overflow-y: auto;
}
.modal-card {
    width: 560px;
    max-width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 40px -24px rgba(35,33,43,.3);
    overflow: hidden;
}
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 18px 26px;
    border-top: 1px solid var(--m-border);
}
.modal-confirm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}
.modal-cancel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn {
    display: inline-block;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--m-border);
    background: #fff;
    color: var(--m-ink);
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
}
.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.error-modal-body {
    padding: 32px 28px 20px;
    text-align: center;
}
.error-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #FBECEA;
    color: #C4453C;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.error-modal-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.dev-chat-fab-form {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 60;
    margin: 0;
}
.dev-chat-fab {
    -webkit-appearance: none;
    appearance: none;
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--m-brand);
    color: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(255,122,26,.6);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.pwa-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0 auto;
    max-width: 360px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--m-ink, #1E1A33);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 0.86rem;
}
.pwa-banner-message {
    padding-right: 22px;
}
.pwa-banner-hint {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}
.pwa-banner-action {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    text-align: center;
    cursor: pointer;
}
.pwa-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
