.fp-chat-launch{position:fixed;left:auto;right:20px;bottom:22px;z-index:9990;display:flex;align-items:center;gap:9px;min-height:48px;padding:11px 18px;background:linear-gradient(135deg,#086b9c,#0a84c1);color:#fff;border:0;border-radius:28px;font-size:15px;font-weight:700;box-shadow:0 6px 22px rgba(8,107,156,.38);cursor:pointer;animation:fpLaunchPulse 3.2s ease-in-out infinite}.fp-chat-panel{box-sizing:border-box;position:fixed;left:auto;right:12px;bottom:82px;z-index:9991;width:min(390px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:610px;max-height:calc(100dvh - 100px);background:white;color:#17364b;border:1px solid #d7e5ed;border-radius:18px;box-shadow:0 12px 50px #163d5940;display:flex;flex-direction:column;overflow:hidden;font:15px/1.55 Arial,sans-serif}.fp-chat-panel[hidden],.fp-chat-panel [hidden],.fp-chat-proactive[hidden]{display:none!important}.fp-chat-panel *{box-sizing:border-box}.fp-chat-panel header{display:flex;justify-content:space-between;align-items:center;padding:15px;background:#086b9c;color:white}.fp-chat-panel header small{display:block;font-size:11px;margin-top:3px;color:#e0f2ff}.fp-chat-panel header button{font-size:28px;background:none;border:0;color:white;width:44px;height:44px;cursor:pointer}.fp-chat-messages{flex:1;overflow-y:auto;padding:16px;min-height:90px;overscroll-behavior:contain}.fp-chat-message{white-space:pre-line;border-radius:12px;padding:11px 13px;margin-bottom:12px;background:#f0f6fa;overflow-wrap:anywhere}.fp-chat-message.user{background:#086b9c;color:white;margin-left:35px}.fp-chat-card{display:block;background:white;border:1px solid #c9dfe9;border-radius:10px;padding:12px;margin:8px 0;color:#17364b;text-decoration:none}.fp-chat-card strong,.fp-chat-card small{display:block}.fp-chat-card small{font-size:13px}.fp-chat-card span{color:#006598;display:block;font-weight:bold;margin-top:5px}.fp-chat-choices{display:flex;flex-wrap:wrap;gap:7px;padding:0 12px 9px}.fp-chat-choices button{background:#fff;border:1px solid #9ec8dd;border-radius:18px;color:#08618b;font-size:13px;min-height:36px;padding:7px 11px;cursor:pointer}.fp-chat-form{display:flex;border-top:1px solid #d7e5ed;padding:10px;gap:7px}.fp-chat-form input{min-width:0;flex:1;border:1px solid #adc8d7;border-radius:9px;padding:10px;font-size:16px}.fp-chat-form button,.fp-chat-lead button{border:0;background:#086b9c;color:#fff;border-radius:8px;padding:10px 15px;min-height:44px;cursor:pointer}.fp-chat-panel footer{padding:0 12px 10px;display:flex;justify-content:space-between;font-size:12px}.fp-chat-panel footer button{border:0;background:none;color:#52677a;cursor:pointer;min-height:32px}.fp-chat-panel footer a{color:#08618b;align-self:center}.fp-chat-lead{padding:10px 14px;border-top:1px solid #d7e5ed;max-height:240px;overflow-y:auto;background:#f6fafc}.fp-chat-lead label{display:block;font-size:13px}.fp-chat-lead input[type=tel]{width:100%;border:1px solid #adc8d7;border-radius:7px;font-size:16px;padding:8px;margin:5px 0}.fp-chat-consent{margin:5px 0 10px;line-height:1.4}.fp-chat-consent input{vertical-align:middle}.fp-chat-lead button{width:100%}.fp-chat-error{margin:0;padding:5px 14px;color:#a51f26;font-size:13px}.fp-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.fp-chat-panel button:focus-visible,.fp-chat-launch:focus-visible,.fp-chat-panel a:focus-visible,.fp-chat-panel input:focus-visible{outline:3px solid #f0b42a;outline-offset:2px}.fp-chat-panel button:disabled{opacity:.55;cursor:wait}@media(max-width:480px){.fp-chat-launch{left:auto;right:12px;bottom:16px;padding:10px 14px;font-size:14px}.fp-chat-panel{left:auto;right:8px;bottom:76px;max-width:calc(100% - 16px);width:calc(100% - 16px);max-height:calc(100dvh - 90px);height:620px}.fp-chat-choices button{min-height:44px}}

button.fp-chat-card{width:100%;text-align:left;font:inherit;cursor:pointer}button.fp-chat-card small:last-child{margin-top:8px;color:#086b9c;font-weight:700}button.fp-chat-card:hover{border-color:#086b9c;background:#f6fafc}

/* Keep controls visible on short screens and folding devices. */
.fp-chat-panel{z-index:2147483000;isolation:isolate}.fp-chat-panel header,.fp-chat-form,.fp-chat-panel footer,.fp-chat-error{flex-shrink:0}
.fp-chat-panel header>div{min-width:0}.fp-chat-panel header button{flex-shrink:0}
.fp-chat-messages{min-height:0;flex:1 1 0;scroll-padding:12px;overflow-x:hidden}
.fp-chat-choices{flex:0 1 auto;max-height:28%;overflow-y:auto;min-height:0;overscroll-behavior:contain;gap:8px}
.fp-chat-choices button{min-height:44px;max-width:100%;overflow-wrap:anywhere}
.fp-chat-panel footer button,.fp-chat-panel footer a{min-height:44px;display:inline-flex;align-items:center}
.fp-chat-lead{min-height:0;overscroll-behavior:contain}.fp-chat-panel[data-registered="false"] .fp-chat-messages{flex:0 1 auto;max-height:28%}
.fp-chat-panel[data-registered="false"] .fp-chat-lead{flex:1 1 auto;max-height:none}
.fp-chat-lead p{margin:0 0 12px}.fp-chat-lead .fp-chat-consent{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0}.fp-chat-consent input{flex:0 0 20px;width:20px;height:20px;margin:0}
.fp-chat-panel button,.fp-chat-panel a,.fp-chat-launch{touch-action:manipulation}
body.fp-chat-open #fp-chat-launch{visibility:hidden}
@media(max-width:600px),(max-height:500px){
 .fp-chat-panel{left:8px;right:8px;top:calc(var(--fp-vv-top,0px) + 8px);bottom:auto;width:auto;max-width:calc(100vw - 16px);height:calc(var(--fp-vv-height,100dvh) - 16px);max-height:calc(var(--fp-vv-height,100dvh) - 16px);border-radius:14px}
 .fp-chat-panel header{padding:8px 12px}.fp-chat-panel header small{font-size:12px}
 .fp-chat-form{padding:8px}.fp-chat-panel footer{padding:0 10px max(4px,env(safe-area-inset-bottom))}
 .fp-chat-choices{max-height:25%;padding-bottom:6px}.fp-chat-panel[data-registered="false"] .fp-chat-messages{max-height:none;padding:12px}
 .fp-chat-panel[data-registered="false"] .fp-chat-message{margin-bottom:10px;padding:10px 12px}
}
@media(max-width:600px){.fp-chat-launch{bottom:84px;left:auto;right:12px}}

.fp-chat-live-tools{padding:8px 12px;border-top:1px solid #e2ebf1;flex-shrink:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fp-chat-live-tools[hidden]{display:none}.fp-chat-live-tools button{border:1px solid #9bc4dd;background:#fff;color:#12658b;border-radius:16px;padding:7px 10px;min-height:36px;cursor:pointer}.fp-chat-live-tools span{font-size:12px;color:#526778;line-height:1.4}.fp-chat-message.system{font-size:12px;color:#526778;background:#f5f7f9;white-space:pre-wrap}

.fp-send-state{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11px;opacity:.95}.fp-send-state button{min-height:36px;padding:4px 9px;border-radius:12px;border:1px solid #fff;background:#fff;color:#075c88;cursor:pointer}.fp-chat-message[data-delivery="failed"]{outline:2px solid #c57c17}.fp-chat-connection{margin:0;padding:6px 12px;background:#fff4dd;color:#76510a;font-size:12px;flex-shrink:0}.fp-chat-new{border:1px solid #a6cbe0;border-radius:12px;background:#eef7fc;color:#12597c;padding:6px 12px;align-self:center;cursor:pointer}.fp-chat-unread{background:#c83c32;color:#fff;border-radius:12px;padding:1px 7px;font-size:12px}.fp-chat-unread[hidden]{display:none!important}.fp-chat-bubble-body{white-space:pre-wrap}

/* Reserve separate, non-overlapping positions for chat, Zalo, scroll-to-top, and sticky bars */
@keyframes fpLaunchPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@media(prefers-reduced-motion:reduce){.fp-chat-launch{animation:none}}
.fp-chat-proactive{position:fixed;right:215px;bottom:22px;z-index:9990;max-width:min(285px,calc(100vw - 240px));background:#fff;color:#17364b;border:1px solid #b8d8e8;border-radius:14px;box-shadow:0 8px 26px rgba(8,107,156,.2);padding:10px 30px 10px 13px;font:600 13px/1.45 Arial,sans-serif}
.fp-chat-proactive-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.fp-chat-proactive-close{position:absolute;top:4px;right:6px;width:24px;height:24px;border:0;background:none;color:#627b8d;font-size:18px;line-height:1;cursor:pointer}
.fp-chat-lead-actions{display:flex;gap:8px;align-items:center}
.fp-chat-lead-actions button[type="submit"]{flex:1}
.fp-chat-lead-cancel{background:#fff!important;color:#39566b!important;border:1px solid #b9d0de!important;flex:0 0 auto;width:auto!important;padding:10px 12px!important;font-size:13px}
body.fp-chat-open .fp-chat-proactive{display:none!important}
body:has(#fp-chat-launch) .zalo-widget{right:20px!important;bottom:90px!important;z-index:9990}
body:has(#fp-chat-launch) .zalo-widget a{padding:8px!important;border-radius:50%!important;width:44px;height:44px;justify-content:center;box-sizing:border-box}
body:has(#fp-chat-launch) .zalo-widget img{margin-right:0!important;width:28px!important;height:28px!important}
body:has(#fp-chat-launch) .zalo-widget .zalo-text{display:none!important}
@media(min-width:992px){
 body:has(#fp-chat-launch) .zalo-widget a:hover{width:auto;border-radius:30px!important;padding:8px 16px!important}
 body:has(#fp-chat-launch) .zalo-widget a:hover img{margin-right:8px!important}
 body:has(#fp-chat-launch) .zalo-widget a:hover .zalo-text{display:inline-block!important}
}
body:has(#fp-chat-launch) #back-to-top{right:20px!important;bottom:148px!important;width:44px!important;height:44px!important;line-height:44px!important;font-size:20px!important;z-index:9989}
body:has(.landing-page-embed) #buttonshare,body:has(#detail) #buttonshare,body:has(#fp-chat-launch) .sticky-bar{display:none!important}
@media(max-width:767px){
 body:has(#fp-chat-launch):not(:has(.mobile-sticky-cta-bar)) .fp-chat-launch{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 body:has(#fp-chat-launch):not(:has(.mobile-sticky-cta-bar)) .zalo-widget{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 body:has(#fp-chat-launch):not(:has(.mobile-sticky-cta-bar)) .fp-chat-proactive{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;right:64px!important;max-width:calc(100vw - 80px)}
 body:has(#fp-chat-launch):not(:has(.mobile-sticky-cta-bar)) #back-to-top{bottom:calc(136px + env(safe-area-inset-bottom,0px))!important;right:14px!important;width:40px!important;height:40px!important;line-height:40px!important}
 body:has(#fp-chat-launch):has(.mobile-sticky-cta-bar) .fp-chat-launch{bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 body:has(#fp-chat-launch):has(.mobile-sticky-cta-bar) .zalo-widget{bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 body:has(#fp-chat-launch):has(.mobile-sticky-cta-bar) .fp-chat-proactive{bottom:calc(128px + env(safe-area-inset-bottom,0px))!important;right:64px!important;max-width:calc(100vw - 80px)}
 body:has(#fp-chat-launch):has(.mobile-sticky-cta-bar) #back-to-top{bottom:calc(184px + env(safe-area-inset-bottom,0px))!important;right:14px!important;width:40px!important;height:40px!important;line-height:40px!important}
}
