/* CJ-012 v0.5 full QR image + simplified consult copy. Isolated preview only; no production change. */
#cj-contact{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:90px;z-index:90;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#263747;font-size:14px;line-height:1.45;box-sizing:border-box;text-align:center}
#cj-contact,#cj-contact *{box-sizing:border-box}
#cj-contact [hidden]{display:none!important}
#cj-contact button,#cj-contact a{-webkit-tap-highlight-color:transparent}
#cj-contact button{font:inherit;cursor:pointer;letter-spacing:0}
#cj-contact .cj-toggle{position:relative;width:54px;height:54px;min-width:54px;min-height:54px;display:flex;align-items:center;justify-content:center;padding:0;background:#fff;border:1px solid #e0e4e8;border-radius:50%;color:#344556;box-shadow:0 4px 14px #14223318;transition:background .15s,color .15s,box-shadow .15s}
#cj-contact .cj-toggle:hover,#cj-contact .cj-toggle[aria-expanded="true"]{background:#30579b;color:#fff;box-shadow:0 7px 18px #254e9a38;border-color:#30579b}
#cj-contact .cj-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#cj-contact .cj-toggle-tip{position:absolute;white-space:nowrap;right:calc(100% + 12px);top:50%;transform:translateY(-50%);font-size:12px;font-weight:600;border:1px solid #e4e7ec;color:#243447;background:#fff;border-radius:8px;padding:6px 9px;box-shadow:0 6px 18px #14233d12;pointer-events:none;opacity:0;transition:opacity .15s}
#cj-contact .cj-toggle:hover .cj-toggle-tip,#cj-contact .cj-toggle:focus-visible .cj-toggle-tip{opacity:1}
#cj-contact .cj-toggle[aria-expanded="true"] .cj-toggle-tip{display:none}
#cj-contact-panel{position:absolute;right:calc(100% + 14px);bottom:-3px;width:214px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e9e9e9;border-radius:10px;box-shadow:0 5px 23px #12223525;padding:18px 14px 18px}
#cj-contact-panel::after{content:"";position:absolute;right:-7px;bottom:24px;width:12px;height:12px;background:#fff;border-top:1px solid #e9e9e9;border-right:1px solid #e9e9e9;transform:rotate(45deg)}
#cj-contact .cj-heading{font-size:16px;font-weight:500;color:#4f4f4f;margin:0 17px 12px;text-align:center}
#cj-contact .cj-sub{display:none}
#cj-contact .cj-close{position:absolute;top:3px;right:3px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;font-size:17px;background:transparent;color:#a5adb5;padding:0}
#cj-contact .cj-close:hover{background:#f3f5f7}
#cj-contact .cj-qr{background:#fff;width:160px;height:auto;margin:0 auto 14px;border-radius:6px;overflow:hidden}
#cj-contact .cj-qr a{display:block;width:100%;cursor:zoom-in}
#cj-contact .cj-qr img{display:block;width:100%;height:auto}
#cj-contact .cj-primary-line{margin:0;font-size:16px;color:#4f4f4f}
#cj-contact .cj-error{color:#8f382c;font-size:12px;margin:10px 0}
#cj-contact :focus-visible{outline:2px solid #385d9d;outline-offset:3px}
/* Popover never reserves horizontal content width or mutates body layout. */
@media(max-width:600px){
 #cj-contact{right:max(12px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));font-size:13px}
 #cj-contact .cj-toggle{width:50px;height:50px;min-width:50px;min-height:50px}
 #cj-contact-panel{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));right:12px;width:min(214px,calc(100vw - 24px));max-height:calc(100dvh - 104px - env(safe-area-inset-bottom));padding:18px 14px 18px}
 #cj-contact-panel::after{display:none}
 #cj-contact .cj-qr{width:min(160px,calc(100vw - 52px));height:auto}
 #cj-contact .cj-toggle-tip{display:none}
}
@media(max-width:360px){#cj-contact-panel{right:12px;width:min(214px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){#cj-contact *{transition:none!important}}
