:root{--mp-blue:#0b86f4;--mp-blue-dark:#045bc9;--mp-blue-deep:#053a89;--mp-navy:#062f72;--mp-red:#e30613;--mp-text:#0b2f6f;--mp-muted:#6980a8;--mp-line:#e7edf6;--mp-soft:#f7faff;--mp-success:#16d977;--mp-shadow:0 18px 50px rgba(4,46,105,.18),0 2px 10px rgba(5,70,145,.08)}
.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,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,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:20px;bottom:20px;z-index:2147482000;display:flex;align-items:center;gap:9px;min-height:54px;padding:7px 15px 7px 7px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;box-shadow:0 14px 34px rgba(13,110,253,.3);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.mp-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(13,110,253,.36)}
.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,.2);outline-offset:2px}
.mp-launcher-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:inset 0 0 0 1px rgba(13,110,253,.08)}
.mp-launcher-icon svg{width:25px;height:25px;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.08}.mp-launcher-copy strong{font-size:13px;font-weight:800}.mp-launcher-copy small{font-size:9px;font-weight:600;opacity:.84;margin-top:4px}
.mp-chat-launcher>b{position:absolute;right:-2px;top:-4px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:var(--mp-red);color:#fff;border:3px solid #fff;font-size:9px;display:grid;place-items:center}

/* v5.9.18 Desktop: Smart Chat visual + progressive anonymous chat. */
.mp-chat-widget{position:fixed;z-index:2147482001;right:18px;bottom:86px;width:min(438px,calc(100vw - 32px));height:min(718px,calc(100vh - 108px));height:min(718px,calc(100dvh - 108px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid rgba(27,103,184,.1);border-radius:27px;box-shadow:var(--mp-shadow);opacity:0;pointer-events:none;transform:translateY(16px) scale(.975);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{position:relative;min-height:102px;padding:18px 16px 17px 18px;display:flex;align-items:flex-start;gap:12px;color:#fff;background:radial-gradient(140% 180% at 95% -10%,rgba(255,255,255,.13) 0 32%,transparent 33%),linear-gradient(135deg,var(--mp-blue) 0%,#0a6ee0 38%,var(--mp-blue-dark) 74%,#0a55b7 100%)}
.mp-brand-logo{width:56px;height:56px;flex:0 0 56px;object-fit:contain;padding:5px;border-radius:14px;background:#fff;filter:drop-shadow(0 3px 5px rgba(0,0,0,.07))}
.mp-head-copy{min-width:0;flex:1;padding-top:2px;display:flex;flex-direction:column;position:relative;z-index:1}.mp-head-copy strong{font-size:18px;line-height:1.18;font-weight:850;letter-spacing:-.25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-head-copy small{margin-top:8px;font-size:10.5px;color:rgba(255,255,255,.95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-head-copy small i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16ee79;margin-right:6px;box-shadow:0 0 0 4px rgba(22,238,121,.12),0 0 9px rgba(22,238,121,.58)}.mp-head-copy small span{opacity:.74;margin:0 3px}
.mp-head-btn{position:relative;z-index:1;width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:0;border-radius:11px;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;transition:.16s ease}.mp-head-btn:hover{background:rgba(255,255,255,.22);transform:translateY(-1px)}.mp-head-btn svg{width:18px;height:18px}

.mp-chat-body{flex:1;min-height:0;overflow-y:auto;padding:16px 18px 18px;background:linear-gradient(180deg,#fff 0%,#fbfdff 46%,#f7fbff 100%);scrollbar-width:thin;scrollbar-color:#c8d6e6 transparent;overscroll-behavior:contain}
.mp-chat-body::-webkit-scrollbar{width:5px}.mp-chat-body::-webkit-scrollbar-thumb{background:#cbd8e7;border-radius:999px}
.mp-msg{display:flex;align-items:flex-start;gap:9px;margin:9px 0}.mp-msg.user{justify-content:flex-end;align-items:flex-end}.mp-msg-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e9eff7;box-shadow:0 4px 14px rgba(30,90,160,.07);overflow:hidden;color:var(--mp-navy);font-size:9px;font-weight:900}.mp-msg-avatar img{width:25px;height:25px;object-fit:contain!important;margin:0!important;border-radius:0!important;background:transparent!important}
.mp-bubble{max-width:81%;padding:12px 14px;border-radius:19px;font-size:12px;line-height:1.5;word-break:break-word;box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 3px 10px rgba(19,34,56,.035)}
.mp-msg.bot .mp-bubble{background:linear-gradient(135deg,#f5f8fc 0%,#eef3f8 100%);border:0;border-bottom-left-radius:6px;color:#143f7d}
.mp-msg.agent .mp-bubble,.mp-msg.zalo_user .mp-bubble{background:#eaf3ff;border:1px solid #d8e7fb;border-bottom-left-radius:6px;color:#14365e}
.mp-msg.user .mp-bubble{background:linear-gradient(135deg,#1888f1,#0864d2);color:#fff;border-bottom-right-radius:6px}
.mp-msg.system{justify-content:center}.mp-msg.system .mp-msg-avatar{display:none}.mp-msg.system .mp-bubble{max-width:92%;padding:6px 10px;background:#eef2f6;color:#718095;border:0;border-radius:999px;box-shadow:none;font-size:9.5px;text-align:center}
.mp-time{display:block;margin-top:5px;text-align:right;font-size:8px;opacity:.54}.mp-bubble img{display:block;width:100%;max-width:240px;max-height:250px;object-fit:cover;border-radius:11px;margin-bottom:7px;background:#edf2f7}

/* Reference HTML greeting block. It is server-rendered for first paint and then
   reused by JS, so the widget never opens as a large blank white panel. */
.mp-reference-start{display:block}.mp-reference-greeting{display:grid;grid-template-columns:42px 1fr;gap:11px;align-items:start;margin:0}
.mp-reference-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e9eff7;box-shadow:0 4px 14px rgba(30,90,160,.07);overflow:hidden;color:var(--mp-navy);font-size:10px;font-weight:900}
.mp-reference-avatar img{display:block;width:27px!important;height:27px!important;object-fit:contain!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.mp-reference-bubble{min-width:0;padding:13px 14px;border-radius:19px 19px 19px 6px;background:linear-gradient(135deg,#f5f8fc 0%,#eef3f8 100%);color:#143f7d;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.mp-reference-bubble strong{display:block;margin:0 0 4px;color:#062e6a;font-size:13px;line-height:1.25;font-weight:850}.mp-reference-bubble p{margin:0;color:#143f7d;font-size:10.8px;line-height:1.48}
.mp-reference-time{margin:6px 0 10px 53px;color:#7a90b4;font-size:8.8px;line-height:1.3}
.mp-chat-body.has-connect-error:after{content:"Đang thử kết nối lại với Smart Chat…";display:block;margin:8px auto 0;width:max-content;max-width:90%;padding:5px 9px;border-radius:999px;background:#fff3cd;color:#7a5a00;font-size:8.8px;border:1px solid #ffe69c}
.mp-chat-widget.is-connecting .mp-send-btn{opacity:.72}
.mp-prechat-gate[hidden],.mp-typing[hidden],.mp-chat-composer[hidden],.mp-chat-body[hidden]{display:none!important}

.mp-welcome-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:108px 1fr;gap:9px;align-items:center;min-height:142px;margin:12px 0 0;border-radius:20px;padding:12px 16px 12px 5px;background:linear-gradient(135deg,#eaf7ff 0%,#eef8ff 55%,#dfefff 100%)}
.mp-welcome-hero:after{content:"";position:absolute;right:-56px;bottom:-72px;width:230px;height:110px;border-radius:50%;border:22px solid rgba(255,255,255,.36);transform:rotate(-14deg)}
.mp-welcome-robot{position:relative;z-index:2;width:104px;margin:auto;display:block}.mp-welcome-hero-copy{position:relative;z-index:2;min-width:0}.mp-welcome-hero-copy strong{display:block;color:#093b82;font-size:14.5px;line-height:1.28;font-weight:850;letter-spacing:-.15px}.mp-welcome-hero-copy p{margin:7px 0 0;color:#5878a5;font-size:10.8px;line-height:1.48}

.mp-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0 4px}.mp-quick-btn{min-height:48px;padding:8px 9px;display:flex;align-items:center;gap:7px;text-align:left;border:1px solid #d8e5f6;border-radius:12px;background:#fff;color:#174f8f;font-size:10.5px;font-weight:750;cursor:pointer;box-shadow:0 4px 14px rgba(27,75,130,.04);transition:border-color .15s ease,background .15s ease,transform .15s ease}.mp-quick-btn:hover{background:#f8fbff;border-color:#c3d8f3;transform:translateY(-1px)}.mp-qicon{width:30px;height:30px;flex:0 0 30px;border-radius:10px;display:grid;place-items:center;background:#edf5ff;color:#0b62cf}.mp-qicon svg{width:17px;height:17px}
.mp-reference-grid{gap:9px}.mp-reference-choice{min-height:86px;padding:11px 10px;border-color:#edf1f7;border-radius:17px;display:grid;grid-template-columns:38px 1fr 14px;align-items:start;gap:8px;box-shadow:0 6px 17px rgba(34,96,160,.05)}.mp-reference-choice:hover{box-shadow:0 10px 22px rgba(34,96,160,.09);border-color:#dce8f8}.mp-reference-choice .mp-qicon{width:38px;height:38px;border-radius:50%}.mp-reference-choice .mp-qicon svg{width:20px;height:20px}.mp-reference-choice .tone-blue{background:#e7f3ff;color:#0876df}.mp-reference-choice .tone-red{background:#ffecef;color:#ef2938}.mp-reference-choice .tone-green{background:#e8f9ef;color:#0bac4d}.mp-reference-choice .tone-orange{background:#fff1e7;color:#f07a16}.mp-choice-copy{min-width:0}.mp-choice-copy strong{display:block;margin:2px 0 4px;color:#0a3474;font-size:11.5px;line-height:1.22;font-weight:800}.mp-choice-copy small{display:block;color:#7288ab;font-size:9.4px;line-height:1.34;font-weight:500}.mp-choice-chevron{color:#436899;margin-top:8px}.mp-choice-chevron svg{width:14px;height:14px}

.mp-step{margin:9px 0;padding:10px;background:#fff;border:1px solid var(--mp-line);border-radius:13px;box-shadow:0 3px 12px rgba(19,34,56,.03)}.mp-step-title{margin:0 0 7px;color:#6c7b8d;font-size:9.5px;font-weight:700}.mp-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mp-option{min-height:37px;padding:7px 8px;border:1px solid #cfe0f5;border-radius:9px;background:#fbfdff;color:#184c89;font-size:10px;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:7px;margin-top:7px}.mp-product{overflow:hidden;padding:0;text-align:left;border:1px solid #dce6f1;border-radius:11px;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:73px;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:"SMART CHAT";position:absolute;inset:0;display:grid;place-items:center;color:#7a98ba;font-size:10px;font-weight:850;letter-spacing:.6px}.mp-product strong{display:block;padding:7px 7px 2px;color:#173a62;font-size:10px;line-height:1.25}.mp-product small{display:block;padding:0 7px 7px;color:#7c8a9d;font-size:8.5px}
.mp-lead-form,.mp-dimension{display:grid;gap:7px;margin-top:7px;position:relative;z-index:1}.mp-lead-form input,.mp-lead-form select,.mp-lead-form textarea,.mp-dimension input,.mp-prechat-card input{width:100%!important;min-height:38px!important;margin:0!important;padding:8px 10px!important;border:1px solid #d7e1ed!important;border-radius:9px!important;background:#fff!important;color:#1a2a3f!important;box-shadow:none!important;outline:none!important;font-size:10.8px!important;line-height:1.4!important}.mp-lead-form textarea{min-height:62px!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:7px}.mp-btn-primary{min-height:38px;border:0;border-radius:9px;padding:8px 11px;background:linear-gradient(135deg,var(--mp-blue),var(--mp-blue-dark));color:#fff;font-size:10.8px;font-weight:800;cursor:pointer}.mp-btn-primary:disabled{opacity:.62;cursor:wait}.mp-lead-form.is-sending{pointer-events:none;opacity:.84}.mp-lead-note{margin:1px 0 0;color:#8491a2;font-size:9px;text-align:center}

.mp-typing{display:flex;gap:4px;padding:0 18px 7px;background:#f7fbff}.mp-typing span{width:5px;height:5px;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{position:relative;z-index:5;flex:0 0 auto;display:grid;grid-template-columns:40px 1fr 43px;gap:8px;align-items:end;padding:10px 12px 12px;background:#fff;border-top:1px solid var(--mp-line)}.mp-attach-btn,.mp-send-btn{display:grid;place-items:center;cursor:pointer}.mp-attach-btn{width:40px;height:40px;border-radius:50%;background:#f1f5fa;color:#57739d;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{min-width:0}.mp-chat-composer textarea{display:block;width:100%!important;min-height:42px!important;max-height:92px!important;margin:0!important;padding:10px 12px!important;resize:none!important;border:1.5px solid #e4ebf4!important;border-radius:16px!important;background:#fff!important;color:#173d75!important;box-shadow:none!important;outline:none!important;font-size:11.5px!important;line-height:1.42!important}.mp-chat-composer textarea:focus{border-color:#76b7ff!important;box-shadow:0 0 0 3px rgba(20,131,244,.07)!important}.mp-chat-composer textarea::placeholder{color:#899ab5}.mp-send-btn{width:43px;height:43px;border:0;border-radius:50%;background:linear-gradient(135deg,#1692ff 0%,#0569e8 75%);color:#fff;box-shadow:0 7px 16px rgba(4,109,231,.2);transition:transform .15s ease,opacity .15s ease}.mp-send-btn:hover{transform:translateY(-1px) scale(1.02)}.mp-send-btn:disabled{opacity:.55;cursor:wait;transform:none}.mp-send-btn svg{width:20px;height:20px}
.mp-chat-toast{position:fixed;z-index:2147482005;left:50%;bottom:24px;max-width:min(420px,calc(100vw - 24px));padding:9px 14px;border-radius:999px;background:#0a3474;color:#fff;box-shadow:0 10px 28px rgba(4,39,85,.24);font-size:10.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:18px 16px;background:linear-gradient(180deg,#f5f9ff,#fff)}.mp-prechat-card{padding:18px;text-align:center;border:1px solid #dfe8f5;border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(8,42,85,.09)}.mp-prechat-icon{width:48px;height:48px;margin:0 auto 9px;display:grid;place-items:center;border-radius:14px;background:#fff;border:1px solid #dfe8f5;box-shadow:0 4px 14px rgba(30,90,160,.07);overflow:hidden}.mp-prechat-icon img{display:block;width:34px;height:34px;object-fit:contain}.mp-prechat-card h3{margin:5px 0 7px;color:var(--mp-text);font-size:15px}.mp-prechat-card p{margin:0 0 13px;color:var(--mp-muted);font-size:10.8px;line-height:1.5}.mp-prechat-card form{display:grid;gap:8px;text-align:left}

@media(max-height:760px) and (min-width:768px){.mp-chat-widget{height:calc(100dvh - 92px);bottom:74px}.mp-chat-head{min-height:90px;padding-top:14px;padding-bottom:13px}.mp-brand-logo{width:50px;height:50px;flex-basis:50px}.mp-chat-body{padding-top:13px}.mp-welcome-hero{min-height:128px}.mp-welcome-robot{width:92px}.mp-reference-choice{min-height:78px}}
@media(max-width:920px) and (min-width:768px){.mp-chat-widget{right:14px;width:min(420px,calc(100vw - 28px))}}

@keyframes mpPhoneRing{0%,67%,100%{transform:rotate(0) scale(1)}71%{transform:rotate(-12deg) scale(1.06)}75%{transform:rotate(12deg) scale(1.06)}79%{transform:rotate(-9deg) scale(1.04)}83%{transform:rotate(8deg) scale(1.03)}87%{transform:rotate(-4deg) scale(1.01)}91%{transform:rotate(0) scale(1)}}
@keyframes mpZaloFloat{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-2px) scale(1.06)}60%{transform:translateY(0) scale(1)}}
@keyframes mpZaloHalo{0%,34%{opacity:0;transform:scale(.72)}45%{opacity:.58}72%,100%{opacity:0;transform:scale(1.28)}}
@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,.mp-mobile-icon-call,.mp-mobile-icon-zalo,.mp-mobile-icon-zalo:before{animation:none!important}}

/* Hybrid channel UI: desktop Smart Chat, mobile direct Call + Zalo OA. */
.mp-mobile-contact-bar,.mp-mobile-contact-spacer,.mp-inline-mobile-zalo{display:none!important}
@media (min-width:768px){.mp-chat-launcher{display:flex}.mp-inline-open{display:inline-flex;align-items:center;gap:7px}}
@media (max-width:767px){
  .mp-chat-launcher,.mp-chat-widget,.mp-chat-toast,.mp-inline-open{display:none!important}
  .mp-mobile-contact-spacer{display:block!important;width:100%;height:calc(56px + env(safe-area-inset-bottom,0px))}
  .mp-mobile-contact-bar{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;display:grid!important;grid-template-columns:1fr 1fr;width:100%;min-height:56px;padding:0 0 env(safe-area-inset-bottom,0px);margin:0;background:#fff;box-shadow:0 -2px 12px rgba(15,23,42,.16);-webkit-transform:translateZ(0);transform:translateZ(0);contain:layout paint}
  .mp-mobile-action{min-width:0;height:56px;margin:0;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:0;color:#fff!important;text-decoration:none!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.12;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
  .mp-mobile-action:active{filter:brightness(.94)}.mp-mobile-call{background:#f2555e}.mp-mobile-zalo{background:#25b95d;border-left:2px solid rgba(255,255,255,.92)}
  .mp-mobile-icon{position:relative;width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;transform-origin:50% 50%;backface-visibility:hidden;-webkit-backface-visibility:hidden}.mp-mobile-icon svg{width:27px;height:27px;display:block}
  .mp-mobile-icon-call{animation:mpPhoneRing 2.7s cubic-bezier(.36,.07,.19,.97) infinite}.mp-mobile-icon-zalo{animation:mpZaloFloat 2.4s ease-in-out infinite}.mp-mobile-icon-zalo:before{content:"";position:absolute;inset:-2px;border:1.5px solid rgba(255,255,255,.72);border-radius:50%;opacity:0;pointer-events:none;animation:mpZaloHalo 2.4s ease-out infinite}.mp-mobile-action:active .mp-mobile-icon{animation:none!important;transform:scale(.88)}
  .mp-mobile-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.mp-mobile-copy small{display:block;margin:0 0 2px;color:#fff;font-size:13px;font-weight:500;line-height:1}.mp-mobile-copy strong,.mp-mobile-zalo>strong{display:block;color:#fff;font-size:14px;font-weight:650;line-height:1.12}
  .mp-inline-mobile-zalo{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:9px;background:#25b95d;color:#fff!important;text-decoration:none!important;font-weight:700;touch-action:manipulation}
}
@media (max-width:350px){.mp-mobile-action{gap:6px;padding:0 7px}.mp-mobile-icon{width:27px;height:27px;flex-basis:27px}.mp-mobile-icon svg{width:24px;height:24px}.mp-mobile-copy small{font-size:12px}.mp-mobile-copy strong,.mp-mobile-zalo>strong{font-size:13px}}
div.zalo-chat-widget{display:none!important}
.mp-mobile-zalo-disabled{opacity:.62;cursor:not-allowed;pointer-events:none}.mp-mobile-zalo-disabled .mp-mobile-icon{animation:none!important}.mp-mobile-zalo-disabled .mp-mobile-icon:before{animation:none!important;opacity:0!important}
@media(prefers-reduced-motion:reduce){.mp-mobile-icon-call,.mp-mobile-icon-zalo,.mp-mobile-icon-zalo:before{animation:none!important}}


/* v5.9.20 button polish: tighter, centered, cleaner action buttons. */
.mp-chat-head{align-items:center;padding:16px 14px 16px 18px;gap:10px}
.mp-head-copy{padding-top:0}
.mp-head-copy strong{font-size:16px;line-height:1.14}
.mp-head-copy small{margin-top:6px;font-size:10px}
.mp-head-btn{width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:rgba(255,255,255,.15);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.mp-head-btn + .mp-head-btn{margin-left:3px}
.mp-head-btn svg{width:16px;height:16px}

.mp-step{margin:10px 0;padding:14px 14px 12px;border-radius:16px;box-shadow:0 8px 22px rgba(19,34,56,.045)}
.mp-step-title{margin:0 0 10px;font-size:12px;font-weight:700;color:#7a8798}
.mp-options{gap:10px}
.mp-option{display:flex;align-items:center;justify-content:center;min-height:56px;padding:10px 12px;border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #cfe0f5;color:#174780;font-size:12.5px;line-height:1.28;font-weight:700;text-align:center;text-transform:none;letter-spacing:0;white-space:normal;word-break:normal;overflow-wrap:anywhere;box-shadow:0 5px 16px rgba(34,96,160,.06)}
.mp-option:hover{background:#edf5ff;border-color:#abcaf0;box-shadow:0 9px 22px rgba(34,96,160,.11);transform:translateY(-1px)}
.mp-option:active{transform:scale(.985)}

.mp-reference-grid{gap:10px}
.mp-reference-choice{min-height:88px;padding:12px;border-radius:18px;grid-template-columns:40px 1fr 16px;align-items:center;gap:9px}
.mp-reference-choice .mp-qicon{width:40px;height:40px}
.mp-choice-copy{display:flex;min-width:0;flex-direction:column;justify-content:center}
.mp-choice-copy strong{margin:0 0 4px;font-size:12px;line-height:1.22}
.mp-choice-copy small{font-size:9.7px;line-height:1.36}
.mp-choice-chevron{display:grid;place-items:center;align-self:center;margin-top:0}
.mp-choice-chevron svg{width:15px;height:15px}

.mp-chat-composer{grid-template-columns:42px 1fr 46px;gap:10px;align-items:center;padding:10px 12px 12px}
.mp-attach-btn{width:42px;height:42px}
.mp-attach-btn svg{width:20px;height:20px}
.mp-chat-composer textarea{min-height:44px!important;padding:10px 14px!important;border-radius:18px!important;font-size:12px!important;line-height:1.42!important}
.mp-send-btn{width:46px;height:46px;align-self:center;justify-self:center;box-shadow:0 9px 18px rgba(4,109,231,.22)}
.mp-send-btn svg{width:21px;height:21px}

@media(max-width:767px){
  .mp-chat-head{padding:14px 12px 14px 16px}
  .mp-brand-logo{width:52px;height:52px;flex-basis:52px}
  .mp-head-copy strong{font-size:15px}
  .mp-head-copy small{font-size:9.7px}
  .mp-head-btn{width:28px;height:28px;flex-basis:28px;border-radius:9px}
  .mp-head-btn svg{width:15px;height:15px}
  .mp-step{padding:12px;border-radius:15px}
  .mp-step-title{font-size:11.5px}
  .mp-options{gap:9px}
  .mp-option{min-height:52px;padding:9px 10px;font-size:11.5px;border-radius:13px}
  .mp-chat-composer{grid-template-columns:40px 1fr 44px;gap:8px;padding:10px 10px 10px}
  .mp-send-btn{width:44px;height:44px}
}

/* v5.9.21 UI alignment hardening — neutralize theme button styles inside Smart Chat. */
.mp-chat-widget button{
  box-sizing:border-box!important;
  margin:0!important;
  min-width:0;
  max-width:100%;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  line-height:1.25;
  text-transform:none!important;
  letter-spacing:0!important;
  -webkit-appearance:none;
  appearance:none;
  vertical-align:middle;
}
.mp-chat-head{align-items:center!important;gap:10px!important;padding:15px 14px 15px 18px!important;min-height:96px}
.mp-brand-logo{align-self:center}
.mp-head-copy{align-self:center;padding-top:0!important}
.mp-head-copy strong{font-size:16px!important;line-height:1.15!important}
.mp-head-copy small{margin-top:6px!important;font-size:10px!important;line-height:1.25!important}
.mp-head-btn{align-self:center!important;width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:10px!important;padding:0!important;display:grid!important;place-items:center!important}
.mp-head-btn svg{width:16px!important;height:16px!important;margin:0!important}
.mp-head-btn + .mp-head-btn{margin-left:2px!important}

/* Choice buttons: same height, centered content and predictable wrapping. */
.mp-step{padding:12px!important;border-radius:15px!important}
.mp-step-title{margin:0 0 9px!important;font-size:10.8px!important;line-height:1.3!important}
.mp-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
.mp-option{
  width:100%!important;
  min-height:48px!important;
  height:100%;
  padding:8px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  text-align:center!important;
  font-size:11.5px!important;
  line-height:1.28!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  box-shadow:0 4px 12px rgba(34,96,160,.05)!important;
}
.mp-option:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(34,96,160,.09)!important}
.mp-option:active{transform:scale(.985)}

/* Four reference actions: icon / copy / chevron align to the same center line. */
.mp-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:stretch!important}
.mp-reference-choice{
  width:100%!important;
  min-height:82px!important;
  height:100%;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) 14px!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:16px!important;
}
.mp-reference-choice .mp-qicon{width:38px!important;height:38px!important;align-self:center!important}
.mp-choice-copy{align-self:center!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important}
.mp-choice-copy strong{margin:0 0 3px!important;font-size:11px!important;line-height:1.2!important}
.mp-choice-copy small{font-size:9.2px!important;line-height:1.3!important}
.mp-choice-chevron{align-self:center!important;justify-self:center!important;margin:0!important;display:grid!important;place-items:center!important}
.mp-choice-chevron svg{display:block!important;width:13px!important;height:13px!important}

/* Product/catalog buttons: equal cards and equal media/text baselines. */
.mp-products{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  grid-auto-rows:1fr;
  margin-top:9px!important;
}
.mp-product{
  width:100%!important;
  height:100%!important;
  min-height:190px!important;
  padding:0!important;
  display:grid!important;
  grid-template-rows:90px 43px minmax(46px,1fr)!important;
  align-content:stretch!important;
  border-radius:14px!important;
  overflow:hidden!important;
  text-align:left!important;
  background:#fff!important;
}
.mp-product-media{width:100%!important;height:90px!important;min-height:90px!important;overflow:hidden!important;background:#f2f6fb!important}
.mp-product img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:cover!important;object-position:center center!important;border-radius:0!important}
.mp-product strong{
  min-height:43px!important;
  padding:8px 9px 4px!important;
  margin:0!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  align-self:start;
  color:#173a62!important;
  font-size:10px!important;
  line-height:1.16!important;
  font-weight:800!important;
}
.mp-product small{
  min-height:46px!important;
  padding:0 9px 9px!important;
  margin:0!important;
  display:block!important;
  align-self:start;
  color:#7c8a9d!important;
  font-size:8.6px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere;
}

/* Composer buttons: same optical center as the textarea. */
.mp-chat-composer{grid-template-columns:40px minmax(0,1fr) 44px!important;gap:8px!important;align-items:center!important;padding:10px 11px 11px!important}
.mp-attach-btn{width:40px!important;height:40px!important;min-width:40px!important;align-self:center!important;margin:0!important;display:grid!important;place-items:center!important}
.mp-attach-btn svg{display:block!important;width:19px!important;height:19px!important;margin:0!important}
.mp-composer-field{align-self:center!important}
.mp-chat-composer textarea{min-height:42px!important;padding:10px 12px!important;margin:0!important;line-height:1.4!important}
.mp-send-btn{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;align-self:center!important;justify-self:center!important;display:grid!important;place-items:center!important;border-radius:50%!important}
.mp-send-btn svg{display:block!important;width:20px!important;height:20px!important;margin:0!important;transform:none!important}

@media(max-width:440px){
  .mp-options{gap:7px!important}
  .mp-option{min-height:46px!important;padding:7px 8px!important;font-size:10.8px!important}
  .mp-reference-choice{min-height:78px!important;grid-template-columns:34px minmax(0,1fr) 12px!important;padding:9px!important;gap:7px!important}
  .mp-reference-choice .mp-qicon{width:34px!important;height:34px!important}
  .mp-product{grid-template-rows:82px 40px minmax(42px,1fr)!important;min-height:174px!important}
  .mp-product-media{height:82px!important;min-height:82px!important}
  .mp-product strong{min-height:40px!important;font-size:9.5px!important}
  .mp-product small{font-size:8.2px!important}
}


/* v5.9.22 realtime feel: larger chat type + unmistakable AI typing state. */
.mp-bubble{font-size:13.2px!important;line-height:1.52!important}
.mp-time{font-size:8.7px!important;margin-top:6px!important}
.mp-reference-bubble p{font-size:11.4px!important}
.mp-reference-bubble strong{font-size:13.5px!important}
.mp-step-title{font-size:10.4px!important}
.mp-option{font-size:11.3px!important}
.mp-chat-composer textarea{font-size:12.5px!important}
.mp-product strong{font-size:10.5px!important;line-height:1.2!important}
.mp-product small{font-size:9px!important;line-height:1.38!important}

.mp-typing{width:max-content;max-width:calc(100% - 36px);margin:7px 18px 9px;padding:8px 11px!important;display:flex;align-items:center;gap:5px;background:linear-gradient(135deg,#f5f8fc 0%,#eef3f8 100%)!important;border-radius:17px 17px 17px 6px;box-shadow:0 4px 14px rgba(19,34,56,.05);color:#647a98}
.mp-typing:before{content:"TC đang trả lời ...";font-size:10.5px;font-weight:600;margin-right:3px;white-space:nowrap}
.mp-typing span{width:6px!important;height:6px!important;background:#5c88bd!important;animation:mpTypingV5922 .9s infinite ease-in-out!important}
.mp-typing span:nth-child(2){animation-delay:.12s!important}.mp-typing span:nth-child(3){animation-delay:.24s!important}
@keyframes mpTypingV5922{0%,70%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-4px);opacity:1}}
.mp-optimistic .mp-bubble{opacity:.94}.mp-optimistic .mp-time{opacity:.62}
@media(prefers-reduced-motion:reduce){.mp-typing span{animation:none!important;opacity:.7!important}}

/* v5.9.24 clickable product/web links. */
.mp-link-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.mp-chat-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px;border:1px solid #bfd9f7;border-radius:10px;background:#fff;color:#0969d7!important;text-decoration:none!important;font-size:11.5px;font-weight:750;line-height:1.2;box-shadow:0 4px 12px rgba(9,105,215,.07);transition:background .15s ease,border-color .15s ease,transform .15s ease}
.mp-chat-link:hover{background:#edf6ff;border-color:#91c1f4;transform:translateY(-1px);text-decoration:none!important}
.mp-chat-link span{font-size:12px;line-height:1}

/* v5.9.55 Document card: PDF/catalog attachments must never render as broken images. */
.mp-file-card{display:flex;align-items:center;gap:10px;min-width:220px;max-width:100%;padding:10px 11px;margin:0;text-decoration:none!important;color:inherit!important;background:#fff;border:1px solid #d8e4f2;border-radius:13px;box-shadow:0 3px 10px rgba(20,63,125,.05);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.mp-file-card:hover{transform:translateY(-1px);border-color:#bad2ee;box-shadow:0 6px 16px rgba(20,63,125,.09)}
.mp-file-badge{width:39px;height:43px;flex:0 0 39px;display:grid;place-items:center;border-radius:9px;background:#fff0f1;color:#d91e2b;font-size:10px;font-weight:900;letter-spacing:.3px;border:1px solid #ffd7da}
.mp-file-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.mp-file-copy strong{display:block;color:#17477f;font-size:10.8px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.mp-file-copy small{display:block;color:#7287a6;font-size:8.8px;line-height:1.3}.mp-file-arrow{font-size:25px;line-height:1;color:#5c86b8;margin-left:auto}
.mp-msg.user .mp-file-card{background:rgba(255,255,255,.97);color:#17477f!important}

/* Băng Tải Thành Công brand badge */
.mp-brand-text{display:inline-flex!important;align-items:center;justify-content:center;font-weight:800;letter-spacing:-.04em;color:#fff;background:linear-gradient(135deg,#0d6efd,#0752a8);border-radius:50%;font-size:13px;line-height:1}.mp-chat-head .mp-brand-text{width:38px;height:38px;flex:0 0 38px}.mp-reference-avatar .mp-brand-text{width:32px;height:32px;font-size:11px}
