body:has(.chat-modal-layer.is-open){overflow:hidden}
.chat-modal-layer{padding:10px!important;align-items:center!important;background:rgba(8,29,23,.62)!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.chat-modal-card{box-sizing:border-box;width:min(520px,100%)!important;height:min(650px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 20px)!important;min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto!important;border:1px solid #cfdfd5;border-radius:20px!important;background:#fff;box-shadow:0 24px 70px #082f2447!important;isolation:isolate;animation:mv-chat-enter .22s ease-out both}
.chat-modal-head{align-items:center!important;min-height:68px;gap:12px!important;padding:12px 16px!important;background:linear-gradient(115deg,#0f6b49 0%,#19865d 62%,#39a66e 100%)!important;color:#fff!important}
.chat-modal-head>div{min-width:0}.chat-modal-head strong{display:block;font:750 17px/1.25 system-ui;letter-spacing:-.02em}.chat-modal-head strong i{margin-right:7px}.chat-modal-head .small{font:500 11px/1.3 system-ui;opacity:.85;margin-top:3px}
.chat-modal-head #directChatClose{display:grid!important;place-items:center!important;align-self:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border:1px solid #ffffff70!important;border-radius:11px!important;background:#ffffffeb!important;color:#14583d!important;box-shadow:none!important;font-size:15px!important}
.chat-modal-head #directChatClose:focus-visible,.chat-sendbar :is(button,textarea):focus-visible{outline:3px solid #e9bd48!important;outline-offset:2px!important}
.chat-modal-messages{min-height:0!important;padding:14px!important;overflow-y:auto!important;overscroll-behavior:contain;background:linear-gradient(180deg,#f7fbf8,#f1f7f3)!important}
.chat-modal-messages .chat-bubble{border-radius:15px!important;box-shadow:0 3px 12px #173b2a12!important}.chat-modal-messages .chat-bubble.me{background:#e0f4e9!important;border-color:#b6dfc8!important}
.chat-modal-card .typing-line{padding:4px 12px 6px!important;background:#fff!important;color:#496459!important}
.chat-sendbar{min-width:0;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;background:#fff!important;border-top:1px solid #dce9df!important}
.chat-sendbar .mv-chat-toolbar:empty,.chat-sendbar .mv-chat-status:empty{display:none!important}
.chat-sendbar .mv-chat-toolbar{margin:0 0 7px!important}
.chat-sendbar .mv-chat-preview{margin:0 0 8px!important;padding:7px!important;border-color:#9dcab1!important;background:#f5faf6!important}
.chat-sendbar .input-group{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:6px!important;width:100%!important}
.chat-sendbar .input-group textarea{box-sizing:border-box!important;flex:1 1 auto!important;width:1px!important;min-width:0!important;min-height:46px!important;max-height:100px!important;margin:0!important;padding:11px 12px!important;border:1px solid #c9ddcf!important;border-radius:12px!important;background:#fff!important;color:#183b2b!important;font:14px/1.35 system-ui!important;resize:vertical!important;box-shadow:none!important}
.chat-sendbar .input-group textarea::placeholder{color:#697d70!important;opacity:1}
.chat-sendbar .mv-chat-composer-tool{box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0!important;border:1px solid #cfe2d4!important;border-radius:12px!important;background:linear-gradient(#fff,#ecf6ef)!important;color:#176a46!important;box-shadow:none!important;font:18px/1 system-ui!important;cursor:pointer}
.chat-sendbar #directChatSend{box-sizing:border-box!important;display:grid!important;place-items:center!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#219264,#11734f)!important;color:#fff!important;box-shadow:0 3px 8px #106d4933!important;font-size:18px!important}
.chat-sendbar .mv-chat-status{min-height:0!important;margin-top:6px!important;font-size:11px!important}
@keyframes mv-chat-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:575px){.chat-modal-layer{padding:6px!important;align-items:flex-end!important}.chat-modal-card{width:100%!important;height:min(680px,calc(100dvh - 12px))!important;max-height:calc(100dvh - 12px)!important;border-radius:18px 18px 10px 10px!important}.chat-modal-head{min-height:62px;padding:10px 13px!important}.chat-modal-messages{padding:10px!important}}
@media(max-width:350px){.chat-sendbar .input-group{gap:4px!important}.chat-sendbar .mv-chat-composer-tool{flex-basis:36px!important;width:36px!important;min-width:36px!important}.chat-sendbar #directChatSend{flex-basis:42px!important;width:42px!important;min-width:42px!important}.chat-sendbar .input-group textarea{padding:10px!important;font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.chat-modal-card{animation:none!important}}
