/* [cc 16.10] site26 · sx-mesagerie.css: scena „Mesagerie internă cu șoferii” (parts/mesagerie.ro.php), pe sx.css, făcută după sx-ai.css.
   Totul sub .sx-mesagerie, doar px. [cc 16.10] Fereastra = fereastra Mesaje din v35 (css/user.message.v2.css + .dark.css, refăcută cu Maria): tokenii --u-* sunt valorile ei rezolvate
   (spec: hero-vercel/_piese-noi/_ref-mesaje-v35/spec.md §3), la scara site-ului (~0,92). Fereastra și telefonul urmează tema paginii (v35 are tema ei închisă).
   Singurele culori în afară de gri: albastrul de necitit, bifa verde (citit) și semnul roșu (necitit) — povestea părții. */
.sx-mesagerie { --m-phone: 264px; --m-gut: 56px; --m-ease: cubic-bezier(0.16, 1, 0.3, 1); --m-morph: cubic-bezier(0.215, 0.61, 0.355, 1); --m-wa: #25d366;
  --u-w: #fff; --u-n050: #f5f7fa; --u-n100: #e4e7eb; --u-n200: #cbd2d9; --u-n300: #9aa5b1; --u-n400: #7b8794; --u-n500: #616e7c; --u-n600: #52606d; --u-n700: #3e4c59; --u-n800: #323f4b; --u-n900: #1f2933;
  --u-solid: #323f4b; --u-on: #fff; --u-accent: #3071a9; --u-line: #e4e7eb; --u-sel: #e4e7eb; --u-th: #f5f7fa; --u-bub-in: #fff; --u-bub-line: #e4e7eb;
  --u-me: #3e4c59; --u-me-fg: #fff; --u-me-dim: rgba(255, 255, 255, .75); --u-ok: #26845a; --u-no: #c9413a;
  --u-in: inset 0 1px 2px rgba(15, 23, 32, .07); --u-raise: 0 1px 2px rgba(15, 23, 32, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
  --u-shw: 0 0 0 1px rgba(15, 23, 32, .07), 0 1px 2px rgba(15, 23, 32, .06), 0 28px 60px -28px rgba(15, 23, 32, .34);
  --u-shp: 0 0 0 1px rgba(15, 23, 32, .06), 0 2px 4px rgba(15, 23, 32, .06), 0 18px 40px -12px rgba(15, 23, 32, .3);
  --u-ban: rgba(246, 247, 249, .94); --u-ban-fg: #1f2933; --u-ban-sh: 0 0 0 1px rgba(15, 23, 32, .06), 0 10px 24px -8px rgba(15, 23, 32, .35); }
html[data-theme="dark"] .sx-mesagerie { --u-w: #17181b; --u-n050: #1f2125; --u-n100: #26282d; --u-n200: #3a3d43; --u-n300: #4a4e55; --u-n400: #6b7078; --u-n500: #8d9297; --u-n600: #8d9297; --u-n700: #b7bbc0; --u-n800: #dfe2e6; --u-n900: #cfd1d4;
  --u-solid: #d5d9de; --u-on: #17181b; --u-accent: #5e6ad2; --u-line: #2e3036; --u-sel: #26282d; --u-th: #101113; --u-bub-in: #1f2125; --u-bub-line: #2e3036;
  --u-me: #3a3d43; --u-me-fg: #cfd1d4; --u-me-dim: rgba(255, 255, 255, .7); --u-ok: #2f9561; --u-no: #d4544a;
  --u-in: inset 0 1px 2px rgba(0, 0, 0, .3); --u-raise: 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  --u-shw: 0 0 0 1px #2e3036, 0 40px 90px -30px rgba(0, 0, 0, .85);
  --u-shp: 0 0 0 1px #33353a, 0 8px 24px rgba(0, 0, 0, .5);
  --u-ban: rgba(44, 46, 52, .94); --u-ban-fg: #e6e8eb; --u-ban-sh: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px -8px rgba(0, 0, 0, .7); }
.sx-mesagerie b, .sx-mesagerie strong { word-spacing: -0.02em; }
.sx-mesagerie .sx-mesagerie-head { margin-bottom: var(--sx-head-after); }

/* ---------- scena: alegerea / fereastra / telefonul / pasii ---------- */
.sx-mesagerie .sx-mesagerie-stage { position: relative; margin: 0 auto; max-width: 640px; display: grid; grid-template-columns: minmax(0, 1fr); }
.sx-mesagerie .sx-mesagerie-pick { position: relative; z-index: 2; margin-bottom: 20px; }
.sx-mesagerie .sx-mesagerie-desk { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.sx-mesagerie .sx-mesagerie-win { grid-area: 1 / 1; justify-self: stretch; }
.sx-mesagerie .sx-mesagerie-spine { grid-area: 2 / 1; position: relative; width: 2px; height: 48px; background: repeating-linear-gradient(180deg, var(--sx-line) 0 8px, transparent 8px 16px); }
.sx-mesagerie .sx-mesagerie-spine::before, .sx-mesagerie .sx-mesagerie-spine::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--sx-ink); }
.sx-mesagerie .sx-mesagerie-spine::before { top: -3px; }
.sx-mesagerie .sx-mesagerie-spine::after { bottom: -3px; }
.sx-mesagerie .sx-mesagerie-phone { grid-area: 3 / 1; }
.sx-mesagerie .sx-mesagerie-wire { z-index: 3; display: none; }
.sx-mesagerie .sx-mesagerie-wire path { stroke: var(--sx-line); stroke-width: 1.5; stroke-dasharray: 8 10; }
.sx-mesagerie .sx-mesagerie-wire circle { fill: var(--sx-ink); stroke: var(--sx-bg0); stroke-width: 3; }
@media (min-width: 960px) {
  .sx-mesagerie .sx-mesagerie-stage { max-width: none; margin: 0; grid-template-columns: minmax(0, 1fr) var(--m-gut) var(--m-phone); grid-template-rows: auto auto auto; }
  .sx-mesagerie .sx-mesagerie-pick { grid-area: 1 / 1; margin-bottom: 22px; }
  .sx-mesagerie .sx-mesagerie-desk { display: contents; }
  .sx-mesagerie .sx-mesagerie-win { grid-area: 2 / 1; align-self: end; }
  .sx-mesagerie .sx-mesagerie-spine { display: none; }
  .sx-mesagerie .sx-mesagerie-phone { grid-area: 1 / 3 / 3 / 4; align-self: end; }
  .sx-mesagerie .sx-mesagerie-wire { display: block; }
}
@media (min-width: 1200px) {
  .sx-mesagerie { --m-phone: 280px; --m-gut: 72px; }
}

/* ---------- alegerea: legenda + mesajele gata scrise (au forma bulei proprii, cu avionul de trimis al v35) ---------- */
.sx-mesagerie .sx-mesagerie-cap { margin: 0 0 0 2px; font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; word-spacing: 0; color: var(--sx-ink2); text-wrap: pretty; }
.sx-mesagerie .sx-mesagerie-cap span:first-child { color: var(--sx-ink); }
.sx-mesagerie .sx-mesagerie-cap span[hidden] { display: none; }
.sx-mesagerie .sx-mesagerie-replies { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.sx-mesagerie .sx-mesagerie-replies[hidden] { display: none; }
.sx-mesagerie .sx-mesagerie-reply { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; margin: 0; padding: 8px 14px 8px 12px; border: 0; border-radius: 14px 14px 4px 14px; background: var(--sx-panel); color: var(--sx-ink); font: inherit; font-size: 13.5px; line-height: 1.35; letter-spacing: -0.012em; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px var(--sx-hair-strong), 0 1px 2px rgba(15, 23, 32, .07), 0 6px 14px -8px rgba(15, 23, 32, .28);
  transition: box-shadow .18s ease, opacity .2s ease, transform .22s var(--m-ease); }
.sx-mesagerie .sx-mesagerie-reply::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; background: var(--sx-ink3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.4 20.4 20.85 12.92a1 1 0 0 0 0-1.84L3.4 3.6a1 1 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.4 20.4 20.85 12.92a1 1 0 0 0 0-1.84L3.4 3.6a1 1 0 0 0-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z'/%3E%3C/svg%3E") center / contain no-repeat; transition: background-color .18s ease, transform .3s var(--m-ease); }
.sx-mesagerie .sx-mesagerie-reply.is-sent::before { background: var(--u-ok); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4 6.4 11.5 12.8 4.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4 6.4 11.5 12.8 4.6'/%3E%3C/svg%3E"); }
@media (hover: hover) {
  .sx-mesagerie .sx-mesagerie-reply:not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px var(--sx-ink3), 0 2px 4px rgba(15, 23, 32, .08), 0 10px 20px -10px rgba(15, 23, 32, .35); }
  .sx-mesagerie .sx-mesagerie-reply:not([aria-disabled="true"]):not(.is-sent):hover::before { background: var(--sx-ink); transform: translateX(2px); }
}
.sx-mesagerie .sx-mesagerie-reply:active { transform: scale(.98); }
.sx-mesagerie .sx-mesagerie-reply.is-pick { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1.5px var(--sx-ink), 0 1px 2px rgba(15, 23, 32, .07); }
.sx-mesagerie .sx-mesagerie-reply[aria-disabled="true"] { cursor: default; }
.sx-mesagerie .sx-mesagerie-reply[aria-disabled="true"]:not(.is-pick) { opacity: .5; }
.sx-mesagerie .sx-mesagerie-reply:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 3px; border-radius: 14px 14px 4px 14px; }
html[data-theme="dark"] .sx-mesagerie .sx-mesagerie-reply { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--sx-hair-strong), 0 1px 2px rgba(0, 0, 0, .5), 0 8px 18px -10px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .sx-mesagerie .sx-mesagerie-reply.is-pick { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1.5px var(--sx-ink), 0 1px 2px rgba(0, 0, 0, .5); }
@media (hover: hover) { html[data-theme="dark"] .sx-mesagerie .sx-mesagerie-reply:not([aria-disabled="true"]):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--sx-ink3), 0 2px 4px rgba(0, 0, 0, .5), 0 12px 24px -10px rgba(0, 0, 0, .9); } }
@media (max-width: 959px) { .sx-mesagerie .sx-mesagerie-reply { min-height: 44px; font-size: 14px; } }

/* ---------- fereastra Mesaje (v35): doua panouri; sub 720 px de fereastra doar conversatia, ca programul sub 1000 px ---------- */
.sx-mesagerie .sx-mesagerie-win { position: relative; container: sxmwin / inline-size; display: flex; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--u-w); box-shadow: var(--u-shw); color: var(--u-n900); font-size: 14px; line-height: 1.4; letter-spacing: -0.03em; word-spacing: -0.06em; color-scheme: light; transition: background-color .25s ease; }
html[data-theme="dark"] .sx-mesagerie .sx-mesagerie-win { color-scheme: dark; }
.sx-mesagerie .sxm-ic { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* lista din stanga */
.sx-mesagerie .sxm-lp { flex: 0 0 300px; min-width: 0; display: flex; flex-direction: column; height: 452px; border-right: 1px solid var(--u-line); }
.sx-mesagerie .sxm-mh { padding: 14px 0 10px 16px; border-bottom: 1px solid var(--u-line); }
.sx-mesagerie .sxm-mh-t { display: flex; align-items: center; gap: 4px; min-height: 32px; padding-right: 10px; }
.sx-mesagerie .sxm-title { margin-right: 4px; font-size: 15px; line-height: 20px; font-weight: 400; color: var(--u-n600); }
.sx-mesagerie .sxm-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--u-n100); color: var(--u-n700); box-shadow: var(--u-raise); }
.sx-mesagerie .sxm-sp { flex: 1 1 auto; }
.sx-mesagerie .sxm-per { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 4px 0 8px; font-size: 12.5px; color: var(--u-n500); }
.sx-mesagerie .sxm-per .sxm-ic { width: 13px; height: 13px; }
.sx-mesagerie .sxm-ib { display: grid; place-items: center; width: 30px; height: 30px; color: var(--u-n600); }
.sx-mesagerie .sxm-ib .sxm-ic { width: 15px; height: 15px; }
.sx-mesagerie .sxm-srch { display: flex; align-items: center; gap: 8px; height: 34px; margin: 10px 16px 0 0; padding: 0 12px; border-radius: 17px; background: var(--u-n050); box-shadow: var(--u-in), inset 0 0 0 1px var(--u-line); font-size: 13px; color: var(--u-n500); white-space: nowrap; }
.sx-mesagerie .sxm-srch .sxm-ic { width: 15px; height: 15px; }
/* filtrele: [cc 16.10 fix] toate patru încap în lista de 300 px (înainte „Camioane” se tăia la margine): spațiere și litere puțin mai mici, fără estompare */
.sx-mesagerie .sxm-tiles { display: flex; gap: 4px; margin-top: 10px; padding: 2px 0; overflow: hidden; }
.sx-mesagerie .sxm-tile { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--u-n200); font-size: 12px; font-weight: 500; color: var(--u-n700); white-space: nowrap; }
.sx-mesagerie .sxm-tile.is-on { background: var(--u-solid); color: var(--u-on); box-shadow: var(--u-raise); }
.sx-mesagerie .sxm-tcnt, .sx-mesagerie .sxm-cnt { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--u-accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0; word-spacing: 0; font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.sx-mesagerie .sxm-rw { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-content: center; min-height: 58px; padding: 9px 14px 9px 16px; list-style: none; }
.sx-mesagerie .sxm-rw > .sxm-av { grid-row: 1 / 3; align-self: center; }
.sx-mesagerie .sxm-rw + .sxm-rw::before { content: ""; position: absolute; left: 62px; right: 0; top: 0; height: 1px; background: var(--u-line); }
.sx-mesagerie .sxm-rw.is-sel { background: var(--u-sel); }
.sx-mesagerie .sxm-rw.is-sel + .sxm-rw::before { display: none; }
.sx-mesagerie .sxm-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--u-n100); color: var(--u-n700); font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; word-spacing: 0; }
.sx-mesagerie .sxm-rw.is-sel .sxm-av { background: var(--u-w); }
.sx-mesagerie .sxm-av .sxm-ic { width: 17px; height: 17px; color: var(--u-n600); }
.sx-mesagerie .sxm-sl1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sx-mesagerie .sxm-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--u-n800); }
.sx-mesagerie .sxm-rw.is-unread .sxm-nm { color: var(--u-n900); }
.sx-mesagerie .sxm-pl8 { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; height: 18px; padding: 0 5px 0 9px; border-radius: 4px; background: var(--u-w); box-shadow: inset 0 0 0 1px var(--u-n200); font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .04em; word-spacing: 0; color: var(--u-n800); white-space: nowrap; overflow: hidden; }
.sx-mesagerie .sxm-pl8::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--u-n300); }
.sx-mesagerie .sxm-tm { flex: 0 0 auto; margin-left: auto; font-size: 11.5px; line-height: 20px; color: var(--u-n500); letter-spacing: 0; word-spacing: 0; font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-sl2 { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 1px; }
.sx-mesagerie .sxm-pv { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 18px; color: var(--u-n400); }
.sx-mesagerie .sxm-ic-row { width: 14px; height: 14px; color: var(--u-n400); }

/* semnul de citire: bifa verde = citit, semnul de exclamare rosu = necitit (bula proprie + randul din lista) */
.sx-mesagerie .sxm-mk { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--u-ok); font-style: normal; box-shadow: 0 0 0 1.5px var(--u-w); transition: background-color .3s ease; }
.sx-mesagerie .sxm-me .sxm-mk { box-shadow: 0 0 0 1.5px var(--u-me); }
.sx-mesagerie .sxm-mk[data-st="unread"] { background: var(--u-no); }
.sx-mesagerie .sxm-mk svg { grid-area: 1 / 1; width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .18s ease, transform .42s var(--m-ease); }
.sx-mesagerie .sxm-mk-ok path { stroke-dasharray: 11; stroke-dashoffset: 0; transition: stroke-dashoffset .38s var(--m-ease) .1s; }
.sx-mesagerie .sxm-mk[data-st="read"] .sxm-mk-no { opacity: 0; transform: scale(.3); }
.sx-mesagerie .sxm-mk[data-st="unread"] .sxm-mk-ok { opacity: 0; transform: scale(.6) rotate(-30deg); }
.sx-mesagerie .sxm-mk[data-st="unread"] .sxm-mk-ok path { stroke-dashoffset: 11; }
.sx-mesagerie .sxm-mk.is-flip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--u-ok); animation: sx-mesagerie-ring .7s var(--m-ease) 1 both; pointer-events: none; }
@keyframes sx-mesagerie-ring { 0% { opacity: .9; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.7); } }

