/* Public Emma: compact desktop window, keyboard-aware mobile conversation. */
.bml-chat.bml-public-chat .bml-chat-panel{display:flex;flex-direction:column;width:var(--bml-chat-width,390px);max-width:calc(100vw - 32px);height:min(var(--bml-chat-height,620px),calc(100dvh - 100px));max-height:calc(100dvh - 30px);border-radius:16px;overflow:hidden;background:#fff}
.bml-public-chat .bml-chat-header{position:relative;display:flex;align-items:center;gap:9px;min-height:58px;padding:10px 12px;flex:none}
.bml-public-chat .bml-chat-header>img{width:34px;height:34px;border-width:2px;flex:none}
.bml-public-chat .bml-chat-header>div{flex:1;min-width:0}
.bml-public-chat .bml-chat-header strong{font-size:15px;line-height:1.25}.bml-public-chat .bml-chat-header small{font-size:11px;line-height:1.2;margin:1px 0 0}
.bml-public-chat .bml-chat-header [data-bml-chat-close]{width:34px;height:34px;min-width:34px;padding:7px;flex:none}
.bml-public-chat .bml-chat-body{flex:1;min-height:0;max-height:none;padding:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.bml-public-chat .bml-chat-message{font-size:var(--bml-chat-message-size,16px);line-height:1.45;padding:10px 12px;margin-bottom:9px;border-radius:12px;max-width:94%}
.bml-public-chat .bml-chat-actions{margin-top:9px;gap:6px}.bml-public-chat .bml-chat-action{min-height:40px;padding:8px 10px}
.bml-public-chat .bml-chat-quick{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0;margin:10px 0}
.bml-public-chat .bml-chat-quick button{min-width:0;min-height:42px;padding:8px;font-size:13px;line-height:1.2;border-radius:8px;white-space:normal}
.bml-public-chat .bml-chat-form{display:flex;gap:8px;align-items:center;flex:none;margin:0;padding:10px 12px;border-top:1px solid #e0e9ee;background:#fff}
.bml-public-chat .bml-chat-form input{flex:1;min-width:0;height:44px;font-size:16px;padding:9px 12px;border:1px solid #dce6ec;border-radius:23px;background:#f8fafb}
.bml-public-chat .bml-chat-form button{width:44px;height:44px;min-width:44px;border-radius:50%;padding:11px;flex:none}
.bml-public-chat .bml-chat-disclosure{flex:none;text-align:center;padding:0 12px 8px;font-size:10px;line-height:1.3;background:#fff}.bml-public-chat .bml-chat-disclosure a{font-size:10px}
.bml-public-chat .bml-chat-menu{position:static;margin-left:auto;flex:none}.bml-public-chat .bml-chat-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:34px;height:34px;cursor:pointer;color:#fff;font-size:23px}.bml-public-chat .bml-chat-menu>summary::-webkit-details-marker{display:none}
.bml-public-chat .bml-chat-menu .bml-chat-conversation-meta{position:absolute;top:52px;right:9px;z-index:5;display:block;width:230px;max-width:calc(100vw - 30px);padding:12px;background:#fff;border:1px solid #dce6ec;border-radius:9px;color:#294b61;box-shadow:0 8px 25px #14364a22}
.bml-public-chat .bml-chat-reset{font-size:13px!important;min-height:36px!important;text-align:left}
.bml-public-chat .bml-chat-context{flex:none;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:7px 12px;background:#f0f6f8;font-size:12px;line-height:1.3;color:#294b61}.bml-chat-context>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bml-chat-context>button{border:0;background:none;color:#087744;font-size:12px;min-height:30px;cursor:pointer}
.bml-public-chat .bml-chat-typing{font-size:12px;color:#687f90;padding:4px 8px}.bml-public-chat .bml-chat-new{flex:none;align-self:center;border:1px solid #c4dcd0;background:#f1faf5;color:#087744;border-radius:15px;font-size:12px;padding:5px 12px;cursor:pointer;margin:2px 0 5px}
.bml-public-chat .bml-chat-more{margin-top:7px}.bml-public-chat .bml-chat-more>summary{font-size:12px;color:#087744;cursor:pointer}.bml-public-chat .bml-chat-more p{font:inherit;white-space:pre-wrap;margin:8px 0 0}
.bml-public-chat [hidden]{display:none!important}
@media(max-width:767px){
 body.bml-public-chat-open{overflow:hidden;overscroll-behavior:none}
 .bml-chat.bml-public-chat .bml-chat-panel{position:fixed!important;top:var(--bml-chat-view-top,0px)!important;bottom:auto!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;height:var(--bml-chat-view-height,100dvh)!important;max-height:var(--bml-chat-view-height,100dvh)!important;border:0;border-radius:0;box-sizing:border-box;padding-top:env(safe-area-inset-top)}
 .bml-public-chat .bml-chat-body{padding:10px}.bml-public-chat .bml-chat-message{font-size:16px;padding:9px 11px;max-width:94%}
 .bml-public-chat .bml-chat-form{padding:8px 10px}.bml-public-chat .bml-chat-disclosure{padding-bottom:max(6px,env(safe-area-inset-bottom))}
 .bml-public-chat .bml-chat-header{min-height:54px;padding:8px 10px}
 .bml-public-chat .bml-chat-message input,.bml-public-chat .bml-chat-message select,.bml-public-chat .bml-chat-message textarea{font-size:16px}
}

.bml-public-chat .bml-chat-menu:not([open]) .bml-chat-conversation-meta{display:none}

.bml-public-chat .bml-chat-messages{gap:8px}.bml-public-chat .bml-chat-message{margin-bottom:0}
