/* ===== Mila Chat widget ===== */
#myg-chat-root{--mg-blue:#0057e7;--mg-royal:#151ca1;--mg-ink:#0d1326;--mg-line:#e6e9f2;--mg-muted:#5a6273;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
#myg-chat-root *{box-sizing:border-box}
/* Neutralize the host theme's form/button styling inside the widget */
#myg-chat-root button{font-family:inherit;line-height:normal;text-transform:none;letter-spacing:normal;box-shadow:none;min-width:0;width:auto;height:auto;margin:0;text-shadow:none}
#myg-chat-root textarea,#myg-chat-root input{font-family:inherit;box-shadow:none;margin:0;min-height:0;max-width:none}
#myg-chat-root h4,#myg-chat-root h5,#myg-chat-root p{margin:0;text-transform:none;letter-spacing:normal}

/* launcher bubble */
.mg-launch{position:fixed;right:22px;bottom:22px;z-index:99999;display:flex;align-items:center;gap:10px;
	background:linear-gradient(140deg,#1f6bff,#151ca1);color:#fff;border:0;cursor:pointer;
	padding:10px 18px 10px 10px;border-radius:999px;box-shadow:0 16px 34px -8px rgba(0,87,231,.55);
	font-weight:700;font-size:15px;transition:transform .15s,box-shadow .15s}
.mg-launch:hover{transform:translateY(-2px);box-shadow:0 20px 40px -8px rgba(0,87,231,.7)}
.mg-launch img,.mg-launch .mg-ph{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid rgba(255,255,255,.7);background:#fff}
.mg-launch .mg-dot{position:absolute;top:8px;left:36px;width:12px;height:12px;border-radius:50%;background:#27c93f;border:2px solid #fff}
.mg-launch.mg-hide{display:none}

/* panel */
.mg-panel{position:fixed;right:22px;bottom:22px;z-index:100000;width:380px;max-width:calc(100vw - 32px);
	height:600px;max-height:calc(100vh - 44px);background:#fff;border-radius:20px;overflow:hidden;
	display:flex;flex-direction:column;box-shadow:0 30px 70px -12px rgba(13,20,50,.45);
	transform:translateY(14px) scale(.98);opacity:0;pointer-events:none;transition:transform .2s,opacity .2s}
.mg-panel.mg-open{transform:none;opacity:1;pointer-events:auto}

.mg-head{background:linear-gradient(140deg,#1f6bff 0%,#151ca1 70%,#2e2f4b 100%);color:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px}
.mg-head img,.mg-head .mg-ph{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.6);background:#fff;flex:0 0 auto}
.mg-head .mg-ph{display:flex;align-items:center;justify-content:center;font-size:22px}
.mg-head h4{margin:0;font-size:16px;font-weight:800;line-height:1.1;color:#fff !important}
.mg-head p{margin:2px 0 0;font-size:12.5px;color:#cfe0ff !important;display:flex;align-items:center;gap:6px}
.mg-head p::before{content:"";width:8px;height:8px;border-radius:50%;background:#27c93f;display:inline-block}
.mg-head .mg-x{margin-left:auto;background:transparent;border:0;color:#fff;cursor:pointer;font-size:22px;line-height:1;opacity:.85;padding:4px}
.mg-head .mg-x:hover{opacity:1}

.mg-body{flex:1;overflow-y:auto;padding:18px;background:#f5f8fc;display:flex;flex-direction:column;gap:12px}
.mg-row{display:flex;gap:9px;align-items:flex-end;max-width:88%}
.mg-row.mg-me{align-self:flex-end;flex-direction:row-reverse}
.mg-av{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#dde6f5}
.mg-bubble{padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.mg-bot .mg-bubble{background:#fff;color:#1c2533;border:1px solid var(--mg-line);border-bottom-left-radius:5px}
.mg-me .mg-bubble{background:linear-gradient(140deg,#1f6bff,#0a4fd6);color:#fff;border-bottom-right-radius:5px}
.mg-typing .mg-bubble{display:flex;gap:4px}
.mg-typing span{width:7px;height:7px;border-radius:50%;background:#b9c3d6;animation:mg-blink 1.2s infinite}
.mg-typing span:nth-child(2){animation-delay:.2s}.mg-typing span:nth-child(3){animation-delay:.4s}
@keyframes mg-blink{0%,60%,100%{opacity:.3}30%{opacity:1}}

/* quick action chips */
.mg-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.mg-chip{background:#fff;border:1px solid #cfe0ff;color:var(--mg-blue);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
.mg-chip:hover{background:var(--mg-blue);color:#fff;border-color:var(--mg-blue)}

/* inline contact mini-form */
.mg-form{background:#fff;border:1px solid var(--mg-line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:9px}
.mg-form h5{margin:0 0 2px;font-size:14px;font-weight:800;color:var(--mg-ink)}
.mg-form input,.mg-form textarea{width:100%;border:1px solid var(--mg-line);border-radius:10px;padding:10px 12px;font-size:14px;font-family:inherit}
.mg-form input:focus,.mg-form textarea:focus{outline:0;border-color:var(--mg-blue);box-shadow:0 0 0 3px rgba(0,87,231,.12)}
.mg-form .mg-2{display:flex;gap:8px}.mg-form .mg-2 input{flex:1}
.mg-form button{background:linear-gradient(140deg,#1f6bff,#0a4fd6);color:#fff;border:0;border-radius:10px;padding:11px;font-weight:700;font-size:14px;cursor:pointer}
.mg-form button:hover{filter:brightness(1.05)}
.mg-form .mg-cancel{background:none;color:var(--mg-muted);padding:4px;font-weight:600;font-size:13px}

/* the real website contact form, embedded inside the chat */
.mg-realform{background:#fff;border:1px solid var(--mg-line);border-radius:16px;padding:14px 14px 6px;align-self:flex-start;width:100%}
.mg-realform .icb-form{max-width:100% !important;margin:0 !important}
.mg-realform .icb-fields,.mg-realform .icb-row,.mg-realform .icb-grid{display:block !important}
.mg-realform .icb-field{width:100% !important;max-width:100% !important;float:none !important;display:block !important;margin:0 0 11px !important;padding:0 !important}
.mg-realform label{font-size:12px !important;font-weight:700 !important;letter-spacing:.02em;margin:0 0 4px !important;display:block !important;color:var(--mg-ink) !important}
.mg-realform input,.mg-realform select,.mg-realform textarea{width:100% !important;font-size:14px !important;padding:9px 11px !important;border:1px solid var(--mg-line) !important;border-radius:9px !important;box-sizing:border-box !important;min-height:0 !important}
.mg-realform textarea{min-height:58px !important;resize:vertical !important}
.mg-realform .icb-submit{width:100% !important;font-size:14px !important;font-weight:700 !important;padding:11px !important;border-radius:10px !important;margin-top:4px !important;background:linear-gradient(140deg,#1f6bff,#0a4fd6) !important;color:#fff !important;border:0 !important}
.mg-realform .icb-hint{font-size:11px !important}
.mg-realform .icb-message{font-size:13.5px}

.mg-foot{border-top:1px solid var(--mg-line);background:#fff;padding:12px;display:flex;gap:9px;align-items:flex-end}
.mg-foot textarea{flex:1;resize:none;border:1px solid var(--mg-line) !important;border-radius:12px;padding:11px 13px !important;font-size:14.5px;height:44px !important;min-height:44px !important;max-height:110px !important;line-height:1.4;background:#fff}
.mg-foot textarea:focus{outline:0;border-color:var(--mg-blue) !important;box-shadow:0 0 0 3px rgba(0,87,231,.12)}
.mg-send{flex:0 0 auto !important;width:44px !important;height:44px !important;min-width:44px !important;padding:0 !important;border-radius:12px !important;border:0 !important;background:linear-gradient(140deg,#1f6bff,#0a4fd6) !important;color:#fff !important;cursor:pointer;display:flex !important;align-items:center;justify-content:center}
.mg-send:disabled{opacity:.5;cursor:default}
.mg-send svg{width:20px;height:20px;display:block}
.mg-badge{text-align:center;font-size:11px;color:#9aa3b5;padding:0 0 8px}

@media(max-width:480px){
	.mg-panel{right:0;bottom:0;width:100vw;height:100vh;max-height:100vh;border-radius:0}
	.mg-launch{right:16px;bottom:16px}
}

/* new Mila (headset) avatar — frame the face + headset in the circle */
.mg-launch img,.mg-head img,.mg-av{object-position:50% 26%}
