/* YNS Group V3.15.16 — accessible floating chat next to telephone CTA */
.yns-chat-toggle{background:#f9faf8;color:#1d4935;border:1px solid #d9e3d9;position:relative}
.yns-chat-badge{position:absolute;top:-6px;right:-6px;min-width:17px;height:17px;border-radius:50%;background:#b85741;color:white;font:700 10px/17px system-ui;text-align:center}
.yns-chat-badge[hidden],.yns-chat-window[hidden]{display:none!important}
.yns-chat-window{position:absolute;right:0;bottom:calc(100% + 14px);width:min(380px,calc(100vw - 24px));height:min(555px,calc(100dvh - 120px));min-height:300px;max-height:75dvh;background:#fff;border:1px solid #dde6df;border-radius:17px;box-shadow:0 18px 65px rgba(15,35,23,.28);color:#1d2e24;display:flex;flex-direction:column;overflow:hidden;pointer-events:auto;font-family:inherit}
.yns-chat-head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:#153e29;color:#fff}
.yns-chat-head strong{font-size:14px;display:block}.yns-chat-head small{font-size:11px;color:#c4ddcd;display:block;margin-top:3px}.yns-chat-avatar{height:35px;width:35px;display:grid;place-items:center;background:rgba(255,255,255,.15);border-radius:50%;font-size:19px}.yns-chat-minimize{margin-left:auto;background:transparent;border:1px solid #789887;color:white;font-size:23px;border-radius:7px;min-width:35px;min-height:34px;cursor:pointer}
.yns-chat-messages{padding:16px 14px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:13px;overscroll-behavior:contain}
.yns-chat-message{background:#f0f3ef;border-radius:12px 12px 12px 4px;padding:11px 13px;align-self:flex-start;max-width:93%;line-height:1.5;font-size:13px;overflow-wrap:anywhere}.yns-chat-message.is-user{background:#dcebdd;border-radius:12px 12px 4px 12px;align-self:flex-end}.yns-chat-message p{margin:0;color:#243c2e}.yns-chat-message.is-status{opacity:.7;font-style:italic}.yns-chat-links{display:flex;flex-direction:column;align-items:start;gap:4px;margin-top:9px}.yns-chat-links a{font-size:12px;font-weight:750;color:#165435;text-decoration:underline;text-underline-offset:3px}
.yns-chat-shortcuts{display:flex;gap:5px;padding:8px 12px 0;overflow-x:auto}.yns-chat-shortcuts button{flex:none;background:#f7f9f7;border:1px solid #d2dfd5;border-radius:20px;padding:7px 10px;font:600 11px/1.2 inherit;color:#1e4f34;cursor:pointer}
.yns-chat-form{display:flex;align-items:center;gap:8px;padding:11px 12px}.yns-chat-form input{min-width:0;flex:1;min-height:42px;border:1px solid #cdd9d1;border-radius:25px;padding:10px 13px;font:13px inherit;background:#fff;color:#16271c}.yns-chat-form button{min-width:41px;min-height:41px;border:0;border-radius:50%;background:#1a6e32;color:#fff;font-size:16px;cursor:pointer}.yns-chat-form button:disabled{opacity:.55}
.yns-chat-footer{border-top:1px solid #e9eeea;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:9px 12px;color:#67786e;font-size:10px;line-height:1.4}.yns-chat-footer a{color:#335943;text-decoration:underline}.yns-chat-sound{white-space:nowrap;padding:4px 7px;background:transparent;border:1px solid #d6e1d8;border-radius:5px;font:inherit;color:#3b5946;cursor:pointer}.yns-chat-sr{position:absolute!important;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
.yns-chat-window :focus-visible,.yns-chat-toggle:focus-visible{outline:3px solid #84a98c;outline-offset:2px}
body.yns-lead-open .yns-chat-window{display:none}
@media(max-width:600px){.yns-chat-toggle{min-width:47px;padding:0 12px}.yns-chat-toggle span:not(.yns-chat-badge){display:none}.yns-chat-window{right:-1px;bottom:calc(100% + 11px);max-height:min(69dvh,560px);height:min(520px,69dvh)}.yns-chat-head{padding:12px 13px}}
@media(prefers-reduced-motion:reduce){.yns-chat-toggle{transition:none}}
