.edge-chat-root{position:fixed;right:20px;bottom:20px;z-index:99990;color:#f8fafc;font:14px/1.45 Inter,system-ui,Arial,sans-serif}
.edge-chat-root *{box-sizing:border-box}
.ec-toggle{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:0 18px;border:0;border-radius:999px;background:#22d3ee;color:#07111f;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;box-shadow:0 8px 24px #0005;cursor:pointer;white-space:nowrap}
.ec-toggle-icon{display:block;flex:0 0 auto;width:19px;height:19px}
.ec-toggle:focus-visible,.ec-panel button:focus-visible,.ec-panel a:focus-visible,.ec-panel input:focus-visible,.ec-panel select:focus-visible,.ec-panel textarea:focus-visible,.ec-invite button:focus-visible{outline:3px solid #9af2ff;outline-offset:3px}
.ec-panel{position:absolute;right:0;bottom:64px;display:flex;flex-direction:column;width:min(390px,calc(100vw - 32px));height:min(570px,calc(100vh - 100px));height:min(570px,calc(100dvh - 100px));min-height:260px;overflow:hidden;border:1px solid #355064;border-radius:20px;background:#0b1729;box-shadow:0 20px 70px #0009}
.ec-panel[hidden],.ec-start[hidden],.ec-send[hidden],.ec-compose[hidden],.ec-invite[hidden]{display:none!important}
.ec-panel header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#11273b}
.ec-chat-person{display:flex;align-items:center;gap:11px;min-width:0}
.ec-chat-person img{flex:0 0 auto;width:44px;height:44px;border:2px solid #22d3ee;border-radius:50%;background:#20354b;object-fit:cover;object-position:center 28%}
.ec-chat-person h2{margin:0;color:#22d3ee;font-size:15px;line-height:1.25;font-weight:800}
.ec-chat-person small{display:block;margin-top:4px;color:#c5d5df;font-size:12px;line-height:1.3}
.ec-close{display:grid;flex:0 0 44px;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:#fff;font:400 28px/1 system-ui;cursor:pointer}
.ec-close:hover{background:#ffffff12}
.ec-messages{display:flex;flex:1 1 auto;flex-direction:column;gap:9px;min-height:0;overflow:auto;padding:12px;overscroll-behavior:contain}
.ec-messages:empty{display:none}
.ec-msg{max-width:90%;padding:10px 12px;border-radius:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.ec-admin{align-self:flex-start;background:#22384e;border-radius:13px 13px 13px 4px}
.ec-visitor{align-self:flex-end;background:#116e83;border-radius:13px 13px 4px 13px}
.ec-compose,.ec-start{display:flex;flex:0 1 auto;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;padding:14px;overscroll-behavior:contain}
.ec-dialogue{display:flex;flex-direction:column;gap:8px;max-height:170px;overflow-y:auto;padding:1px 1px 5px;scrollbar-width:thin}
.ec-dialogue-bubble{align-self:flex-start;max-width:96%;padding:10px 12px;border:1px solid #36566b;border-radius:13px 13px 13px 4px;background:#22384e;color:#edf5fb;line-height:1.5;overflow-wrap:anywhere}
.ec-dialogue-visitor{align-self:flex-end;border-color:#168ca5;border-radius:13px 13px 4px 13px;background:#116e83}
.ec-intents{display:flex;flex-wrap:wrap;gap:7px}
.ec-intents button{min-height:40px;padding:8px 11px;border:1px solid #456b7b;border-radius:999px;background:#153247;color:#e4f2f7;font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
.ec-intents button:hover,.ec-intents button[aria-pressed="true"]{border-color:#22d3ee;background:#214c60;color:#fff}
.ec-compose label,.ec-start label{display:block;color:#d9e7ee;font-size:14px;font-weight:600}
.ec-compose textarea,.ec-start input,.ec-start select,.ec-send textarea{display:block;width:100%;min-height:46px;margin-top:5px;padding:11px 12px;border:1px solid #456078;border-radius:11px;background:#13283c;color:#fff;font:inherit}
.ec-compose textarea,.ec-send textarea{resize:vertical;min-height:78px;max-height:150px}
.ec-compose textarea::placeholder,.ec-send textarea::placeholder,.ec-start input::placeholder{color:#9db0bf;opacity:1}
.ec-help,.ec-start p{margin:0;color:#c5d5df;font-size:13px;line-height:1.5}
.ec-compose .ec-next,.ec-start button[type="submit"],.ec-send button[type="submit"]{min-height:48px;padding:11px 16px;border:0;border-radius:11px;background:#22d3ee;color:#07111f;font-family:inherit;font-size:15px;font-weight:750;line-height:1.2;cursor:pointer}
.ec-panel button:disabled{cursor:wait;opacity:.72}
.ec-start{flex:1 1 auto}
.ec-start h3{margin:0;color:#fff;font-size:19px;line-height:1.3}
.ec-start .ec-consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5;font-weight:400}
.ec-start .ec-consent input{flex:0 0 18px;width:18px;min-height:18px;margin:2px 0 0;padding:0;accent-color:#22d3ee}
.ec-start .ec-consent a{color:#8ceeff;text-decoration:underline;text-underline-offset:2px}
.ec-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important}
.ec-actions{display:flex;gap:9px;margin-top:2px}
.ec-actions button{min-height:46px;border:0;border-radius:11px;padding:10px 14px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer}
.ec-actions .ec-back{flex:0 0 96px;background:#243e51;color:#fff}
.ec-actions button[type="submit"]{flex:1;background:#22d3ee;color:#07111f}
.ec-send{display:flex;flex:0 0 auto;flex-direction:column;gap:9px;padding:11px 13px 13px;border-top:1px solid #263e52;background:#0b1729}
.ec-attachment-row{display:flex;align-items:center;gap:9px;min-width:0}
.ec-attach-button{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;min-height:38px;padding:7px 11px;border:1px solid #456078;border-radius:10px;background:#13283c;color:#e3edf3;font-size:13px;font-weight:650;cursor:pointer}
.ec-attach-button>span{color:#22d3ee;font-size:18px;line-height:1}
.ec-attach-button input{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;opacity:0;cursor:pointer}
.ec-attach-button:focus-within{outline:3px solid #9af2ff;outline-offset:3px}
.ec-attachment-status{min-width:0;color:#b6c7d2;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.ec-send .ec-visually-hidden,.ec-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ec-send button[type="submit"]{align-self:stretch}
.ec-status{flex:0 0 auto;margin:0;padding:0 14px 10px;color:#d5e2ed;font-size:13px;line-height:1.4}
.ec-status:empty{display:none}
.ec-status.is-error{color:#ffc5c5}
.ec-file-link{color:#8ceeff;text-decoration:underline;text-underline-offset:2px}
.ec-invite{position:absolute;right:0;bottom:66px;width:min(300px,calc(100vw - 28px));padding:14px 46px 14px 14px;border:1px solid #355064;border-radius:16px;background:#11273b;box-shadow:0 16px 40px #0007}
.ec-invite-person{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.ec-invite-person img{flex:0 0 auto;width:46px;height:46px;border:2px solid #22d3ee;border-radius:50%;object-fit:cover;object-position:center 28%}
.ec-invite-person strong{display:block;margin:0 0 3px;color:#22d3ee;font-size:14px;line-height:1.25}
.ec-invite-person small{display:block;color:#c5d5df;font-size:12px;line-height:1.3}
.ec-invite-messages{display:grid;gap:8px}
.ec-invite-messages>span{display:block;color:#e2edf3;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ec-invite .ec-invite-followup{padding:9px 10px;border:1px solid #28495e;border-radius:12px;background:#0b1729;color:#d7e8ef}
.ec-invite .ec-invite-followup[hidden]{display:none!important}
.ec-invite-open{min-height:42px;margin-top:10px;padding:8px 12px;border:0;border-radius:10px;background:#22d3ee;color:#07111f;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;cursor:pointer}
.ec-invite-close{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:9px;background:transparent;color:#fff;font:400 24px/1 system-ui;cursor:pointer}
.ec-invite-close:hover{background:#ffffff12}

@media(max-width:640px){
 .edge-chat-root{right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px))}
 .ec-toggle{min-height:48px;padding:0 15px;font-size:14px}
 .edge-chat-root.ec-open .ec-toggle{display:none}
 .ec-panel{position:fixed;right:max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));width:min(440px,calc(100vw - 24px));height:min(620px,calc(100vh - 24px));height:min(620px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);min-height:220px;border-radius:18px}
 .ec-panel header{padding:10px 12px}
 .ec-chat-person img{width:42px;height:42px}
 .ec-chat-person h2{font-size:14px}
 .ec-chat-person small{font-size:11px}
 .ec-compose,.ec-start{gap:9px;padding:12px}
 .ec-dialogue{max-height:130px}
 .ec-intents button{min-height:40px;padding:8px 10px;font-size:12px}
 .ec-send{padding:9px 10px max(10px,env(safe-area-inset-bottom,0px))}
 .ec-status{padding:0 12px 8px}
 .ec-invite{right:0;bottom:60px;width:min(300px,calc(100vw - 24px))}
}
@media(max-width:360px){
 .ec-chat-person{gap:8px}
 .ec-chat-person img{width:38px;height:38px}
 .ec-chat-person small{font-size:10px}
 .ec-actions .ec-back{flex-basis:78px}
 .ec-attachment-row{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){.ec-panel,.ec-toggle,.ec-invite{scroll-behavior:auto;transition:none!important}}

/* Keep the widget's header and size independent from the active theme styles. */
#edge-chat-root .ec-panel:not(.ec-has-messages){height:auto;min-height:0;max-height:min(570px,calc(100dvh - 100px))}
#edge-chat-root .ec-panel > header .ec-chat-person{flex:1 1 auto;min-width:0}
#edge-chat-root .ec-panel > header .ec-chat-person h2{max-width:100%;margin:0!important;overflow:hidden;color:#22d3ee!important;font-family:inherit!important;font-size:15px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:normal!important;text-overflow:ellipsis;text-transform:none!important;white-space:nowrap!important}
#edge-chat-root .ec-panel > header .ec-chat-person small{display:block;color:#c5d5df!important;font-family:inherit!important;font-size:12px!important;line-height:1.3!important}
.ec-enter-hint{margin:-5px 0 0!important;color:#91a6b7!important;font-size:11px!important;font-weight:400!important;line-height:1.35!important}
@media(max-width:640px){
 #edge-chat-root .ec-panel:not(.ec-has-messages){max-height:min(620px,calc(100dvh - 24px))}
 #edge-chat-root .ec-panel > header .ec-chat-person h2{font-size:14px!important}
}
