/* MUA two-way customer chat inbox (licensed device only). */
.chat-admin{overflow:hidden}
.chat-home .chat-home-info{padding:15px 20px;color:#4f7660;font-size:13px}
.chat-home .chat-home-info strong{font-size:23px;color:#079459}
.chat-owner-layout{display:grid;grid-template-columns:minmax(215px,320px) minmax(0,1fr);
 min-height:480px;max-height:calc(100dvh - 240px);border-top:1px solid #e4eee7}
.chat-owner-list{overflow:auto;overscroll-behavior:contain;min-width:0;
 border-right:1px solid #e2eee6;background:#fbfdfb;padding:9px}
.chat-owner-row{width:100%;display:flex;align-items:flex-start;gap:10px;min-width:0;text-align:left;
 border:1px solid transparent;background:transparent;border-radius:10px;padding:12px 9px;
 cursor:pointer;color:#254a36;margin-bottom:5px}
.chat-owner-row:hover,.chat-owner-row.selected{background:#eaf8ef;border-color:#c8ead5}
.chat-owner-avatar{flex:0 0 33px;height:33px;background:#e1f6e9;border-radius:50%;display:grid;place-items:center}
.chat-owner-row-main{display:block;min-width:0;flex:1}
.chat-owner-row-main strong{display:block;font-size:13px}
.chat-owner-row-main small{display:block;font-size:10px;color:#829b8b;margin:5px 0}
.chat-owner-row-main em{display:block;font-size:11px;color:#708478;overflow:hidden;white-space:nowrap;
 text-overflow:ellipsis;font-style:normal}
.chat-owner-unread{display:grid;place-items:center;border-radius:50%;background:#03a768;color:white;
 min-width:23px;height:23px;font-size:11px}
.chat-owner-detail{min-width:0;display:flex;flex-direction:column;padding:12px 15px;background:#fff}
.chat-owner-empty{font-size:12px;text-align:center;color:#829a89;margin:auto;padding:25px 10px}
.chat-owner-top{display:flex;align-items:center;gap:10px;justify-content:space-between;
 padding-bottom:12px;border-bottom:1px solid #e8eee9}
.chat-owner-top strong{display:block;color:#195b39;font-size:15px}
.chat-owner-top small{display:block;font-size:11px;color:#779381;margin-top:5px}
.chat-owner-top a{font-size:12px}
.chat-owner-messages{height:min(42dvh,420px);min-height:230px;overflow-y:auto;overscroll-behavior:contain;
 background:#f5faf6;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:10px;margin:12px 0}
.chat-owner-bubble{max-width:83%;align-self:flex-start;background:#fff;border:1px solid #deebe1;
 border-radius:12px;padding:9px 12px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-owner-bubble.own{align-self:flex-end;background:#dff5e6;border-color:#bee7ca}
.chat-owner-bubble small{color:#7b9a88;font-size:10px}
.chat-owner-bubble p{color:#31503b;font-size:13px;line-height:1.5;margin:6px 0 0}
.chat-owner-reply{display:flex;gap:9px;align-items:flex-end}
.chat-owner-reply textarea{flex:1;min-width:0;max-width:100%;border:1px solid #cfe7d6;
 border-radius:11px;min-height:57px;padding:11px;font:inherit;font-size:13px;resize:vertical}
.chat-owner-reply button{flex:0 0 auto;min-height:44px;font-size:12px}
.chat-owner-controls{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:12px 0}
.chat-owner-controls button{font-size:12px}
@media(max-width:700px){
 .layout .chat-owner-layout{grid-template-columns:minmax(0,1fr);max-height:none;min-height:0}
 .layout .chat-owner-list{border-right:0;border-bottom:1px solid #deebe3;max-height:190px}
 .layout .chat-owner-detail{padding:10px;min-height:320px}
 .layout .chat-owner-messages{min-height:175px;height:min(30dvh,250px)}
 .layout .chat-owner-reply textarea{font-size:16px;min-height:51px}
 .layout .chat-owner-reply button{font-size:11px;padding:10px 9px}
 .layout .chat-owner-top{flex-wrap:wrap}
}
