/* Charlotte floating widget */
#charlotte-root, #charlotte-root * { box-sizing: border-box; }
#charlotte-root {
  --c-primary:#0E7C86; --c-deep:#0B5A61; --c-bot:#EAF4F4; --c-text:#143037;
  --c-muted:#6A8089; --c-border:#E2ECEC; --c-ok:#2E9E7B; --c-pending:#D99021; --c-pendingbg:#FCF3E2;
  --c-wp:#21759B; --c-tg:#2AABEE;
  position: fixed; z-index: 999999;
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif; direction: rtl;
}
#charlotte-launch {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--c-primary), var(--c-deep));
  box-shadow: 0 10px 26px rgba(11,90,97,.35); display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
#charlotte-launch:hover { transform: scale(1.06); }
#charlotte-panel {
  position: absolute; bottom: 74px;
  width: 380px; max-width: calc(100vw - 30px); height: 560px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 20px; border: 1px solid var(--c-border);
  box-shadow: 0 18px 50px rgba(11,90,97,.22); display: none; flex-direction: column; overflow: hidden;
}
#charlotte-root.pos-left #charlotte-panel { left: 0; right: auto; }
#charlotte-root.pos-right #charlotte-panel { right: 0; left: auto; }
#charlotte-launch svg { width: 100%; height: 100%; display: block; }
.charlotte-ava svg { width: 100%; height: 100%; display: block; }
#charlotte-launch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.charlotte-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.charlotte-teaser {
  position: absolute; bottom: 74px; width: 240px; max-width: calc(100vw - 40px); box-sizing: border-box;
  background: #fff; color: var(--c-text); font-size: 13.5px; line-height: 1.8; text-align: right;
  padding: 13px 15px; border-radius: 16px; border: 1px solid var(--c-border);
  box-shadow: 0 12px 32px rgba(11,90,97,.2); cursor: pointer; display: none;
  animation: charlotteTeaser .35s ease;
}
#charlotte-root.pos-left .charlotte-teaser { left: 0; }
#charlotte-root.pos-right .charlotte-teaser { right: 0; }
#charlotte-root.teaser-on .charlotte-teaser { display: block; }
#charlotte-root.open .charlotte-teaser { display: none !important; }
.charlotte-teaser .tx { position: absolute; top: 3px; left: 8px; color: var(--c-muted); font-size: 16px; line-height: 1; background: none; border: none; cursor: pointer; padding: 2px; }
@keyframes charlotteTeaser { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#charlotte-root.open #charlotte-panel { display: flex; }
.charlotte-head { background: linear-gradient(135deg, var(--c-primary), var(--c-deep)); padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.charlotte-ava { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.charlotte-head .t { color: #fff; font-weight: 700; font-size: 15px; }
.charlotte-head .s { color: rgba(255,255,255,.85); font-size: 11.5px; }
.charlotte-head .x { margin-inline-start: auto; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.charlotte-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.charlotte-msgs::-webkit-scrollbar { width: 7px; }
.charlotte-msgs::-webkit-scrollbar-thumb { background: #C7D7D7; border-radius: 10px; }
.charlotte-b { padding: 9px 12px; border-radius: 15px; max-width: 84%; font-size: 13.5px; line-height: 1.85; white-space: pre-wrap; }
.charlotte-b.user { align-self: flex-start; background: var(--c-primary); color: #fff; border-top-right-radius: 4px; }
.charlotte-b.bot { align-self: flex-end; background: var(--c-bot); color: var(--c-text); border-top-left-radius: 4px; }
.charlotte-typing { align-self: flex-end; background: var(--c-bot); padding: 9px 12px; border-radius: 15px; border-top-left-radius: 4px; display: flex; gap: 4px; }
.charlotte-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); display: inline-block; animation: charlottebounce 1s infinite; }
.charlotte-typing i:nth-child(2){ animation-delay:.15s } .charlotte-typing i:nth-child(3){ animation-delay:.3s }
@keyframes charlottebounce { 0%,60%,100%{transform:translateY(0);opacity:.5} 30%{transform:translateY(-5px);opacity:1} }
.charlotte-quick { display: flex; gap: 7px; padding: 0 12px 9px; flex-wrap: wrap; }
.charlotte-quick button { font-family: inherit; font-size: 12px; color: var(--c-primary); background: #fff; border: 1px solid rgba(14,124,134,.4); border-radius: 18px; padding: 6px 11px; cursor: pointer; }
.charlotte-quick button:hover { background: var(--c-primary); color: #fff; }
.charlotte-foot { border-top: 1px solid var(--c-border); padding: 10px; display: flex; gap: 8px; align-items: center; }
.charlotte-foot input { flex: 1; font-family: inherit; font-size: 13.5px; padding: 10px 13px; border-radius: 20px; border: 1px solid var(--c-border); background: #F6FAFA; color: var(--c-text); }
.charlotte-foot input:focus { outline: none; border-color: var(--c-primary); }
.charlotte-foot button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--c-primary); color: #fff; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.charlotte-card { align-self: flex-end; width: 90%; border-radius: 13px; padding: 11px 13px; font-size: 12.5px; margin-top: 2px; }
.charlotte-card.booking { background: var(--c-pendingbg); border: 1px solid rgba(217,144,33,.4); }
.charlotte-card.lead { background: #F7FBFB; border: 1px solid var(--c-border); }
.charlotte-card.taken { background: #FBEDED; border: 1px solid rgba(199,91,91,.4); color: #C75B5B; }
.charlotte-card .h { font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.charlotte-card .row { color: var(--c-text); line-height: 1.9; }
.charlotte-dest { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.charlotte-dest span { font-size: 11.5px; background: #fff; border-radius: 16px; padding: 3px 9px; }
.charlotte-note { font-size: 10.5px; color: var(--c-muted); margin-top: 7px; }
