/* Website AI Assistant (chat window opened from the floating button) */
.mb-panel, .mb-panel * { box-sizing: border-box; }
.mb-panel button, .mb-panel input, .mb-teaser button { font-family: inherit; }
.lux-float-contact.is-chat-open { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.mb-panel {
    --mb-navy: #0f2f5c;
    --mb-navy2: #16407a;
    --mb-gold: #f5ad24;
    --mb-gold2: #ffd05b;
    --mb-ink: #1d2b3f;
    --mb-soft: #f3f6fb;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10050;
    width: 390px;
    max-width: calc(100vw - 24px);
    height: 620px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mb-ink);
    box-shadow: 0 24px 70px rgba(10, 32, 66, .32), 0 0 0 1px rgba(15, 47, 92, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility .3s;
}
.mb-panel.is-open { opacity: 1; visibility: visible; transform: none; }

/* header */
.mb-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--mb-navy) 0%, var(--mb-navy2) 100%);
    overflow: hidden;
}
.mb-head:before {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 173, 36, .35), transparent 65%);
}
.mb-head:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mb-gold), var(--mb-gold2), var(--mb-gold));
    background-size: 200% 100%;
    animation: mbShine 3s linear infinite;
}
.mb-ava {
    position: relative;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mb-navy);
    background: linear-gradient(145deg, var(--mb-gold2), var(--mb-gold));
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.mb-ava svg { width: 26px; height: 26px; fill: currentColor; }
.mb-ava:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--mb-navy);
}
.mb-title { position: relative; flex: 1; min-width: 0; }
.mb-title b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.mb-title span { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-x {
    position: relative;
    flex: 0 0 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background .2s, transform .3s;
}
.mb-x:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }

/* messages */
.mb-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 8px;
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 173, 36, .08), transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(15, 47, 92, .06), transparent 45%),
        var(--mb-soft);
    scroll-behavior: smooth;
}
.mb-body::-webkit-scrollbar { width: 6px; }
.mb-body::-webkit-scrollbar-thumb { background: rgba(15, 47, 92, .2); border-radius: 6px; }
.mb-row { display: flex; gap: 8px; margin-bottom: 12px; animation: mbIn .35s ease both; }
.mb-row.is-user { justify-content: flex-end; }
.mb-mini {
    flex: 0 0 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mb-gold);
    background: var(--mb-navy);
}
.mb-mini svg { width: 16px; height: 16px; fill: currentColor; }
.mb-col { min-width: 0; max-width: 86%; }
.mb-row.is-user .mb-col { max-width: 80%; }
.mb-bubble {
    padding: 10px 13px;
    border-radius: 4px 16px 16px 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 47, 92, .07);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.mb-row.is-user .mb-bubble {
    color: #fff;
    border-radius: 16px 4px 16px 16px;
    background: linear-gradient(135deg, var(--mb-navy), var(--mb-navy2));
}
.mb-bubble b { color: var(--mb-navy); font-weight: 700; }
.mb-row.is-user .mb-bubble b { color: var(--mb-gold2); }
.mb-bubble ul, .mb-bubble ol { margin: 6px 0 2px; padding-left: 20px; }
.mb-bubble li { margin: 2px 0; }
.mb-bubble a { color: #0b5cad; text-decoration: underline; }

/* typing dots */
.mb-typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.mb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mb-navy2); opacity: .35; animation: mbDot 1.1s infinite; }
.mb-typing i:nth-child(2) { animation-delay: .18s; }
.mb-typing i:nth-child(3) { animation-delay: .36s; }

