/* ============================================================
   WEFIT Conversations — user side (lms2), POC 2026-10-11.
   Two skins on the same markup: .wf-conv--bubble (floating window + launcher) and
   .wf-conv--embed (fills its container: messages.cfm, the phone twin).
   Colours ride var(--wefit-pink) (partner theming). z-index under BS5 modals (1055).
   THE CORNER: the WEFIT bubble takes it (right 24). body.wf-has-conv pushes the coach to slot 2
   and the Speak door to slot 3; body.wf-has-brevo leaves the corner to Brevo and shifts everything one
   more slot — set ONLY by the legacy lms bubble (lms/incl/incl_conv.cfm) while Brevo stays there;
   lms2 dropped Brevo Conversations on 2026-10-12 and never adds the class. ONE file, two apps
   (lms2/assets/css + lms/assets/css), byte-equal — copy, never fork.
   ============================================================ */
.wf-conv-launcher { position: fixed; bottom: 24px; right: 24px; z-index: 1031; width: 56px; height: 56px; border: 0; border-radius: 50%;
	background: var(--wefit-pink); color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .15s; }
.wf-conv-launcher:hover { transform: scale(1.07); }
.wf-conv-launcher--hidden { display: none; }
.wf-conv-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff;
	font-size: .7rem; font-weight: 800; line-height: 20px; border: 2px solid #fff; }

/* slot layout */
body.wf-has-conv .wf-coach-launcher, body.wf-has-conv .wf-coach-window { right: 92px; }
body.wf-has-conv .wf-speak-launcher { right: 160px; }
body.wf-has-brevo .wf-conv-launcher, body.wf-has-brevo .wf-conv--bubble { right: 96px; }
body.wf-has-brevo .wf-coach-launcher, body.wf-has-brevo .wf-coach-window { right: 164px; }
body.wf-has-brevo .wf-speak-launcher { right: 232px; }

.wf-conv-hours { opacity: .75; font-weight: 500; }