/* conversatia din dreapta */
.sx-mesagerie .sxm-rv { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 452px; }
.sx-mesagerie .sxm-cv-h { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 52px 10px 20px; border-bottom: 1px solid var(--u-line); }
.sx-mesagerie .sxm-back { display: none; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; margin-right: -2px; color: var(--u-n700); }
.sx-mesagerie .sxm-back .sxm-ic { width: 18px; height: 18px; }
.sx-mesagerie .sxm-who { display: grid; min-width: 0; }
.sx-mesagerie .sxm-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--u-n900); }
.sx-mesagerie .sxm-who > span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 20px; color: var(--u-n500); }
.sx-mesagerie .sxm-sep { font-style: normal; color: var(--u-n400); }
.sx-mesagerie .sxm-xq { position: absolute; z-index: 2; top: 15px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--u-n600); }
.sx-mesagerie .sxm-xq .sxm-ic { width: 15px; height: 15px; }
.sx-mesagerie .sxm-thr { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 14px 24px; background: var(--u-th); transition: background-color .25s ease; }
.sx-mesagerie .sxm-thr::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(var(--u-th), transparent); pointer-events: none; }
.sx-mesagerie .sxm-col { display: flex; flex-direction: column; gap: 8px; }
.sx-mesagerie .sxm-day { align-self: center; margin: 2px 0; }
.sx-mesagerie .sxm-day span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--u-w); box-shadow: inset 0 0 0 1px var(--u-line); font-size: 11.5px; font-weight: 600; line-height: 16px; letter-spacing: 0; color: var(--u-n600); }
.sx-mesagerie .sxm-bw { display: flex; transform-origin: 0 100%; }
.sx-mesagerie .sxm-me { justify-content: flex-end; transform-origin: 100% 100%; }
.sx-mesagerie .sxm-bub { max-width: min(76%, 440px); padding: 7px 12px 5px; border-radius: 14px 14px 14px 4px; background: var(--u-bub-in); box-shadow: inset 0 0 0 1px var(--u-bub-line), 0 1px 1px rgba(15, 23, 32, .04); font-size: 14px; line-height: 20px; color: var(--u-n900); overflow-wrap: anywhere; text-wrap: pretty; }
.sx-mesagerie .sxm-me .sxm-bub { border-radius: 14px 14px 4px 14px; background: var(--u-me); color: var(--u-me-fg); box-shadow: 0 1px 2px rgba(15, 23, 32, .14); }
.sx-mesagerie .sxm-bt { float: right; display: inline-flex; align-items: center; gap: 5px; margin: 1px 0 0 12px; font-size: 11px; line-height: 20px; color: var(--u-n500); letter-spacing: 0; word-spacing: 0; font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-me .sxm-bt { color: var(--u-me-dim); }
.sx-mesagerie .sxm-bt time { font: inherit; }
/* numarul comenzii din text: buton subliniat (v35 .um-ord), zona de apasare 44 px */
.sx-mesagerie .sxm-ord { position: relative; display: inline; margin: 0; padding: 0 1px; border: 0; border-radius: 4px; background: none; font: inherit; color: inherit; letter-spacing: 0; word-spacing: 0; text-decoration: underline; text-decoration-color: var(--u-n300); text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .18s ease, text-decoration-color .18s ease; -webkit-tap-highlight-color: transparent; }
.sx-mesagerie .sxm-me .sxm-ord { text-decoration-color: rgba(255, 255, 255, .5); }
.sx-mesagerie .sxm-ord::after { content: ""; position: absolute; inset: -12px -8px; }
@media (hover: hover) {
  .sx-mesagerie .sxm-ord:hover { text-decoration-color: currentColor; background: rgba(15, 23, 32, .06); }
  .sx-mesagerie .sxm-me .sxm-ord:hover { background: rgba(255, 255, 255, .14); }
}
.sx-mesagerie .sxm-ord.is-open { text-decoration-color: currentColor; background: rgba(255, 255, 255, .18); }
.sx-mesagerie .sxm-in .sxm-ord.is-open { background: rgba(15, 23, 32, .08); }
.sx-mesagerie .sxm-ord:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.sx-mesagerie .sxm-ord.is-hint { animation: sx-mesagerie-hint 1.5s ease 2; }
@keyframes sx-mesagerie-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 40% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .28); } }
.sx-mesagerie .sxm-bub u { text-decoration-color: var(--u-n300); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* bara de scris (v35 .um-cv-f): campul rotund cu avionul + „si pe WhatsApp” */
.sx-mesagerie .sxm-cv-f { flex: 0 0 auto; padding: 10px 20px 6px; border-top: 1px solid var(--u-line); background: var(--u-w); }
.sx-mesagerie .sxm-box { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 5px 5px 16px; border-radius: 22px; background: var(--u-w); box-shadow: inset 0 0 0 1px var(--u-n200), var(--u-in); transition: box-shadow .18s ease; }
.sx-mesagerie .sxm-box.is-ready { box-shadow: inset 0 0 0 1px var(--u-n400), 0 0 0 3px var(--u-n100); }
.sx-mesagerie .sxm-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--u-n900); }
.sx-mesagerie .sxm-text:empty::before { content: attr(data-ph); color: var(--u-n500); }
.sx-mesagerie .sxm-text.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--u-n900); animation: sx-mesagerie-caret .9s steps(1) infinite; }
@keyframes sx-mesagerie-caret { 50% { opacity: 0; } }
.sx-mesagerie .sxm-send { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--u-solid); color: var(--u-on); opacity: .45; box-shadow: var(--u-raise); transition: opacity .2s ease, transform .16s var(--m-ease); }
.sx-mesagerie .sxm-send .sxm-ic { width: 17px; height: 17px; transform: translateX(1px); }
.sx-mesagerie .sxm-box.is-ready .sxm-send { opacity: 1; }
.sx-mesagerie .sxm-send.is-press { transform: scale(.86); }
.sx-mesagerie .sxm-wa { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 2px 0 0; padding: 0 12px 0 14px; border-radius: 8px; font-size: 12.5px; line-height: 1.2; color: var(--u-n600); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sx-mesagerie .sxm-wa-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sx-mesagerie .sxm-wa-box { position: relative; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 4px; background: var(--u-w); box-shadow: var(--u-in), 0 0 0 1px var(--u-n300); transition: background-color .15s ease, box-shadow .15s ease; pointer-events: none; }
.sx-mesagerie .sxm-wa-in:checked + .sxm-wa-box { background: var(--u-solid); box-shadow: var(--u-raise); }
.sx-mesagerie .sxm-wa-in:checked + .sxm-wa-box::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border-right: 2px solid var(--u-on); border-bottom: 2px solid var(--u-on); transform: rotate(45deg); }
.sx-mesagerie .sxm-wa-in:focus-visible + .sxm-wa-box { outline: 2px solid var(--u-n500); outline-offset: 2px; }
@media (hover: hover) { .sx-mesagerie .sxm-wa:hover { color: var(--u-n900); } .sx-mesagerie .sxm-wa:hover .sxm-wa-box { box-shadow: var(--u-in), 0 0 0 1px var(--u-n500); } }

