/* Scoped presentation of the native customer WeChat dialog. */
.kd-wechat-dialog{--background:#fff;--foreground:#17263c;--ring:#185ed8;width:min(460px,calc(100vw - 32px));max-width:460px;max-height:calc(100dvh - 32px);display:block;overflow-y:auto;padding:0;gap:0;border:1px solid #e0e9f5;border-radius:24px;background:#fff;color:#17263c;box-shadow:0 32px 100px #0c214b40,0 4px 20px #102c5314;font-family:KedaziBody,"Microsoft YaHei",sans-serif}
.kd-wechat-dialog:focus{outline:none}
.kd-wechat-dialog > button{top:20px;right:20px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f2f5fa;color:#64748b;opacity:1}
.kd-wechat-dialog > button:hover{background:#e6edf7;color:#17263c}
.kd-wechat-dialog button:focus-visible{outline:2px solid #185ed8;outline-offset:3px}
.kd-wechat-card{padding:30px 32px 0;background:radial-gradient(ellipse at 100% 0,#eaf3ff 0,transparent 42%);border-radius:inherit}
.kd-wechat-brand{display:flex;align-items:center;gap:10px;margin-bottom:25px}
.kd-wechat-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d5e5fc;border-radius:11px;background:#185ed8;color:#fff;font-size:24px;font-weight:650;box-shadow:0 3px 8px #185ed81a}
.kd-wechat-brand strong{display:block;font-size:17px;line-height:1.3;letter-spacing:.03em;font-weight:700}
.kd-wechat-brand small{display:block;margin-top:3px;font-size:9px;font-weight:650;letter-spacing:.2em;color:#7184a0}
.kd-wechat-heading{display:block;margin:0;text-align:left}
.kd-wechat-eyebrow{display:block;margin-bottom:9px;font-size:11px;line-height:1.6;letter-spacing:.12em;color:#5a79a1}
.kd-wechat-heading h2{margin:0;font-size:27px;line-height:1.35;letter-spacing:-.025em;font-weight:650;color:#17263c}
.kd-wechat-heading p{margin:9px 0 0;font-size:13px;line-height:1.6;color:#667b96}
.kd-wechat-qr-stage{margin-top:24px;text-align:center}
.kd-wechat-qr-frame{position:relative;display:grid;place-items:center;width:256px;height:256px;margin:auto;padding:18px;border:1px solid #dfE9f6;border-radius:18px;background:#fff;box-shadow:0 8px 28px #255fbe0a}
.kd-wechat-qr-frame:before,.kd-wechat-qr-frame:after{position:absolute;content:"";width:30px;height:30px;pointer-events:none}
.kd-wechat-qr-frame:before{top:-2px;left:-2px;border-top:3px solid #347ce4;border-left:3px solid #347ce4;border-radius:18px 0 0 0}
.kd-wechat-qr-frame:after{bottom:-2px;right:-2px;border-right:3px solid #347ce4;border-bottom:3px solid #347ce4;border-radius:0 0 18px 0}
.kd-wechat-qr-frame svg{display:block;width:220px;height:220px;flex-shrink:0}
.kd-wechat-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;width:100%;height:100%;font-size:13px;color:#6b7c92}
.kd-wechat-placeholder button{padding:9px 14px;border-radius:8px;border:1px solid #d1e1f9;background:#f5f9ff;color:#185ed8;font-size:12px}
.kd-wechat-spinner{display:block;width:28px;height:28px;border:2px solid #dce9fb;border-top-color:#185ed8;border-radius:50%;animation:kd-wechat-spin .9s linear infinite}
.kd-wechat-state-symbol{font-size:36px;line-height:1;color:#92a6c1}
.kd-wechat-status{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:17px;font-size:13px;line-height:1.5;color:#314962}
.kd-wechat-status-dot{width:6px;height:6px;border-radius:50%;background:#29a371}
.kd-wechat-status-dot.is-muted{background:#b6c5d8}
.kd-wechat-qr-tools{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:8px;font-size:11px;color:#7c8ba0;font-variant-numeric:tabular-nums}
.kd-wechat-qr-tools button{display:flex;align-items:center;gap:4px;padding:4px 0;background:none;border:0;font-size:11px;font-weight:500;color:#185ed8}
.kd-wechat-qr-tools button:hover{text-decoration:underline;text-underline-offset:3px}
.kd-wechat-qr-tools button:disabled{opacity:.5;cursor:wait;text-decoration:none}
.kd-wechat-guide{display:flex;align-items:flex-start;gap:9px;margin-top:22px;padding:12px 14px;border:1px solid #e4edf9;border-radius:11px;background:#f6f9fe;color:#526c8c}
.kd-wechat-guide-icon{flex:0 0 auto;margin-top:2px;color:#3c75bc}
.kd-wechat-guide p{margin:0;font-size:12px;line-height:1.75}
.kd-wechat-guide strong{font-weight:600;color:#335c8b}
.kd-wechat-footer{display:flex;flex-direction:column;align-items:center;gap:9px;margin:20px -32px 0;padding:17px 25px 20px;border-top:1px solid #e9eef5;background:#fafcfe;border-radius:0 0 24px 24px}
.kd-wechat-footer button{padding:4px;background:none;border:0;font-size:12px;font-weight:550;color:#185ed8}
.kd-wechat-footer button:hover{color:#1249a6;text-decoration:underline;text-underline-offset:3px}
body:has(.kd-wechat-dialog) .fixed.inset-0[data-state="open"]{background:rgba(20,37,62,.45);backdrop-filter:blur(4px)}
@keyframes kd-wechat-spin{to{transform:rotate(360deg)}}
.kd-boot-customer{display:none}
html.kd-customer-auth .kd-boot-original{display:none}
html.kd-customer-auth .kd-boot-customer{display:inline-block;width:28px;height:28px;box-sizing:border-box;margin-top:24px;border:2px solid #dce9fb;border-top-color:#185ed8;border-radius:50%;animation:kd-wechat-spin .9s linear infinite}
@media(max-width:480px){.kd-wechat-dialog{border-radius:20px}.kd-wechat-card{padding:24px 24px 0}.kd-wechat-brand{margin-bottom:20px}.kd-wechat-heading h2{font-size:24px}.kd-wechat-footer{margin-left:-24px;margin-right:-24px;border-radius:0 0 20px 20px}.kd-wechat-qr-stage{margin-top:20px}.kd-wechat-qr-frame{width:240px;height:240px;padding:10px}.kd-wechat-guide{margin-top:18px}.kd-wechat-account-tip{margin-bottom:18px}}
@media(max-height:740px){.kd-wechat-brand{margin-bottom:16px}.kd-wechat-card{padding-top:22px}.kd-wechat-qr-stage{margin-top:16px}.kd-wechat-guide{margin-top:16px}.kd-wechat-footer{padding-top:12px;padding-bottom:13px;margin-top:15px}}
@media(prefers-reduced-motion:reduce){.kd-wechat-spinner,html.kd-customer-auth .kd-boot-customer{animation:none}.kd-wechat-dialog{animation:none!important;transition:none!important}}
/* The homepage remains behind this same-origin native dialog. */
html.kd-customer-auth,html.kd-customer-auth body{--background:#fff;--foreground:#17263c;background:#fff!important;color-scheme:light!important}
html.kd-login-embed,html.kd-login-embed body{background:transparent!important;color-scheme:light!important}
html.kd-login-embed #root{visibility:hidden}
html.kd-login-embed body:has(.kd-wechat-dialog) .fixed.inset-0[data-state="open"]{background:transparent;backdrop-filter:none}
html.kd-login-embed .kd-wechat-dialog{width:min(420px,calc(100vw - 32px));max-width:420px;animation:none!important;transition:none!important}
html.kd-login-embed body:has(.kd-wechat-dialog) .fixed.inset-0[data-state="open"]{animation:none!important;transition:none!important}
html.kd-login-embed .kd-wechat-card{padding-top:40px;background:#fff}
html.kd-login-embed .kd-wechat-brand{justify-content:center;margin-bottom:24px}
html.kd-login-embed .kd-wechat-heading{text-align:center}
html.kd-login-embed .kd-wechat-heading h2{font-size:24px}
html.kd-login-embed .kd-wechat-qr-stage{margin-top:26px}
html.kd-login-embed .kd-wechat-qr-frame{width:244px;height:244px;padding:12px;border-radius:16px;box-shadow:none}
html.kd-login-embed .kd-wechat-qr-frame:before,html.kd-login-embed .kd-wechat-qr-frame:after{display:none}
html.kd-login-embed .kd-wechat-status{display:none}
html.kd-login-embed .kd-wechat-qr-tools{margin-top:12px}
html.kd-login-embed .kd-wechat-qr-tools>span{display:none}
html.kd-login-embed .kd-wechat-guide{display:block;margin-top:18px;padding:0;text-align:center;border:0;background:none}
html.kd-login-embed .kd-wechat-guide-icon{display:none}
html.kd-login-embed .kd-wechat-guide p{font-size:11px;color:#8190a5}
html.kd-login-embed .kd-wechat-guide strong{font-weight:400;color:inherit}
html.kd-login-embed .kd-wechat-footer{margin-top:16px;padding:14px 25px 18px;background:#fff}
@media(max-height:650px){html.kd-login-embed .kd-wechat-card{padding-top:24px}html.kd-login-embed .kd-wechat-brand{margin-bottom:16px}html.kd-login-embed .kd-wechat-qr-stage{margin-top:18px}}
