/* Website live chat bubble */
.mv-chat { position: fixed; right: 20px; bottom: 20px; z-index: 100000; font-family: 'Poppins', 'Instrument Sans', system-ui, sans-serif; }
.mv-chat *, .mv-chat *::before, .mv-chat *::after { box-sizing: border-box; }

.mv-chat-launcher { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; margin-left: auto; }
.mv-launcher-strip { background: #fff; color: #1e1b4b; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); white-space: nowrap; }
.mv-launcher-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px; background: linear-gradient(135deg, #00cfff, #5b2eff); box-shadow: 0 10px 28px rgba(91, 46, 255, .45); transition: transform .2s; }
.mv-chat-launcher:hover .mv-launcher-icon { transform: scale(1.06); }
.mv-chat.open .mv-launcher-strip { display: none; }
.mv-chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.mv-chat-badge[hidden] { display: none; }

.mv-chat-panel { position: absolute; right: 0; bottom: 74px; width: 370px; height: min(600px, calc(100dvh - 110px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); display: flex; flex-direction: column; overflow: hidden; animation: mv-chat-in .2s ease-out; }
.mv-chat-panel[hidden] { display: none; }
@keyframes mv-chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mv-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #0b1437, #5b2eff); }
.mv-chat-logo { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; }
.mv-chat-head-text { flex: 1; min-width: 0; }
.mv-chat-title { font-weight: 700; font-size: 15px; }
.mv-chat-status { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.mv-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.mv-dot.waiting { background: #f59e0b; }
.mv-chat-close { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.mv-chat-close:hover { background: rgba(255, 255, 255, .28); }

.mv-chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: #f6f7fb; display: flex; flex-direction: column; gap: 4px; }
.mv-msg { display: flex; flex-direction: column; max-width: 82%; }
.mv-msg + .mv-msg.mv-new-group { margin-top: 10px; }
.mv-msg-name { font-size: 11px; color: #64748b; margin: 0 4px 3px; }
.mv-bubble { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.mv-bubble p { margin: 0; }
.mv-bubble p + p, .mv-bubble p + ul, .mv-bubble ul + p { margin-top: 6px; }
.mv-bubble ul { margin: 4px 0 0; padding-left: 18px; }
.mv-bubble li + li { margin-top: 4px; }
.mv-bubble strong { font-weight: 600; }
.mv-bubble a { font-weight: 500; }
.mv-bubble a { color: inherit; text-decoration: underline; }
.mv-msg-time { font-size: 10px; color: #94a3b8; margin: 3px 4px 0; }
.mv-msg.visitor { align-self: flex-end; align-items: flex-end; }
.mv-msg.visitor .mv-bubble { background: linear-gradient(135deg, #5b2eff, #7c3aed); color: #fff; border-bottom-right-radius: 5px; }
.mv-msg.bot, .mv-msg.agent { align-self: flex-start; }
.mv-msg.bot .mv-bubble, .mv-msg.agent .mv-bubble { background: #fff; color: #0f172a; border: 1px solid #e5e7f0; border-bottom-left-radius: 5px; }
.mv-msg.agent .mv-bubble { border-color: #c7d2fe; }
.mv-msg.system { align-self: center; max-width: 92%; text-align: center; margin: 8px 0; }
.mv-msg.system .mv-bubble { background: none; color: #64748b; font-size: 12px; padding: 0 6px; }

.mv-chat-typing { display: flex; gap: 4px; padding: 0 22px 8px; background: #f6f7fb; }
.mv-chat-typing[hidden] { display: none; }
.mv-chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; animation: mv-typing 1s infinite ease-in-out; }
.mv-chat-typing span:nth-child(2) { animation-delay: .15s; }
.mv-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mv-typing { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.mv-chat-quick-wrap { position: relative; background: #fff; border-top: 1px solid #eef0f6; }
.mv-chat-quick { display: flex; gap: 6px; padding: 8px 12px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #c7d2fe transparent; }
.mv-chat-quick::-webkit-scrollbar { height: 5px; }
.mv-chat-quick::-webkit-scrollbar-track { background: transparent; }
.mv-chat-quick::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 999px; }
.mv-chat-quick::-webkit-scrollbar-thumb:hover { background: #a5b4fc; }
.mv-quick-arrow { position: absolute; top: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d9dcf0; background: #fff; color: #4338ca; font-size: 11px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.mv-quick-arrow:hover { background: #eef2ff; }
.mv-quick-arrow[hidden] { display: none; }
.mv-quick-prev { left: 4px; }
.mv-quick-next { right: 4px; }
.mv-chat-quick-wrap::before, .mv-chat-quick-wrap::after { content: ''; position: absolute; top: 0; bottom: 6px; width: 34px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.mv-chat-quick-wrap::before { left: 0; background: linear-gradient(90deg, #fff 40%, rgba(255, 255, 255, 0)); }
.mv-chat-quick-wrap::after { right: 0; background: linear-gradient(270deg, #fff 40%, rgba(255, 255, 255, 0)); }
.mv-chat-quick-wrap.can-prev::before, .mv-chat-quick-wrap.can-next::after { opacity: 1; }
.mv-chat-quick button { flex-shrink: 0; border: 1px solid #d9dcf0; background: #fff; color: #4338ca; font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.mv-chat-quick button:hover { background: #eef2ff; }
.mv-chat-quick .mv-quick-agent { color: #0f766e; border-color: #99f6e4; }
.mv-chat-quick[hidden] { display: none; }

.mv-chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; background: #fff; }
.mv-chat-form textarea { flex: 1; resize: none; border: 1px solid #d9dcf0; border-radius: 14px; padding: 10px 12px; font-size: 14px; font-family: inherit; max-height: 110px; min-height: 42px; outline: none; color: #0f172a; background: #fff; }
.mv-chat-form textarea:focus { border-color: #5b2eff; box-shadow: 0 0 0 3px rgba(91, 46, 255, .12); }
.mv-chat-form button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; color: #fff; cursor: pointer; background: linear-gradient(135deg, #00cfff, #5b2eff); font-size: 15px; }
.mv-chat-form button:disabled { opacity: .5; cursor: default; }
.mv-chat-error { font-size: 12px; color: #b91c1c; background: #fef2f2; padding: 6px 12px; }
.mv-chat-error[hidden] { display: none; }

.mv-chat-details { padding: 12px; background: #fff; border-top: 1px solid #eef0f6; display: grid; gap: 8px; }
.mv-chat-details[hidden] { display: none; }
.mv-chat-details-title { font-size: 12px; color: #475569; }
.mv-chat-details input { border: 1px solid #d9dcf0; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-family: inherit; color: #0f172a; background: #fff; }
.mv-chat-details-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.mv-link-btn { border: 0; background: none; color: #64748b; font-size: 12px; cursor: pointer; font-family: inherit; }
.mv-chat-small-btn { border: 0; background: #5b2eff; color: #fff; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; }

@media (max-width: 480px) {
    .mv-chat { right: 12px; bottom: 12px; }
    .mv-launcher-strip { display: none; }
    .mv-chat.open { left: 0; right: 0; top: 0; bottom: 0; }
    .mv-chat.open .mv-chat-launcher { display: none; }
    .mv-chat-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; bottom: 0; }
    .mv-chat-head { padding-top: max(14px, env(safe-area-inset-top)); }
    .mv-chat-close { width: 40px; height: 40px; font-size: 18px; }
    .mv-chat-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* The page behind a full-screen chat (mobile) does not scroll */
html.mv-chat-locked, html.mv-chat-locked body { overflow: hidden; }

/* Pricing cards and answer buttons inside the chat */
.mv-msg.mv-rich { max-width: 100%; width: 100%; }
.mv-plans { margin-top: 8px; }
.mv-plans-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 6px; scrollbar-width: thin; }
.mv-plans-row .mv-plan { flex: 0 0 82%; scroll-snap-align: start; }
.mv-plan { position: relative; background: linear-gradient(160deg, #141a33, #0b1024); border: 1px solid rgba(91, 46, 255, .45); border-radius: 16px; padding: 18px 16px 16px; color: #e2e8f0; margin-top: 10px; }
.mv-plans-row .mv-plan { margin-top: 0; }
.mv-plan.featured { border-color: #00cfff; box-shadow: 0 0 0 1px rgba(0, 207, 255, .25), 0 10px 24px rgba(0, 207, 255, .15); }
.mv-plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #5b2eff, #00cfff); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.mv-plan-name { font-weight: 700; font-size: 15px; color: #fff; }
.mv-plan-price { font-size: 26px; font-weight: 800; color: #00cfff; margin: 6px 0 4px; line-height: 1.15; }
.mv-plan-price small { font-size: 14px; font-weight: 700; margin-left: 2px; }
.mv-plan-desc { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.mv-plan-features { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; }
.mv-plan-features li { font-size: 13px; color: #cbd5e1; display: flex; gap: 8px; align-items: flex-start; }
.mv-plan-features i { color: #94a3b8; font-size: 11px; margin-top: 4px; }
.mv-plan-btn { display: block; text-align: center; background: linear-gradient(135deg, #5b2eff, #7c3aed); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 700; padding: 10px; border-radius: 999px; }
.mv-plan-btn:hover { filter: brightness(1.1); }
.mv-plans-hint { font-size: 11px; color: #94a3b8; margin: 2px 4px 0; }
.mv-plans-footer { margin-top: 8px; align-self: flex-start; }
.mv-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mv-choices button { border: 1px solid #c7d2fe; background: #fff; color: #4338ca; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.mv-choices button:hover { background: #eef2ff; }
