/* DFO AI assistant widget (added 2026-10-12) */
.dfo-chat-launch{position:fixed;right:20px;bottom:20px;z-index:9990;display:inline-flex;align-items:center;gap:9px;padding:12px 18px 12px 14px;border:0;border-radius:999px;background:linear-gradient(135deg,#2C6E55,#143A2E);color:#fff;font:600 .95rem/1 "Public Sans",system-ui,-apple-system,sans-serif;cursor:pointer;box-shadow:0 12px 30px -10px rgba(11,32,25,.6),0 0 0 1px rgba(255,255,255,.08) inset;transition:transform .2s ease,box-shadow .2s ease,opacity .2s}
.dfo-chat-launch:hover{transform:translateY(-2px);box-shadow:0 16px 36px -12px rgba(11,32,25,.7)}
.dfo-chat-launch:focus-visible{outline:3px solid #7FD1AE;outline-offset:3px}
.dfo-chat-launch svg{width:20px;height:20px;flex:none}
.dfo-chat-launch .dot{position:absolute;top:6px;right:8px;width:9px;height:9px;border-radius:50%;background:#7FD1AE;box-shadow:0 0 0 2px #173F31}
.dfo-chat-open .dfo-chat-launch{opacity:0;pointer-events:none;transform:scale(.9)}
body.dfo-chat-on .to-top{bottom:84px!important}
.dfo-chat{position:fixed;right:20px;bottom:20px;z-index:9991;width:min(392px,calc(100vw - 32px));height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:#FFFDF9;color:#16201C;font:400 .94rem/1.5 "Public Sans",system-ui,-apple-system,sans-serif;box-shadow:0 30px 80px -24px rgba(11,32,25,.55),0 0 0 1px rgba(22,32,28,.08);opacity:0;visibility:hidden;transform:translateY(16px) scale(.98);transform-origin:bottom right;transition:opacity .25s ease,transform .3s cubic-bezier(.2,.9,.3,1.1),visibility .25s}
.dfo-chat-open .dfo-chat{opacity:1;visibility:visible;transform:none}
.dfo-chat-head{position:relative;display:flex;align-items:center;gap:12px;padding:16px 16px 16px 18px;color:#fff;background:radial-gradient(120% 140% at 90% -20%,#2C6E55 0%,#173F31 50%,#0B2019 100%)}
.dfo-chat-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#7FD1AE,#F3C27A,#8EC5FF,#C9A7FF);opacity:.85}
.dfo-chat-av{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.12);font:800 .78rem/1 "Public Sans",system-ui,sans-serif;letter-spacing:.02em}
.dfo-chat-title{flex:1;min-width:0}
.dfo-chat-title b{display:block;font-size:1rem}
.dfo-chat-title span{display:flex;align-items:center;gap:6px;font-size:.76rem;color:rgba(233,241,236,.8)}
.dfo-chat-title span::before{content:"";width:7px;height:7px;border-radius:50%;background:#7FD1AE;box-shadow:0 0 0 3px rgba(127,209,174,.22)}
.dfo-chat-x{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.dfo-chat-x:hover{background:rgba(255,255,255,.2)}
.dfo-chat-x:focus-visible,.dfo-chat-send:focus-visible,.dfo-chat-chip:focus-visible{outline:2px solid #7FD1AE;outline-offset:2px}
.dfo-chat-x svg{width:16px;height:16px}
.dfo-chat-log{flex:1;min-height:0;overflow-y:auto;padding:18px 16px 8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.dfo-msg{max-width:86%;padding:10px 13px;border-radius:16px;word-wrap:break-word;animation:dfo-in .25s ease both}
.dfo-msg p{margin:0 0 6px}.dfo-msg p:last-child{margin:0}
.dfo-msg ul{margin:4px 0 6px;padding-left:18px}.dfo-msg li{margin:2px 0}
.dfo-msg a{color:#1F4D3D;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.dfo-msg.bot{align-self:flex-start;background:#F2F6F3;border:1px solid #E1EAE4;border-bottom-left-radius:6px}
.dfo-msg.me{align-self:flex-end;background:#1F4D3D;color:#fff;border-bottom-right-radius:6px}
.dfo-msg.me a{color:#fff}
.dfo-msg.err{background:#FBF1E8;border-color:#F0D9C4}
.dfo-typing{display:inline-flex;gap:4px;padding:4px 2px}
.dfo-typing i{width:7px;height:7px;border-radius:50%;background:#5E8C78;animation:dfo-bounce 1.1s infinite ease-in-out}
.dfo-typing i:nth-child(2){animation-delay:.15s}.dfo-typing i:nth-child(3){animation-delay:.3s}
.dfo-chat-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 16px 10px}
.dfo-chat-chip{padding:8px 12px;border:1px solid #CFE0D6;border-radius:999px;background:#fff;color:#1F4D3D;font:600 .8rem/1.2 "Public Sans",system-ui,sans-serif;cursor:pointer;transition:background .15s,border-color .15s}
.dfo-chat-chip:hover{background:#E8F0EB;border-color:#1F4D3D}
.dfo-chat-form{display:flex;align-items:flex-end;gap:8px;margin:0 12px;padding:8px 8px 8px 14px;border:1px solid #DDD5C7;border-radius:16px;background:#fff;transition:border-color .15s,box-shadow .15s}
.dfo-chat-form:focus-within{border-color:#1F4D3D;box-shadow:0 0 0 3px rgba(31,77,61,.12)}
.dfo-chat-in{flex:1;min-width:0;max-height:110px;padding:6px 0;border:0;outline:0;resize:none;background:transparent;color:#16201C;font:inherit;line-height:1.4}
.dfo-chat-send{flex:none;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:11px;background:#1F4D3D;color:#fff;cursor:pointer;transition:background .15s,opacity .15s}
.dfo-chat-send:hover{background:#143A2E}
.dfo-chat-send:disabled{opacity:.4;cursor:default}
.dfo-chat-send svg{width:17px;height:17px}
.dfo-chat-note{margin:0;padding:8px 16px 12px;font-size:.7rem;line-height:1.4;color:#6B746F;text-align:center}
.dfo-chat-note a{color:inherit}
@keyframes dfo-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes dfo-bounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
@media (max-width:560px){
 .dfo-chat-launch{right:14px;bottom:14px;padding:13px}
 .dfo-chat-launch .lbl{display:none}
 .dfo-chat{right:0;bottom:0;width:100vw;height:100%;height:100dvh;border-radius:0}
 body.dfo-chat-on .to-top{bottom:78px!important}
}
@media (prefers-reduced-motion:reduce){.dfo-chat,.dfo-chat-launch,.dfo-msg{transition:none;animation:none}.dfo-typing i{animation:none}}
@media print{.dfo-chat,.dfo-chat-launch{display:none!important}}

/* isolate from site-wide section, form and textarea styles */
.dfo-chat{padding:0!important;margin:0!important;max-width:none!important}
.dfo-chat *,.dfo-chat-launch *{box-sizing:border-box}
.dfo-chat-in{min-height:0!important;height:auto;width:auto!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:6px 0!important;font-size:.94rem!important}
.dfo-chat-send,.dfo-chat-x,.dfo-chat-chip{min-height:0!important;margin:0!important;line-height:1.2}
.dfo-chat-send,.dfo-chat-x{padding:0!important}
.dfo-chat-launch{min-height:0!important;margin:0!important}
.dfo-chat p,.dfo-chat ul{max-width:none!important}
.dfo-chat-in:focus,.dfo-chat-in:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