/* cards */
.mb-cards { display: grid; gap: 8px; margin-top: 8px; }
.mb-card {
    position: relative;
    padding: 12px 13px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 47, 92, .08);
    box-shadow: 0 4px 14px rgba(15, 47, 92, .07);
    overflow: hidden;
}
.mb-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--mb-gold), var(--mb-navy2));
}
.mb-card-tag {
    display: inline-block;
    margin-bottom: 4px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--mb-navy);
    background: rgba(245, 173, 36, .2);
}
.mb-card h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--mb-navy); }
.mb-fee {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #5b6b80;
}
.mb-fee strong { font-size: 20px; font-weight: 800; color: #0d7a3f; letter-spacing: .2px; }
.mb-facts { display: grid; gap: 3px; margin: 0 0 9px; font-size: 12.5px; color: #42526a; }
.mb-facts span b { color: var(--mb-navy); font-weight: 600; }
.mb-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.mb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 47, 92, .18); }
.mb-btn.is-gold { color: var(--mb-navy) !important; background: linear-gradient(145deg, var(--mb-gold2), var(--mb-gold)); }
.mb-btn.is-navy { color: #fff !important; background: var(--mb-navy); }
.mb-card.is-fac { display: flex; gap: 11px; align-items: flex-start; }
.mb-fac-ic {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--mb-gold);
    background: linear-gradient(145deg, var(--mb-navy), var(--mb-navy2));
}
.mb-card.is-fac h4 { margin-bottom: 3px; }
.mb-card.is-fac p { margin: 0; font-size: 12.5px; color: #42526a; }

/* quick replies */
.mb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mb-chip {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(15, 47, 92, .22);
    background: #fff;
    color: var(--mb-navy);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
}
.mb-chip:hover, .mb-chip:focus-visible { color: var(--mb-navy); background: var(--mb-gold2); border-color: var(--mb-gold); }
.mb-chips.is-used .mb-chip { opacity: .55; }

/* call-back form */
.mb-form { display: grid; gap: 7px; margin-top: 8px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15, 47, 92, .08); }
.mb-form input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d5deea;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    outline: none;
}
.mb-form input:focus { border-color: var(--mb-gold); box-shadow: 0 0 0 3px rgba(245, 173, 36, .2); }
.mb-form .mb-btn { justify-content: center; padding: 9px 12px; font-size: 13px; }
.mb-form-err { min-height: 0; font-size: 12px; color: #c0392b; }

/* input bar */
.mb-foot { padding: 10px 12px 8px; background: #fff; border-top: 1px solid #e8edf4; }
.mb-input { display: flex; align-items: center; gap: 8px; }
.mb-input input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #d5deea;
    border-radius: 24px;
    background: var(--mb-soft);
    font: inherit;
    font-size: 14px;
    color: var(--mb-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.mb-input input:focus { background: #fff; border-color: var(--mb-gold); box-shadow: 0 0 0 3px rgba(245, 173, 36, .18); }
.mb-send {
    flex: 0 0 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mb-navy);
    background: linear-gradient(145deg, var(--mb-gold2), var(--mb-gold));
    cursor: pointer;
    transition: transform .2s;
}
.mb-send svg { width: 19px; height: 19px; fill: currentColor; }
.mb-send:hover { transform: scale(1.07); }
.mb-send:disabled { opacity: .5; cursor: default; transform: none; }
.mb-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 11.5px; }
.mb-links a, .mb-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #5b6b80;
    font: inherit;
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: none !important;
}
.mb-links a:hover, .mb-links button:hover { color: var(--mb-navy); }
.mb-links .fa { margin-right: 3px; color: var(--mb-gold); }

/* welcome bubble next to the floating button */
.mb-teaser {
    position: fixed;
    right: 86px;
    z-index: 9998;
    max-width: 230px;
    padding: 11px 30px 11px 14px;
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    color: #1d2b3f;
    font-family: "Poppins", "Segoe UI", system-ui, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 12px 34px rgba(10, 32, 66, .22);
    cursor: pointer;
    animation: mbPop .45s cubic-bezier(.22, 1, .36, 1) both;
}
.mb-teaser b { color: #0f2f5c; }
.mb-teaser-x {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    color: #8a96a8;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

@keyframes mbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mbPop { from { opacity: 0; transform: translateX(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes mbDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes mbShine { to { background-position: -200% 0; } }

@media (max-width: 575px) {
    .mb-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 88vh;
        height: 88dvh;
        max-height: none;
        border-radius: 20px 20px 0 0;
    }
    .mb-col { max-width: 88%; }
    .mb-teaser { right: 70px; max-width: 200px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .mb-panel, .mb-row, .mb-teaser, .mb-head:after, .mb-typing i { animation: none !important; transition: none !important; }
}
