/* Chat assistant: a clear "Ask IDM" button at the bottom right, a tidy panel above it, and "Back to top" moved to the left so nothing stacks. IDM colours. */
html body .chatFab{right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));width:auto;height:54px;padding:0 20px 0 16px;border-radius:99px;display:inline-flex;align-items:center;gap:.55rem;background:linear-gradient(135deg,var(--brand-primary,#307C48),var(--brand-primary,#307C48))!important;color:#fff!important;border:2px solid #fff;box-shadow:0 16px 34px -12px rgba(0,60,35,.75);font:700 .92rem Helvetica,Arial,sans-serif}
html body .chatFab:hover{transform:none;box-shadow:0 20px 40px -12px rgba(0,60,35,.9);filter:brightness(1.06)}
html body .chatFab .cf-o,html body .chatFab .cf-c{font-size:1.25rem;line-height:1}
html body .chatFab .cf-l{color:#fff;letter-spacing:.02em}
html body .chatFab.open .cf-l{display:none}.chatFab.open{padding:0 16px}
html body .chatFab .cf-dot{background:#C9DC4B;box-shadow:0 0 0 0 rgba(201,220,75,.7);animation:nhPulse 2s infinite}
html body .toTop{right:auto;left:calc(18px + env(safe-area-inset-left,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px))}
html body .chat{right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(86px + env(safe-area-inset-bottom,0px));width:min(380px,calc(100vw - 28px));height:min(600px,calc(100vh - 130px));border-radius:22px;border:0;box-shadow:0 34px 70px -20px rgba(0,40,25,.65),0 0 0 1px rgba(0,127,72,.18);overflow:hidden;display:flex;flex-direction:column}
html body .chat[hidden]{display:none}
html body .chat-h{background:linear-gradient(135deg,var(--brand-primary,#307C48),var(--brand-primary,#307C48) 60%,var(--brand-primary,#307C48))!important;color:#fff;padding:14px 16px}
html body .chat-h b{color:#fff;font-size:1rem}html body .chat-h small{color:#C9DC4B}
html body .chat-h .iconbtn{color:#fff!important}
html body .chat-log{background:#FFFFFF;padding:14px;flex:1 1 auto;overflow:auto}
html body .chat .msg{max-width:88%;padding:.65rem .9rem;border-radius:18px 18px 18px 6px;background:#fff;border:1px solid #FFFFFF;color:#000000;font-size:.92rem;line-height:1.5;box-shadow:0 8px 18px -14px rgba(0,60,35,.5)}
html body .chat .msg.user{margin-left:auto;background:var(--brand-primary,#307C48);color:#fff;border-color:var(--brand-primary,#307C48);border-radius:18px 18px 6px 18px}
html body .chat .msg .acts{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}
html body .chat .msg .acts a{padding:.3rem .8rem;font-size:.82rem;border-radius:99px;border:1.5px solid var(--brand-primary,#307C48);color:var(--brand-primary,#307C48)!important;background:#fff;text-decoration:none}
html body .chat .msg .acts a:hover{background:var(--brand-primary,#307C48);color:#fff!important}
html body .chat-chips{background:#fff;padding:.55rem .8rem;border-top:1px solid #FFFFFF;display:flex;gap:.4rem;overflow-x:auto;flex-wrap:nowrap}
html body .chat-chips .chip{flex:none;padding:.35rem .8rem;border-radius:99px;border:1.5px solid #FFFFFF;background:#fff;color:var(--brand-primary,#307C48);font-size:.8rem;cursor:pointer;white-space:nowrap}
html body .chat-chips .chip:hover{background:#FFFFFF;border-color:var(--brand-primary,#307C48)}
html body .chat-f{background:#fff;border-top:1px solid #FFFFFF;padding:.6rem .7rem;display:flex;gap:.5rem}
html body .chat-f input{flex:1;border:1.5px solid #FFFFFF;border-radius:99px;padding:.6rem 1rem;font:inherit;outline:0}
html body .chat-f input:focus{border-color:var(--brand-primary,#307C48);box-shadow:0 0 0 3px rgba(0,127,72,.15)}
html body .chat-f button{border-radius:50%;width:42px;height:42px;padding:0;background:var(--brand-primary,#307C48)!important;color:#fff!important;border:0}
@media(max-width:560px){html body .chatFab .cf-l{display:none}html body .chatFab{padding:0 16px}html body .chat{right:10px;left:10px;width:auto;bottom:80px}}

/* the chat button never covers the footer (hits counter and links) */
html body footer.ft2{padding-bottom:92px}
html body footer .base{padding-right:min(220px,24vw)}
@media(max-width:560px){html body footer .base{padding-right:0}}

/* on the home page the slideshow controls sit above the chat button */
html body #idmSlider .sp-panel{padding-bottom:clamp(76px,6vw,88px)!important}
html body #idmSlider .sp-view{bottom:clamp(86px,7vw,100px)}
