.lbp-cs-widget,
.lbp-cs-widget *,
.lbp-cs-widget *::before,
.lbp-cs-widget *::after {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-transform: none !important;
  font-variant: normal !important;
  font-kerning: none !important;
  font-feature-settings: "kern" 0, "liga" 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.lbp-cs-widget button::before,
.lbp-cs-widget button::after,
.lbp-cs-widget a::before,
.lbp-cs-widget a::after {
  content: none !important;
}

.lbp-cs-widget [hidden] {
  display: none !important;
}

.lbp-cs-widget {
  --lbp-cs-theme: #2563eb;
  --lbp-cs-theme-deep: #1e3a5f;
  --lbp-cs-ink: #1a1916;
  --lbp-cs-muted: #6f6a64;
  --lbp-cs-line: rgba(26, 25, 22, .08);
  --lbp-cs-paper: color-mix(in srgb, var(--lbp-cs-theme) 7%, #f6f4ef);
  --lbp-cs-card: #fff;
  --lbp-cs-width: 400px;
  --lbp-cs-height: 620px;
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 2147483000;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--lbp-cs-ink);
  font-family: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.lbp-cs-widget button,
.lbp-cs-widget input,
.lbp-cs-widget a,
.lbp-cs-widget span,
.lbp-cs-widget div,
.lbp-cs-widget form {
  font-family: inherit !important;
  font-size: inherit;
}

.lbp-cs-widget button {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  transform: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
}

.lbp-cs-widget__trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--lbp-cs-theme) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22) !important;
}

.lbp-cs-widget.is-pill .lbp-cs-widget__trigger {
  width: auto !important;
  padding: 0 18px 0 16px !important;
  border-radius: 999px !important;
}

.lbp-cs-widget.is-open .lbp-cs-widget__trigger {
  display: none !important;
}

.lbp-cs-widget.is-pos-left {
  right: auto !important;
  left: 20px !important;
}

.lbp-cs-widget.is-pos-left .lbp-cs-widget__panel {
  right: auto !important;
  left: 0 !important;
}

.lbp-cs-widget.is-preview,
.lbp-cs-widget.is-preview.is-pos-left {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  top: auto !important;
  width: 100% !important;
  z-index: 1;
}

.lbp-cs-widget.is-preview .lbp-cs-widget__panel {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
}

.lbp-cs-widget.is-preview.is-launcher-only .lbp-cs-widget__panel {
  display: none !important;
}

.lbp-cs-widget.is-preview.is-launcher-only .lbp-cs-widget__trigger,
.lbp-cs-widget.is-preview.is-launcher-only.is-open .lbp-cs-widget__trigger {
  display: inline-flex !important;
}

.lbp-cs-widget__trigger-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
}

.lbp-cs-widget__trigger-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.lbp-cs-widget__trigger-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.lbp-cs-widget__panel {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  left: auto !important;
  width: min(var(--lbp-cs-width), calc(100vw - 24px)) !important;
  height: min(var(--lbp-cs-height), calc(100vh - 32px)) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--lbp-cs-paper) !important;
  border: 1px solid var(--lbp-cs-line) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(28, 22, 16, .2) !important;
}

.lbp-cs-widget__panel[hidden] {
  display: none !important;
}

.lbp-cs-widget__bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  min-height: 72px;
  padding: 14px 14px 14px 16px !important;
  background: linear-gradient(135deg, var(--lbp-cs-theme) 0%, var(--lbp-cs-theme-deep) 100%) !important;
  color: #fff !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  z-index: 1 !important;
}

.lbp-cs-widget__bar--minimal {
  min-height: 56px;
}

.lbp-cs-widget__brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
}

.lbp-cs-widget__copy {
  min-width: 0;
}

.lbp-cs-widget__title {
  display: block !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.lbp-cs-widget__avatar,
.lbp-cs-widget__msg-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  flex-shrink: 0;
}

.lbp-cs-widget__msg-avatar {
  background: #e8e2d8 !important;
  color: #3f3a34 !important;
}

.lbp-cs-widget__avatar img,
.lbp-cs-widget__msg-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.lbp-cs-widget__status {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: rgba(255,255,255,.86) !important;
}

.lbp-cs-widget__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 72%, var(--lbp-cs-theme));
  box-shadow: 0 0 0 3px color-mix(in srgb, #fff 20%, transparent);
  flex-shrink: 0;
}

