/* The live support chat (site 1.71.0).
   MEMBER SIDE (.mfc-*): a small window that looks like the support chats found on websites -- LIGHT, rounded, an indigo-to-violet gradient -- on purpose nothing like the dark, orange MineFleet page around it. It is a thing of its own:
   every rule is under #mfchat, it sets its own font and resets the buttons and the text area, so the style sheet of the page cannot reach into it.
   TEAM SIDE (.mfs-*): the inbox and the conversation in the administrator's panel (the page's own dark theme, with the violet of the chat as its accent), the toast that announces a message, the badge of the tab. */

/* ================================================================== member: launcher + window */
/* --ssn-chat-lift (a custom property of <html>, set by season.js, absent most of the time): how far the bubble is RAISED -- 0 unless a seasonal scene stands in the bottom-right corner, then the scene's height and a gap
   (the owner: "la bulle violette en bas à droite doit être au-dessus de l'animation"). The window above the bubble, and the note of the suggestion widget that sits above it, rise with it; the window gets shorter by as much. */
#mfchat { position: fixed; right: 22px; bottom: calc(22px + var(--ssn-chat-lift, 0px)); z-index: 95; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2433; line-height: 1.4; -webkit-font-smoothing: antialiased; }
#mfchat *, #mfchat *::before, #mfchat *::after { box-sizing: border-box; }
#mfchat .hidden { display: none !important; }
#mfchat button, #mfchat textarea { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
#mfchat button { background: none; border: 0; padding: 0; cursor: pointer; }

