/* Isolated client support surface; logical spacing also supports Arabic RTL. */
#em-support{--ems-navy:#071d35;--ems-ink:#15324a;--ems-muted:#536b7e;--ems-line:#dce5ec;--ems-gold:#c9a66a;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--ems-ink);position:relative;z-index:1400;text-align:start}
#em-support *,#em-support *::before,#em-support *::after{box-sizing:border-box}
#em-support [hidden]{display:none!important}
#em-support button,#em-support input,#em-support textarea{font:inherit;letter-spacing:normal}
#em-support button{cursor:pointer;text-align:center;touch-action:manipulation;line-height:1.35}
#em-support button:disabled{cursor:default;opacity:.5}
#em-support button:focus-visible,#em-support a:focus-visible,#em-support textarea:focus-visible,#em-support input:focus-visible,#em-support [tabindex]:focus-visible{outline:3px solid #2783b9;outline-offset:3px}
#em-support svg{display:block;width:21px;height:21px;flex:0 0 21px}
#em-support .ems-launch{position:fixed;inset-inline-end:24px;bottom:24px;display:flex;align-items:center;gap:13px;max-width:min(370px,calc(100vw - 32px));min-height:64px;border:1px solid #657184;border-radius:18px;background:var(--ems-navy);color:#fff;padding:11px 19px 11px 14px;box-shadow:0 7px 26px #06182933;text-align:start;transition:transform .15s ease,box-shadow .15s ease}
#em-support .ems-launch:hover{transform:translateY(-2px);box-shadow:0 10px 30px #06182940}
#em-support .ems-launch-icon{display:grid;place-items:center;width:36px;height:36px;color:var(--ems-gold)}
#em-support .ems-launch-icon svg{width:28px;height:28px}
#em-support .ems-launch-copy{display:grid;gap:2px}
#em-support .ems-launch strong{font-size:14px;font-weight:650}
#em-support .ems-launch small{font-size:11px;color:#c5d4df;font-weight:400}
#em-support .ems-panel{position:fixed;inset-inline-end:22px;bottom:22px;display:flex;flex-direction:column;width:420px;max-width:calc(100vw - 32px);height:680px;max-height:calc(100vh - 44px);max-height:calc(100dvh - 44px);border:1px solid #bdcdd9;border-radius:22px;background:#fff;box-shadow:0 20px 70px #071d3540,0 3px 16px #071d3510;overflow:hidden;isolation:isolate}
#em-support .ems-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:21px 18px;background:var(--ems-navy);color:#fff;position:relative}
#em-support .ems-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #7f785f;border-radius:13px;background:#132d45;color:var(--ems-gold)}
#em-support .ems-mark svg{width:24px;height:24px}
#em-support .ems-heading{flex:1;min-width:0}
#em-support .ems-brand{display:block;font-size:9px;font-weight:650;letter-spacing:.13em;color:#cfb589;line-height:1.6}
#em-support .ems-heading h2{font:500 21px/1.28 Georgia,"Times New Roman",serif;color:#fff;letter-spacing:0;margin:3px 0 4px}
#em-support .ems-heading p{font-size:11px;color:#c1d1df;margin:0}
#em-support .ems-icon-button{align-self:flex-start;display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;margin:-7px -6px 0 0;color:#d8e5ee;border:0;background:transparent;border-radius:9px}
#em-support .ems-icon-button:hover{background:#284159}
#em-support .ems-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex:0 0 auto;padding:10px 18px;border-bottom:1px solid var(--ems-line);background:#f7fafc;font-size:10px;line-height:1.5}
#em-support .ems-state{display:flex;align-items:baseline;gap:5px;font-weight:650;color:#325871;flex:0 1 50%}
#em-support .ems-state::before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#587b92;align-self:center}
#em-support .ems-state[data-state="waiting"]::before{background:#9e702c}
#em-support .ems-state[data-state="human"]::before{background:#22764f}
#em-support .ems-state[data-state="closed"]::before{background:#7d8992}
#em-support .ems-reference{color:var(--ems-muted);text-align:end;overflow-wrap:anywhere;flex:1}
#em-support .ems-intro{padding:23px 22px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
#em-support .ems-intro-copy{font-size:15px;line-height:1.7;color:#29485f;margin:0 0 18px}
#em-support .ems-availability{font-size:12px;line-height:1.6;margin:0 0 19px;padding:11px 12px;border:1px solid #dce8ee;border-radius:10px;background:#f4f8fa;color:#33596f}
#em-support .ems-consent{display:flex;align-items:flex-start;gap:11px;padding:0;margin:0 0 22px;font-size:11px;font-weight:400;color:var(--ems-muted);line-height:1.7;cursor:pointer}
#em-support .ems-consent input{appearance:auto;display:block;flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:var(--ems-navy);cursor:pointer}
#em-support .ems-primary{display:block;min-height:45px;border:1px solid var(--ems-navy);border-radius:10px;padding:11px 16px;background:var(--ems-navy);color:#fff;font-weight:600;font-size:13px;width:100%}
#em-support .ems-primary:hover:not(:disabled),#em-support .ems-send:hover:not(:disabled){background:#164767;border-color:#164767}
#em-support .ems-text-button{background:transparent;border:0;color:#245f80;text-decoration:underline;text-underline-offset:3px;border-radius:6px;padding:9px 5px;min-height:38px;font-size:12px}
#em-support #em-support-retry{margin:6px auto 0}
#em-support .ems-chat{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#em-support .ems-log{flex:1;min-height:64px;overflow-y:auto;padding:19px 18px 12px;background:linear-gradient(180deg,#fff 0,#f8fafc 100%);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6d4de transparent}
#em-support .ems-empty{color:#526e82;font-size:14px;line-height:1.7;margin:21px 8px;text-align:center}
#em-support .ems-message{width:fit-content;max-width:94%;border:1px solid #dce6ed;border-radius:13px 13px 13px 3px;padding:11px 13px;background:#fff;margin:0 0 12px;overflow-wrap:anywhere}
#em-support .ems-message-heading{display:flex;align-items:baseline;gap:10px;justify-content:space-between;margin-bottom:5px}
#em-support .ems-message-heading strong{font-size:10px;line-height:1.45;font-weight:650;color:#395972}
#em-support .ems-message-heading time{font-size:9px;color:#6b7f8f;white-space:nowrap}
#em-support .ems-message p{font-size:13px;line-height:1.7;margin:0;white-space:pre-wrap;color:var(--ems-ink)}
#em-support .ems-message-user{margin-inline-start:auto;border-radius:13px 13px 3px 13px;background:#edf3f7;border-color:#d8e5ed}
#em-support .ems-message-operator{border-color:#afcfc5;background:#f4faf7}
#em-support .ems-message-system{margin-inline:auto;background:transparent;border:0;border-radius:0;max-width:100%;padding:4px 5px 9px;text-align:center}
#em-support .ems-message-system .ems-message-heading{justify-content:center}
#em-support .ems-message-system p{font-size:11px;color:#5c7182;line-height:1.65}
#em-support .ems-message-system time{display:none}
#em-support .ems-compose{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto;padding:12px 16px 9px;border-top:1px solid var(--ems-line);margin:0;background:#fff}
#em-support .ems-compose textarea{display:block;flex:1;min-width:0;max-height:140px;min-height:58px;width:100%;resize:none;border:1px solid #b9cbd9;border-radius:11px;padding:10px 12px;background:#fff;color:var(--ems-ink);font-size:16px;line-height:1.4;margin:0;scrollbar-width:thin}
#em-support .ems-compose textarea::placeholder{font-size:13px;color:#667e90;line-height:1.5}
#em-support .ems-compose textarea:read-only{background:#f4f7f9}
#em-support .ems-send{display:grid;place-items:center;min-width:65px;max-width:100px;min-height:44px;flex:0 0 auto;border:1px solid var(--ems-navy);border-radius:10px;padding:10px;background:var(--ems-navy);color:#fff;font-size:12px;font-weight:650;margin-bottom:1px;overflow-wrap:anywhere}
#em-support .ems-toolbar{display:flex;align-items:stretch;gap:8px;flex:0 0 auto;padding:0 16px 11px;background:#fff}
#em-support .ems-secondary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 10px;border:1px solid #d4dfe7;background:#fff;color:#36556d;border-radius:9px;font-size:11px;flex:1;min-width:0}
#em-support .ems-secondary svg{width:17px;height:17px;flex-basis:17px}
#em-support .ems-secondary:hover:not(:disabled){background:#f0f6f9;border-color:#95b3c6}
#em-support .ems-chat-availability{flex:0 0 auto;font-size:11px;color:#5d7181;margin:0;padding:0 18px 10px;line-height:1.65}
#em-support .ems-contact{padding:15px 18px 10px;border-top:1px solid var(--ems-line);background:#fff;flex:0 1 auto;overflow-y:auto;min-height:140px}
#em-support .ems-contact h3{font-size:15px;line-height:1.4;margin:0 0 7px;font-weight:650;color:var(--ems-ink)}
#em-support .ems-contact p{font-size:11px;color:var(--ems-muted);margin:0 0 10px;line-height:1.6}
#em-support .ems-contact label{display:block;font-size:11px;color:#3f5b70;margin:10px 0 5px;font-weight:600}
#em-support .ems-contact input{display:block;width:100%;border:1px solid #b9cbd9;border-radius:9px;padding:10px 11px;background:#fff;font-size:16px;line-height:1.4;color:var(--ems-ink)}
#em-support .ems-contact input::placeholder{font-size:12px;color:#667e90}
#em-support .ems-contact input[aria-invalid="true"]{border-color:#a33b36}
#em-support .ems-contact .ems-field-error{font-size:11px;color:#a03531;margin:5px 0 0}
#em-support .ems-contact-actions{display:flex;gap:9px;margin-top:12px;align-items:center}
#em-support .ems-contact-actions .ems-primary{flex:1;width:auto;font-size:11px}
#em-support .ems-contact-actions .ems-text-button{flex:0 0 auto}
#em-support .ems-voice{border-top:1px solid #bad8d3;background:#f0f8f5;padding:12px 16px;flex:0 0 auto}
#em-support .ems-voice-status{display:flex;gap:9px;align-items:center;font-size:11px;color:#295749;min-height:23px;margin-bottom:10px}
#em-support #em-support-voice-phase{flex:1}
#em-support #em-support-voice-time{font-variant-numeric:tabular-nums;color:#486e60;font-size:11px}
#em-support .ems-wave{height:22px;display:flex;align-items:center;gap:3px;flex:0 0 22px}
#em-support .ems-wave i{display:block;width:3px;border-radius:2px;background:#347d65;height:8px}
#em-support .ems-wave i:nth-child(2){height:17px}
#em-support .ems-wave i:nth-child(3){height:13px}
#em-support .ems-wave i:nth-child(4){height:6px}
#em-support .ems-voice[data-phase="connected"]:not(.ems-is-muted) .ems-wave i{animation:ems-wave 1.1s ease-in-out infinite alternate}
#em-support .ems-wave i:nth-child(2){animation-delay:-.7s!important}
#em-support .ems-wave i:nth-child(3){animation-delay:-.4s!important}
#em-support .ems-wave i:nth-child(4){animation-delay:-.2s!important}
#em-support .ems-is-muted .ems-wave i{background:#7b8d86}
#em-support .ems-voice-controls{display:flex;align-items:stretch;gap:8px}
#em-support .ems-voice-controls .ems-secondary{background:#fff;border-color:#bad0c6;font-size:11px}
#em-support .ems-stop{display:flex;justify-content:center;align-items:center;gap:6px;flex:1;min-height:42px;padding:8px;border:1px solid #d6b6b3;border-radius:9px;background:#fff8f7;color:#923b35;font-size:11px}
#em-support .ems-stop svg{width:16px;height:16px;flex-basis:16px}
#em-support .ems-stop:hover{background:#fae9e6}
#em-support #em-support-audio-play{display:block;margin:5px auto 0;color:#245c4a}
#em-support .ems-new{margin:12px 18px;width:calc(100% - 36px);flex:0 0 auto}
#em-support .ems-notice{flex:0 1 auto;max-height:100px;overflow:auto;padding:10px 17px;margin:0;border-top:1px solid #dce5ec;background:#f6f9fb;font-size:11px;line-height:1.65;color:#3c6178}
#em-support .ems-notice.ems-error{background:#fff7f4;color:#9a4038;border-top-color:#ead3cd}
#em-support .ems-availability.ems-error{background:#fff7f4;color:#95443a;border-color:#ead3cd}
#em-support .ems-footer{display:flex;flex:0 0 auto;justify-content:center;align-items:center;padding:9px 14px;border-top:1px solid #e7edf1;background:#fff}
#em-support .ems-footer a{font-size:10px;line-height:1.6;color:#597285;text-underline-offset:3px;text-decoration:underline;padding:2px}
#em-support .ems-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#em-support[dir="rtl"] .ems-message{border-radius:13px 13px 3px 13px}
#em-support[dir="rtl"] .ems-message-user{border-radius:13px 13px 13px 3px}
#em-support[dir="rtl"] .ems-icon-button{margin-inline-start:0;margin-inline-end:-6px}
#em-support[lang="zh"]{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
#em-support[lang="zh"] .ems-heading h2{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:20px}
@keyframes ems-wave{from{transform:scaleY(.5)}to{transform:scaleY(1)}}
@media(max-width:600px){#em-support .ems-launch{inset-inline-end:14px;bottom:14px;max-width:calc(100vw - 28px);min-height:56px;border-radius:16px;padding:9px 14px 9px 10px;gap:8px}#em-support .ems-launch strong{font-size:12px}#em-support .ems-launch small{font-size:10px}#em-support .ems-launch-icon{width:28px;height:28px}#em-support .ems-launch-icon svg{width:24px;height:24px}#em-support .ems-panel{inset-inline-end:8px;bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100vw - 16px);width:420px;height:700px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-bottom));border-radius:18px}#em-support .ems-header{padding:17px 14px;gap:9px}#em-support .ems-heading h2{font-size:20px}#em-support .ems-mark{width:36px;height:36px;flex-basis:36px;border-radius:11px}#em-support .ems-meta{padding:9px 13px;font-size:9px}#em-support .ems-intro{padding:20px 18px}#em-support .ems-intro-copy{font-size:14px}#em-support .ems-log{padding:14px 12px 6px}#em-support .ems-compose{padding:10px 11px 8px;gap:6px}#em-support .ems-send{min-width:57px;max-width:82px;padding:10px 8px;font-size:11px}#em-support .ems-toolbar{padding:0 11px 10px;gap:6px}#em-support .ems-secondary{padding:8px;font-size:10px}#em-support .ems-contact{padding:13px 14px 9px}#em-support .ems-notice{max-height:85px;padding:8px 13px}#em-support .ems-chat-availability{padding:0 13px 8px}#em-support .ems-footer{padding:7px 12px}}
@media(max-width:360px){#em-support .ems-mark{display:none}#em-support .ems-heading h2{font-size:18px}#em-support .ems-brand{font-size:8px}#em-support .ems-toolbar .ems-secondary svg{display:none}#em-support .ems-consent{font-size:10px}#em-support .ems-intro{padding:15px}#em-support .ems-message{max-width:97%}}
@media(prefers-reduced-motion:reduce){#em-support .ems-launch{transition:none}#em-support .ems-wave i{animation:none!important}}
