/*
 * 新盤 detail contact chooser (assets/js/newprop_contact_chooser.js), both sites: the desktop "on this computer / scan with the phone"
 * dialog and the mobile bottom sheet opened from its QR. Self-contained (no site tokens), same look as the squarefoot property detail's
 * (.sqf2d-choose in property_detail_sqfoot_v2.css, .sqf2m-qr-sheet in mproperty_detail_sqfoot_v2.css).
 */
.npc-choose {
    position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(31,29,27,0); transition: background .18s; font-family: 'Manrope', 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans CJK HK', sans-serif;
}
.npc-choose.is-open { background: rgba(31,29,27,.45); }
.npc-choose-panel {
    position: relative; width: 560px; max-width: 100%; box-sizing: border-box; padding: 26px 28px 28px; border-radius: 20px; background: #FFFFFF;
    box-shadow: 0 24px 60px rgba(31,29,27,.22); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .18s, transform .18s;
}
.npc-choose.is-open .npc-choose-panel { opacity: 1; transform: none; }
.npc-choose-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: #F7F5F2; color: #5E5953;
    font-size: 20px; line-height: 1; cursor: pointer;
}
.npc-choose-title { display: flex; align-items: center; gap: 10px; color: #1F1D1B; font-size: 20px; font-weight: 800; }
.npc-choose-title .icon { margin: 0 !important; font-size: 22px; height: auto; color: #1FAF54; }
.npc-choose.is-tel .npc-choose-title .icon { color: #CC3424; }
.npc-choose-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 20px; }
.npc-choose-here,
.npc-choose-phone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; border: 1px solid #E6E1DB; border-radius: 16px;
    text-align: center;
}
.npc-choose-device.icon { margin: 0 !important; color: #8A847D; font-size: 34px; height: auto; }
.npc-choose-go {
    width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 999px; background: #1FAF54; color: #FFFFFF;
    font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.npc-choose-go:hover { background: #18994A; }
.npc-choose.is-tel .npc-choose-go { background: #CC3424; }
.npc-choose.is-tel .npc-choose-go:hover { background: #B02E20; }
.npc-choose-or { display: flex; align-items: center; color: #8A847D; font-size: 13px; font-weight: 700; }
.npc-choose-qr { display: block; width: 132px; height: 132px; padding: 6px; box-sizing: border-box; border: 1px solid #E6E1DB; border-radius: 12px; background: #FFFFFF; }
.npc-choose-scan { color: #1F1D1B; font-size: 15px; font-weight: 800; }
.npc-choose-note { color: #8A847D; font-size: 12px; font-weight: 600; line-height: 1.5; }

/* mobile, from the QR: a bottom sheet */
.npc-sheet { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; background: rgba(31,29,27,0); transition: background .2s; }
.npc-sheet.is-open { background: rgba(31,29,27,.45); }
.npc-sheet-panel {
    width: 100%; box-sizing: border-box; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #FFFFFF;
    font-family: 'Manrope', 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans CJK HK', sans-serif; text-align: center;
    transform: translateY(100%); transition: transform .22s ease-out;
}
.npc-sheet.is-open .npc-sheet-panel { transform: translateY(0); }
.npc-sheet-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: #E8F7EE; }
.npc-sheet-icon .icon { margin: 0 !important; color: #1FAF54; font-size: 26px; height: auto; }
.npc-sheet-title { margin: 12px 0 18px; color: #1F1D1B; font-size: 18px; font-weight: 800; line-height: 1.4; }
.npc-sheet-yes,
.npc-sheet-no {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 999px;
    font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.npc-sheet-yes { background: #1FAF54; color: #FFFFFF; }
.npc-sheet-yes .icon { margin: 0 !important; height: auto; }
.npc-sheet-no { margin-top: 8px; background: transparent; color: #5E5953; }
.npc-sheet.is-tel .npc-sheet-icon { background: #FBF1EF; }
.npc-sheet.is-tel .npc-sheet-icon .icon { color: #CC3424; }
.npc-sheet.is-tel .npc-sheet-yes { background: #CC3424; }
