body .ma-emoji-toggle{position:absolute;left:3px;top:auto;bottom:2px;z-index:4;display:grid;place-items:center;width:36px;height:40px;min-width:36px;min-height:40px;padding:0;margin:0;border:0;border-radius:10px;background:transparent;color:#63816c;cursor:pointer;box-shadow:none}
.ma-emoji-toggle svg{width:22px;height:22px}.ma-emoji-toggle:hover,.ma-emoji-toggle[aria-expanded=true]{background:#e8eee8}
body .ma-emoji-panel{position:fixed;bottom:auto;left:10px;z-index:10000;width:min(300px,calc(100% - 20px));padding:10px;border:1px solid #dce5dd;border-radius:18px;background:#fff;box-shadow:0 8px 30px #20342d26;color:#254c39;font:14px/1.4 system-ui;max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain}
.ma-emoji-panel[hidden]{display:none!important}.ma-emoji-panel-head{display:flex;align-items:center;justify-content:space-between;padding-left:7px;margin-bottom:4px}
body .ma-emoji-panel button{display:grid;place-items:center;min-width:0;min-height:36px;width:100%;height:40px;padding:0;margin:0;background:transparent;border:0;border-radius:10px;box-shadow:none;color:inherit;cursor:pointer;font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";font-size:25px;line-height:1}
body .ma-emoji-panel-head button{width:36px;height:36px;font-size:24px}.ma-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
body .ma-emoji-panel button:hover,body .ma-emoji-panel button:focus-visible{background:#edf3e9;outline:2px solid #b9cbb8;outline-offset:-2px}
.ma-emoji-panel small:empty{display:none}.ma-emoji-panel small{display:block;padding:7px;color:#a54b37}

/* Same text row in the operator PWA and visitor widget. */
body .inputwrap,body .message-input-shell{position:relative!important;height:auto!important;min-height:44px!important;max-height:130px!important;min-width:0!important;align-self:end!important}
body #input,body #messageInput{box-sizing:border-box!important;width:100%!important;min-height:44px!important;max-height:130px!important;padding:11px 42px 11px 40px!important;font-size:16px!important;line-height:22px!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;resize:none!important}
body .inputwrap .mic{top:auto;bottom:5px}
body .compose{align-items:end}
body .msg .message-body{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
body .ma-emoji-toggle{box-sizing:border-box!important;left:3px!important;bottom:2px!important;top:auto!important;width:34px!important;height:40px!important;min-width:34px!important;min-height:40px!important;max-width:34px!important;max-height:40px!important;transform:none!important}
body .inputwrap.is-recording .ma-emoji-toggle{visibility:hidden}
body .ma-emoji-panel{box-sizing:border-box}

/* One 44px baseline for operator text, attachment, dictation and send. */
body .compose{grid-template-columns:44px 44px minmax(0,1fr) 44px;align-items:end}
body .compose .attach,body .compose .dictate,body .compose .send{width:44px;height:44px;min-height:44px;align-self:end;margin:0}
body .compose .inputwrap{display:block;line-height:0;margin:0;padding:0}
body .compose #input{display:block;padding-top:10px!important;padding-bottom:10px!important;vertical-align:top;margin:0}
body .compose .inputwrap .mic{width:34px;height:34px;top:auto;bottom:5px}
