/* 앱 웹뷰 alert 대체 (E-57 · E-58)
   js/Item/appAlertFallback.js 가 만드는 레이어. 앱 웹뷰에서만 삽입된다.
   z-index 는 저장소 최고값(style.css `10000`) 위로 둔다 — 예약폼 오버레이(`#bk` 9) 위에 떠야 한다. */

.app-alert {
    position: fixed;
    /* ⚠ `inset` 단축은 구형 WebView(Android <87) 미지원 — 개별 속성으로 쓴다.
       미지원이면 레이어가 배치되지 않아 알림이 아예 보이지 않는다. */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
}

.app-alert--on { display: flex; }

.app-alert__box {
    width: 100%;
    max-width: 320px;
    padding: 22px 18px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    text-align: center;
}

.app-alert__msg {
    margin: 0 0 16px;
    color: var(--tp-text, #222);
    font-size: 15px;
    line-height: 1.5;
    /* 레거시 메시지에 `\n` 이 들어 있다 — 줄바꿈을 살린다 */
    white-space: pre-line;
    word-break: keep-all;
}

.app-alert__ok {
    width: 100%;
    /* 앱 터치 타겟 최소 44px */
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--tp-blue, #2b6cff);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