#mfchat .mfc-launcher { position: relative; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); box-shadow: 0 10px 28px rgba(79, 70, 229, .45), 0 2px 6px rgba(17, 24, 39, .3); transition: transform .2s ease, box-shadow .2s ease; }
#mfchat .mfc-launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(79, 70, 229, .55), 0 2px 6px rgba(17, 24, 39, .3); }
#mfchat .mfc-launcher:active { transform: scale(.96); }
#mfchat .mfc-launcher:focus-visible { outline: 3px solid rgba(124, 58, 237, .55); outline-offset: 3px; }
#mfchat .mfc-launcher svg { width: 26px; height: 26px; transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s ease; }
#mfchat .mfc-launcher .mfc-ico-close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.6); }
#mfchat.mfc-open .mfc-launcher .mfc-ico-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
#mfchat.mfc-open .mfc-launcher .mfc-ico-close { opacity: 1; transform: none; }
#mfchat .mfc-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: flex; align-items: center; justify-content: center; border: 2px solid #fff; animation: mfc-pop .35s cubic-bezier(.16, 1, .3, 1); }
#mfchat .mfc-online { position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
@keyframes mfc-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* the preview of a message that arrives while the window is closed */
#mfchat .mfc-preview { position: absolute; right: 0; bottom: 72px; width: 290px; max-width: calc(100vw - 44px); padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #1f2433; font-size: 14px; text-align: left; cursor: pointer;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .28), 0 2px 6px rgba(17, 24, 39, .12); animation: mfc-rise .35s cubic-bezier(.16, 1, .3, 1); }
#mfchat .mfc-preview b { display: block; font-size: 12px; color: #6d28d9; margin-bottom: 2px; }
#mfchat .mfc-preview span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
@keyframes mfc-rise { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

#mfchat .mfc-panel { position: absolute; right: 0; bottom: 74px; width: 384px; height: min(620px, calc(100vh - 130px - var(--ssn-chat-lift, 0px))); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff;
  box-shadow: 0 28px 70px rgba(17, 24, 39, .38), 0 4px 14px rgba(17, 24, 39, .16); transform-origin: bottom right; animation: mfc-open .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes mfc-open { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

#mfchat .mfc-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
#mfchat .mfc-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
#mfchat .mfc-avatar svg { width: 22px; height: 22px; }
#mfchat .mfc-head-text { flex: 1; min-width: 0; }
#mfchat .mfc-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
#mfchat .mfc-status { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .88); }
#mfchat .mfc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
#mfchat .mfc-dot.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
#mfchat .mfc-min { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; opacity: .85; transition: background .15s ease, opacity .15s ease; }
#mfchat .mfc-min:hover { background: rgba(255, 255, 255, .18); opacity: 1; }
#mfchat .mfc-min:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
#mfchat .mfc-min svg { width: 20px; height: 20px; }

#mfchat .mfc-netbar { flex: none; padding: 7px 14px; text-align: center; font-size: 12.5px; font-weight: 600; color: #92400e; background: #fef3c7; }

#mfchat .mfc-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; background: #f7f8fc; scroll-behavior: smooth; }
#mfchat .mfc-body::-webkit-scrollbar { width: 8px; }
#mfchat .mfc-body::-webkit-scrollbar-thumb { background: #d4d8e6; border-radius: 4px; }
#mfchat .mfc-more { display: block; margin: 0 auto 14px; padding: 6px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: #4f46e5; background: #eceefe; }
#mfchat .mfc-more:hover { background: #e0e3fd; }
#mfchat .mfc-day { margin: 14px 0 10px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #8b92a8; text-transform: capitalize; }
#mfchat .mfc-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 3px; }
#mfchat .mfc-row.mfc-gap { margin-top: 12px; }
#mfchat .mfc-row.mfc-me { justify-content: flex-end; }
#mfchat .mfc-mini { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
#mfchat .mfc-mini svg { width: 15px; height: 15px; }
#mfchat .mfc-mini.mfc-blank { background: none; }
#mfchat .mfc-bubble { max-width: 78%; padding: 9px 13px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
#mfchat .mfc-them .mfc-bubble { color: #1f2433; background: #fff; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 0 0 1px rgba(17, 24, 39, .04); }
#mfchat .mfc-me .mfc-bubble { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); border-radius: 16px 16px 4px 16px; }
#mfchat .mfc-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#mfchat .mfc-me.mfc-pending .mfc-bubble { opacity: .6; }
#mfchat .mfc-me.mfc-failed .mfc-bubble { background: #fee2e2; color: #991b1b; }
#mfchat .mfc-meta { margin: 3px 4px 0; font-size: 11px; color: #9aa1b5; }
#mfchat .mfc-meta.mfc-right { text-align: right; }
#mfchat .mfc-meta.mfc-left { margin-left: 40px; }
#mfchat .mfc-meta button { color: #4f46e5; font-weight: 700; text-decoration: underline; }
#mfchat .mfc-meta .mfc-seen { color: #4f46e5; font-weight: 600; }
#mfchat .mfc-closed { margin: 16px auto 4px; max-width: 86%; padding: 8px 12px; text-align: center; font-size: 12.5px; color: #6b7280; background: #eef0f6; border-radius: 12px; }
/* the wait and the e-mail ticket (site 1.76.0): a note of its own under the conversation -- "searching" with the minutes, then the form of the ticket, then its confirmation */
#mfchat .mfc-wait { margin-top: 14px; }
#mfchat .mfc-wait-card { padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 13.5px; line-height: 1.45; color: #374151; box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 0 0 1px rgba(17, 24, 39, .05); animation: mfc-rise .3s ease-out; }
#mfchat .mfc-wait-search { display: flex; align-items: center; gap: 12px; }
#mfchat .mfc-wait-search .mfc-dots { flex: none; display: flex; gap: 4px; padding: 0 2px; }
#mfchat .mfc-wait-text { min-width: 0; }
#mfchat .mfc-wait-main { font-weight: 700; color: #1f2433; overflow-wrap: anywhere; }
#mfchat .mfc-wait-time { margin-top: 1px; font-size: 12px; font-weight: 700; color: #6d28d9; font-variant-numeric: tabular-nums; }
#mfchat .mfc-wait-sub { margin-top: 6px; font-size: 12.5px; color: #5b6275; overflow-wrap: anywhere; }
#mfchat .mfc-wait-form { border-left: 4px solid #f59e0b; }
#mfchat .mfc-email-label { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; color: #4b5266; }
#mfchat .mfc-email { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1.5px solid #d6d9e6; border-radius: 10px; font: inherit; font-size: 14px; color: #1f2433; background: #fff; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
#mfchat .mfc-email:focus { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
#mfchat .mfc-email::placeholder { color: #9aa1b5; }
#mfchat .mfc-wait-err { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #dc2626; }
#mfchat .mfc-ticket-btn { display: block; width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); transition: transform .15s ease, opacity .15s ease; }
#mfchat .mfc-ticket-btn:hover:not(:disabled) { transform: translateY(-1px); }
#mfchat .mfc-ticket-btn:disabled { opacity: .55; cursor: default; }
#mfchat .mfc-wait-ok { border-left: 4px solid #22c55e; }
/* (site 1.81.0) the conversation ended -- the team closed it, or his e-mail ticket left: its closing message with the "OK" that empties the window; the field to write is away until then */
#mfchat .mfc-wait-end .mfc-wait-sub { font-size: 13px; line-height: 1.5; }
#mfchat .mfc-wait-end .mfc-ok-btn { margin-top: 12px; }
#mfchat .mfc-panel.mfc-ended .mfc-foot { display: none; }
#mfchat .mfc-check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; font-size: 12px; color: #fff; background: #22c55e; }
#mfchat .mfc-typing { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
#mfchat .mfc-typing .mfc-dots { display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 2px rgba(17, 24, 39, .08), 0 0 0 1px rgba(17, 24, 39, .04); }
#mfchat .mfc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #a5abc0; animation: mfc-bounce 1.2s infinite ease-in-out; }
#mfchat .mfc-dots i:nth-child(2) { animation-delay: .15s; }
#mfchat .mfc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mfc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
#mfchat .mfc-jump { position: absolute; left: 50%; bottom: 154px; transform: translateX(-50%); padding: 7px 14px; border-radius: 16px; font-size: 12.5px; font-weight: 700; color: #fff; background: #4f46e5; box-shadow: 0 6px 18px rgba(79, 70, 229, .45); z-index: 2; }

#mfchat .mfc-foot { flex: none; padding: 10px 12px 12px; background: #fff; border-top: 1px solid #e8eaf2; }
#mfchat .mfc-err { margin: 0 4px 6px; font-size: 12.5px; font-weight: 600; color: #dc2626; }
#mfchat .mfc-composer { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; background: #f3f4fa; border: 1.5px solid transparent; transition: border-color .15s ease, background .15s ease; }
#mfchat .mfc-composer:focus-within { background: #fff; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
#mfchat .mfc-composer textarea { flex: 1; min-width: 0; max-height: 120px; min-height: 22px; padding: 7px 0; resize: none; border: 0; outline: 0; background: transparent; font-size: 14.5px; line-height: 1.45; color: #1f2433; }
#mfchat .mfc-composer textarea::placeholder { color: #9aa1b5; }
#mfchat .mfc-send { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); transition: transform .15s ease, opacity .15s ease; }
#mfchat .mfc-send:hover:not(:disabled) { transform: scale(1.08); }
#mfchat .mfc-send:disabled { opacity: .35; cursor: default; }
#mfchat .mfc-send svg { width: 18px; height: 18px; margin-left: -1px; }
#mfchat .mfc-hint { margin: 7px 6px 0; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #a0a6ba; }
#mfchat .mfc-count.mfc-near { color: #d97706; font-weight: 700; }
#mfchat .mfc-count.mfc-over { color: #dc2626; font-weight: 700; }

/* a phone: the window takes the whole screen, the round button steps aside */
@media (max-width: 520px) {
  #mfchat { right: 14px; bottom: calc(14px + var(--ssn-chat-lift, 0px)); }
  #mfchat .mfc-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; padding-top: env(safe-area-inset-top); }
  #mfchat.mfc-open .mfc-launcher { display: none; }
  #mfchat .mfc-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  #mfchat .mfc-bubble { max-width: 84%; }
  #mfchat .mfc-hint .mfc-keys { display: none; }
  #mfchat .mfc-jump { bottom: 130px; }
}
@media (prefers-reduced-motion: reduce) { #mfchat *, #mfchat *::before, #mfchat *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* the orange suggestion bubble is replaced by the chat: its window (opened from "Vos suggestions") stays, and so does its "you got a reply" note, which now sits above the chat button */
#fb-bubble, #fb-hint { display: none !important; }
.fb-widget { bottom: calc(92px + var(--ssn-chat-lift, 0px)); }

/* ================================================================== team: the badge of the tab, the toast, the inbox and the conversation */
.mfs-tab-count { margin-left: 6px; min-width: 18px; padding: 0 6px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: #7c3aed; }
.mfs-tab-count.hidden { display: none; }
.admin-subtabs .mfs-tab-live { margin-left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; display: inline-block; }
.admin-subtabs .mfs-tab-live.hidden { display: none; }

.mfs-toast { position: fixed; left: 22px; bottom: 22px; z-index: 120; width: 330px; max-width: calc(100vw - 44px); display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; cursor: pointer;
  color: #1f2433; background: #fff; box-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(124, 58, 237, .25); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; animation: mfs-in .35s cubic-bezier(.16, 1, .3, 1); }
.mfs-toast .mfs-toast-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mfs-toast .mfs-toast-ico svg { width: 18px; height: 18px; }
.mfs-toast b { display: block; font-size: 13.5px; }
.mfs-toast span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; font-size: 13px; color: #4b5266; word-break: break-word; }
.mfs-toast button { flex: none; margin: -4px -4px 0 0; width: 24px; height: 24px; border: 0; background: none; color: #9aa1b5; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.mfs-toast button:hover { background: #f1f2f8; color: #4b5266; }
@keyframes mfs-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.mfs-wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 0; height: min(720px, calc(100vh - 250px)); min-height: 440px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.mfs-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.mfs-side-head { padding: 12px 12px 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.mfs-filters { display: flex; gap: 6px; }
.mfs-filters button { flex: 1; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mfs-filters button.active { color: #fff; background: #6d28d9; border-color: #6d28d9; }
.mfs-search { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-input, rgba(255, 255, 255, .04)); color: var(--text); font-size: 13px; }
.mfs-list { flex: 1; min-height: 0; overflow-y: auto; }
.mfs-empty { padding: 28px 18px; text-align: center; color: var(--text-faint); font-size: 13px; line-height: 1.5; }
.mfs-item { display: flex; gap: 11px; align-items: center; padding: 11px 12px; cursor: pointer; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.mfs-item:hover { background: rgba(255, 255, 255, .03); }
.mfs-item.active { background: rgba(124, 58, 237, .13); border-left-color: #7c3aed; }
.mfs-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; text-transform: uppercase; }
.mfs-item-main { flex: 1; min-width: 0; }
.mfs-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mfs-item-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfs-item.unread .mfs-item-name { font-weight: 800; }
.mfs-item-when { flex: none; font-size: 11px; color: var(--text-faint); }
.mfs-item-last { margin-top: 2px; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfs-item.unread .mfs-item-last { color: var(--text); font-weight: 600; }
.mfs-unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: #7c3aed; }
.mfs-closed-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; color: var(--text-faint); border: 1px solid var(--border); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* a conversation that rang for five minutes and that nobody opened (site 1.81.0): a red tag in the inbox and over the conversation, and the toast that says so stays until it is dealt with */
.mfs-missed-tag { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fca5a5; border: 1px solid rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .14); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mfs-toast.mfs-toast-sticky { box-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 2px rgba(124, 58, 237, .55); }
.mfs-toast.mfs-toast-ring .mfs-toast-ico { animation: mfs-ring 1.2s ease-in-out infinite; transform-origin: 50% 12%; }
.mfs-toast.mfs-toast-missed { bottom: 112px; box-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 0 0 2px rgba(239, 68, 68, .7); }
.mfs-toast.mfs-toast-missed .mfs-toast-ico { background: linear-gradient(135deg, #dc2626, #f97316); }
@keyframes mfs-ring { 0%, 55%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-8deg); } 48% { transform: rotate(4deg); } }
.mfs-missed-band { flex: none; padding: 9px 16px; border-bottom: 1px solid var(--border); background: rgba(239, 68, 68, .1); border-left: 3px solid #ef4444; font-size: 13px; color: var(--text); }
.mfs-missed-band b { color: #fca5a5; }
@media (prefers-reduced-motion: reduce) { .mfs-toast.mfs-toast-ring .mfs-toast-ico { animation: none; } }

/* the e-mail ticket (site 1.76.0): a tag in the inbox, and the band over the conversation that carries the button which answers from the mail program */
.mfs-ticket-tag { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fbbf24; border: 1px solid rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mfs-ticketbox:empty { display: none; }
.mfs-ticket { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: rgba(251, 191, 36, .09); border-left: 3px solid #f59e0b; font-size: 13px; color: var(--text); }
.mfs-ticket-main { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.mfs-ticket-addr { font-weight: 700; color: #fbbf24; }
.mfs-ticket-when { color: var(--text-faint); }
.mfs-ticket-sub { flex: 1 1 100%; font-size: 12px; color: var(--text-dim); }
.mfs-ticket-reply { flex: none; text-decoration: none; }

.mfs-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mfs-none { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-faint); font-size: 14px; padding: 24px; text-align: center; }
.mfs-none svg { width: 46px; height: 46px; opacity: .5; }
.mfs-conv-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mfs-back { display: none; border: 0; background: none; color: var(--text-dim); font-size: 22px; cursor: pointer; padding: 0 6px 0 0; }
.mfs-conv-who { flex: 1; min-width: 0; }
.mfs-conv-name { font-size: 15px; font-weight: 800; color: var(--text); }
.mfs-conv-name a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--text-faint); cursor: pointer; }
.mfs-conv-name a:hover { color: #a78bfa; border-color: #a78bfa; }
.mfs-conv-sub { margin-top: 2px; font-size: 12px; color: var(--text-dim); }
.mfs-conv-head .btn { flex: none; }
.mfs-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.mfs-day { align-self: center; margin: 12px 0 8px; font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: capitalize; }
.mfs-msg { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mfs-msg.them { align-self: flex-start; background: rgba(255, 255, 255, .07); color: var(--text); border-bottom-left-radius: 4px; }
.mfs-msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); border-bottom-right-radius: 4px; }
.mfs-msg.pending { opacity: .6; }
.mfs-msg.failed { background: rgba(255, 92, 92, .2); color: #ffb4b4; }
.mfs-msg a { color: inherit; text-decoration: underline; }
.mfs-msg-gap { margin-top: 9px; }
.mfs-meta { font-size: 11px; color: var(--text-faint); margin: 1px 4px 0; }
.mfs-meta.me { align-self: flex-end; }
.mfs-meta.them { align-self: flex-start; }
.mfs-meta .mfs-seen { color: #a78bfa; font-weight: 700; }
.mfs-meta button { background: none; border: 0; color: #a78bfa; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.mfs-typing { align-self: flex-start; margin-top: 8px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 4px; }
.mfs-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: mfc-bounce 1.2s infinite ease-in-out; }
.mfs-typing i:nth-child(2) { animation-delay: .15s; }
.mfs-typing i:nth-child(3) { animation-delay: .3s; }
.mfs-typing em { margin-left: 6px; font-style: normal; font-size: 12px; color: var(--text-dim); }
.mfs-older { align-self: center; margin-bottom: 8px; padding: 5px 12px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); font-size: 12px; font-weight: 700; cursor: pointer; }
.mfs-compose { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--border); }
.mfs-compose-row { display: flex; gap: 10px; align-items: flex-end; }
.mfs-compose textarea { flex: 1; min-width: 0; max-height: 160px; min-height: 42px; padding: 10px 12px; resize: none; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-input, rgba(255, 255, 255, .04)); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; }
.mfs-compose textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.mfs-compose-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--text-faint); }
.mfs-compose-foot .mfs-err { color: var(--red); font-weight: 700; }
.mfs-send { flex: none; padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 800; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mfs-send:disabled { opacity: .4; cursor: default; }
.mfs-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; color: var(--text-dim); }
.mfs-tools button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mfs-tools button:hover { border-color: #7c3aed; }
.mfs-tools .mfs-state { margin-left: auto; }
.mfs-tools .mfs-state i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; margin-right: 6px; }
.mfs-tools .mfs-state.off i { background: var(--red); }

@media (max-width: 860px) {
  .mfs-wrap { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 230px); }
  .mfs-wrap .mfs-main { display: none; }
  .mfs-wrap.has-conv .mfs-side { display: none; }
  .mfs-wrap.has-conv .mfs-main { display: flex; }
  .mfs-back { display: block; }
  .mfs-msg { max-width: 86%; }
}

/* small refinements: a date is written "dimanche 18 octobre" and only its first letter is a capital; the track of the scrollbar stays out of sight; the help under the sound button */
#mfchat .mfc-day, .mfs-day { text-transform: none; }
#mfchat .mfc-day::first-letter, .mfs-day::first-letter { text-transform: uppercase; }
#mfchat .mfc-body::-webkit-scrollbar-track { background: transparent; }
.mfs-tools .mfs-soundhint { color: var(--text-faint); font-size: 12px; }
