/* Scoped scanner completion component. Brand comes from Settings. */
.mymex-bizscan{--scan-ink:#17324a;--scan-line:#dce6ed;--scan-paper:#fff;--scan-soft:#f2f7fa}
.mymex-bizscan [hidden]{display:none!important}
.mymex-bizscan[data-handoff-stage] [data-scan-surface]{max-width:980px;margin-inline:auto}
.mymex-bizscan[data-handoff-stage] [data-scan-surface]>header{display:none}
.mymex-bizscan[data-handoff-stage] .bizscan-destination{margin:12px 0;color:#617487;font-size:13px;background:none;border:0;padding:0}
.mymex-bizscan .bizscan-complete{position:relative;box-sizing:border-box;display:grid;grid-template-columns:54px 1fr;gap:0 16px;padding:22px 24px;margin:0;border:1px solid var(--scan-line);border-bottom:0;border-radius:22px 22px 0 0;background:var(--scan-paper);color:var(--scan-ink);overflow:hidden}
.mymex-bizscan .scan-success-art{grid-column:1;grid-row:1/5;width:54px;height:54px;color:#138b64;background:#e4f7ef;border-radius:50%;position:relative;display:grid;place-items:center}
.scan-success-art svg{width:44px;height:44px}.scan-success-art circle{stroke:currentColor;opacity:.2;stroke-width:2;stroke-dasharray:258;animation:scan-ring 1s ease both}.scan-success-art path{stroke:currentColor;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:65;animation:scan-check .6s .15s ease both}.scan-success-art i{display:none}
.mymex-bizscan .scan-connection-kicker{font:700 10px/1.5 Arial;letter-spacing:.12em;color:#638092}
.mymex-bizscan .bizscan-complete h3{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin:3px 0 0;color:inherit}.bizscan-complete h3 span{display:block;font-size:13px;letter-spacing:0;font-weight:400;color:#60788a;margin-top:5px}
.mymex-bizscan .bizscan-complete>p{grid-column:2;font-size:13px;line-height:1.5;margin:8px 0;color:#526d80}
.mymex-bizscan .scan-handoff-journey{grid-column:1/-1;display:flex;gap:20px;list-style:none;margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--scan-line)}
.scan-handoff-journey li{display:flex;align-items:center;gap:7px;color:#8a9eac;font-size:12px}.scan-handoff-journey li span{display:grid;place-items:center;width:23px;height:23px;background:var(--scan-soft);border:1px solid var(--scan-line);border-radius:50%;font-weight:700}.scan-handoff-journey li:first-child{color:#138b64}.mymex-bizscan[data-handoff-stage=preview] .scan-handoff-journey li:nth-child(2),.mymex-bizscan[data-handoff-stage=opened] .scan-handoff-journey li,.mymex-bizscan[data-handoff-stage=reported] .scan-handoff-journey li{color:var(--scan-ink)}
.mymex-bizscan .bizscan-complete .bizscan-next-actions{grid-column:1/-1;position:absolute;right:24px;bottom:18px;display:flex;gap:14px}.mymex-bizscan .bizscan-complete .tenant-button{background:none;border:0;box-shadow:none;color:var(--scan-ink);padding:4px;font-size:12px;min-height:32px}
.mymex-bizscan .bizscan-whatsapp{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:32px;align-content:start;padding:26px 24px;margin:0 0 20px;border:1px solid var(--scan-line);border-radius:0 0 22px 22px;background:var(--scan-paper);color:var(--scan-ink)}
.bizscan-whatsapp>h3,.bizscan-whatsapp>p,.bizscan-whatsapp>.scan-connection-kicker,.bizscan-wa-consent,.bizscan-whatsapp>[data-whatsapp-prepare]{grid-column:1}
.mymex-bizscan .bizscan-whatsapp h3{font-size:27px;line-height:1.15;letter-spacing:-.7px;margin:7px 0 12px;color:inherit}.mymex-bizscan .bizscan-whatsapp>p{font-size:14px;line-height:1.6;margin:0 0 18px;color:#60788a}
.mymex-bizscan .bizscan-wa-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;margin:6px 0 18px}.bizscan-wa-consent input{flex:none;margin-top:4px;accent-color:var(--scan-brand)}
.mymex-bizscan .bizscan-whatsapp .tenant-button{min-height:46px;border-radius:12px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;text-align:center;white-space:normal}
.mymex-bizscan .bizscan-whatsapp .tenant-button-primary{background:var(--scan-brand,#061a33);color:var(--scan-brand-text,#fff);border:1px solid var(--scan-brand);box-shadow:0 6px 14px #061a3314}
.mymex-bizscan [data-whatsapp-preview]{grid-column:2;grid-row:1/8;min-width:0;background:var(--scan-soft);border:1px solid var(--scan-line);padding:16px;border-radius:16px;animation:scan-arrive .35s ease both}
.scan-chat-header{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:13px}.scan-chat-header>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--scan-brand);color:var(--scan-brand-text);font-size:23px}.scan-chat-header small{display:block;font-size:11px;color:#648091;margin-top:3px}
.scan-chat-bubble{background:var(--scan-paper);padding:16px;border:1px solid var(--scan-line);border-radius:4px 14px 14px 14px;box-shadow:0 3px 10px #071b3306}.scan-preview-label{font-size:9px;letter-spacing:.12em;font-weight:700;color:#7b909f}
.mymex-bizscan [data-whatsapp-readable] p{font-size:13px;line-height:1.6;margin:12px 0;white-space:pre-line;overflow-wrap:anywhere}.mymex-bizscan [data-whatsapp-readable] p:last-child{margin-bottom:0}.scan-link-chip{display:block;width:fit-content;border:1px solid var(--scan-line);background:var(--scan-soft);border-radius:8px;padding:7px 10px;font-weight:700;font-size:12px;color:var(--scan-ink);margin-top:6px}
.scan-exact-message{font-size:11px;color:#647e90;margin:12px 0}.scan-exact-message summary{cursor:pointer;min-height:25px}.mymex-bizscan [data-whatsapp-message]{box-sizing:border-box;width:100%;max-width:100%;padding:12px;border:1px solid var(--scan-line);border-radius:8px;background:var(--scan-paper);color:var(--scan-ink);font:12px/1.6 Arial;resize:vertical;min-height:180px}
.bizscan-whatsapp .bizscan-next-actions{display:grid;gap:8px}.bizscan-whatsapp .bizscan-next-actions .tenant-button:not(.tenant-button-primary){background:transparent;border:1px solid var(--scan-line);color:var(--scan-ink);box-shadow:none;min-height:36px;font-size:12px}.bizscan-whatsapp .tenant-button:disabled{opacity:.45;cursor:default}
.mymex-bizscan .bizscan-whatsapp [data-whatsapp-status]{grid-column:1;font-size:11px;line-height:1.6;color:#6b8292;margin-top:18px}
.mymex-bizscan[data-handoff-stage=saved] .bizscan-whatsapp{display:block}.mymex-bizscan[data-handoff-stage=saved] .bizscan-whatsapp h3{max-width:560px}.mymex-bizscan[data-handoff-stage=saved] [data-whatsapp-prepare]{animation:scan-invite 1.6s ease 2}
[data-mymex-theme=dark] .mymex-bizscan{--scan-paper:#102637;--scan-soft:#173345;--scan-line:#2b4a5d;--scan-ink:#edf7ff}
@keyframes scan-check{from{stroke-dashoffset:65}to{stroke-dashoffset:0}}@keyframes scan-ring{from{stroke-dashoffset:258}to{stroke-dashoffset:0}}@keyframes scan-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes scan-invite{50%{box-shadow:0 0 0 5px #138b6418}}
@media(max-width:650px){.mymex-bizscan .bizscan-complete{padding:18px 16px;grid-template-columns:44px 1fr;gap:0 12px}.mymex-bizscan .scan-success-art{width:44px;height:44px}.mymex-bizscan .scan-success-art svg{width:36px;height:36px}.mymex-bizscan .bizscan-complete h3{font-size:22px}.mymex-bizscan .bizscan-complete .bizscan-next-actions{position:static;margin-top:12px;gap:18px}.mymex-bizscan .scan-handoff-journey{gap:22px;margin-top:12px;padding-top:12px}.mymex-bizscan .bizscan-whatsapp{display:block;padding:20px 16px}.mymex-bizscan .bizscan-whatsapp h3{font-size:25px}.mymex-bizscan .bizscan-whatsapp>p{margin-bottom:12px}.mymex-bizscan [data-whatsapp-preview]{margin-top:18px;padding:12px}.mymex-bizscan [data-whatsapp-prepare]{width:100%}.scan-chat-bubble{padding:14px}}
@media(prefers-reduced-motion:reduce){.mymex-bizscan .scan-success-art *,.mymex-bizscan [data-whatsapp-preview],.mymex-bizscan [data-whatsapp-prepare]{animation:none!important;transform:none!important}.scan-success-art path{stroke-dashoffset:0}}
.mymex-bizscan .bizscan-complete{text-align:left}.mymex-bizscan .bizscan-complete h3,.mymex-bizscan .bizscan-complete>p{text-align:left}.mymex-bizscan .scan-connection-kicker{grid-column:2}.mymex-bizscan .bizscan-whatsapp>.scan-connection-kicker{grid-column:1}.mymex-bizscan[data-handoff-stage=preview] .scan-handoff-journey li:nth-child(2) span{animation:scan-invite 1.6s ease 2}
@media(prefers-reduced-motion:reduce){.mymex-bizscan .scan-handoff-journey li span{animation:none!important}}
/* Scanner entry uses the same component shell as completion. */
.mymex-bizscan.is-choice [data-scan-surface]{width:100%;max-width:920px;box-sizing:border-box;margin:0 auto;padding:28px;background:var(--scan-paper);color:var(--scan-ink);border:1px solid var(--scan-line);border-radius:22px}
.mymex-bizscan.is-choice [data-scan-surface]>header{position:static;padding:0;background:transparent;margin-bottom:18px}.mymex-bizscan.is-choice [data-scan-surface] h2{font-size:26px;letter-spacing:-.6px}.mymex-bizscan.is-choice .bizscan-destination{padding:10px 14px;border:1px solid var(--scan-line);background:var(--scan-soft);border-radius:10px;font-size:13px;color:var(--scan-ink);margin:0 0 22px}
.mymex-bizscan .bizscan-phone{display:grid;grid-template-columns:minmax(0,1fr) 184px;gap:28px;align-items:center;background:var(--scan-soft);border:1px solid var(--scan-line);border-radius:18px;padding:24px;margin:0 0 24px;text-align:left}.mymex-bizscan .bizscan-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#607c8f}.mymex-bizscan .bizscan-phone h3{font-size:24px;line-height:1.2;letter-spacing:-.5px;margin:8px 0 12px}.mymex-bizscan .bizscan-phone p{font-size:13px;line-height:1.7;color:#60788a;margin:10px 0}.mymex-bizscan .bizscan-phone-help{padding-left:12px;border-left:2px solid var(--scan-line)}.mymex-bizscan .bizscan-phone .tenant-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:6px;font-size:13px;background:var(--scan-paper);border-radius:10px}
.bizscan-qr-wrap{padding:10px;background:#fff;border-radius:14px;border:1px solid var(--scan-line)}.bizscan-qr-wrap img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.bizscan-phone-symbol{display:grid;place-items:center;width:156px;height:164px;margin:auto;border:1px solid var(--scan-line);border-radius:24px;background:var(--scan-paper);color:var(--scan-brand,#061a33)}.bizscan-phone-symbol svg{width:72px;height:94px}.mymex-bizscan .bizscan-local-phone{font-size:12px;padding:10px 12px;background:var(--scan-paper);border:1px solid var(--scan-line);border-radius:10px}
.mymex-bizscan.is-choice .bizscan-choice-copy{font-size:12px;font-weight:700;color:#687f90;margin:22px 0 12px}.mymex-bizscan.is-choice [data-choice]>.bizscan-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mymex-bizscan.is-choice [data-choice] .bizscan-choice{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:14px;min-width:0;min-height:156px;padding:20px;border:1px solid var(--scan-line);border-radius:16px;background:var(--scan-paper);color:var(--scan-ink);text-align:left;transition:border-color .18s,box-shadow .18s}.mymex-bizscan.is-choice [data-choice] .bizscan-choice:hover,.mymex-bizscan.is-choice [data-choice] .bizscan-choice:focus-visible{border-color:#6f99ac;box-shadow:0 4px 14px #17324a0d;outline:2px solid transparent}.mymex-bizscan.is-choice [data-choice] .bizscan-choice-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--scan-soft);border:1px solid var(--scan-line);border-radius:12px;font-size:23px;flex:none}.mymex-bizscan.is-choice .card-scan-copy{display:block}.mymex-bizscan.is-choice .bizscan-choice strong,.mymex-bizscan.is-choice .card-scan-title{display:block;font-size:14px;line-height:1.4;font-weight:700}.mymex-bizscan.is-choice .bizscan-choice small,.mymex-bizscan.is-choice .card-scan-description{display:block;font-size:12px;line-height:1.6;margin-top:4px;color:#648092}.mymex-bizscan.is-choice .card-scan-button>svg{max-width:48px;max-height:56px}.mymex-bizscan.is-choice .bizscan-choice .card-scan-icon{width:44px;height:48px}
@media(max-width:767px){.mymex-bizscan .bizscan-phone{display:none!important}.mymex-bizscan.is-choice [data-scan-surface]{padding:20px 16px;border-radius:18px}.mymex-bizscan.is-choice [data-scan-surface] h2{font-size:24px}.mymex-bizscan.is-choice [data-choice]>.bizscan-entry{grid-template-columns:1fr}.mymex-bizscan.is-choice [data-choice] .bizscan-choice{flex-direction:row;align-items:center;min-height:96px;gap:16px;padding:18px}.mymex-bizscan.is-choice .bizscan-destination{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.mymex-bizscan.is-choice .bizscan-choice{transition:none}}
[data-mymex-theme=dark] .mymex-bizscan.is-choice .bizscan-choice small,[data-mymex-theme=dark] .mymex-bizscan.is-choice .card-scan-description,[data-mymex-theme=dark] .mymex-bizscan.is-choice .bizscan-choice-copy,[data-mymex-theme=dark] .mymex-bizscan .bizscan-phone p,[data-mymex-theme=dark] .mymex-bizscan .bizscan-eyebrow{color:#b5ccd9}[data-mymex-theme=dark] .mymex-bizscan .bizscan-phone-symbol{color:#d7eaf5}
[data-mymex-theme=dark] .mymex-bizscan .bizscan-complete h3 span,[data-mymex-theme=dark] .mymex-bizscan .bizscan-complete>p,[data-mymex-theme=dark] .mymex-bizscan .bizscan-whatsapp>p,[data-mymex-theme=dark] .mymex-bizscan .scan-chat-header small,[data-mymex-theme=dark] .mymex-bizscan .scan-exact-message,[data-mymex-theme=dark] .mymex-bizscan [data-whatsapp-status],[data-mymex-theme=dark] .mymex-bizscan .scan-connection-kicker,[data-mymex-theme=dark] .mymex-bizscan .bizscan-destination{color:#b5ccd9}
