@media(max-width:520px){.dm-chat{right:12px;left:12px;display:flex;align-items:flex-end;flex-direction:column}.dm-chat-panel{width:100%;max-width:100%;max-height:calc(100dvh - var(--chat-bottom-offset,0px) - 100px)}.dm-chat header{padding:10px 12px}.dm-chat form{padding:10px}.dm-chat-welcome{padding:8px 12px;font-size:12px}.dm-chat-messages{height:140px;min-height:60px}.dm-chat-toggle{padding:10px 14px}}
.dm-chat{--chat-accent:#b83e21;position:fixed;right:20px;bottom:20px;z-index:1000;font:14px/1.45 system-ui;color:#202522}.dm-chat *{box-sizing:border-box}.dm-chat [hidden]{display:none!important}.dm-chat-toggle,.dm-chat form>button{border:0;border-radius:10px;background:var(--chat-accent);color:white;padding:12px 18px;font:inherit;font-weight:650;min-height:44px;cursor:pointer}.dm-chat-panel{width:360px;max-width:calc(100vw - 24px);background:#fff;border:1px solid #dadfdc;border-radius:16px;box-shadow:0 12px 40px #0002;overflow:hidden;margin-bottom:10px}.dm-chat header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #eee}.dm-chat header button,.dm-chat>section>button{border:0;background:transparent;color:#333;min-height:44px;padding:8px;cursor:pointer}.dm-chat-status{font-size:12px;color:#535c56;padding:0 16px}.dm-chat-welcome{padding:10px 16px;margin:0;background:#f5f7f5}.dm-chat-messages{height:240px;max-height:32dvh;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.dm-chat-message{max-width:90%;background:#f0f3f1;border-radius:12px;padding:9px 12px;overflow-wrap:anywhere}.dm-chat-message.visitor{align-self:flex-end;background:#fbeee8}.dm-chat-message p{white-space:pre-wrap;margin:0}.dm-chat-message time{display:block;font-size:11px;color:#59625c;margin-top:3px}.dm-chat form{display:grid;gap:10px;padding:14px;border-top:1px solid #eee}.dm-chat-visitor{display:grid;gap:7px}.dm-chat label{font-size:12px;display:grid;gap:3px}.dm-chat input,.dm-chat textarea{font:inherit;padding:9px;border:1px solid #cbd3ce;border-radius:8px;width:100%;background:#fff;color:#202522}.dm-chat textarea{resize:vertical;min-height:65px;max-height:110px}.dm-chat :focus-visible{outline:2px solid #a53c24;outline-offset:3px}.dm-chat button:disabled{opacity:.6;cursor:wait}@media(max-width:520px){.dm-chat{right:12px;bottom:12px}.dm-chat-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto}.dm-chat-messages{height:180px;max-height:24dvh}}
.dm-chat{bottom:calc(16px + var(--chat-bottom-offset,0px) + env(safe-area-inset-bottom,0px));z-index:35}.dm-chat-panel{display:flex;flex-direction:column;max-height:min(620px,calc(100dvh - var(--chat-bottom-offset,0px) - 100px));overflow:auto;overscroll-behavior:contain}.dm-chat header{position:sticky;top:0;background:#fff;z-index:1;gap:8px}.dm-chat header strong{flex:1;min-width:0;overflow-wrap:anywhere}.dm-chat-messages{min-height:80px;flex:1}.dm-chat form{flex-shrink:0}.dm-chat-toggle{font-size:13px}.dm-chat form textarea{font-size:16px}.dm-chat form input{font-size:16px}body:has(#dmChat){padding-bottom:80px}body:has(dialog[open]) #dmChat{visibility:hidden}
