#mfc-root { --mfc-blue: #2456e6; --mfc-violet: #6c4cf0; --mfc-navy: #0c1d3b; --mfc-ink: #0c1d3b; --mfc-body: #3d4b66; --mfc-muted: #7b88a3; --mfc-line: #e3e8f2; --mfc-page: #f2f5fb; position: fixed; right: 22px; bottom: 22px; z-index: 99990; font-family: var(--mf-font, "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); line-height: 1.45; -webkit-font-smoothing: antialiased; }
#mfc-root *, #mfc-root *::before, #mfc-root *::after { box-sizing: border-box; }
#mfc-root [hidden] { display: none !important; }
#mfc-root svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mfc-launch { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-violet)); color: #fff; cursor: pointer; box-shadow: 0 16px 34px -10px rgba(36, 86, 230, .65), 0 4px 12px rgba(12, 29, 59, .18); transition: transform .2s ease, box-shadow .2s ease; }
.mfc-launch:hover { transform: translateY(-2px) scale(1.03); }
.mfc-launch:focus-visible { outline: 3px solid rgba(36, 86, 230, .45); outline-offset: 3px; }
.mfc-launch svg { width: 28px; height: 28px; }
#mfc-root.is-open .mfc-launch svg { opacity: .9; }
.mfc-badge { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; border: 2px solid #fff; }

.mfc-panel { position: absolute; right: 0; bottom: 78px; display: flex; flex-direction: column; width: 380px; height: min(600px, calc(100vh - 120px)); overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--mfc-line); box-shadow: 0 30px 70px -20px rgba(12, 29, 59, .45), 0 8px 24px rgba(12, 29, 59, .12); animation: mfc-in .22s ease-out; }
@keyframes mfc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.mfc-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: radial-gradient(70% 120% at 100% 0%, rgba(108, 76, 240, .55), transparent 70%), linear-gradient(135deg, #12285a, var(--mfc-navy)); color: #fff; }
.mfc-av { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-violet)); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.mfc-head__t { flex: 1; min-width: 0; }
.mfc-head__t strong { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.mfc-head__t span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c6d1e8; }
.mfc-head__t em { font-style: normal; }
.mfc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.mfc-icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff !important; cursor: pointer; text-decoration: none !important; transition: background .2s ease; }
.mfc-icon:hover { background: rgba(255, 255, 255, .2); }
.mfc-icon svg { width: 18px; height: 18px; }

.mfc-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: linear-gradient(180deg, #f5f7fc, #fff 60%); scroll-behavior: smooth; }
.mfc-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; margin: 0 0 12px; }
.mfc-msg--me { align-items: flex-end; margin-left: auto; }
.mfc-who { margin: 0 0 4px 4px; font-size: 11.5px; font-weight: 800; color: var(--mfc-blue); }
.mfc-bubble { padding: 11px 14px; border-radius: 16px 16px 16px 6px; background: #fff; border: 1px solid var(--mfc-line); color: var(--mfc-ink); font-size: 14.5px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 2px 6px rgba(12, 29, 59, .04); }
.mfc-msg--admin .mfc-bubble { background: #eef3ff; border-color: #d7e2ff; }
.mfc-msg--me .mfc-bubble { border: 0; border-radius: 16px 16px 6px 16px; background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-violet)); color: #fff; }
.mfc-bubble a { color: var(--mfc-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mfc-msg--me .mfc-bubble a { color: #fff; }
.mfc-pending { opacity: .7; }
.mfc-time { margin: 4px 6px 0; font-size: 11px; color: var(--mfc-muted); }
.mfc-note { margin: 4px auto 12px; padding: 6px 12px; border-radius: 999px; background: #fdeceb; color: #b42318; font-size: 12.5px; text-align: center; width: fit-content; max-width: 90%; }
.mfc-typing { display: flex; gap: 4px; padding: 14px 16px; }
.mfc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a9b4ca; animation: mfc-b 1s infinite ease-in-out; }
.mfc-typing i:nth-child(2) { animation-delay: .15s; }
.mfc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mfc-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.mfc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 10px; background: #fff; }
.mfc-chips button { padding: 8px 13px; border: 1px solid #d7e2ff; border-radius: 999px; background: #f4f7ff; color: var(--mfc-blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.mfc-chips button:hover { background: #e6edff; border-color: var(--mfc-blue); }

.mfc-input { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 12px 12px 10px; border-top: 1px solid var(--mfc-line); background: #fff; }
.mfc-input textarea { flex: 1; min-height: 44px; max-height: 120px; margin: 0; padding: 11px 14px; border: 1px solid var(--mfc-line); border-radius: 14px; background: var(--mfc-page); color: var(--mfc-ink); font: inherit; font-size: 14.5px; line-height: 1.45; resize: none; outline: none; box-shadow: none; transition: border-color .2s ease, background .2s ease; }
.mfc-input textarea:focus { border-color: var(--mfc-blue); background: #fff; }
.mfc-send { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-violet)); color: #fff; cursor: pointer; }
.mfc-send svg { width: 19px; height: 19px; }
.mfc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.mfc-details { margin: 0; padding: 14px; border-top: 1px solid var(--mfc-line); background: #fff; }
.mfc-details p { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--mfc-ink); }
.mfc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.mfc-details input { width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid var(--mfc-line); border-radius: 12px; background: var(--mfc-page); color: var(--mfc-ink); font: inherit; font-size: 14px; outline: none; box-shadow: none; }
.mfc-details input:focus { border-color: var(--mfc-blue); background: #fff; }
.mfc-btn { width: 100%; height: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-violet)); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.mfc-btn[disabled] { opacity: .6; cursor: wait; }
.mfc-err { display: block; min-height: 0; margin-top: 6px; color: #b42318; font-size: 12.5px; }
.mfc-err:empty { display: none; }
.mfc-foot { padding: 0 0 9px; background: #fff; color: #a9b4ca; font-size: 11px; text-align: center; }

@media (max-width: 760px) {
  #mfc-root { right: 14px; bottom: 86px; }
  .mfc-launch { width: 56px; height: 56px; }
  #mfc-root.is-open { left: 0; right: 0; top: 0; bottom: 0; }
  #mfc-root.is-open .mfc-launch { display: none; }
  .mfc-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .mfc-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .mfc-input { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .mfc-row { grid-template-columns: 1fr; }
  .mfc-input textarea { font-size: 16px; }
  .mfc-details input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mfc-panel, .mfc-typing i { animation: none; } .mfc-launch { transition: none; } }
