/* Floating public sales assistant. */
[data-ff-whatsapp-hidden="1"]{display:none!important}
#ff-widget{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(92px,env(safe-area-inset-bottom));z-index:999990;margin:0;max-width:calc(100vw - 24px);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#17324e}
#ff-widget .ff-launcher{position:relative;display:flex;align-items:center;gap:11px;min-height:70px;padding:8px 19px 8px 9px;border:2px solid #eeb94c;border-radius:40px;background:#102f4d;color:white;cursor:pointer;box-shadow:0 6px 24px #072d4640;animation:ff-launcher-glow 4s ease-in-out infinite;text-align:left;line-height:1.4}
#ff-widget .ff-launcher .ff-avatar{width:52px;height:52px;border-color:#edb74c}
#ff-widget .ff-launcher strong{display:block;font-size:15px;letter-spacing:.04em;color:#ffe09b}
#ff-widget .ff-launcher small{display:block;font-size:11px;color:#f1f6fa;margin-top:2px}
.ff-launcher-dot{width:8px;height:8px;border-radius:50%;background:#6ce5b4;box-shadow:0 0 9px #6ce5b480;margin-left:3px}
@keyframes ff-launcher-glow{0%,65%,100%{box-shadow:0 6px 24px #072d4640,0 0 0 0 #efba4930}35%{box-shadow:0 6px 24px #072d4640,0 0 18px 5px #efba4960}}
#ff-widget.ff-is-open .ff-launcher{animation:none}
#ff-widget .ff-widget-dialog{position:absolute;right:0;bottom:84px;width:440px;max-width:calc(100vw - 24px);height:min(760px,calc(100dvh - 205px));background:#fff;border:2px solid #173b5c;border-radius:18px;box-shadow:0 12px 60px #071c4050;overflow:hidden;display:flex;flex-direction:column}
#ff-widget .ff-widget-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:10px 15px;background:#102f4d;color:#fff;font-size:12px;font-weight:700}
#ff-widget-close{border:0;border-radius:6px;background:#ffffff18;color:white;padding:8px 12px;font-size:16px;cursor:pointer}
#ff-widget-status{padding:20px;font-size:14px;line-height:1.6}
#ff-widget-chat{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:white}
#ff-widget .ff-chat{border:0;border-radius:0;box-shadow:none;min-height:100%;background:#fff}
#ff-widget .ff-chat-head{padding:12px 16px}
#ff-widget .ff-chat-head .ff-avatar{width:44px;height:44px}
#ff-widget .ff-messages{height:clamp(220px,36dvh,360px);min-height:220px;padding:15px}
#ff-widget .ff-messages-with-form{height:50dvh;min-height:300px}
#ff-widget .ff-samples [data-ff-sample],#ff-widget .ff-chat-footer span{display:none}
#ff-widget .ff-samples{padding:10px 14px 0}
#ff-widget #ff-chat-form{padding:12px 14px;margin:0}
#ff-widget #ff-message{font-size:16px;min-height:58px;color:#17324e;background:#fff}
#ff-widget .ff-chat-footer{padding:0 14px 14px}
#ff-widget [hidden]{display:none!important}
#ff-widget button:focus-visible{outline:3px solid #edb74c;outline-offset:2px}
@media(max-width:600px){#ff-widget{right:12px;bottom:max(82px,env(safe-area-inset-bottom))}#ff-widget .ff-launcher{min-height:62px;padding-right:15px}#ff-widget .ff-launcher .ff-avatar{width:44px;height:44px}#ff-widget .ff-launcher small{font-size:10px}#ff-widget .ff-widget-dialog{bottom:74px;height:calc(100dvh - 185px);border-radius:14px}#ff-widget .ff-bubble{font-size:14px}#ff-widget .ff-infrastructure select{font-size:16px}#ff-widget .ff-application input{font-size:16px}}
@media(prefers-reduced-motion:reduce){#ff-widget .ff-launcher{animation:none}}

/* Existing Internet Marketi global WhatsApp control uses !important. */
body .imgw-global-whatsapp[data-ff-whatsapp-hidden="1"]{display:none!important}
#ff-widget .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#ff-widget .ff-chat{height:100%;display:flex;flex-direction:column}
#ff-widget .ff-messages{flex:1;min-height:180px}
#ff-widget .ff-chat-head,#ff-widget .ff-samples,#ff-widget #ff-chat-form,#ff-widget .ff-chat-footer,#ff-widget .ff-infrastructure{flex-shrink:0}

#ff-widget .ff-samples{display:none}
#ff-widget .ff-quick-actions{flex-shrink:0}

/* One public scroll owner: messages + address/application forms. */
#ff-widget-chat{display:flex;flex-direction:column;overflow:hidden;min-height:0;min-width:0}
#ff-widget .ff-chat{flex:1 1 0%;height:100%;min-height:0;min-width:0;overflow:hidden}
#ff-widget .ff-messages,#ff-widget .ff-messages.ff-messages-with-form{flex:1 1 0%;height:auto!important;min-height:0!important;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;scroll-padding:12px}
#ff-widget .ff-messages>*{flex-shrink:0}
#ff-widget .ff-messages>.ff-infrastructure{width:100%;max-width:100%;border:2px solid #a7c7c6;border-radius:10px;padding:16px}
#ff-widget .ff-messages>.ff-infrastructure .ff-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#ff-widget .ff-messages>.ff-infrastructure select{min-width:0;max-width:100%}
#ff-widget .ff-chat-head,#ff-widget .ff-quick-actions,#ff-widget #ff-chat-form,#ff-widget .ff-chat-footer{flex:0 0 auto}
#ff-widget.ff-compact-open .ff-widget-dialog{position:fixed;left:var(--ff-visible-left,12px);top:var(--ff-visible-top,12px);right:auto;bottom:auto;width:var(--ff-visible-width,calc(100vw - 24px));height:var(--ff-visible-height,calc(100vh - 24px));max-width:none;max-height:none}
#ff-widget.ff-compact-open .ff-launcher{visibility:hidden;pointer-events:none}
#ff-widget.ff-compact-open .ff-chat-head{display:none}
#ff-widget.ff-compact-open #ff-message{resize:none;min-height:48px;max-height:80px}
#ff-widget.ff-compact-open .ff-chat-footer{padding-bottom:8px}
