.lc-sheet [hidden] { display: none !important; }
.lc-toast {
  position: fixed;
  right: 16px; bottom: 96px;
  z-index: 2147483003;
  max-width: min(320px, calc(100vw - 32px));
  padding: 10px 13px;
  border-radius: 11px;
  background: linear-gradient(180deg, #1e90ff, #1668c7);
  color: #fff;
  box-shadow: 0 12px 30px rgba(6, 20, 40, .45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.lc-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lc-lightbox {
  position: fixed; inset: 0; z-index: 2147483010;
  display: grid; place-items: center;
  background: rgba(4, 8, 16, .88);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  padding: 24px;
}
.lc-lightbox.is-on { opacity: 1; pointer-events: auto; }
.lc-lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lc-lightbox button {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(15, 23, 42, .7); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.lc-file-img { cursor: zoom-in; }
.lc-toast i {
  display: block; margin-top: 5px;
  font-size: 10.5px; font-style: normal; font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.lc-fab-badge {
  position: absolute; top: -5px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: #ef4444; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 3px 9px rgba(239, 68, 68, .5);
}
.lc-fab-badge[hidden] { display: none !important; }
.lc-toast b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.lc-toast span {
  display: block; margin-top: 2px; font-size: 12px; line-height: 1.35;
  color: rgba(255, 255, 255, .92);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lc-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  visibility: hidden;
  pointer-events: none;
}
.lc-sheet.is-open { visibility: visible; pointer-events: auto; }
.lc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.lc-sheet.is-open .lc-overlay { opacity: 1; }
html.live-chat-open, body.live-chat-open {
  overflow: hidden !important;
  height: 100%;
  height: 100dvh;
  overscroll-behavior: none;
}
.lc-panel {
  position: absolute;
  inset: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #12171e;
  border-radius: 0;
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.lc-sheet.is-open .lc-panel { transform: none; }
.lc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #1e90ff;
  color: #fff;
  flex-shrink: 0;
}
.lc-head-ico {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  flex: 0 0 26px;
}
.lc-head-ico img {
  width: 100%; height: 100%; object-fit: cover;
}
.lc-head strong {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.lc-min {
  position: absolute; top: 6px; right: 8px;
  width: 26px; height: 26px; border: 0; background: transparent;
  color: rgba(255,255,255,.85); font-size: 20px; line-height: 16px; cursor: pointer;
  font-weight: 400;
}
.lc-min:hover { color: #fff; }
.lc-sub {
  position: relative;
  text-align: center;
  padding: 11px 40px 9px;
  background: linear-gradient(180deg, #1e90ff, #1673d6);
  border-bottom: 1px solid rgba(0,0,0,.18);
  flex-shrink: 0;
}
.lc-sub b { color: #fff; font-size: 12.5px; font-weight: 600; margin-right: 5px; }
.lc-sub span { color: rgba(255,255,255,.78); font-size: 10.5px; }
.lc-status {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .01em;
}
.lc-status em { font-style: normal; }
.lc-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.lc-status { color: #fff; }
.lc-status .lc-dot { background: #86efac; }
.lc-status.is-wait .lc-dot { background: #fde68a; }
.lc-status.is-online .lc-dot { animation: lc-pulse 1.6s ease-in-out infinite; }
@keyframes lc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.lc-news {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; padding: 8px 10px 6px; flex-shrink: 0;
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.lc-news-card {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; padding: 6px 7px; cursor: pointer; text-align: left;
  background: #1b2230; border: 1px solid rgba(148,163,184,.16);
  border-radius: 9px; color: #e6edf5;
  transition: border-color .15s ease, background .15s ease;
}
.lc-news-card:hover { background: #202a3a; border-color: rgba(30,144,255,.5); }
.lc-news-card img, .lc-news-ico {
  width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px;
  object-fit: cover;
}
.lc-news-ico {
  display: grid; place-items: center; font-size: 11px;
  background: rgba(30,144,255,.16); color: #7dd3fc;
}
.lc-news-card span { min-width: 0; display: block; }
.lc-news-card strong {
  display: block; font-size: 10.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-news-card small {
  display: block; font-size: 9px; color: #8fa1b5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  flex-shrink: 0; background: #12171e;
}
.lc-chips button {
  flex: 0 0 auto; cursor: pointer;
  background: transparent; color: #cfe0f0;
  border: 1px solid rgba(30,144,255,.45); border-radius: 999px;
  padding: 5px 12px; font-size: 10.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.lc-chips button:hover { background: rgba(30,144,255,.16); color: #fff; }
.lc-body {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 12px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #33445c transparent;
  display: flex; flex-direction: column; gap: 9px;
}
.lc-body::-webkit-scrollbar { width: 7px; }
.lc-body::-webkit-scrollbar-thumb { background: #33445c; border-radius: 999px; }
.lc-body::-webkit-scrollbar-track { background: transparent; }
.lc-sys-arch {
  align-self: center; max-width: 90%;
  background: rgba(251,191,36,.1); color: #fde68a;
  border-radius: 8px; padding: 6px 10px; font-size: 10.5px; text-align: center;
}
.lc-sys-red {
  align-self: center; max-width: 90%;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.35);
  color: #f87171;
  border-radius: 8px; padding: 6px 12px; font-size: 10.5px; text-align: center; font-weight: 500;
}
.lc-day {
  align-self: center; display: flex; align-items: center; gap: 8px;
  width: 100%; margin: 2px 0;
  color: #6f8296; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.lc-day::before, .lc-day::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.22), transparent);
}
.lc-msg--cont { margin-top: -6px; }
.lc-msg--cont .lc-ava { visibility: hidden; }
.lc-msg--cont .lc-bubble::after { display: none; }
.lc-when--cont {
  display: block; margin-top: 3px; text-align: right;
  font-size: 9px; opacity: .7;
}
.lc-msg { display: flex; align-items: flex-start; gap: 7px; max-width: 100%; }
.lc-msg .lc-bubble { max-width: calc(100% - 35px); }
.lc-msg--me { align-self: flex-end; flex-direction: row-reverse; }
.lc-msg--them, .lc-msg--ai { align-self: flex-start; }
.lc-ava {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; object-position: center; flex: 0 0 26px;
  background: #1c242f; border: 1px solid rgba(148,163,184,.22);
}
.lc-bubble {
  position: relative;
  min-width: 116px;
  background: #212734;
  color: #eef2f7;
  border-radius: 10px;
  padding: 6px 9px 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.lc-msg--them .lc-bubble { background: #1d6fc9; }
.lc-msg--ai .lc-bubble { background: #1c242f; }
.lc-bubble::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 0; height: 0;
  border: 5px solid transparent;
}
.lc-msg--me .lc-bubble::after {
  right: -5px;
  border-left-color: #212734;
  border-right: 0;
}
.lc-msg--them .lc-bubble::after, .lc-msg--ai .lc-bubble::after {
  left: -5px;
  border-right-color: #1c242f;
  border-left: 0;
}
.lc-msg--them .lc-bubble::after { border-right-color: #1d6fc9; }
.lc-msg--them .lc-who { color: rgba(255,255,255,.92); }
.lc-msg--them .lc-when { color: rgba(255,255,255,.66); }
.lc-msg--them .lc-bubble p a { color: #fff; text-decoration: underline; }
.lc-msg--them .lc-file { color: #fff; }
.lc-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 9px;
  margin-bottom: 2px;
}
.lc-who {
  font-size: 10.5px; font-weight: 600; color: #91a4b8; letter-spacing: .01em;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-when { font-size: 9.5px; font-weight: 400; color: #74838f; white-space: nowrap; }
.lc-bubble p {
  margin: 0; font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.lc-bubble p a { color: #7dd3fc; word-break: break-all; }
.lc-tick { font-size: 9px; font-weight: 400; color: #64748b; margin-left: 5px; }
.lc-tick.is-seen { color: #38bdf8; }
.lc-file {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  color: #7dd3fc; font-size: 10.5px; font-weight: 500; text-decoration: none;
}
.lc-file-img {
  display: block; max-width: 180px; max-height: 150px; border-radius: 7px; margin-top: 6px;
}
.lc-typing {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 14px 0; flex-shrink: 0;
  font-size: 10.5px; font-weight: 500; color: #7dd3fc;
}
.lc-typing-dots { display: inline-flex; gap: 3px; }
.lc-typing-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: #38bdf8;
  animation: lcType 1s infinite ease-in-out;
}
.lc-typing-dots i:nth-child(2) { animation-delay: .15s; }
.lc-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lcType {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.lc-form {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px 8px;
  border-top: 1px solid rgba(148,163,184,.14);
  background: #12171e;
}
.lc-attach, .lc-send {
  width: 28px; height: 28px; border: 0; background: transparent;
  color: #4aa3ff; cursor: pointer; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px;
}
.lc-send svg { width: 17px; height: 17px; }
.lc-attach.is-on { color: #7dd3fc; }
.lc-file-name {
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #7dd3fc; font-size: 9.5px; font-weight: 500;
}
.lc-form input[type="text"] {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid rgba(30,144,255,.55);
  background: transparent; color: #eef2f7; padding: 6px 2px 5px;
  font-size: 12.5px; font-family: inherit; border-radius: 0;
  transition: border-color .2s ease;
}
.lc-form input[type="text"]:focus { border-bottom-color: #1e90ff; }
.lc-form input[type="text"]::placeholder { font-size: 12px; }
.lc-form input[type="text"]::placeholder { color: #6b7c8f; }
.lc-form input[type="text"]:focus { outline: none; }
body.live-chat-open .live-support-fab { display: none !important; }
@media (min-width: 993px) {
  html.live-chat-open, body.live-chat-open { overflow: auto !important; height: auto; }
  .lc-overlay { background: transparent; }
  .lc-panel {
    left: auto; right: 18px; bottom: 22px; top: auto;
    width: min(430px, calc(100vw - 36px));
    height: min(736px, calc(100vh - 44px));
    max-height: min(736px, calc(100vh - 44px));
    border-radius: 12px;
    padding-top: 0;
    border: 1px solid rgba(30,144,255,.7);
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
    transform: translate(20px, 16px) scale(.96);
    opacity: 0;
    transform-origin: right bottom;
    transition: transform .3s ease, opacity .2s ease;
  }
  .lc-sheet.is-open .lc-panel {
    transform: none;
    opacity: 1;
  }
  .lc-sub { border-radius: 11px 11px 0 0; }
  .lc-sub b { font-size: 14px; }
  .lc-bubble { font-size: 13px; }
  .lc-form input[type="text"] { font-size: 13.5px; }
  .lc-chips button { font-size: 11.5px; }
}