.lbp-cs-widget__hint {
  display: block;
  margin-top: 2px;
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: rgba(255,255,255,.68) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.lbp-cs-widget__close {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.lbp-cs-widget__close:hover {
  background: rgba(255,255,255,.24) !important;
}

.lbp-cs-widget__close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.lbp-cs-widget__body {
  flex: 1;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  background: var(--lbp-cs-paper) !important;
}

.lbp-cs-widget__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lbp-cs-widget__scroll {
  flex: 1;
  overflow: auto;
  padding: 18px 16px 12px;
}

.lbp-cs-widget__message {
  display: flex !important;
  gap: 8px;
  margin: 0 0 14px !important;
}

.lbp-cs-widget__message.is-user {
  flex-direction: row-reverse !important;
}

.lbp-cs-widget__msg-stack {
  max-width: calc(100% - 46px);
}

.lbp-cs-widget__msg-author {
  font-size: 12px !important;
  color: var(--lbp-cs-muted) !important;
  margin: 0 0 4px !important;
}

.lbp-cs-widget__bubble {
  background: var(--lbp-cs-card) !important;
  border: 1px solid var(--lbp-cs-line) !important;
  border-radius: 16px 16px 16px 6px;
  padding: 10px 12px;
  color: var(--lbp-cs-ink) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.lbp-cs-widget__message.is-user .lbp-cs-widget__bubble {
  background: var(--lbp-cs-theme) !important;
  border-color: transparent !important;
  border-radius: 16px 16px 6px 16px;
  color: #fff !important;
}

.lbp-cs-widget__bubble.is-soft {
  margin-top: 6px;
  background: #efeae2 !important;
}

.lbp-cs-widget__chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px;
  margin: 2px 0 14px;
}

.lbp-cs-widget__chips button {
  max-width: 100%;
  border: 1px solid rgba(26, 25, 22, .12) !important;
  background: #fff !important;
  color: var(--lbp-cs-ink) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.lbp-cs-widget__chips button:hover {
  border-color: color-mix(in srgb, var(--lbp-cs-theme) 45%, #d9d4cc) !important;
  color: var(--lbp-cs-theme) !important;
}

.lbp-cs-widget__chips button.is-used {
  opacity: .48;
}

.lbp-cs-widget__dock {
  background: #fff !important;
  border-top: 1px solid var(--lbp-cs-line) !important;
}

.lbp-cs-widget__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: var(--lbp-cs-theme) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.lbp-cs-widget__cta.is-ghost {
  width: calc(100% - 24px);
  margin: 10px 12px 0 !important;
  background: transparent !important;
  color: var(--lbp-cs-theme) !important;
  border: 1px solid color-mix(in srgb, var(--lbp-cs-theme) 35%, #d9d4cc) !important;
}

.lbp-cs-widget__cta.is-pulse {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lbp-cs-theme) 22%, transparent) !important;
}

.lbp-cs-widget__link-box {
  padding: 24px 16px;
}

.lbp-cs-widget__composer {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 12px !important;
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
}

.lbp-cs-widget__composer input {
  flex: 1;
  min-width: 0;
  height: 42px !important;
  border: 1px solid var(--lbp-cs-line) !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  background: #fff !important;
  color: var(--lbp-cs-ink) !important;
  outline: none;
  box-shadow: none !important;
}

.lbp-cs-widget__composer input:focus {
  border-color: color-mix(in srgb, var(--lbp-cs-theme) 50%, #d9d4cc) !important;
}

.lbp-cs-widget__composer button {
  height: 42px !important;
  min-width: 72px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--lbp-cs-theme) !important;
  color: #fff !important;
  font-weight: 650 !important;
}

.lbp-cs-widget__composer button:disabled {
  opacity: .38;
}

.lbp-cs-widget__lead-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--lbp-cs-line);
  border-radius: 16px;
  background: var(--lbp-cs-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(28, 22, 16, .06);
}

.lbp-cs-widget__lead-title {
  font-weight: 650;
  color: var(--lbp-cs-ink);
  font-size: 14px !important;
}

.lbp-cs-widget__lead-intro,
.lbp-cs-widget__lead-privacy {
  margin: 0;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--lbp-cs-muted) !important;
}

.lbp-cs-widget__lead-card label {
  display: block;
  margin: 4px 0 0;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--lbp-cs-ink) !important;
}

.lbp-cs-widget__lead-card input,
.lbp-cs-widget__lead-card textarea {
  width: 100%;
  min-height: 40px !important;
  border: 1px solid var(--lbp-cs-line) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: #fff !important;
  color: var(--lbp-cs-ink) !important;
  resize: vertical;
}

.lbp-cs-widget__lead-actions {
  display: flex;
  gap: 8px;
}

.lbp-cs-widget__lead-card button {
  flex: 1;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--lbp-cs-theme) !important;
  color: #fff !important;
  min-height: 40px;
  font-weight: 650 !important;
}

.lbp-cs-widget__lead-later {
  background: transparent !important;
  color: var(--lbp-cs-muted) !important;
  border: 1px solid var(--lbp-cs-line) !important;
}

.lbp-cs-widget__honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  opacity: 0 !important;
}

.lbp-cs-widget__lead-note {
  margin: 0;
  font-size: 13px;
  color: #166534;
}

.lbp-cs-widget__dots i {
  display: inline-block !important;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #8a847c;
  animation: lbp-cs-blink 1s infinite;
}

.lbp-cs-widget__dots i:nth-child(2) { animation-delay: .15s; }
.lbp-cs-widget__dots i:nth-child(3) { animation-delay: .3s; }

@keyframes lbp-cs-blink {
  0%, 80%, 100% { opacity: .3; }
  40% { opacity: 1; }
}

@media (max-width: 767px) {
  .lbp-cs-widget {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .lbp-cs-widget.is-pos-left {
    right: auto !important;
    left: 12px !important;
  }

  .lbp-cs-widget.is-open {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .lbp-cs-widget.is-open .lbp-cs-widget__panel {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
}
