/* Website chat widget during a live support hand-off, used on the Live support product page and the
   sector landings. It is an illustration built with HTML/CSS, not a screenshot. */

.ls-widget {
  --ls-accent: #6d5dfc;
  --ls-bg: #ffffff;
  --ls-soft: #f3f4f8;
  --ls-text: #1f2333;
  --ls-muted: #6b7185;
  width: 100%;
  max-width: 400px;
  margin: 1.45rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ls-bg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 36px 80px -30px rgba(2, 6, 23, 0.95);
  text-align: left;
}

.ls-widget__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: #171a2b;
  color: #ffffff;
}

.ls-widget__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ls-accent);
  font-weight: 700;
}

.ls-widget__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.ls-widget__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.ls-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.16);
  color: #99f6e4;
  font-size: 0.72rem;
  font-weight: 600;
  width: fit-content;
}

.ls-widget__chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.9rem;
  min-height: 380px;
}

.ls-widget__msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ls-widget__msg p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.ls-widget__msg--visitor {
  align-self: flex-end;
  background: var(--ls-accent);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ls-widget__msg--bot,
.ls-widget__msg--agent {
  align-self: flex-start;
  background: var(--ls-soft);
  color: var(--ls-text);
  border-bottom-left-radius: 4px;
}

.ls-widget__author {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ls-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.ls-widget__msg--agent {
  border-left: 3px solid #14b8a6;
}

.ls-widget__composer {
  margin: 0 0.9rem 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e3e5ee;
  color: var(--ls-muted);
  font-size: 0.84rem;
}

.ls-console-shot {
  margin: 1.45rem 0 0;
}

.ls-console-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.ls-console-shot figcaption {
  margin-top: 0.7rem;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ls-attend-shot img {
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .ls-widget__chat {
    min-height: 0;
  }
}
