/* Shared editor/live bubble styles, extracted from channels.css. */
@font-face{font-family:EmichatInter;src:url('../../assets/fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
.emichat-bubble,.emichat-launcher{font-family:EmichatInter,Inter,Arial,sans-serif;font-size:14px;font-weight:450;line-height:20px;color:#1d1d1d;box-sizing:border-box}
.emichat-bubble *,.emichat-launcher *{box-sizing:border-box}
.emichat-bubble{margin:0;border:0;border-radius:24px;height:600px;width:100%;background:#fff;box-shadow:0 3px 14px #00000026;position:relative;overflow:hidden;display:flex;flex-direction:column;text-align:start}
.emichat-bubble button,.emichat-bubble textarea,.emichat-bubble input,.emichat-launcher button{font:inherit}
.emichat-bubble button{cursor:pointer}
.emichat-bubble button:focus-visible,.emichat-launcher:focus-visible{outline:2px solid #777;outline-offset:2px}
.emichat-bubble .channel-chat-messages{flex:1;min-height:0;margin-top:8px;padding:0 0 16px;overflow:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:16px}
.emichat-bubble .channel-chat-messages::-webkit-scrollbar{display:none}
.emichat-bubble .channel-preview-welcome,.emichat-bubble .channel-message{display:flex;align-items:flex-start;gap:8px;margin:0;margin-inline:16px 64px;flex-shrink:0}
.emichat-bubble .channel-preview-welcome b,.emichat-bubble .channel-message b{background:var(--bubble-color,#000);color:#fff;border-radius:50%;width:32px;height:32px;min-width:32px;display:grid;place-items:center;font-size:14px;font-weight:600;line-height:20px}
.emichat-bubble .channel-welcome-copy{flex:1;min-width:0}
.emichat-bubble .channel-welcome-copy>span{display:block;background:#f4f4f4;padding:8px 12px;border-radius:12px;line-height:22.75px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.emichat-bubble .channel-welcome-copy>small{display:block;margin:4px 0 0;padding:4px 0;height:32px;line-height:24px;font-size:12px;color:#1d1d1d}
.emichat-bubble .channel-message.visitor{margin:0;margin-inline:64px 16px;align-self:stretch}
.emichat-bubble .channel-message.visitor .channel-welcome-copy{display:flex;justify-content:flex-end}
.emichat-bubble .channel-message.visitor span{background:var(--bubble-color,#000);color:#fff;max-width:100%}
.emichat-bubble .channel-preview-suggestions{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 16px;flex-shrink:0}
.emichat-bubble .channel-preview-suggestions:empty{display:none}
.emichat-bubble .channel-preview-suggestions button{border:0;background:#f4f4f4;border-radius:12px;padding:8px 12px;font-size:14px;line-height:20px;color:#1d1d1d;max-width:100%;text-align:center}
.emichat-bubble .channel-preview-disclaimer{color:#aaa;text-align:center;font-size:12px;line-height:16px;margin:0 16px}
.emichat-bubble .channel-preview-disclaimer p{margin:0}
.emichat-bubble .channel-chat-composer{position:relative;left:auto;right:auto;bottom:auto;flex-shrink:0;height:136.8px;padding:28px 20px;border:0;margin:0;background:#fff;border-radius:24px 24px 0 0;box-shadow:-4px -4px 10px #0000001a;color:#717171}
.emichat-bubble .channel-composer-placeholder{display:block;width:100%;height:40px;min-height:40px;max-height:120px;resize:none;overflow:auto;border:0;border-radius:0;outline:0;background:transparent;padding:0;margin:0;color:#1d1d1d;font-size:14px;line-height:20px}
.emichat-bubble .channel-composer-placeholder::placeholder{color:#8b919e;opacity:1}
.emichat-bubble .channel-composer-tools{display:flex;align-items:center;gap:0;margin:4.8px 0 0;height:36px}
.emichat-bubble .channel-composer-tools>span{flex:1}
.emichat-bubble .channel-composer-tools button{width:36px;height:36px;border:0;background:transparent;color:#717171;padding:0;display:grid;place-items:center}
.emichat-bubble .channel-composer-tools button svg{width:24px;height:24px;opacity:.66}
.emichat-bubble .channel-composer-tools .channel-send svg{width:36px;height:36px;opacity:1}
.emichat-bubble .channel-composer-tools .channel-send:disabled svg{opacity:.15}
.emichat-bubble button:disabled{cursor:default}
.emichat-bubble .channel-chat-powered{position:relative;bottom:auto;left:auto;right:auto;height:32px;min-height:32px;background:#fafafa;display:flex;gap:4px;align-items:center;justify-content:center;color:#999;font-size:12px;line-height:16px}
.emichat-bubble .channel-chat-powered svg{height:15px;width:15px;opacity:.7}
.emichat-bubble .notice{font-size:12px;line-height:18px;color:#888;text-align:center;margin:0 16px}
.emichat-bubble .channel-chat-extra{display:flex;flex-direction:column}
.emichat-bubble .channel-chat-extra:empty{display:none}
.emichat-bubble .new-chat{border:0;border-top:1px solid #eee;background:#fff;color:#717171;padding:8px;font-size:12px}
.emichat-bubble .new-chat[hidden]{display:none}
.emichat-bubble .lead{padding:10px 16px;display:flex;align-items:center;gap:8px;font-size:12px}
.emichat-bubble .lead input{width:100%;min-width:0;border:1px solid #ddd;border-radius:6px;padding:8px}
.emichat-bubble .lead button{background:#222;color:#fff;border:0;border-radius:6px;padding:8px}
.emichat-launcher{display:block;position:relative;height:60px;margin:22px 0 0 auto;width:min(340px,100%);padding:2px;border:0;border-radius:32px;background:linear-gradient(105deg,#ffd8ec,#fff,#ffefd9);box-shadow:0 0 19px #ffcee2,0 4px 12px #0000000d;cursor:pointer}
.emichat-launcher .channel-typebar-inner{height:100%;border-radius:30px;background:#fff;display:flex;align-items:center;gap:11px;padding:0 10px 0 13px;color:#7d8290;font-size:14px}
.emichat-launcher .channel-typebar-inner>svg{width:19px;height:21px;opacity:.75}
.emichat-launcher .channel-typebar-placeholder{flex:1;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emichat-launcher .channel-launcher-tools{display:flex;align-items:center;gap:16px}
.emichat-launcher .channel-launcher-tools>svg{width:19px;height:19px;opacity:.66}
.emichat-launcher .channel-send{position:relative;display:flex}
.emichat-launcher .channel-send svg{width:36px;height:36px;opacity:.25}
.emichat-launcher .channel-send i{position:absolute;right:-7px;top:-5px;width:18px;height:18px;background:var(--bubble-notification,#25D339);border-radius:50%;color:#fff;font-size:11px;font-weight:600;font-style:normal;display:grid;place-items:center}
.emichat-launcher .launcher-close-icon{display:none;width:24px;height:24px}
.emichat-launcher.is-circle,.emichat-launcher.is-open{width:48px;height:48px;padding:12px;background:var(--bubble-color,#000);box-shadow:0 3px 12px #0003;border-radius:50%;color:white}
.emichat-launcher.is-circle>svg{width:24px;height:24px;color:#fff}
.emichat-launcher.is-circle>svg{width:24px;height:24px}
.emichat-launcher.is-open>:not(.launcher-close-icon){display:none}
.emichat-launcher.is-open .launcher-close-icon{display:block}
.emichat-launcher[data-size="Small"].is-circle,.emichat-launcher[data-size="Small"].is-open{width:40px;height:40px;padding:8px}
.emichat-launcher[data-size="Large"].is-circle,.emichat-launcher[data-size="Large"].is-open{width:56px;height:56px;padding:16px}
.emichat-launcher.was-opened .channel-send i{display:none}

.emichat-bubble .channel-composer-tools .channel-send{color:var(--bubble-color,#000)}

.emichat-launcher .channel-custom-arrow{font-size:24px;line-height:24px;color:white}

.emichat-launcher.launcher-classic>svg:not(.launcher-close-icon){fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.channel-image-preview{position:relative;display:inline-flex;margin:0 0 8px 8px;width:48px;height:48px;flex:none}.channel-image-preview>img{width:48px;height:48px;object-fit:cover;border-radius:6px}.channel-image-preview>button{position:absolute;top:-4px;right:-4px;width:16px;height:16px;padding:0;border:0;background:#000;color:white;border-radius:50%;display:grid;place-items:center}.channel-image-preview svg{width:14px;height:14px}.channel-message-image{display:block;max-width:100%;max-height:240px;border-radius:8px;margin-bottom:6px;object-fit:contain}

.channel-chat-composer:has(.channel-image-preview),.testchat-composer:has(.channel-image-preview){height:auto!important;min-height:193px}
.channel-agent-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

.bubble-verification{position:absolute;inset:0;z-index:10;background:white;border-radius:24px;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:12px;color:#303030}.bubble-verification p{margin:0;font-size:14px}.bubble-verification button{align-self:flex-start;padding:8px 12px;border:1px solid #ddd;border-radius:8px;cursor:pointer}.bubble-verification [hidden]{display:none}

.emichat-bubble .lead{display:grid;gap:8px}.emichat-bubble .lead>p{margin:0;font-size:12px;line-height:18px}.emichat-bubble .lead .lead-consent{display:flex;align-items:flex-start;gap:8px}.emichat-bubble .lead .lead-consent input{width:auto;flex:none;margin-top:2px}.lead-actions{display:flex;gap:8px}.emichat-bubble .lead [data-lead-skip]{background:transparent;color:inherit;border:1px solid #ddd}.emichat-bubble .lead [data-lead-error]{color:#a42121}

.emichat-bubble .lead{position:relative}.emichat-bubble .lead .lead-cancel{position:absolute;right:12px;top:8px;width:24px;height:24px;padding:0;border:0;background:transparent;color:#999;font-size:20px}.emichat-bubble .lead>strong{padding-right:28px}

.emichat-voice-controls[hidden],.emichat-voice-error[hidden],.voice-spinner[hidden],.channel-composer-tools[hidden],.testchat-composer-tools[hidden]{display:none!important}
.emichat-voice-controls{display:flex;align-items:center;width:100%;height:36px;gap:8px}.emichat-voice-controls button{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border:0;border-radius:50%;background:#e7e7e7;color:#1d1d1d;cursor:pointer;padding:10px}.emichat-voice-controls [data-voice-finish]{background:#000;color:#fff}.emichat-voice-controls [data-voice-cancel] svg{width:12px;height:12px}.emichat-voice-controls canvas{flex:1;min-width:0;height:36px}.emichat-voice-controls [data-voice-timer]{font:12px/18px EmichatInter,Inter,Arial,sans-serif;font-variant-numeric:tabular-nums;width:32px;text-align:right}.emichat-voice-error{color:#b42318;font:12px/18px EmichatInter,Inter,Arial,sans-serif;margin:0 0 12px}.voice-spinner{width:18px;height:18px;border:2px solid white;border-bottom-color:transparent;border-radius:50%;animation:voice-spin .8s linear infinite}.channel-chat-composer:has(.emichat-voice-controls:not([hidden])),.testchat-composer:has(.emichat-voice-controls:not([hidden])){height:auto!important;min-height:92px}@keyframes voice-spin{to{transform:rotate(360deg)}}

[data-voice-active] textarea{display:none!important}
.channel-message-file{display:block;margin:0 0 6px;padding:0;border:0;background:none;color:inherit;text-align:left;text-decoration:underline;overflow-wrap:anywhere;cursor:pointer}
