:root{--mp-blue:#0d6efd;--mp-blue-dark:#0757bd;--mp-navy:#082d58;--mp-red:#e30613;--mp-text:#132238;--mp-muted:#6f7e91;--mp-line:#e2eaf3;--mp-soft:#f6f9fd;--mp-success:#22b573;--mp-shadow:0 24px 70px rgba(8,42,85,.22)}
.mp-chat-launcher,.mp-chat-widget,.mp-chat-widget *,.mp-chat-toast,.mp-inline-open{box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.mp-chat-launcher,.mp-chat-widget button,.mp-chat-widget input,.mp-chat-widget textarea,.mp-chat-widget select,.mp-inline-open{font:inherit}
.mp-chat-launcher{position:fixed;right:24px;bottom:22px;z-index:2147482000;display:flex;align-items:center;gap:11px;min-height:58px;padding:8px 18px 8px 8px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;box-shadow:0 16px 38px rgba(13,110,253,.32);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.mp-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(13,110,253,.38)}
.mp-chat-launcher:focus-visible,.mp-chat-widget button:focus-visible,.mp-chat-widget input:focus-visible,.mp-chat-widget textarea:focus-visible,.mp-chat-widget select:focus-visible{outline:3px solid rgba(13,110,253,.22);outline-offset:2px}
.mp-launcher-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#fff;box-shadow:inset 0 0 0 1px rgba(13,110,253,.08)}
.mp-launcher-icon svg{width:27px;height:27px;color:var(--mp-blue)}.mp-launcher-icon svg path:first-child{fill:currentColor}.mp-launcher-icon svg circle{fill:#fff}
.mp-launcher-copy{display:flex;flex-direction:column;text-align:left;line-height:1.1}.mp-launcher-copy strong{font-size:14px;font-weight:800}.mp-launcher-copy small{font-size:10px;font-weight:600;opacity:.82;margin-top:4px}
.mp-chat-launcher>b{position:absolute;right:-2px;top:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--mp-red);color:#fff;border:3px solid #fff;font-size:10px;display:grid;place-items:center}

.mp-chat-widget{position:fixed;z-index:2147482001;right:22px;bottom:94px;width:min(405px,calc(100vw - 32px));height:min(680px,calc(100vh - 128px));height:min(680px,calc(100dvh - 128px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dbe6f2;border-radius:22px;box-shadow:var(--mp-shadow);opacity:0;pointer-events:none;transform:translateY(18px) scale(.97);transform-origin:bottom right;transition:opacity .2s ease,transform .22s ease}
.mp-chat-widget.open{opacity:1;pointer-events:auto;transform:none}
.mp-chat-head{min-height:68px;padding:12px 12px 12px 14px;display:flex;align-items:center;gap:10px;color:#fff;background:linear-gradient(135deg,#0b6ff5 0%,#075bbb 70%,#064a98 100%);position:relative}
.mp-chat-head:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 86% -20%,rgba(255,255,255,.22),transparent 35%);pointer-events:none}
.mp-brand-avatar{width:42px;height:42px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.12);position:relative;z-index:1}.mp-brand-avatar span{font-weight:950;font-size:21px;letter-spacing:-2px;color:var(--mp-navy);position:relative}.mp-brand-avatar span:before{content:"";position:absolute;width:6px;height:19px;background:var(--mp-red);left:-6px;top:3px;border-radius:2px}
.mp-head-copy{position:relative;z-index:1;min-width:0;flex:1;display:flex;flex-direction:column}.mp-head-copy strong{font-size:14px;line-height:1.2;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-head-copy small{margin-top:4px;font-size:10px;color:#e7f7ed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-head-copy small i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#45db89;margin-right:5px;box-shadow:0 0 0 3px rgba(69,219,137,.14)}.mp-head-copy small span{opacity:.62;margin:0 3px}
.mp-head-btn{position:relative;z-index:1;width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:0;border-radius:9px;background:rgba(255,255,255,.11);color:#fff;cursor:pointer;transition:background .15s ease}.mp-head-btn:hover{background:rgba(255,255,255,.2)}.mp-head-btn svg{width:18px;height:18px}
.mp-chat-context{display:flex;gap:10px;align-items:center;padding:8px 13px;background:#fff;border-bottom:1px solid #edf2f7;color:#708095;font-size:9.5px;font-weight:650;white-space:nowrap;overflow:hidden}.mp-chat-context span{display:flex;align-items:center;gap:3px}.mp-chat-context span:first-child{color:#2c7654}

.mp-chat-body{flex:1;min-height:0;overflow-y:auto;padding:14px 13px 18px;background:linear-gradient(180deg,#f7faff 0%,#f8fafc 50%,#f5f8fc 100%);scrollbar-width:thin;scrollbar-color:#c8d6e6 transparent;overscroll-behavior:contain}
.mp-chat-body::-webkit-scrollbar{width:6px}.mp-chat-body::-webkit-scrollbar-thumb{background:#cbd8e7;border-radius:999px}
.mp-msg{display:flex;align-items:flex-end;gap:7px;margin:10px 0}.mp-msg.user{justify-content:flex-end}.mp-msg-avatar{width:27px;height:27px;flex:0 0 27px;border-radius:9px;display:grid;place-items:center;background:#e7f0ff;color:#0b60d0;font-size:9px;font-weight:900;border:1px solid #d7e6fb}.mp-msg.bot .mp-msg-avatar{background:#fff;color:var(--mp-navy)}
.mp-bubble{max-width:83%;padding:10px 12px;border-radius:15px;font-size:12.5px;line-height:1.52;word-break:break-word;box-shadow:0 3px 12px rgba(19,34,56,.045)}
.mp-msg.bot .mp-bubble{background:#fff;border:1px solid #e3ebf4;border-bottom-left-radius:5px;color:var(--mp-text)}
.mp-msg.agent .mp-bubble,.mp-msg.zalo_user .mp-bubble{background:#e8f2ff;border:1px solid #d4e6ff;border-bottom-left-radius:5px;color:#14365e}
.mp-msg.user .mp-bubble{background:linear-gradient(135deg,#176fea,#0b5dc7);color:#fff;border-bottom-right-radius:5px}
.mp-msg.system{justify-content:center}.mp-msg.system .mp-msg-avatar{display:none}.mp-msg.system .mp-bubble{max-width:92%;padding:7px 10px;background:#eef2f6;color:#718095;border:0;border-radius:999px;box-shadow:none;font-size:10px;text-align:center}
.mp-time{display:block;margin-top:5px;text-align:right;font-size:8.5px;opacity:.56}.mp-bubble img{display:block;width:100%;max-width:250px;max-height:260px;object-fit:cover;border-radius:11px;margin-bottom:7px;background:#edf2f7}

.mp-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 5px}.mp-quick-btn{min-height:50px;padding:9px 10px;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #d4e3f7;border-radius:12px;background:#fff;color:#174f8f;font-size:11px;font-weight:750;cursor:pointer;box-shadow:0 3px 12px rgba(27,75,130,.035);transition:border-color .15s ease,background .15s ease,transform .15s ease}.mp-quick-btn:hover{background:#f0f6ff;border-color:#aacaf3;transform:translateY(-1px)}.mp-qicon{width:28px;height:28px;flex:0 0 28px;border-radius:9px;display:grid;place-items:center;background:#edf5ff;color:#0b62cf;font-size:14px}
.mp-step{margin:10px 0;padding:11px;background:#fff;border:1px solid var(--mp-line);border-radius:14px;box-shadow:0 3px 12px rgba(19,34,56,.03)}.mp-step-title{margin:0 0 8px;color:#6c7b8d;font-size:10px;font-weight:700}.mp-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mp-option{min-height:40px;padding:8px 9px;border:1px solid #cfe0f5;border-radius:10px;background:#fbfdff;color:#184c89;font-size:10.5px;font-weight:750;cursor:pointer;transition:.15s ease}.mp-option:hover{background:#edf5ff;border-color:#a7c8f1}
.mp-products{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.mp-product{overflow:hidden;padding:0;text-align:left;border:1px solid #dce6f1;border-radius:12px;background:#fff;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.mp-product:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(8,42,85,.08)}.mp-product-media{height:78px;background:linear-gradient(135deg,#e9f2fd,#f4f7fb);position:relative;overflow:hidden}.mp-product img{display:block;width:100%;height:100%;object-fit:cover}.mp-product.is-fallback img{display:none}.mp-product.is-fallback .mp-product-media:after{content:"MAXPRO";position:absolute;inset:0;display:grid;place-items:center;color:#7a98ba;font-size:11px;font-weight:850;letter-spacing:.6px}.mp-product strong{display:block;padding:8px 8px 2px;color:#173a62;font-size:10.5px;line-height:1.25}.mp-product small{display:block;padding:0 8px 8px;color:#7c8a9d;font-size:9px}
.mp-lead-form,.mp-dimension{display:grid;gap:8px;margin-top:7px}.mp-lead-form input,.mp-lead-form select,.mp-lead-form textarea,.mp-dimension input,.mp-prechat-card input{width:100%!important;min-height:41px!important;margin:0!important;padding:9px 11px!important;border:1px solid #d7e1ed!important;border-radius:10px!important;background:#fff!important;color:#1a2a3f!important;box-shadow:none!important;outline:none!important;font-size:11.5px!important;line-height:1.4!important}.mp-lead-form textarea{min-height:68px!important;resize:vertical}.mp-lead-form input:focus,.mp-lead-form select:focus,.mp-lead-form textarea:focus,.mp-dimension input:focus,.mp-prechat-card input:focus{border-color:#8db9f2!important;box-shadow:0 0 0 3px rgba(13,110,253,.08)!important}.mp-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mp-btn-primary{min-height:41px;border:0;border-radius:10px;padding:9px 12px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;font-size:11.5px;font-weight:800;cursor:pointer}.mp-lead-note{margin:1px 0 0;color:#8491a2;font-size:9.5px;text-align:center}

.mp-typing{display:flex;gap:4px;padding:0 17px 9px;background:#f5f8fc}.mp-typing span{width:6px;height:6px;border-radius:50%;background:#94a4b8;animation:mpTyping 1s infinite ease-in-out}.mp-typing span:nth-child(2){animation-delay:.15s}.mp-typing span:nth-child(3){animation-delay:.3s}@keyframes mpTyping{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}
.mp-chat-composer{display:flex;align-items:flex-end;gap:7px;padding:10px;background:#fff;border-top:1px solid #e6edf5}.mp-attach-btn,.mp-send-btn{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:11px;cursor:pointer}.mp-attach-btn{color:#667a92;background:#f3f6fa;transition:background .15s ease,color .15s ease}.mp-attach-btn:hover{background:#eaf2ff;color:#0c63cd}.mp-attach-btn svg{width:19px;height:19px}.mp-composer-field{flex:1;min-width:0}.mp-chat-composer textarea{display:block;width:100%!important;min-height:38px!important;max-height:96px!important;margin:0!important;padding:9px 11px!important;resize:none!important;border:1px solid #d9e3ee!important;border-radius:12px!important;background:#fff!important;color:#17273d!important;box-shadow:none!important;outline:none!important;font-size:12px!important;line-height:1.45!important}.mp-chat-composer textarea:focus{border-color:#9bc0ef!important;box-shadow:0 0 0 3px rgba(13,110,253,.07)!important}.mp-send-btn{border:0;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;transition:transform .15s ease,opacity .15s ease}.mp-send-btn:hover{transform:translateY(-1px)}.mp-send-btn:disabled{opacity:.55;cursor:wait;transform:none}.mp-send-btn svg{width:19px;height:19px}
.mp-chat-toast{position:fixed;z-index:2147482005;left:50%;bottom:24px;max-width:min(440px,calc(100vw - 24px));padding:11px 15px;border-radius:11px;background:#10233e;color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.2);font-size:11.5px;text-align:center;opacity:0;pointer-events:none;transform:translate(-50%,18px);transition:.22s ease}.mp-chat-toast.show{opacity:1;transform:translate(-50%,0)}
.mp-inline-open{border:0;border-radius:10px;padding:10px 16px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;font-weight:800;cursor:pointer}

.mp-prechat-gate{flex:1;overflow:auto;padding:20px 16px;background:linear-gradient(180deg,#f5f9ff,#fff)}.mp-prechat-card{padding:20px;text-align:center;border:1px solid #dfe8f5;border-radius:18px;background:#fff;box-shadow:0 14px 40px rgba(8,42,85,.1)}.mp-prechat-icon{width:52px;height:52px;margin:0 auto 10px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;font-size:18px;font-weight:900}.mp-prechat-card h3{margin:5px 0 7px;color:var(--mp-text);font-size:17px}.mp-prechat-card p{margin:0 0 15px;color:var(--mp-muted);font-size:11.5px;line-height:1.55}.mp-prechat-card form{display:grid;gap:9px;text-align:left}

@media(max-width:680px){
  .mp-chat-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));min-height:54px;padding:7px 14px 7px 7px}.mp-launcher-icon{width:40px;height:40px}.mp-launcher-copy strong{font-size:13px}.mp-launcher-copy small{font-size:9px}
  .mp-chat-widget{right:0;bottom:0;width:100%;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0;transform:translateY(100%);transform-origin:bottom center}.mp-chat-widget.open{transform:translateY(0)}
  .mp-chat-head{padding-top:max(12px,env(safe-area-inset-top));min-height:calc(66px + env(safe-area-inset-top))}.mp-chat-context{padding:7px 12px;font-size:9px;justify-content:center}.mp-chat-body{padding:12px 11px 16px}.mp-bubble{max-width:86%;font-size:12.5px}.mp-chat-composer{padding:9px 9px max(9px,env(safe-area-inset-bottom))}.mp-quick-grid{gap:7px}.mp-quick-btn{min-height:48px;padding:8px;font-size:10.5px}.mp-products{gap:7px}.mp-product-media{height:76px}
}
@media(max-width:370px){.mp-chat-context span:last-child{display:none}.mp-options,.mp-quick-grid{grid-template-columns:1fr}.mp-product strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mp-chat-launcher,.mp-chat-widget,.mp-chat-toast,.mp-quick-btn,.mp-product,.mp-send-btn{transition:none!important}.mp-typing span{animation:none!important}}


/* v1.5 Anonymous Shadow Bridge — official Zalo Chat Widget is mounted off-screen only. */
.mp-zalo-identity{margin:0 10px 9px;padding:10px 11px;border:1px solid #d8e7fb;border-radius:13px;background:linear-gradient(135deg,#f5f9ff,#fff);box-shadow:0 4px 16px rgba(11,95,199,.05)}
.mp-zalo-identity-copy{display:flex;align-items:center;gap:9px}.mp-zalo-mark{width:29px;height:29px;flex:0 0 29px;border-radius:9px;display:grid;place-items:center;background:#0068ff;color:#fff;font-weight:900;font-size:13px}.mp-zalo-identity-copy strong{display:block;color:#183b64;font-size:11.5px}.mp-zalo-identity-copy small{display:block;margin-top:2px;color:#73839a;font-size:9.5px;line-height:1.35}.mp-zalo-identity>button{width:100%;min-height:36px;margin-top:8px;border:0;border-radius:9px;background:#0068ff;color:#fff;font-size:10.5px;font-weight:800;cursor:pointer}.mp-zalo-identity>button:disabled{opacity:.6;cursor:wait}.mp-zalo-identity-status{margin-top:6px;color:#65758b;font-size:9.5px;line-height:1.4}.mp-zalo-identity.is-linked{border-color:#ccebdc;background:#f6fffa}.mp-zalo-identity.is-linked .mp-zalo-identity-status{color:#1c704b}.mp-zalo-identity.is-error{border-color:#f2d2ce;background:#fff9f8}.mp-zalo-interaction-mount:empty{display:none}

/* v1.5.0 Anonymous Shadow Bridge: keep the official Zalo Chat Widget fully
   outside the visible viewport while allowing its SDK/iframe to initialize.
   Do not use display:none because some social widgets skip initialization. */
.mp-zalo-shadow-bridge{position:fixed!important;left:-10000px!important;top:-10000px!important;width:360px!important;height:440px!important;overflow:hidden!important;opacity:.001!important;pointer-events:none!important;z-index:-2147483647!important;contain:layout paint style!important}
.mp-zalo-shadow-bridge iframe,.mp-zalo-shadow-bridge>div{max-width:360px!important;max-height:440px!important}
