.direct-chat-dialog{width:min(560px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));padding:0;border:1px solid #cbdcc6;border-radius:16px;background:#f8fbf5;color:#1a2b1c;box-shadow:0 25px 80px #0d1d1350;font-family:'DM Sans',Arial,sans-serif}
.direct-chat-dialog.is-inline,.direct-chat-dialog.is-inline.is-brief{position:static;inset:auto;display:block;width:100%;height:auto;max-height:none;margin:0;border-radius:12px;box-shadow:none}
.direct-chat-dialog.is-inline:not([open]){display:none}
.direct-chat-dialog.is-inline .direct-chat-dialog__shell,.direct-chat-dialog.is-inline.is-brief .direct-chat-dialog__shell{max-height:none;height:auto}
.direct-chat-dialog.is-inline .direct-chat-dialog__messages{max-height:360px;min-height:120px}
.direct-chat-dialog::backdrop{background:#122018a8;backdrop-filter:blur(3px)}
.direct-chat-dialog.is-brief{position:fixed;inset:0 0 0 auto;width:min(470px,100vw);height:100dvh;max-height:100dvh;margin:0;border-radius:14px 0 0 14px}
.direct-chat-dialog.is-brief .direct-chat-dialog__shell{height:100%;max-height:none}
.direct-chat-dialog.is-brief .direct-chat-dialog__messages{flex:1}
.direct-chat-dialog__shell{display:flex;flex-direction:column;max-height:min(760px,calc(100dvh - 24px))}
.direct-chat-dialog__head{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:22px 24px 15px;background:#1d3628;color:#fff}
.direct-chat-dialog__head small{display:block;margin-bottom:5px;color:#d9fb79;font-size:10px;font-weight:900;letter-spacing:.13em}
.direct-chat-dialog__head h2{margin:0;font-size:22px;line-height:1.2}
.direct-chat-dialog__close{border:1px solid #77907b;border-radius:7px;background:transparent;color:white;width:31px;height:31px;font-size:23px;line-height:1}
.direct-chat-dialog__hint{margin:0;padding:13px 24px;border-bottom:1px solid #e0e9db;color:#526855;font-size:12px;line-height:1.45}
.direct-chat-dialog__messages{min-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:20px 24px;overscroll-behavior:contain}
.direct-chat-dialog__empty{margin:auto;color:#6e806e;text-align:center;font-size:13px}
.direct-chat-dialog__message{max-width:86%;align-self:flex-start;padding:11px 13px;border:1px solid #d9e7d2;border-radius:12px;background:white}
.direct-chat-dialog__message.is-own{align-self:flex-end;background:#e5f7d5;border-color:#c4e69d}
.direct-chat-dialog__message>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin-bottom:5px;color:#617463;font-size:10px}
.direct-chat-dialog__message b{color:#2e5334}
.direct-chat-dialog__message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.45}
.direct-chat-dialog__form{display:grid;gap:7px;padding:15px 24px 20px;border-top:1px solid #e0e9db}
.direct-chat-dialog__form[hidden],.direct-chat-dialog__login[hidden]{display:none}
.direct-chat-dialog__form label{font-size:12px;font-weight:800}
.direct-chat-dialog__form textarea{width:100%;min-height:78px;resize:vertical;padding:10px;border:1px solid #bdcfb7;border-radius:8px;background:white;font:inherit;font-size:13px}
.direct-chat-dialog__form>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.direct-chat-dialog__status{color:#527449;font-size:11px}
.direct-chat-dialog__form button,.direct-chat-dialog__login{border:0;border-radius:7px;background:#d9fb79;color:#1b2b1e;padding:11px 15px;font-size:12px;font-weight:800}
.direct-chat-dialog__form button:disabled{opacity:.55}
.direct-chat-dialog__login{display:inline-block;align-self:start;margin:18px 24px}
.direct-chat-inbox{display:grid;gap:8px;margin-top:10px;color:#627463;font-size:12px}
.direct-chat-inbox__thread{display:grid;grid-template-columns:minmax(100px,.5fr) minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid #d8e6d1;border-radius:8px;background:#fff;color:#28422d;text-align:left;cursor:pointer}
.direct-chat-inbox__thread:hover,.direct-chat-inbox__thread:focus-visible{border-color:#8fc85a;background:#f7fdec}
.direct-chat-inbox__thread span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667768}
.direct-chat-cabinet{margin-top:22px;padding:22px;border:1px solid #d9e5d2;border-radius:12px;background:#fff}
.direct-chat-cabinet h2{margin:0 0 6px;color:#203325;font-size:20px}
.direct-chat-cabinet>p{margin:0;color:#687a68;font-size:12px;line-height:1.5}
@media(max-width:600px){.direct-chat-dialog__head,.direct-chat-dialog__hint,.direct-chat-dialog__messages,.direct-chat-dialog__form{padding-left:16px;padding-right:16px}.direct-chat-inbox__thread{grid-template-columns:1fr auto}.direct-chat-inbox__thread span:nth-child(2){grid-row:2;grid-column:1/-1}}
.direct-item__chat-inline{border-top:1px solid #dce8d5;background:#f8fbf5}
.direct-inline-chat__head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:18px 24px 13px}
.direct-inline-chat__head small{color:#63882f;font-size:10px;font-weight:900;letter-spacing:.11em}
.direct-inline-chat__head h3{margin:5px 0 0;color:#203325;font-size:18px}
.direct-inline-chat__head>span{color:#6b7c69;font-size:11px}
.direct-inline-chat__messages{display:flex;flex-direction:column;gap:10px;min-height:116px;max-height:310px;overflow-y:auto;padding:15px 24px;border-top:1px solid #e4ecdf;border-bottom:1px solid #e4ecdf;overscroll-behavior:contain}
.direct-inline-chat__messages .direct-chat-dialog__message{max-width:min(78%,680px)}
.direct-inline-chat__form{display:grid;gap:10px;padding:16px 24px 20px}
.direct-inline-chat__form label{display:grid;gap:7px;color:#334937;font-size:12px;font-weight:800}
.direct-inline-chat__form textarea{width:100%;min-height:72px;resize:vertical;padding:11px 12px;border:1px solid #bfceb8;border-radius:7px;background:#fff;color:#1c2e20;font:400 13px 'DM Sans',Arial,sans-serif}
.direct-inline-chat__form textarea:focus{outline:2px solid #9acb5c;outline-offset:1px}
.direct-inline-chat__form>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.direct-inline-chat__status{color:#527449;font-size:11px}
.direct-inline-chat__form button{border:0;border-radius:6px;background:#d9fb79;color:#1b2b1e;padding:11px 15px;font-size:12px;font-weight:900;cursor:pointer}
.direct-inline-chat__form button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.direct-inline-chat__head,.direct-inline-chat__messages,.direct-inline-chat__form{padding-left:17px;padding-right:17px}.direct-inline-chat__head{align-items:start;flex-direction:column;gap:5px}.direct-inline-chat__messages .direct-chat-dialog__message{max-width:92%}.direct-inline-chat__form>div{align-items:stretch;flex-direction:column}}
.chat-send-field{position:relative;display:block;width:100%;min-width:0}
.chat-send-field textarea{display:block;width:100%;padding-right:54px;padding-bottom:43px;resize:none}
.chat-send-field button,.direct-chat-dialog__form .chat-send-field button,.direct-inline-chat__form .chat-send-field button{position:absolute;right:9px;bottom:9px;display:grid;place-items:center;width:35px;height:35px;min-height:0;margin:0;padding:0;border:1px solid #bfd3b5;border-radius:7px;background:#f3f8ee;color:#26452d;font:700 20px/1 Arial,sans-serif;cursor:pointer}
.chat-send-field button:hover{background:#e5f2d7;border-color:#91bb76}
.chat-send-field button:focus-visible{outline:2px solid #679c3b;outline-offset:2px}
.chat-send-field button:disabled{opacity:.5;cursor:wait}
