.mj-root {
--mj-primary: #1274b9;
--mj-accent: #318ad0;
--mj-text: #333333;
--mj-muted: #666666;
--mj-line: #e1e5e8;
--mj-soft: #edf1f2;
--mj-white: #ffffff;
font-family: "Segoe UI", Helvetica, Arial, sans-serif;
color: var(--mj-text);
line-height: 1.45;
}
.mj-launch {
position: fixed;
right: 22px;
bottom: 22px;
z-index: 99990;
width: 68px;
height: 68px;
border: 0;
border-radius: 50%;
background: var(--mj-primary);
color: #fff;
box-shadow: 0 10px 24px rgba(18, 116, 185, 0.35);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.mj-launch:hover,
.mj-launch:focus-visible { background: var(--mj-accent); outline: 3px solid #fff; outline-offset: 2px; }
.mj-launch svg { width: 32px; height: 32px; display: block; }
.mj-launch-label {
position: absolute;
right: 78px;
background: #fff;
color: var(--mj-primary);
border: 1px solid var(--mj-line);
border-radius: 999px;
padding: 6px 12px;
font-size: 14px;
font-weight: 650;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
white-space: nowrap;
}
.mj-panel {
position: fixed;
right: 22px;
bottom: 102px;
z-index: 99991;
width: min(400px, calc(100vw - 24px));
height: min(640px, calc(100vh - 130px));
background: var(--mj-white);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 18px 50px rgba(17, 24, 39, 0.22);
display: flex;
flex-direction: column;
border: 1px solid rgba(18, 116, 185, 0.15);
}
.mj-panel[hidden] { display: none; }
.mj-topbar { height: 8px; background: var(--mj-primary); flex: none; }
.mj-header {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-bottom: 1px solid var(--mj-line);
background: #fff;
}
.mj-logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.mj-heading { min-width: 0; flex: 1; }
.mj-heading strong { display: block; color: var(--mj-primary); font-size: 15px; }
.mj-heading span { display: block; color: var(--mj-muted); font-size: 12px; }
.mj-icon-btn, .mj-enquire-link {
border: 0;
background: transparent;
color: var(--mj-primary);
cursor: pointer;
font: inherit;
font-weight: 650;
}
.mj-icon-btn { width: 36px; height: 36px; border-radius: 8px; font-size: 22px; line-height: 1; }
.mj-icon-btn:hover, .mj-enquire-link:hover { background: var(--mj-soft); }
.mj-enquire-link { padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.mj-body { flex: 1; overflow: auto; background: #f7f9fa; padding: 14px; }
.mj-messages { display: flex; flex-direction: column; gap: 10px; }
.mj-messages[hidden],
.mj-form-wrap[hidden],
.mj-composer[hidden],
.mj-panel[hidden] { display: none !important; }
.mj-row { display: flex; }
.mj-row.user { justify-content: flex-end; }
.mj-bubble {
max-width: 88%;
padding: 10px 12px;
border-radius: 14px;
font-size: 14.5px;
white-space: pre-wrap;
word-wrap: break-word;
}
.mj-row.bot .mj-bubble { background: #fff; border: 1px solid var(--mj-line); border-bottom-left-radius: 4px; }
.mj-row.user .mj-bubble { background: var(--mj-primary); color: #fff; border-bottom-right-radius: 4px; }
.mj-sources { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.mj-sources a { color: var(--mj-primary); font-size: 12.5px; }
.mj-action {
margin-top: 8px;
background: var(--mj-primary);
color: #fff;
border: 0;
border-radius: 999px;
padding: 7px 12px;
font: inherit;
font-size: 13px;
font-weight: 650;
cursor: pointer;
}
.mj-action:hover { background: var(--mj-accent); }
.mj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mj-chip {
border: 1px solid var(--mj-primary);
background: #fff;
color: var(--mj-primary);
border-radius: 999px;
padding: 6px 10px;
font: inherit;
font-size: 13px;
cursor: pointer;
}
.mj-chip:hover { background: var(--mj-soft); }
.mj-form { display: flex; flex-direction: column; gap: 6px; }
.mj-form h2 { margin: 0; font-size: 18px; color: var(--mj-primary); }
.mj-form p { margin: 0; color: var(--mj-muted); font-size: 13px; }
.mj-back {
align-self: flex-start;
width: auto;
height: auto;
margin: 0;
padding: 0;
border: 0;
background: transparent;
color: var(--mj-primary);
font-size: 14px;
font-weight: 650;
line-height: 1.3;
white-space: nowrap;
cursor: pointer;
}
.mj-form label { font-size: 13px; font-weight: 650; display: flex; flex-direction: column; gap: 4px; }
.mj-form input, .mj-form textarea {
font: inherit;
border: 1px solid #cfd6db;
border-radius: 8px;
padding: 8px 10px;
color: var(--mj-text);
background: #fff;
}
.mj-form input:focus, .mj-form textarea:focus { outline: 2px solid var(--mj-accent); border-color: var(--mj-primary); }
.mj-checks { display: flex; flex-wrap: wrap; gap: 8px 12px; font-weight: 500; }
.mj-checks label { font-weight: 500; flex-direction: row; align-items: center; gap: 6px; }
.mj-error { color: #8a1f11; background: #fdecea; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.mj-submit {
background: var(--mj-primary);
color: #fff;
border: 0;
border-radius: 10px;
padding: 10px 12px;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.mj-submit:hover { background: var(--mj-accent); }
.mj-submit:disabled { opacity: 0.6; cursor: wait; }
.mj-back { align-self: flex-start; }
.mj-hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.mj-composer {
display: flex;
gap: 8px;
padding: 10px;
border-top: 1px solid var(--mj-line);
background: #fff;
}
.mj-composer textarea {
flex: 1;
resize: none;
height: 52px;
max-height: 96px;
border: 1px solid #cfd6db;
border-radius: 10px;
padding: 8px 10px;
font: inherit;
font-size: 14.5px;
line-height: 1.35;
}
.mj-send {
background: var(--mj-primary);
color: #fff;
border: 0;
border-radius: 10px;
padding: 0 14px;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.mj-send:hover { background: var(--mj-accent); }
@media (max-width: 640px) {
.mj-launch { right: 14px; bottom: 14px; }
.mj-launch-label { display: none; }
.mj-panel {
right: 0;
bottom: 0;
width: 100vw;
height: 100dvh;
border-radius: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.mj-launch, .mj-panel { transition: none; }
}