.customer-chats-dialog{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;box-sizing:border-box;color:var(--ink);background:var(--paper)}
.customer-chats-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.customer-chats-dialog .dialog-head{flex:none}.customer-chats-hint{font-size:13px;color:var(--muted);margin:0 0 12px}.customer-chats-layout{display:grid;grid-template-columns:minmax(190px,30%) 1fr;gap:16px;min-height:0;height:min(620px,68dvh)}
.customer-chats-list{overflow:auto;min-height:0}.customer-chat-row{display:flex;flex-direction:column;gap:6px;text-align:left;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);margin-bottom:8px;font:inherit;cursor:pointer}.customer-chat-row.selected{border-color:#b6452c}.customer-chat-row small{font-size:11px;color:var(--muted)}.customer-chat-row span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.customer-chat-thread{display:flex;flex-direction:column;min-height:0;min-width:0}.customer-chat-thread h3{font-size:16px;margin:8px 0}.customer-chat-messages{flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;background:var(--bg,#f3efec);padding:10px;border-radius:12px}.customer-chat-message{padding:10px;border:1px solid var(--line);background:var(--paper);border-radius:12px;margin:0 0 10px;max-width:90%;overflow-wrap:anywhere}.customer-chat-message.outgoing{margin-left:auto}.customer-chat-message strong,.customer-chat-message time{display:block;font-size:11px;color:var(--muted)}.customer-chat-message p{white-space:pre-wrap;font-size:14px;line-height:1.45;margin:5px 0}.customer-chat-form{flex:none;display:grid;grid-template-columns:1fr auto;gap:6px;padding-top:10px}.customer-chat-form label{grid-column:1/-1;font-size:13px}.customer-chat-form textarea{width:100%;box-sizing:border-box;resize:none;font:inherit;font-size:16px;padding:8px;border-radius:10px;border:1px solid var(--line);color:var(--ink);background:var(--paper)}.customer-chats-error{flex:none;font-size:13px;color:#a33124;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.customer-chats-error:empty{display:none}.customer-chat-back{align-self:start;font-size:13px}.customer-chat-thread[hidden],.customer-chat-form[hidden]{display:none!important}
@media(max-width:600px){.customer-chats-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:12px}.customer-chats-layout{display:flex;flex-direction:column;height:68dvh}.customer-chats-list{flex:1}.customer-chat-thread{flex:1}.customer-chats-dialog.customer-chat-selected .customer-chats-list{display:none}.customer-chats-hint{font-size:12px}.customer-chats-dialog h2{font-size:19px}.customer-chat-form button{padding:8px}.customer-chat-message{max-width:95%}}