/* Rezumat Comandă: fereastra mica peste conversatie, crescuta din numarul apasat */
.sx-mesagerie .sx-mesagerie-sum { position: absolute; z-index: 5; top: 12px; right: 12px; width: min(420px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; overscroll-behavior: contain; border-radius: 12px; background: var(--u-w); box-shadow: var(--u-shp); color: var(--u-n900); transform-origin: var(--m-o, 50% 0); }
.sx-mesagerie .sx-mesagerie-sum[hidden] { display: none; }
.sx-mesagerie .sxm-sum-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 6px 16px; }
.sx-mesagerie .sxm-sum-t { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--u-n900); }
.sx-mesagerie .sxm-sum-x { position: relative; display: grid; place-items: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--u-n600); cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.sx-mesagerie .sxm-sum-x::after { content: ""; position: absolute; inset: -6px; }
@media (hover: hover) { .sx-mesagerie .sxm-sum-x:hover { background: var(--u-n100); color: var(--u-n900); } }
.sx-mesagerie .sxm-sum-x:focus-visible { outline: 2px solid var(--u-n500); outline-offset: 0; }
.sx-mesagerie .sxm-sum-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 4px 16px 14px; }
.sx-mesagerie .sxm-sum-kv > div { display: grid; min-width: 0; }
.sx-mesagerie .sxm-sum-kv dt { font-size: 11.5px; line-height: 16px; font-weight: 400; color: var(--u-n500); }
.sx-mesagerie .sxm-sum-kv dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 20px; color: var(--u-n900); font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-sum-kv dd b { font-weight: 600; color: var(--u-n900); }
.sx-mesagerie .sxm-sum-pts { width: calc(100% - 32px); margin: 0 16px 16px; border-collapse: collapse; font-size: 12.5px; line-height: 18px; font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-sum-pts th { padding: 0 8px 6px 0; font-size: 11.5px; font-weight: 400; text-align: left; color: var(--u-n500); white-space: nowrap; }
.sx-mesagerie .sxm-sum-pts td { padding: 7px 8px 7px 0; border-top: 1px solid var(--u-line); color: var(--u-n900); }
.sx-mesagerie .sxm-sum-pts th:last-child, .sx-mesagerie .sxm-sum-pts td:last-child { padding-right: 0; text-align: right; }

@container sxmwin (max-width: 719px) {
  .sx-mesagerie .sxm-lp { display: none; }
  .sx-mesagerie .sxm-rv { height: auto; }
  .sx-mesagerie .sxm-thr { flex: 0 0 auto; height: 264px; padding: 12px 12px 14px; }
  .sx-mesagerie .sxm-cv-h { min-height: 56px; padding: 8px 48px 8px 8px; gap: 8px; }
  .sx-mesagerie .sxm-back { display: grid; }
  .sx-mesagerie .sxm-xq { top: 13px; right: 8px; }
  .sx-mesagerie .sxm-bub { max-width: 86%; }
  .sx-mesagerie .sxm-cv-f { padding: 8px 12px 4px; }
  .sx-mesagerie .sxm-wa { min-height: 44px; margin: 0; }
  .sx-mesagerie .sx-mesagerie-sum { top: 10px; right: 10px; width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .sx-mesagerie .sxm-sum-x { width: 36px; height: 36px; }
  .sx-mesagerie .sxm-sum-x::after { inset: -4px; }
  .sx-mesagerie .sxm-sum-kv { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 10px; }
  .sx-mesagerie .sxm-sum-kv > div { grid-template-columns: 116px minmax(0, 1fr); align-items: baseline; column-gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--u-line); }
  .sx-mesagerie .sxm-sum-kv dd { white-space: normal; }
  .sx-mesagerie .sxm-sum-pts th:first-child, .sx-mesagerie .sxm-sum-pts td:first-child { width: 34%; }
}

/* ---------- telefonul soferului: aceeasi paleta v35 (bula dispecerului alba, a soferului inchisa), urmeaza tema paginii ---------- */
.sx-mesagerie .sx-mesagerie-phone { position: relative; z-index: 2; width: var(--m-phone); padding: 7px; border-radius: 42px; background: var(--sx-phone-frame); box-shadow: inset 0 0 0 1px var(--sx-phone-edge), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px var(--sx-phone-outline), 0 34px 60px -30px rgba(23, 32, 43, .55); }
html[data-theme="dark"] .sx-mesagerie .sx-mesagerie-phone { box-shadow: inset 0 0 0 1px var(--sx-phone-edge), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .12), 0 34px 60px -26px rgba(0, 0, 0, .9); }
.sx-mesagerie .sxm-p-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 1206 / 2510; border-radius: 35px; background: var(--u-w); color: var(--u-n900); font-size: 12px; line-height: 1.4; letter-spacing: -0.02em; word-spacing: -0.04em; transition: background-color .25s ease; }
.sx-mesagerie .sxm-p-status { position: relative; flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 8px 26px 0 30px; font-size: 12px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sx-mesagerie .sxm-p-status::before { content: ""; position: absolute; left: 50%; top: 9px; width: 72px; height: 21px; margin-left: -36px; border-radius: 12px; background: #000; }
.sx-mesagerie .sxm-p-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sx-mesagerie .sxm-p-sig i { display: block; width: 2.5px; border-radius: 1px; background: currentColor; }
.sx-mesagerie .sxm-p-sig i:nth-child(1) { height: 4px; } .sx-mesagerie .sxm-p-sig i:nth-child(2) { height: 6px; } .sx-mesagerie .sxm-p-sig i:nth-child(3) { height: 8px; } .sx-mesagerie .sxm-p-sig i:nth-child(4) { height: 10px; }
.sx-mesagerie .sxm-p-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px 8px; border-bottom: 1px solid var(--u-line); }
.sx-mesagerie .sxm-p-back { display: grid; place-items: center; width: 26px; height: 30px; color: var(--u-n700); }
.sx-mesagerie .sxm-av--p { width: 30px; height: 30px; font-size: 11px; }
.sx-mesagerie .sxm-p-who { display: grid; min-width: 0; line-height: 1.25; }
.sx-mesagerie .sxm-p-who b { font-size: 13px; font-weight: 600; color: var(--u-n900); }
.sx-mesagerie .sxm-p-who span { font-size: 11px; color: var(--u-n500); }
.sx-mesagerie .sxm-p-thr { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0 10px 10px; background: var(--u-th); transition: background-color .25s ease; }
.sx-mesagerie .sxm-p-thr::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 28px; background: linear-gradient(var(--u-th), transparent); pointer-events: none; }
.sx-mesagerie .sxm-p-col { gap: 7px; }
.sx-mesagerie .sxm-p-col .sxm-day span { font-size: 10.5px; padding: 1px 9px; }
.sx-mesagerie .sxm-p-col .sxm-bub { max-width: 86%; padding: 6px 10px 4px; font-size: 12px; line-height: 17px; }
.sx-mesagerie .sxm-p-col .sxm-bt { font-size: 10px; line-height: 17px; margin-left: 8px; }
.sx-mesagerie .sxm-p-f { flex: 0 0 auto; padding: 8px 10px 20px; border-top: 1px solid var(--u-line); background: var(--u-w); }
.sx-mesagerie .sxm-box--p { min-height: 36px; padding: 3px 3px 3px 12px; }
.sx-mesagerie .sxm-box--p .sxm-text { font-size: 12px; }
.sx-mesagerie .sxm-box--p .sxm-send { width: 30px; height: 30px; }
.sx-mesagerie .sxm-box--p .sxm-send .sxm-ic { width: 15px; height: 15px; }
/* notificarile de pe telefon */
.sx-mesagerie .sxm-ban { position: absolute; z-index: 4; left: 8px; right: 8px; top: 42px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 16px; background: var(--u-ban); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--u-ban-sh); color: var(--u-ban-fg); opacity: 0; transform: translateY(-140%); transition: transform .45s var(--m-ease), opacity .25s ease; pointer-events: none; }
.sx-mesagerie .sxm-ban--wa { top: 100px; }
.sx-mesagerie .sxm-ban.is-on { opacity: 1; transform: none; }
.sx-mesagerie .sxm-ban.is-tap { transform: scale(.96); transition-duration: .15s; }
.sx-mesagerie .sxm-ban-i { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px; background: #323f4b; color: #fff; }
.sx-mesagerie .sxm-ban--wa .sxm-ban-i { background: var(--m-wa); }
.sx-mesagerie .sxm-ban-i svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-mesagerie .sxm-ban-t { display: grid; min-width: 0; line-height: 1.3; }
.sx-mesagerie .sxm-ban-t b { font-size: 11px; font-weight: 600; letter-spacing: .01em; color: inherit; }
.sx-mesagerie .sxm-ban-t span { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
  .sx-mesagerie { --m-phone: 248px; }
}

/* ---------- zborul mesajului (element creat de sx-mesagerie.js, sters la capat): bula proprie mica, verde pentru WhatsApp, bifa la intoarcere ---------- */
.sx-mesagerie .sx-mesagerie-fly { position: absolute; z-index: 6; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 22px; margin: -11px 0 0 -17px; border-radius: 11px 11px 4px 11px; background: var(--u-me); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 16px -6px rgba(0, 0, 0, .5); pointer-events: none; will-change: transform; }
.sx-mesagerie .sx-mesagerie-fly::before { content: ""; width: 16px; height: 4px; background: radial-gradient(circle 2px at 2px 2px, var(--u-me-fg) 98%, transparent) 0 0 / 6px 4px repeat-x; }
.sx-mesagerie .sx-mesagerie-fly--wa { background: var(--m-wa); --u-me-fg: #fff; border-radius: 11px 11px 11px 4px; }
.sx-mesagerie .sx-mesagerie-fly--ok { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--u-ok); }
.sx-mesagerie .sx-mesagerie-fly--ok::before { width: 6px; height: 10px; margin-top: -3px; background: none; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

/* [cc 16.10 fix] cei trei pași de sub scenă au ieșit: spuneau a doua oară cele trei fapte din antet; frazele stau acum în descrierea pentru cititorul de ecran */

/* [cc] telefon: legenda exemplului la 14 px (SPEC3, ca la ai) */
@media (max-width: 900px) {
  .sx-mesagerie .sx-mesagerie-cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-mesagerie .sx-mesagerie-reply, .sx-mesagerie .sx-mesagerie-reply::before, .sx-mesagerie .sxm-mk, .sx-mesagerie .sxm-mk svg, .sx-mesagerie .sxm-mk-ok path, .sx-mesagerie .sxm-ban, .sx-mesagerie .sxm-send, .sx-mesagerie .sxm-box, .sx-mesagerie .sxm-ord, .sx-mesagerie .sxm-wa-box, .sx-mesagerie .sx-mesagerie-win, .sx-mesagerie .sxm-thr, .sx-mesagerie .sxm-p-thr, .sx-mesagerie .sxm-p-screen { transition: none; }
  .sx-mesagerie .sxm-mk.is-flip::after, .sx-mesagerie .sxm-text.is-typing::after, .sx-mesagerie .sxm-ord.is-hint { animation: none; }
  .sx-mesagerie .sx-mesagerie-reply:active { transform: none; }
}