/* the window / the embedded panel */
.wf-conv { display: none; flex-direction: column; background: #fff; overflow: hidden; }
.wf-conv--bubble { position: fixed; bottom: 24px; right: 24px; z-index: 1040; width: 400px; height: 640px; max-height: calc(100vh - 48px); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.28); }
.wf-conv--bubble.wf-conv--open { display: flex; }
.wf-conv--embed { display: flex; height: 100%; min-height: 480px; border-radius: 14px; border: 1px solid #e8e8ee; }

.wf-conv-head { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--wefit-pink); color: #fff; }
.wf-conv-htxt { flex: 1 1 auto; min-width: 0; }
.wf-conv-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-conv-sub { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.wf-conv-hbtn { border: 0; background: transparent; color: #fff; font-size: 15px; padding: 4px 8px; cursor: pointer; opacity: .9; border-radius: 8px; }
.wf-conv-hbtn:hover { opacity: 1; background: rgba(255,255,255,.14); }
.wf-conv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; margin-right: 2px; }
.wf-conv-dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.wf-conv-head .wf-conv-st { background: rgba(255,255,255,.22); color: #fff; }

.wf-conv-body { flex: 1 1 auto; overflow-y: auto; background: var(--wefit-bg, #f5f6f8); padding: 12px; }
.wf-conv-foot { position: relative; flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-top: 1px solid #e5e5e5; background: #fff; }

/* list */
.wf-conv-list { display: flex; flex-direction: column; gap: 8px; }
.wf-conv-item { display: block; background: #fff; border: 1px solid #e6e6ec; border-radius: 12px; padding: 10px 12px; color: #222; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.wf-conv-item:hover { border-color: var(--wefit-pink); box-shadow: 0 2px 10px rgba(0,0,0,.06); color: #222; }
.wf-conv-item.is-unread { border-left: 4px solid var(--wefit-pink); }
.wf-conv-item.is-closed { opacity: .72; }
.wf-conv-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.wf-conv-item-subj { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-conv-item-time { font-size: 11.5px; color: #777; flex: 0 0 auto; }
.wf-conv-item-prev { font-size: 12.5px; color: #555; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-conv-item-prev i { color: var(--wefit-pink); font-size: 11px; }
.wf-conv-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: #666; }
.wf-conv-item-unread { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wefit-pink); color: #fff; font-weight: 800; font-size: .7rem; line-height: 20px; text-align: center; }
.wf-conv-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.wf-conv-st--open { background: #fef3c7; color: #92400e; }
.wf-conv-st--waiting_user { background: #dcfce7; color: #166534; }
.wf-conv-st--closed { background: #e5e7eb; color: #4b5563; }

.wf-conv-empty { text-align: center; color: #666; padding: 40px 16px; }
.wf-conv-empty i { font-size: 36px; color: var(--wefit-pink); opacity: .6; margin-bottom: 10px; }
.wf-conv-empty p { margin: 0 0 4px; font-size: 14px; }
.wf-conv-empty-hint { font-size: 12.5px; color: #888; }

/* buttons & inputs */
.wf-conv-btn { flex: 1 1 auto; border: 0; border-radius: 999px; background: var(--wefit-pink); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 16px; cursor: pointer; }
.wf-conv-btn:disabled { opacity: .5; cursor: default; }
a.wf-conv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }   /* the "sign in again" link of the expired state (2026-10-13) */
.wf-conv-input { width: 100%; border: 1px solid #d5d5d5; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; line-height: 1.4; outline: none; background: #fff; }
.wf-conv-input:focus { border-color: var(--wefit-pink); }
.wf-conv-ta { resize: vertical; min-height: 110px; }
.wf-conv-newform label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 10px; }
.wf-conv-newform label .wf-conv-input { margin-top: 4px; font-weight: 400; }
.wf-conv-hint { font-size: 12px; color: #777; margin: 4px 0 0; }
.wf-conv-err { margin-top: 8px; background: #fee2e2; color: #991b1b; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.wf-conv-compose { flex: 1 1 auto; resize: none; max-height: 120px; }
.wf-conv-sendbtn { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--wefit-pink); color: #fff; font-size: 15px; cursor: pointer; }
.wf-conv-sendbtn:disabled { opacity: .5; }
/* emoji row: a toggle next to the send button, the tray floats above the foot */
.wf-conv-emobtn { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; filter: grayscale(1); opacity: .7; }
.wf-conv-emobtn:hover, .wf-conv-emobtn:focus-visible { filter: none; opacity: 1; outline: none; }
.wf-conv-emoji { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 3; }
.wf-conv-emoji button { border: 0; background: transparent; font-size: 20px; line-height: 1; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; padding: 0; }
.wf-conv-emoji button:hover, .wf-conv-emoji button:focus-visible { background: #f3f4f6; outline: none; }

/* messages */
.wf-conv-msgs { display: flex; flex-direction: column; gap: 8px; }
.wf-conv-day { text-align: center; font-size: 11px; color: #888; margin: 6px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.wf-conv-sys { font-size: 12.5px; color: #555; background: #fff; border: 1px dashed #d8d8e0; border-radius: 10px; padding: 8px 10px; }
.wf-conv-sys i { color: var(--wefit-pink); }
.wf-conv-row { display: flex; gap: 8px; align-items: flex-end; }
.wf-conv-row--me { justify-content: flex-end; }
.wf-conv-ava { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--wefit-navy, #1e1b4b); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.wf-conv-shot { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin: 2px 0; }
.wf-conv-bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-wrap: break-word; }
.wf-conv-row--me .wf-conv-bubble { background: var(--wefit-pink); color: #fff; border-bottom-right-radius: 4px; }
.wf-conv-row--them .wf-conv-bubble { background: #fff; color: #222; border: 1px solid #e0e0e0; border-bottom-left-radius: 4px; }
.wf-conv-bubble a { text-decoration: underline; word-break: break-all; color: var(--wefit-pink); }
.wf-conv-row--me .wf-conv-bubble a { color: #fff; }
.wf-conv-meta { font-size: 10.5px; opacity: .72; margin-top: 3px; }
.wf-conv-typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.wf-conv-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b5b5b5; animation: wf-conv-blink 1.2s infinite both; }
.wf-conv-typing span:nth-child(2) { animation-delay: .2s; } .wf-conv-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wf-conv-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.wf-conv-toast { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); background: #111; color: #fff; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; z-index: 2; }
.wf-conv--bubble { position: fixed; }
.wf-conv--embed { position: relative; }

/* phone */
@media (max-width: 480px) {
	.wf-conv-launcher { bottom: 12px; right: 12px; }
	.wf-conv--bubble { top: 12px; bottom: 12px; left: 12px; right: 12px; width: auto; height: auto; max-height: none; }
	body.wf-has-brevo .wf-conv-launcher { right: 80px; }
	body.wf-has-brevo .wf-conv--bubble { right: 12px; }
}
/* the phone layer (css/m.css world): the embedded panel fills the screen under the header */
html.wf-m .wf-conv--embed { min-height: calc(100vh - 170px); border: 0; border-radius: 0; background: transparent; }
html.wf-m .wf-conv--embed .wf-conv-head { border-radius: 14px; }
