/* ===== Musttby AI assistant widget ===== */
.chat { position: fixed; left: 20px; bottom: 20px; z-index: 95; font-family: var(--font); }
.chat__launcher {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(226, 0, 26, .28); transition: transform .2s;
}
.chat__launcher:hover { transform: translateY(-2px); }
.chat__launcher svg { width: 26px; height: 26px; }
.chat__launcher.is-hidden { display: none; }
.chat__dot { position: absolute; right: 4px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #35D07F; border: 2px solid #fff; }
.chat__panel {
  position: absolute; left: 0; bottom: 70px; width: 366px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px); display: none; flex-direction: column;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(11, 13, 16, .2);
}
.chat__panel.is-open { display: flex; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chat__id { display: flex; align-items: center; gap: 10px; }
.chat__avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.chat__id b { display: block; font-size: 14px; }
.chat__id small { font-size: 11.5px; color: var(--dim); }
.chat__close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FBFCFD; }
.chat__msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.chat__msg--user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.chat__typing { display: flex; gap: 4px; align-items: center; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: chatBlink 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat__quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px 0; background: #fff; }
.chat__quick button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; cursor: pointer; color: var(--muted); }
.chat__quick button:hover { border-color: var(--red); color: var(--red-2); }
.chat__form { display: flex; gap: 8px; padding: 12px 14px; background: #fff; }
.chat__form input { flex: 1; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--text); }
.chat__form input:focus { outline: none; border-color: rgba(226, 0, 26, .55); }
.chat__form button { width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__form button svg { width: 18px; height: 18px; }
.chat__note { padding: 0 14px 12px; font-size: 10.5px; color: var(--dim); background: #fff; }
@media (max-width: 640px) {
  .chat { left: 14px; bottom: 14px; }
  .chat__panel { width: calc(100vw - 28px); height: min(70vh, 520px); }
}
