.slc-root {
  --slc-vvh: 100vh;
  --slc-keyboard-offset: 0px;
  --slc-vv-top: 0px;
  --slc-vv-left: 0px;
  --slc-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);
  --slc-shadow-panel: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  --slc-shadow-launcher: 0 8px 20px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
  --slc-shadow-launcher-hover: 0 12px 26px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.10);
  --slc-shadow-launcher-active: 0 6px 14px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06);
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #172033;
}

.slc-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  background: linear-gradient(180deg, #ff744a 0%, #ff5a36 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--slc-shadow-launcher);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .22s ease, visibility .22s ease;
}

.slc-root.slc-launcher-hidden .slc-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

.slc-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--slc-shadow-launcher-hover);
  filter: saturate(1.04);
}

.slc-launcher:active {
  transform: translateY(0);
  box-shadow: var(--slc-shadow-launcher-active);
}

.slc-launcher:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.16), var(--slc-shadow-launcher-hover);
}

.slc-launcher__iconwrap {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 26px;
}

.slc-launcher__icon {
  width: 26px;
  height: 26px;
  display: block;
}

.slc-panel {
  position: relative;
  width: min(364px, calc(100vw - 20px));
  height: min(590px, calc(100vh - 84px));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  box-shadow: var(--slc-shadow-panel);
  display: none;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
}

.slc-panel.is-open { display: flex; }
.slc-root.slc-open .slc-launcher { display: none; }

.slc-panel__header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px 11px;
  min-height: 50px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 1px 0 rgba(15,23,42,0.04);
}

.slc-header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.slc-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slc-header-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 999px;
}

.slc-header-icon__svg {
  width: 14px;
  height: 14px;
  display: block;
}

.slc-header-icon--dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: transparent;
}

.slc-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  display: block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.slc-title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.slc-subtitle {
  display: none;
  font-size: 11px;
  line-height: 1.25;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0;
}

.slc-subtitle:not(:empty) {
  display: block;
}

.slc-subtitle.is-dynamic {
  color: #475569;
}

.slc-subtitle.is-error {
  color: #dc2626;
}

.slc-close {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-right: -6px;
  margin-top: 0;
  border-radius: 0;
  cursor: pointer;
  line-height: 0;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.slc-close:hover {
  background: transparent !important;
  color: #334155;
  opacity: 1;
}

.slc-close:focus-visible {
  outline: none;
  background: transparent !important;
  color: #334155;
  opacity: 1;
}

.slc-close__icon {
  width: 14px;
  height: 14px;
  display: block;
}

.slc-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 74px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  position: relative;
}

.slc-messages::before {
  content: none;
}

.slc-messages::-webkit-scrollbar { width: 8px; }
.slc-messages::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.34); border-radius: 999px; }
.slc-messages::-webkit-scrollbar-track { background: transparent; }


.slc-message {
  max-width: 83%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slc-message--agent {
  align-self: flex-start;
}

.slc-message--visitor {
  align-self: flex-end;
}

.slc-message--system {
  align-self: center;
  max-width: 92%;
}

.slc-message__bubble {
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--slc-shadow-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.slc-message__meta {
  font-size: 10px;
  line-height: 1.15;
  color: #94a3b8;
  padding: 0 6px;
  margin-top: 0;
}

.slc-message--agent .slc-message__bubble {
  background: #fff8f4;
  border: 1px solid rgba(255, 90, 54, 0.10);
  color: #1f2937;
  border-top-left-radius: 6px;
}

.slc-message--visitor .slc-message__bubble {
  background: #edf4ff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #1e293b;
  border-top-right-radius: 6px;
}

.slc-message--agent .slc-message__meta,
.slc-message--system .slc-message__meta {
  align-self: flex-start;
}

.slc-message--visitor .slc-message__meta {
  align-self: flex-end;
}

.slc-message--agent + .slc-message--agent,
.slc-message--visitor + .slc-message--visitor {
  margin-top: -2px;
}

.slc-message--agent .slc-message__bubble strong,
.slc-message--visitor .slc-message__bubble strong {
  font-weight: 600;
}

.slc-message--system .slc-message__bubble {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
}

.slc-message--system .slc-message__meta {
  display: none;
}

.slc-empty {
  display: none;
  position: absolute;
  inset: 56px 0 58px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.slc-empty__body {
  max-width: 260px;
  text-align: center;
  transform: translateY(-10px);
  pointer-events: auto;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.slc-form {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.slc-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.slc-input-wrap:focus-within {
  background: rgba(248, 250, 252, 0.82);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
  transform: none;
}

.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-input-wrap > input.slc-input,
.slc-root .slc-input-wrap > textarea.slc-input,
.slc-root .slc-form .slc-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  max-height: 120px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 12px 0 10px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  resize: none !important;
  overflow-y: hidden;
}

.slc-root .slc-input-wrap > .slc-input:focus,
.slc-root .slc-input-wrap > input.slc-input:focus,
.slc-root .slc-input-wrap > textarea.slc-input:focus,
.slc-root .slc-form .slc-input:focus,
.slc-root .slc-input-wrap > .slc-input:hover,
.slc-root .slc-input-wrap > input.slc-input:hover,
.slc-root .slc-input-wrap > textarea.slc-input:hover {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.slc-root .slc-input-wrap > .slc-input::placeholder,
.slc-root .slc-form .slc-input::placeholder {
  color: #9aa8bc !important;
}

.slc-root .slc-input-wrap > textarea.slc-input::-webkit-scrollbar,
.slc-root .slc-form textarea.slc-input::-webkit-scrollbar {
  width: 6px;
}

.slc-root .slc-input-wrap > textarea.slc-input::-webkit-scrollbar-thumb,
.slc-root .slc-form textarea.slc-input::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.30);
  border-radius: 999px;
}

.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  cursor: default !important;
  transition: color .18s ease, background-color .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.slc-root .slc-input-wrap > .slc-send:not(:disabled),
.slc-root .slc-form.is-ready .slc-send {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08) !important;
  cursor: pointer !important;
}

.slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
.slc-root .slc-form.is-ready .slc-send:hover {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #1d4ed8 !important;
  transform: translateX(1px) !important;
}

.slc-root .slc-input-wrap > .slc-send:disabled {
  background: transparent !important;
  color: #cbd5e1 !important;
  cursor: default !important;
}

.slc-root .slc-send__icon {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  pointer-events: none !important;
}

.slc-form.is-sending .slc-send {
  opacity: .72;
  transform: none !important;
}

@media (max-width: 480px) {
  .slc-messages { padding-bottom: 64px; }
  .slc-form { padding: 0; }
}

.slc-root .slc-form.is-ready .slc-send:focus-visible {
  background: rgba(248, 250, 252, 0.82) !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16) !important;
}

.slc-root .slc-form.is-ready .slc-send__icon {
  transform: translateX(0.5px);
  transition: transform .18s ease, opacity .18s ease;
}

.slc-root .slc-form.is-ready .slc-send:hover .slc-send__icon,
.slc-root .slc-form.is-ready .slc-send:focus-visible .slc-send__icon {
  transform: translateX(1.5px) scale(1.04);
}

@media (max-width: 767px) {
  .slc-root {
    left: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
  }

  .slc-root.slc-open {
    position: fixed;
    inset: 0;
  }

  .slc-root.slc-open .slc-panel {
    position: fixed;
    top: var(--slc-vv-top, 0px);
    left: var(--slc-vv-left, 0px);
    right: auto;
    bottom: auto;
    width: 100vw;
    width: 100dvw;
    height: var(--slc-vvh, 100vh);
    min-height: var(--slc-vvh, 100vh);
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .slc-root.slc-open .slc-panel__header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .slc-root.slc-open .slc-messages {
    padding-top: 12px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .slc-root.slc-open .slc-empty {
    inset: 56px 0 calc(64px + env(safe-area-inset-bottom));
  }

  .slc-root.slc-open .slc-form {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    padding: 0 0 env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.98);
  }

  .slc-root.slc-open .slc-input-wrap {
    height: 54px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-shadow: none;
  }

  .slc-root.slc-open .slc-input-wrap > .slc-input,
  .slc-root.slc-open .slc-input-wrap > input.slc-input,
  .slc-root.slc-open .slc-form .slc-input {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .slc-root.slc-open .slc-close {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .slc-root.slc-open .slc-messages {
    scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .slc-root.slc-open .slc-input:focus {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) {
}


.slc-subtitle.is-dynamic{font-weight:600;}
.slc-subtitle.is-dynamic:not(.is-error){color:#0f766e;}

/* v33 visitor widget UI v2 - modern welcome card */
.slc-root {
  --slc-brand: #ff5a36;
  --slc-brand-2: #ff7a45;
  --slc-blue: #2563eb;
  --slc-ink: #0f172a;
  --slc-muted: #64748b;
  --slc-line: rgba(148, 163, 184, 0.18);
  --slc-surface: #ffffff;
  --slc-soft: #f8fafc;
  --slc-card-shadow: 0 18px 46px rgba(15, 23, 42, 0.10), 0 6px 18px rgba(15, 23, 42, 0.06);
}

.slc-panel {
  width: min(392px, calc(100vw - 22px));
  height: min(620px, calc(100vh - 82px));
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14), 0 8px 22px rgba(15, 23, 42, 0.08);
}

.slc-panel__header {
  min-height: 64px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.slc-header-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  color: var(--slc-brand);
  background: rgba(255, 90, 54, 0.10);
}

.slc-header-icon__svg { width: 17px; height: 17px; }
.slc-title { font-size: 15px; font-weight: 750; letter-spacing: -0.02em; color: #111827; }
.slc-subtitle { display: block; font-size: 12px; color: #64748b; font-weight: 500; }
.slc-close { border-radius: 999px !important; width: 30px; height: 30px; color: #94a3b8; }
.slc-close:hover { background: rgba(15, 23, 42, 0.04) !important; color: #475569; }

.slc-messages {
  padding: 18px 18px 92px;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 18%, rgba(37,99,235,0.035), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}

.slc-empty {
  inset: 65px 0 68px;
  padding: 26px 34px;
  pointer-events: none;
}

.slc-welcome-card {
  width: 100%;
  max-width: 292px;
  margin: 0 auto;
  padding: 28px 24px 26px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06), 0 6px 18px rgba(15, 23, 42, 0.04);
  text-align: center;
  pointer-events: auto;
  animation: slcWelcomeIn .28s ease both;
}

@keyframes slcWelcomeIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slc-welcome-avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(15,23,42,.10));
}

.slc-welcome-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.slc-welcome-text {
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto 16px;
}
.slc-message { max-width: 82%; }
.slc-message__bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.055);
}
.slc-message--agent .slc-message__bubble { background: #ffffff; border-color: rgba(226,232,240,.90); }
.slc-message--visitor .slc-message__bubble { background: #eff6ff; border-color: rgba(59,130,246,.16); color: #0f172a; }
.slc-message__meta { font-size: 10.5px; color: #94a3b8; }

.slc-form {
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(226,232,240,.96);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.045);
}

.slc-input-wrap {
  min-height: 58px;
  padding: 0 12px 0 14px;
  background: #ffffff;
}

.slc-input-wrap:focus-within {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.18), 0 -4px 14px rgba(37,99,235,.035);
}

.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-input-wrap > input.slc-input,
.slc-root .slc-input-wrap > textarea.slc-input,
.slc-root .slc-form .slc-input {
  min-height: 56px !important;
  height: 56px !important;
  padding: 16px 0 12px !important;
  font-size: 14px !important;
  color: #0f172a !important;
}

.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  margin-bottom: 10px !important;
  border-radius: 999px !important;
}

.slc-root .slc-input-wrap > .slc-send:not(:disabled),
.slc-root .slc-form.is-ready .slc-send {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
}

.slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
.slc-root .slc-form.is-ready .slc-send:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 767px) {
  .slc-root.slc-open .slc-panel__header { min-height: 62px; }
  .slc-root.slc-open .slc-messages {
    padding: 16px 14px calc(98px + env(safe-area-inset-bottom));
  }
  .slc-root.slc-open .slc-empty {
    inset: 62px 0 calc(72px + env(safe-area-inset-bottom));
    padding: 24px 28px;
  }
  .slc-root.slc-open .slc-welcome-card {
    max-width: 300px;
    padding: 25px 22px 23px;
    border-radius: 18px;
  }
  .slc-root.slc-open .slc-message { max-width: 86%; }
  .slc-root.slc-open .slc-message__bubble { font-size: 14px; padding: 10px 12px; }
  .slc-root.slc-open .slc-input-wrap {
    min-height: 62px;
    height: 62px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .slc-root.slc-open .slc-input-wrap > .slc-send,
  .slc-root.slc-open .slc-form .slc-send {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    margin-bottom: 10px !important;
  }
}


/* v34 widget polish: larger support avatar + cohesive composer/send button */
.slc-root .slc-welcome-card{
  max-width:300px;
  padding:30px 26px 28px;
  border-radius:20px;
}
.slc-root .slc-welcome-avatar{
  width:76px !important;
  height:76px !important;
  margin:0 auto 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  font-size:44px !important;
  line-height:1 !important;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.12)) !important;
}
.slc-root .slc-welcome-avatar__img{
  display:block !important;
  width:76px !important;
  height:76px !important;
  object-fit:contain !important;
  border-radius:18px !important;
}
.slc-root .slc-welcome-avatar.is-fallback::before{
  content:'👨🏻‍💼';
  font-size:44px;
}
.slc-root .slc-welcome-title{
  font-size:16px !important;
  letter-spacing:-.02em !important;
  margin-bottom:9px !important;
}
.slc-root .slc-welcome-text{
  font-size:14px !important;
  line-height:1.58 !important;
  max-width:238px !important;
  margin-bottom:18px !important;
}
.slc-root .slc-input-wrap{
  min-height:58px !important;
  height:58px !important;
  padding:0 12px 0 16px !important;
  background:#fff !important;
  border-top:1px solid rgba(226,232,240,.90) !important;
  box-shadow:0 -8px 22px rgba(15,23,42,.04) !important;
}
.slc-root .slc-input-wrap:focus-within{
  box-shadow:0 -10px 26px rgba(37,99,235,.08), inset 0 1px 0 rgba(37,99,235,.08) !important;
}
.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-form .slc-input{
  min-height:48px !important;
  height:48px !important;
  padding:14px 0 10px !important;
  font-size:14px !important;
  line-height:1.42 !important;
}
.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send{
  width:46px !important;
  height:46px !important;
  flex:0 0 46px !important;
  margin:0 0 6px 10px !important;
  border-radius:14px !important;
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#3b82f6) !important;
  box-shadow:0 10px 24px rgba(37,99,235,.22) !important;
  opacity:.46 !important;
  cursor:default !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled),
.slc-root .slc-form.is-ready .slc-send{
  opacity:1 !important;
  color:#fff !important;
  background:linear-gradient(135deg,#2563eb,#3b82f6) !important;
  box-shadow:0 12px 26px rgba(37,99,235,.28) !important;
  cursor:pointer !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
.slc-root .slc-form.is-ready .slc-send:hover{
  background:linear-gradient(135deg,#1d4ed8,#2563eb) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 14px 30px rgba(37,99,235,.32) !important;
}
.slc-root .slc-form.is-ready .slc-send:focus-visible{
  outline:3px solid rgba(37,99,235,.22) !important;
  outline-offset:2px !important;
}
.slc-root .slc-send__icon{
  width:19px !important;
  height:19px !important;
  stroke-width:2.1px !important;
}
@media (max-width:767px){
  .slc-root.slc-open .slc-welcome-card{
    max-width:302px;
    padding:28px 23px 25px;
  }
  .slc-root.slc-open .slc-welcome-avatar,
  .slc-root.slc-open .slc-welcome-avatar__img{
    width:72px !important;
    height:72px !important;
  }
  .slc-root.slc-open .slc-input-wrap{
    min-height:66px !important;
    height:66px !important;
    padding-left:max(16px,env(safe-area-inset-left)) !important;
    padding-right:max(12px,env(safe-area-inset-right)) !important;
  }
  .slc-root.slc-open .slc-input-wrap > .slc-send,
  .slc-root.slc-open .slc-form .slc-send{
    width:46px !important;
    height:46px !important;
    flex-basis:46px !important;
    margin-bottom:10px !important;
    border-radius:14px !important;
  }
}

/* v35 widget redesign: match provided SOFTVN visitor widget sample */
.slc-root{
  --slc-widget-ink:#101827;
  --slc-widget-muted:#66758a;
  --slc-widget-border:#dfe7f1;
  --slc-widget-panel:#ffffff;
  --slc-widget-bg:#f7faff;
  --slc-widget-blue:#2563eb;
  --slc-widget-blue-hover:#1d4ed8;
  --slc-widget-orange:#ff6b3d;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
}
.slc-root .slc-panel{
  width:min(362px,calc(100vw - 24px)) !important;
  height:min(586px,calc(100dvh - 72px)) !important;
  border-radius:20px !important;
  border:1px solid rgba(218,227,238,.98) !important;
  background:#fff !important;
  box-shadow:0 24px 70px rgba(15,23,42,.16),0 10px 28px rgba(15,23,42,.08) !important;
  overflow:hidden !important;
}
.slc-root .slc-panel__header{
  min-height:66px !important;
  padding:14px 16px !important;
  background:#fff !important;
  border-bottom:1px solid #e5edf6 !important;
  box-shadow:none !important;
}
.slc-root .slc-header-meta{gap:10px !important;}
.slc-root .slc-header-icon{
  width:27px !important;
  height:27px !important;
  flex:0 0 27px !important;
  color:var(--slc-widget-orange) !important;
  background:rgba(255,107,61,.10) !important;
  border-radius:999px !important;
}
.slc-root .slc-header-icon__svg{width:15px !important;height:15px !important;}
.slc-root .slc-title{
  font-size:14px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
  letter-spacing:-.02em !important;
  color:var(--slc-widget-ink) !important;
}
.slc-root .slc-subtitle{
  display:block !important;
  margin-top:2px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  color:#728096 !important;
}
.slc-root .slc-close{
  width:30px !important;
  height:30px !important;
  margin:0 -5px 0 0 !important;
  border-radius:999px !important;
  color:#98a7bb !important;
}
.slc-root .slc-close:hover,
.slc-root .slc-close:focus-visible{
  background:#f1f5f9 !important;
  color:#475569 !important;
}
.slc-root .slc-messages{
  padding:0 !important;
  background:linear-gradient(180deg,#fbfdff 0%,#f8fbff 58%,#f6f9fd 100%) !important;
  border-bottom:1px solid #e5edf6 !important;
}
.slc-root .slc-empty{
  inset:66px 0 60px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:26px 34px !important;
  background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%) !important;
  pointer-events:none !important;
}
.slc-root .slc-welcome-card{
  width:100% !important;
  max-width:292px !important;
  min-height:302px !important;
  padding:34px 25px 30px !important;
  margin:0 auto !important;
  border-radius:18px !important;
  border:1px solid rgba(217,226,239,.96) !important;
  background:#fff !important;
  box-shadow:0 28px 60px rgba(15,23,42,.075),0 12px 30px rgba(15,23,42,.055) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  pointer-events:auto !important;
}
.slc-root .slc-welcome-avatar{
  width:78px !important;
  height:78px !important;
  min-width:78px !important;
  min-height:78px !important;
  margin:0 auto 19px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.13)) !important;
}
.slc-root .slc-welcome-avatar__img{
  width:78px !important;
  height:78px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:0 !important;
  transform:scale(1.04) !important;
}
.slc-root .slc-welcome-avatar__emoji{font-size:56px !important;line-height:1 !important;}
.slc-root .slc-welcome-title{
  margin:0 0 9px !important;
  color:#111827 !important;
  font-size:15.5px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  letter-spacing:-.02em !important;
}
.slc-root .slc-welcome-text{
  max-width:252px !important;
  margin:0 auto 17px !important;
  color:#718098 !important;
  font-size:14px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
}
.slc-root .slc-form{
  height:60px !important;
  min-height:60px !important;
  padding:0 !important;
  border-top:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}
.slc-root .slc-input-wrap{
  height:60px !important;
  min-height:60px !important;
  padding:0 10px 0 16px !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.slc-root .slc-input-wrap:focus-within{
  box-shadow:inset 0 1px 0 rgba(37,99,235,.08) !important;
}
.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-form .slc-input{
  height:48px !important;
  min-height:48px !important;
  flex:1 1 auto !important;
  padding:15px 0 12px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  color:#0f172a !important;
  font-size:14px !important;
  line-height:1.4 !important;
  font-weight:500 !important;
}
.slc-root .slc-input::placeholder{color:#7b8798 !important;opacity:1 !important;}
.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send{
  width:44px !important;
  height:44px !important;
  flex:0 0 44px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#2563eb 0%,#3b82f6 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 22px rgba(37,99,235,.26) !important;
  opacity:.42 !important;
  transform:none !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled),
.slc-root .slc-form.is-ready .slc-send{
  opacity:1 !important;
  cursor:pointer !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
.slc-root .slc-form.is-ready .slc-send:hover{
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 14px 28px rgba(37,99,235,.32) !important;
}
.slc-root .slc-send__icon{width:18px !important;height:18px !important;display:block !important;}
.slc-root .slc-message__bubble{
  border-radius:16px !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
@media (max-width:767px){
  .slc-root.slc-open{
    right:0 !important;
    bottom:0 !important;
  }
  .slc-root.slc-open .slc-panel{
    width:100vw !important;
    height:100dvh !important;
    border-radius:0 !important;
    border:0 !important;
  }
  .slc-root.slc-open .slc-panel__header{min-height:66px !important;padding:14px 16px !important;}
  .slc-root.slc-open .slc-empty{inset:66px 0 calc(60px + env(safe-area-inset-bottom)) !important;padding:24px 30px !important;}
  .slc-root.slc-open .slc-welcome-card{max-width:292px !important;min-height:300px !important;padding:32px 24px 28px !important;}
  .slc-root.slc-open .slc-welcome-avatar,
  .slc-root.slc-open .slc-welcome-avatar__img{width:76px !important;height:76px !important;}
  .slc-root.slc-open .slc-form{height:calc(60px + env(safe-area-inset-bottom)) !important;min-height:calc(60px + env(safe-area-inset-bottom)) !important;padding-bottom:env(safe-area-inset-bottom) !important;}
  .slc-root.slc-open .slc-input-wrap{height:60px !important;min-height:60px !important;padding-left:max(16px,env(safe-area-inset-left)) !important;padding-right:max(10px,env(safe-area-inset-right)) !important;}
  .slc-root.slc-open .slc-input-wrap > .slc-send,
  .slc-root.slc-open .slc-form .slc-send{width:44px !important;height:44px !important;flex-basis:44px !important;margin:0 !important;}
}


/* SLC v36 - use large cropped agent support avatar matching sample */
.slc-root .slc-welcome-avatar{
  width:96px !important;
  height:96px !important;
  min-width:96px !important;
  min-height:96px !important;
  margin:0 auto 18px !important;
  filter:drop-shadow(0 14px 24px rgba(15,23,42,.16)) !important;
}
.slc-root .slc-welcome-avatar__img{
  width:96px !important;
  height:96px !important;
  max-width:96px !important;
  max-height:96px !important;
  object-fit:contain !important;
  transform:none !important;
}
.slc-root .slc-welcome-card{
  padding-top:30px !important;
  padding-bottom:28px !important;
}
@media (max-width:767px){
  .slc-root.slc-open .slc-welcome-avatar,
  .slc-root.slc-open .slc-welcome-avatar__img{
    width:94px !important;
    height:94px !important;
    max-width:94px !important;
    max-height:94px !important;
  }
}

/* SLC v37 - match provided visitor widget sample, not oversized avatar */
.slc-root .slc-panel{
  width:min(362px,calc(100vw - 24px)) !important;
  height:min(586px,calc(100dvh - 72px)) !important;
  border-radius:20px !important;
  background:#fff !important;
  border:1px solid #dfe7f1 !important;
  box-shadow:0 24px 70px rgba(15,23,42,.14),0 10px 28px rgba(15,23,42,.08) !important;
}
.slc-root .slc-panel__header{
  min-height:64px !important;
  padding:13px 16px !important;
  border-bottom:1px solid #e2eaf4 !important;
  background:#fff !important;
}
.slc-root .slc-title{
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  color:#111827 !important;
}
.slc-root .slc-subtitle{
  font-size:12px !important;
  line-height:1.2 !important;
  color:#6b7c93 !important;
  font-weight:600 !important;
}
.slc-root .slc-messages{
  background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%) !important;
  border-bottom:1px solid #e2eaf4 !important;
}
.slc-root .slc-empty{
  inset:64px 0 60px !important;
  padding:34px 42px !important;
  background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%) !important;
  align-items:center !important;
  justify-content:center !important;
}
.slc-root .slc-welcome-card{
  width:100% !important;
  max-width:292px !important;
  min-height:316px !important;
  padding:38px 26px 30px !important;
  border-radius:18px !important;
  border:1px solid #dbe5f0 !important;
  background:#fff !important;
  box-shadow:0 26px 58px rgba(15,23,42,.065),0 12px 28px rgba(15,23,42,.05) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
.slc-root .slc-welcome-avatar{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  min-height:56px !important;
  margin:0 auto 20px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  overflow:visible !important;
}
.slc-root .slc-welcome-avatar__img{
  width:56px !important;
  height:56px !important;
  max-width:56px !important;
  max-height:56px !important;
  object-fit:contain !important;
  display:block !important;
  transform:none !important;
  border-radius:0 !important;
}
.slc-root .slc-welcome-title{
  margin:0 0 10px !important;
  font-size:15px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  letter-spacing:-.02em !important;
  color:#111827 !important;
}
.slc-root .slc-welcome-text{
  max-width:250px !important;
  margin:0 auto 17px !important;
  font-size:13.5px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
  color:#6f7f95 !important;
}
.slc-root .slc-form{
  height:60px !important;
  min-height:60px !important;
  background:#fff !important;
  border-top:0 !important;
  box-shadow:none !important;
}
.slc-root .slc-input-wrap{
  height:60px !important;
  min-height:60px !important;
  padding:0 12px 0 16px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-form .slc-input{
  height:48px !important;
  min-height:48px !important;
  padding:14px 0 12px !important;
  font-size:14px !important;
  line-height:1.4 !important;
  color:#0f172a !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.slc-root .slc-input::placeholder{color:#7b8798 !important;opacity:1 !important;}
.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send{
  width:40px !important;
  height:40px !important;
  flex:0 0 40px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:14px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#2563eb !important;
  opacity:.75 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled),
.slc-root .slc-form.is-ready .slc-send{
  opacity:1 !important;
  cursor:pointer !important;
}
.slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
.slc-root .slc-form.is-ready .slc-send:hover,
.slc-root .slc-form.is-ready .slc-send:focus-visible{
  background:#eff6ff !important;
  color:#1d4ed8 !important;
  transform:none !important;
  box-shadow:none !important;
}
.slc-root .slc-send__icon{
  width:17px !important;
  height:17px !important;
  display:block !important;
}
@media (max-width:767px){
  .slc-root.slc-open .slc-panel{
    width:100vw !important;
    height:100dvh !important;
    border-radius:0 !important;
    border:0 !important;
  }
  .slc-root.slc-open .slc-empty{
    inset:64px 0 calc(60px + env(safe-area-inset-bottom)) !important;
    padding:26px 32px !important;
  }
  .slc-root.slc-open .slc-welcome-card{
    max-width:292px !important;
    min-height:316px !important;
    padding:38px 24px 30px !important;
  }
  .slc-root.slc-open .slc-welcome-avatar,
  .slc-root.slc-open .slc-welcome-avatar__img{
    width:56px !important;
    height:56px !important;
    max-width:56px !important;
    max-height:56px !important;
  }
  .slc-root.slc-open .slc-form{
    height:calc(60px + env(safe-area-inset-bottom)) !important;
    min-height:calc(60px + env(safe-area-inset-bottom)) !important;
    padding-bottom:env(safe-area-inset-bottom) !important;
  }
}

/* SLC v38 - match user's sample exactly: compact avatar and plain arrow send */
html body .slc-root .slc-panel{
  width:min(360px,calc(100vw - 24px)) !important;
  height:min(585px,calc(100dvh - 72px)) !important;
  border-radius:18px !important;
  overflow:hidden !important;
  background:#fff !important;
}
html body .slc-root .slc-panel__header{
  min-height:64px !important;
  padding:13px 16px !important;
  background:#fff !important;
  border-bottom:1px solid #dfe7f1 !important;
}
html body .slc-root .slc-title{font-size:14px !important;font-weight:800 !important;color:#111827 !important;letter-spacing:-.01em !important;}
html body .slc-root .slc-subtitle{font-size:12px !important;font-weight:600 !important;color:#64748b !important;}
html body .slc-root .slc-messages,
html body .slc-root .slc-empty{
  background:linear-gradient(180deg,#fbfdff 0%,#f6faff 100%) !important;
}
html body .slc-root .slc-empty{
  inset:64px 0 60px !important;
  padding:32px 42px !important;
  align-items:center !important;
  justify-content:center !important;
}
html body .slc-root .slc-welcome-card{
  width:100% !important;
  max-width:292px !important;
  min-height:318px !important;
  padding:38px 26px 30px !important;
  border-radius:18px !important;
  border:1px solid #dbe5f0 !important;
  background:#fff !important;
  box-shadow:0 28px 58px rgba(15,23,42,.065),0 12px 28px rgba(15,23,42,.045) !important;
  text-align:center !important;
}
html body .slc-root .slc-welcome-avatar{
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  margin:0 auto 20px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
html body .slc-root .slc-welcome-avatar__img{
  width:54px !important;
  height:54px !important;
  max-width:54px !important;
  max-height:54px !important;
  object-fit:contain !important;
  border-radius:0 !important;
  box-shadow:none !important;
  transform:none !important;
}
html body .slc-root .slc-welcome-title{
  margin:0 0 10px !important;
  font-size:15px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  color:#111827 !important;
  letter-spacing:-.02em !important;
}
html body .slc-root .slc-welcome-text{
  max-width:248px !important;
  margin:0 auto 17px !important;
  font-size:13.5px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
  color:#6f7f95 !important;
}
html body .slc-root .slc-form{
  height:60px !important;
  min-height:60px !important;
  background:#fff !important;
  border-top:1px solid #dfe7f1 !important;
  box-shadow:none !important;
}
html body .slc-root .slc-input-wrap{
  height:60px !important;
  min-height:60px !important;
  padding:0 12px 0 16px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
html body .slc-root .slc-input-wrap > .slc-input,
html body .slc-root .slc-form .slc-input{
  height:48px !important;
  min-height:48px !important;
  padding:14px 0 12px !important;
  font-size:14px !important;
  line-height:1.4 !important;
  color:#0f172a !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html body .slc-root .slc-input::placeholder{color:#7b8798 !important;opacity:1 !important;}
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled),
html body .slc-root .slc-form.is-ready .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  flex:0 0 34px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  color:#2563eb !important;
  opacity:1 !important;
  transform:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  background:#eff6ff !important;
  color:#1d4ed8 !important;
}
html body .slc-root .slc-send__icon{
  width:17px !important;
  height:17px !important;
  display:block !important;
  stroke-width:2 !important;
}
@media (max-width:767px){
  html body .slc-root.slc-open .slc-panel{width:100vw !important;height:100dvh !important;border-radius:0 !important;border:0 !important;}
  html body .slc-root.slc-open .slc-empty{inset:64px 0 calc(60px + env(safe-area-inset-bottom)) !important;padding:26px 32px !important;}
  html body .slc-root.slc-open .slc-welcome-card{max-width:292px !important;min-height:316px !important;padding:38px 24px 30px !important;}
  html body .slc-root.slc-open .slc-welcome-avatar,
  html body .slc-root.slc-open .slc-welcome-avatar__img{width:54px !important;height:54px !important;max-width:54px !important;max-height:54px !important;}
  html body .slc-root.slc-open .slc-form{height:calc(60px + env(safe-area-inset-bottom)) !important;min-height:calc(60px + env(safe-area-inset-bottom)) !important;padding-bottom:env(safe-area-inset-bottom) !important;}
}

html body .slc-root.slc-has-chat .slc-empty,
html body .slc-root .slc-panel.is-chatting .slc-empty{
  display:none !important;
  opacity:0 !important;
  pointer-events:none !important;
  visibility:hidden !important;
}
html body .slc-root.slc-has-chat .slc-messages,
html body .slc-root .slc-panel.is-chatting .slc-messages{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}
html body .slc-root .slc-message--pending .slc-message__bubble{
  opacity:.92;
}

html body .slc-root{
  --slc-brand:#2563eb;
  --slc-brand-soft:#eef5ff;
  --slc-ink:#0f172a;
  --slc-muted:#64748b;
  --slc-border:#dbe5f2;
}
html body .slc-root .slc-panel{
  width:362px !important;
  height:590px !important;
  max-height:calc(100dvh - 28px) !important;
  border-radius:20px !important;
  border:1px solid rgba(203,213,225,.8) !important;
  background:#fff !important;
  box-shadow:0 26px 70px rgba(15,23,42,.14),0 8px 22px rgba(15,23,42,.08) !important;
}
html body .slc-root .slc-panel__header{
  height:64px !important;
  min-height:64px !important;
  padding:0 18px !important;
  border-bottom:1px solid #dbe5f2 !important;
  background:#fff !important;
  box-shadow:none !important;
}
html body .slc-root .slc-title{font-size:14px !important;font-weight:800 !important;letter-spacing:-.02em !important;color:#0f172a !important;}
html body .slc-root .slc-subtitle{font-size:12px !important;font-weight:600 !important;color:#64748b !important;line-height:1.2 !important;}
html body .slc-root .slc-header-icon{width:25px !important;height:25px !important;flex-basis:25px !important;background:#fff2ed !important;color:#fb6b3d !important;}
html body .slc-root .slc-close{width:32px !important;height:32px !important;color:#94a3b8 !important;border-radius:12px !important;}
html body .slc-root .slc-close:hover{background:#f8fafc !important;color:#475569 !important;}

html body .slc-root .slc-messages,
html body .slc-root.slc-has-chat .slc-messages,
html body .slc-root .slc-panel.is-chatting .slc-messages{
  display:flex !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  flex-direction:column !important;
  gap:10px !important;
  padding:16px 18px 86px !important;
  background:linear-gradient(180deg,#f8fbff 0%,#f8fafc 52%,#fff 100%) !important;
  visibility:visible !important;
  opacity:1 !important;
}
html body .slc-root .slc-message{
  width:auto !important;
  max-width:84% !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  margin:0 !important;
}
html body .slc-root .slc-message--visitor{align-self:flex-end !important;align-items:flex-end !important;}
html body .slc-root .slc-message--agent{align-self:flex-start !important;align-items:flex-start !important;}
html body .slc-root .slc-message--system{align-self:center !important;align-items:center !important;max-width:86% !important;}
html body .slc-root .slc-message__bubble{
  display:block !important;
  max-width:100% !important;
  padding:11px 13px !important;
  border-radius:16px !important;
  font-size:14px !important;
  line-height:1.45 !important;
  letter-spacing:0 !important;
  word-break:break-word !important;
  white-space:pre-wrap !important;
  box-shadow:0 8px 20px rgba(15,23,42,.055) !important;
}
html body .slc-root .slc-message--visitor .slc-message__bubble{
  background:#eef6ff !important;
  color:#0f172a !important;
  border:1px solid rgba(37,99,235,.16) !important;
  border-bottom-right-radius:6px !important;
}
html body .slc-root .slc-message--agent .slc-message__bubble{
  background:#fff !important;
  color:#1e293b !important;
  border:1px solid rgba(203,213,225,.76) !important;
  border-bottom-left-radius:6px !important;
}
html body .slc-root .slc-message--system .slc-message__bubble{
  padding:8px 13px !important;
  border-radius:999px !important;
  background:#eef2f7 !important;
  color:#64748b !important;
  border:1px solid rgba(203,213,225,.55) !important;
  box-shadow:0 5px 14px rgba(15,23,42,.04) !important;
  font-size:12px !important;
  text-align:center !important;
}
html body .slc-root .slc-message__meta{
  display:block !important;
  padding:0 5px !important;
  margin:0 !important;
  font-size:10.5px !important;
  line-height:1.1 !important;
  font-weight:500 !important;
  color:#94a3b8 !important;
}
html body .slc-root .slc-message--visitor .slc-message__meta{align-self:flex-end !important;text-align:right !important;}
html body .slc-root .slc-message--agent .slc-message__meta{align-self:flex-start !important;text-align:left !important;}
html body .slc-root .slc-message--system .slc-message__meta{display:none !important;}
html body .slc-root .slc-message--pending .slc-message__bubble{opacity:.76 !important;}

html body .slc-root .slc-form{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  z-index:20 !important;
  height:60px !important;
  min-height:60px !important;
  padding:0 12px !important;
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  background:#fff !important;
  border-top:1px solid #dbe5f2 !important;
  box-shadow:0 -10px 24px rgba(15,23,42,.04) !important;
}
html body .slc-root .slc-input-wrap{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:44px !important;
  display:flex !important;
  align-items:center !important;
}
html body .slc-root .slc-input{
  height:44px !important;
  min-height:44px !important;
  max-height:92px !important;
  padding:12px 6px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  resize:none !important;
  font-size:14px !important;
  line-height:20px !important;
  font-weight:500 !important;
  color:#0f172a !important;
}
html body .slc-root .slc-input::placeholder{color:#94a3b8 !important;font-weight:600 !important;}
html body .slc-root .slc-input:focus{box-shadow:none !important;outline:none !important;}
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled),
html body .slc-root .slc-form.is-ready .slc-send{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  flex:0 0 36px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  color:#9fb1c7 !important;
  box-shadow:none !important;
  transform:none !important;
  opacity:1 !important;
}
html body .slc-root .slc-form.is-ready .slc-send{color:#2563eb !important;background:rgba(37,99,235,.08) !important;}
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{background:rgba(37,99,235,.12) !important;color:#1d4ed8 !important;box-shadow:0 0 0 4px rgba(37,99,235,.09) !important;}
html body .slc-root .slc-send__icon{width:18px !important;height:18px !important;display:block !important;}
@media (max-width:480px){
  html body .slc-root{right:10px !important;bottom:10px !important;}
  html body .slc-root .slc-panel{width:calc(100vw - 20px) !important;height:min(590px, calc(100dvh - 20px)) !important;border-radius:18px !important;}
  html body .slc-root .slc-messages,
  html body .slc-root.slc-has-chat .slc-messages,
  html body .slc-root .slc-panel.is-chatting .slc-messages{padding:14px 14px calc(78px + env(safe-area-inset-bottom)) !important;gap:9px !important;}
  html body .slc-root .slc-message{max-width:88% !important;}
  html body .slc-root .slc-message__bubble{font-size:14px !important;padding:10px 12px !important;border-radius:15px !important;}
  html body .slc-root .slc-form{height:calc(62px + env(safe-area-inset-bottom)) !important;min-height:calc(62px + env(safe-area-inset-bottom)) !important;padding:0 12px env(safe-area-inset-bottom) !important;}
}

/* SLC v148 - visitor widget cohesive Telegram-style palette */
html body .slc-root{
  --slc-chat-navy:#17212b;
  --slc-chat-navy-2:#1f2c38;
  --slc-chat-navy-3:#23384d;
  --slc-chat-border:rgba(148,163,184,.18);
  --slc-chat-text:#e6edf5;
  --slc-chat-muted:#9aa9bb;
  --slc-chat-blue:#2aabee;
  --slc-chat-blue-2:#229ed9;
  --slc-chat-surface:#f8fbff;
}
html body .slc-root .slc-panel{
  background:#ffffff !important;
  border-color:rgba(23,33,43,.12) !important;
  box-shadow:0 24px 70px rgba(15,23,42,.18),0 10px 28px rgba(15,23,42,.10) !important;
}
html body .slc-root .slc-panel__header{
  background:linear-gradient(180deg,#1f2c38 0%,#17212b 100%) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  color:var(--slc-chat-text) !important;
}
html body .slc-root .slc-title{
  color:#ffffff !important;
  font-weight:800 !important;
}
html body .slc-root .slc-subtitle{
  color:#aebdca !important;
  font-weight:600 !important;
}
html body .slc-root .slc-header-icon{
  background:rgba(42,171,238,.13) !important;
  color:#63c8ff !important;
}
html body .slc-root .slc-close{
  color:#9fb0bf !important;
}
html body .slc-root .slc-close:hover,
html body .slc-root .slc-close:focus-visible{
  background:rgba(255,255,255,.08) !important;
  color:#ffffff !important;
}
html body .slc-root .slc-messages,
html body .slc-root .slc-empty{
  background:
    radial-gradient(circle at 50% 4%,rgba(42,171,238,.055),transparent 34%),
    linear-gradient(180deg,#f7fbff 0%,#f4f8fd 100%) !important;
  border-bottom:1px solid #dfe7f1 !important;
}
html body .slc-root .slc-welcome-card{
  border-color:#dbe5f0 !important;
  background:rgba(255,255,255,.98) !important;
  box-shadow:0 28px 58px rgba(23,33,43,.08),0 12px 28px rgba(23,33,43,.05) !important;
}
html body .slc-root .slc-welcome-title{
  color:#111827 !important;
}
html body .slc-root .slc-welcome-text{
  color:#64748b !important;
}
html body .slc-root .slc-message--agent .slc-message__bubble{
  background:#ffffff !important;
  color:#1e293b !important;
  border-color:#d8e3ef !important;
}
html body .slc-root .slc-message--system .slc-message__bubble{
  background:#e8eef5 !important;
  color:#64748b !important;
  border-color:#d8e3ef !important;
}
html body .slc-root .slc-message__meta{
  color:#8ea1b6 !important;
}
html body .slc-root .slc-form{
  background:#ffffff !important;
  border-top:1px solid #dfe7f1 !important;
  box-shadow:0 -10px 24px rgba(23,33,43,.045) !important;
}
html body .slc-root .slc-input-wrap{
  background:#ffffff !important;
}
html body .slc-root .slc-input{
  color:#0f172a !important;
}
html body .slc-root .slc-input::placeholder{
  color:#8ea1b6 !important;
}
html body .slc-root .slc-form.is-ready .slc-send{
  color:#ffffff !important;
  background:linear-gradient(135deg,var(--slc-chat-blue),var(--slc-chat-blue-2)) !important;
  box-shadow:0 8px 18px rgba(42,171,238,.28) !important;
}
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  background:linear-gradient(135deg,#229ed9,#168ac0) !important;
  color:#ffffff !important;
  box-shadow:0 10px 22px rgba(42,171,238,.34),0 0 0 4px rgba(42,171,238,.12) !important;
}
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send{
  color:#9fb1c7 !important;
}
html body .slc-root .slc-launcher{
  background:var(--slc-launcher-bg,#2aabee) !important;
  box-shadow:0 12px 28px color-mix(in srgb, var(--slc-launcher-bg,#2aabee) 28%, transparent),0 4px 12px rgba(15,23,42,.12) !important;
}
html body .slc-root .slc-launcher:focus-visible{
  box-shadow:0 0 0 4px rgba(42,171,238,.18),0 12px 28px rgba(42,171,238,.28) !important;
}

/* v149: unified Telegram-style dark widget shell */
html body .slc-root .slc-panel{
  border:1px solid rgba(51, 71, 91, .95) !important;
  background:#0f1720 !important;
  box-shadow:0 28px 80px rgba(2,8,23,.28),0 10px 28px rgba(2,8,23,.18) !important;
}
html body .slc-root .slc-panel__header{
  background:#17212b !important;
  border-bottom:1px solid rgba(64,83,103,.72) !important;
  box-shadow:none !important;
}
html body .slc-root .slc-title{
  color:#f1f5f9 !important;
}
html body .slc-root .slc-subtitle{
  color:#94a3b8 !important;
}
html body .slc-root .slc-header-icon{
  background:rgba(56,189,248,.12) !important;
  color:#38bdf8 !important;
}
html body .slc-root .slc-close{
  color:#94a3b8 !important;
}
html body .slc-root .slc-close:hover{
  background:rgba(148,163,184,.12) !important;
  color:#e2e8f0 !important;
}
html body .slc-root .slc-messages,
html body .slc-root.slc-has-chat .slc-messages,
html body .slc-root .slc-panel.is-chatting .slc-messages{
  background:radial-gradient(circle at 50% 0%, rgba(37,99,235,.10), transparent 34%), linear-gradient(180deg,#111827 0%,#0f1720 56%,#0b1220 100%) !important;
}
html body .slc-root .slc-message--visitor .slc-message__bubble{
  background:#2f5f8d !important;
  color:#f8fafc !important;
  border:1px solid rgba(96,165,250,.20) !important;
  box-shadow:0 12px 24px rgba(2,8,23,.16) !important;
}
html body .slc-root .slc-message--agent .slc-message__bubble{
  background:#17212b !important;
  color:#e5edf5 !important;
  border:1px solid rgba(71,85,105,.72) !important;
  box-shadow:0 10px 22px rgba(2,8,23,.14) !important;
}
html body .slc-root .slc-message--system .slc-message__bubble{
  background:rgba(31,41,55,.88) !important;
  color:#a8b5c5 !important;
  border:1px solid rgba(71,85,105,.55) !important;
}
html body .slc-root .slc-message__meta{
  color:#9fb1c7 !important;
}
html body .slc-root .slc-form{
  background:rgba(15,23,32,.88) !important;
  border-top:1px solid rgba(51,71,91,.72) !important;
  box-shadow:0 -12px 30px rgba(2,8,23,.18) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
}
html body .slc-root .slc-input{
  color:#e5edf5 !important;
}
html body .slc-root .slc-input::placeholder{
  color:#7f91a7 !important;
}
html body .slc-root .slc-form.is-ready .slc-send{
  background:#2aabee !important;
  color:#ffffff !important;
  box-shadow:0 10px 22px rgba(42,171,238,.28) !important;
}
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  background:#229ed9 !important;
  color:#ffffff !important;
  box-shadow:0 0 0 4px rgba(42,171,238,.16),0 12px 26px rgba(42,171,238,.30) !important;
}
/* v150 split UI color fix: visitor chatbox dark + keep visitor widget distinct from agent mini app */
.slc-root{
  --slc-visitor-bg:#0b1621;
  --slc-visitor-panel:#101f2d;
  --slc-visitor-panel-2:#142638;
  --slc-visitor-line:rgba(148,163,184,.18);
  --slc-visitor-text:#e7eef7;
  --slc-visitor-muted:#93a4b8;
  --slc-visitor-blue:#2f80d0;
  --slc-visitor-blue-2:#39a7f5;
}
.slc-root .slc-panel{
  background:var(--slc-visitor-bg)!important;
  border:1px solid rgba(94,118,143,.32)!important;
  box-shadow:0 24px 70px rgba(2,8,23,.26),0 10px 28px rgba(2,8,23,.18)!important;
}
.slc-root .slc-panel__header{
  background:linear-gradient(180deg,#152536 0%,#101c2a 100%)!important;
  border-bottom:1px solid var(--slc-visitor-line)!important;
}
.slc-root .slc-header-icon{
  color:#49b7ff!important;
  background:rgba(73,183,255,.12)!important;
}
.slc-root .slc-title{color:var(--slc-visitor-text)!important;}
.slc-root .slc-subtitle{color:var(--slc-visitor-muted)!important;}
.slc-root .slc-close{color:#91a4b8!important;}
.slc-root .slc-close:hover,.slc-root .slc-close:focus-visible{background:rgba(148,163,184,.10)!important;color:#e7eef7!important;}
.slc-root .slc-messages,
.slc-root .slc-empty{
  background:
    radial-gradient(circle at 50% 0%,rgba(47,128,208,.10),transparent 36%),
    linear-gradient(180deg,#0d1a26 0%,#08131f 100%)!important;
  border-bottom:1px solid rgba(148,163,184,.14)!important;
}
.slc-root .slc-welcome-card{
  background:rgba(16,31,45,.92)!important;
  border:1px solid rgba(148,163,184,.20)!important;
  box-shadow:0 22px 54px rgba(0,0,0,.24),0 8px 22px rgba(0,0,0,.14)!important;
}
.slc-root .slc-welcome-title{color:#f1f6fb!important;}
.slc-root .slc-welcome-text{color:#a7b7ca!important;}
.slc-root .slc-message--agent .slc-message__bubble{
  color:#e8f0f8!important;
  background:#172636!important;
  border-color:rgba(148,163,184,.24)!important;
}
.slc-root .slc-message--visitor .slc-message__bubble{
  color:#f4f8ff!important;
  background:#2b5f91!important;
  border-color:rgba(96,165,250,.28)!important;
}
.slc-root .slc-message__meta{color:#8da2b8!important;}
.slc-root .slc-form{
  background:#0b1621!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
  box-shadow:none!important;
}
.slc-root .slc-input-wrap{
  background:#0b1621!important;
  border-top:0!important;
  box-shadow:none!important;
}
.slc-root .slc-input-wrap:focus-within{box-shadow:inset 0 1px 0 rgba(59,130,246,.16)!important;}
.slc-root .slc-input-wrap > .slc-input,
.slc-root .slc-form .slc-input{
  color:#e8f0f8!important;
  background:transparent!important;
}
.slc-root .slc-input-wrap > .slc-input::placeholder,
.slc-root .slc-form .slc-input::placeholder{color:#7e94ab!important;}
.slc-root .slc-input-wrap > .slc-send,
.slc-root .slc-form .slc-send{
  background:linear-gradient(135deg,#248bd8,#39a7f5)!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(37,153,235,.25)!important;
}
.slc-root .slc-input-wrap > .slc-send:disabled,
.slc-root .slc-form .slc-send:disabled{
  background:#21364a!important;
  color:#8da2b8!important;
  box-shadow:none!important;
}

/* v171: visitor chat box premium SaaS palette */
html body .slc-root{
  --slc-v171-header:#0f1724;
  --slc-v171-header-2:#132033;
  --slc-v171-body:#f4f7fb;
  --slc-v171-body-2:#eef3f9;
  --slc-v171-card:#ffffff;
  --slc-v171-border:#dbe6f2;
  --slc-v171-ink:#1e293b;
  --slc-v171-muted:#64748b;
  --slc-v171-accent:#3b82f6;
  --slc-v171-accent-2:#2563eb;
}
html body .slc-root .slc-panel{
  background:#ffffff!important;
  border:1px solid rgba(15,23,42,.18)!important;
  box-shadow:0 28px 76px rgba(15,23,42,.18),0 12px 30px rgba(15,23,42,.10)!important;
}
html body .slc-root .slc-panel__header{
  background:linear-gradient(180deg,var(--slc-v171-header-2) 0%,var(--slc-v171-header) 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
html body .slc-root .slc-header-icon{
  color:#60c8ff!important;
  background:rgba(59,130,246,.14)!important;
  box-shadow:0 0 0 1px rgba(96,200,255,.10) inset!important;
}
html body .slc-root .slc-title{color:#ffffff!important;font-weight:850!important;}
html body .slc-root .slc-subtitle{color:#9fc0df!important;font-weight:650!important;}
html body .slc-root .slc-close{color:#9ca8b8!important;}
html body .slc-root .slc-close:hover,
html body .slc-root .slc-close:focus-visible{background:rgba(255,255,255,.08)!important;color:#ffffff!important;}
html body .slc-root .slc-messages,
html body .slc-root .slc-empty{
  background:
    radial-gradient(circle at 50% 0%,rgba(59,130,246,.12),transparent 36%),
    linear-gradient(180deg,var(--slc-v171-body) 0%,var(--slc-v171-body-2) 100%)!important;
  border-bottom:1px solid var(--slc-v171-border)!important;
}
html body .slc-root .slc-welcome-card{
  background:rgba(255,255,255,.94)!important;
  border:1px solid var(--slc-v171-border)!important;
  box-shadow:0 26px 60px rgba(30,41,59,.10),0 12px 30px rgba(30,41,59,.06)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
html body .slc-root .slc-welcome-title{color:var(--slc-v171-ink)!important;}
html body .slc-root .slc-welcome-text{color:var(--slc-v171-muted)!important;}
html body .slc-root .slc-message--visitor .slc-message__bubble{
  color:#ffffff!important;
  background:linear-gradient(135deg,#2f6fed,#2563eb)!important;
  border-color:rgba(37,99,235,.24)!important;
  box-shadow:0 12px 26px rgba(37,99,235,.20)!important;
}
html body .slc-root .slc-message--system .slc-message__bubble{
  color:#64748b!important;
  background:#e9eff7!important;
  border-color:#d7e2ee!important;
}
html body .slc-root .slc-message__meta{color:#8ea1b6!important;}
html body .slc-root .slc-form{
  background:linear-gradient(180deg,#132033 0%,#0f1724 100%)!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 -14px 32px rgba(15,23,42,.12)!important;
}
html body .slc-root .slc-input-wrap{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body .slc-root .slc-input-wrap:focus-within{box-shadow:none!important;}
html body .slc-root .slc-input-wrap > .slc-input,
html body .slc-root .slc-form .slc-input{
  color:#e5edf7!important;
  background:transparent!important;
}
html body .slc-root .slc-input-wrap > .slc-input::placeholder,
html body .slc-root .slc-form .slc-input::placeholder{color:#8fa3bc!important;}
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send{
  background:linear-gradient(135deg,var(--slc-v171-accent),var(--slc-v171-accent-2))!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(59,130,246,.30)!important;
}
html body .slc-root .slc-input-wrap > .slc-send:disabled,
html body .slc-root .slc-form .slc-send:disabled{
  background:#1b2a41!important;
  color:#7f91a7!important;
  box-shadow:none!important;
}


/* v172: solid send icon, no outlined inner paper-plane stroke */
html body .slc-root .slc-send__icon{
  width:18px!important;
  height:18px!important;
  display:block!important;
  fill:currentColor!important;
  stroke:none!important;
}
html body .slc-root .slc-send__icon path{
  fill:currentColor!important;
  stroke:none!important;
}


/* v173: flat idle send, remove disabled circular glass/inner ring */
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:disabled,
html body .slc-root .slc-form .slc-send:disabled{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  filter:none!important;
  color:#8094ad!important;
}
html body .slc-root .slc-input-wrap > .slc-send::before,
html body .slc-root .slc-input-wrap > .slc-send::after,
html body .slc-root .slc-form .slc-send::before,
html body .slc-root .slc-form .slc-send::after{
  content:none!important;
  display:none!important;
}
html body .slc-root .slc-form.is-ready .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled){
  background:#2f6fed!important;
  background-image:none!important;
  color:#ffffff!important;
  border:0!important;
  box-shadow:0 10px 22px rgba(47,111,237,.24)!important;
}
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):focus-visible{
  background:#2563eb!important;
  background-image:none!important;
  color:#ffffff!important;
  box-shadow:0 12px 24px rgba(37,99,235,.28)!important;
}
html body .slc-root .slc-send__icon,
html body .slc-root .slc-send__icon *{
  fill:currentColor!important;
  stroke:none!important;
  filter:none!important;
}

/* v174: Telegram-style standalone send icon, no circular button background */
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:disabled,
html body .slc-root .slc-form .slc-send:disabled,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled),
html body .slc-root .slc-form.is-ready .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):focus-visible,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  flex:0 0 38px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body .slc-root .slc-input-wrap > .slc-send,
html body .slc-root .slc-form .slc-send,
html body .slc-root .slc-input-wrap > .slc-send:disabled,
html body .slc-root .slc-form .slc-send:disabled{
  color:#8094ad!important;
  opacity:1!important;
}
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled),
html body .slc-root .slc-form.is-ready .slc-send{
  color:#2f8cff!important;
  opacity:1!important;
}
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):hover,
html body .slc-root .slc-form.is-ready .slc-send:hover,
html body .slc-root .slc-input-wrap > .slc-send:not(:disabled):focus-visible,
html body .slc-root .slc-form.is-ready .slc-send:focus-visible{
  color:#5aa7ff!important;
}
html body .slc-root .slc-input-wrap > .slc-send::before,
html body .slc-root .slc-input-wrap > .slc-send::after,
html body .slc-root .slc-form .slc-send::before,
html body .slc-root .slc-form .slc-send::after{
  content:none!important;
  display:none!important;
}
html body .slc-root .slc-send__icon{
  width:22px!important;
  height:22px!important;
  display:block!important;
  fill:currentColor!important;
  stroke:none!important;
  filter:none!important;
}
html body .slc-root .slc-send__icon,
html body .slc-root .slc-send__icon *{
  fill:currentColor!important;
  stroke:none!important;
}

/* v188 visitor browser notification fallback toast */
.slc-visitor-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: rgba(15, 23, 36, .96);
  color: #e5edf8;
  box-shadow: 0 18px 44px rgba(2, 8, 23, .28), 0 0 0 1px rgba(255,255,255,.03) inset;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  font: inherit;
  text-align: left;
}
.slc-visitor-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.slc-visitor-toast__icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, .18);
  color: #60a5fa;
  flex: 0 0 auto;
}
.slc-visitor-toast__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.slc-visitor-toast__body strong {
  font-size: 13px;
  line-height: 1.2;
  color: #f8fafc;
}
.slc-visitor-toast__body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  color: #b6c4d6;
}
@media (max-width: 767px) {
  .slc-visitor-toast {
    right: 12px;
    left: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: none;
  }
}


/* v193: clickable fallback contact links inside visitor message bubbles */
.slc-message-link,
.slc-message-link:visited {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.slc-message-link:hover,
.slc-message-link:focus {
  text-decoration: underline;
}
.slc-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0;
}
.slc-message--agent .slc-message__bubble .slc-message-link {
  color: #2563eb;
}

/* v212: theme color rules moved to assets/theme-light.css and assets/theme-dark.css */


/* SLC v373 - stabilize live visitor bubbles after SSE changes */
html body .slc-root .slc-message__bubble{
  min-width:44px !important;
  text-align:left !important;
}
html body .slc-root .slc-message--agent .slc-message__bubble,
html body .slc-root .slc-message--visitor .slc-message__bubble{
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
}
html body .slc-root .slc-message--visitor .slc-message__bubble{
  justify-content:flex-start !important;
}
html body .slc-root .slc-message__meta{
  opacity:.82 !important;
}

/* SLC v3887 - smoother visitor widget bubble wrapping */
html body .slc-root .slc-message {
  min-width: 0 !important;
}

html body .slc-root .slc-message--agent,
html body .slc-root .slc-message--system {
  max-width: 86% !important;
}

html body .slc-root .slc-message--visitor {
  max-width: 82% !important;
}

html body .slc-root .slc-message__bubble {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 44px !important;
  box-sizing: border-box !important;
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  line-height: 1.46 !important;
}

html body .slc-root .slc-message--agent .slc-message__bubble,
html body .slc-root .slc-message--visitor .slc-message__bubble {
  min-height: 0 !important;
  align-items: initial !important;
}

@media (max-width: 480px) {
  html body .slc-root .slc-message--agent,
  html body .slc-root .slc-message--system {
    max-width: 90% !important;
  }

  html body .slc-root .slc-message--visitor {
    max-width: 86% !important;
  }
}

/* SLC v3888 - keep empty welcome state compact after bubble wrap cleanup */
html body .slc-root .slc-empty{
  align-items:center !important;
  justify-content:center !important;
  padding:18px 24px !important;
}
html body .slc-root .slc-welcome-card{
  width:auto !important;
  max-width:248px !important;
  min-height:0 !important;
  padding:22px 20px 20px !important;
  border-radius:18px !important;
  text-align:center !important;
}
html body .slc-root .slc-welcome-avatar,
html body .slc-root .slc-welcome-avatar__img{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  margin:0 auto 12px !important;
}
html body .slc-root .slc-welcome-avatar__emoji{
  font-size:42px !important;
  line-height:1 !important;
}
html body .slc-root .slc-welcome-title{
  font-size:14px !important;
  line-height:1.32 !important;
  margin:0 0 7px !important;
}
html body .slc-root .slc-welcome-text{
  max-width:208px !important;
  font-size:13px !important;
  line-height:1.48 !important;
  margin:0 auto !important;
}
@media (max-width:480px){
  html body .slc-root.slc-open .slc-empty{
    padding:18px 22px !important;
  }
  html body .slc-root.slc-open .slc-welcome-card{
    max-width:238px !important;
    min-height:0 !important;
    padding:20px 18px 18px !important;
  }
  html body .slc-root.slc-open .slc-welcome-avatar,
  html body .slc-root.slc-open .slc-welcome-avatar__img{
    width:44px !important;
    height:44px !important;
    max-width:44px !important;
    max-height:44px !important;
  }
}



/* SLC v3889 - restore visitor starter choices without reintroducing admin quick replies */
html body .slc-root .slc-welcome-card{
  max-width:292px !important;
  padding:20px 18px 18px !important;
}
html body .slc-root .slc-welcome-text{
  margin:0 auto 14px !important;
}
html body .slc-root .slc-starter-options{
  width:100% !important;
  display:grid !important;
  gap:8px !important;
  margin-top:2px !important;
}
html body .slc-root .slc-starter-option{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:100% !important;
  border:1px solid rgba(59,130,246,.34) !important;
  background:linear-gradient(180deg,rgba(37,99,235,.13),rgba(37,99,235,.07)) !important;
  color:#dcecff !important;
  border-radius:13px !important;
  padding:10px 12px !important;
  font:inherit !important;
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:750 !important;
  text-align:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  box-shadow:0 10px 22px rgba(2,6,23,.16) !important;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease !important;
}
html body .slc-root .slc-starter-option:hover{
  transform:translateY(-1px) !important;
  border-color:rgba(96,165,250,.62) !important;
  background:linear-gradient(180deg,rgba(37,99,235,.20),rgba(37,99,235,.10)) !important;
}
html body .slc-root .slc-starter-option:active{
  transform:translateY(0) scale(.99) !important;
}
html body .slc-root .slc-starter-option:focus-visible{
  outline:2px solid rgba(96,165,250,.7) !important;
  outline-offset:2px !important;
}
@media (max-width:480px){
  html body .slc-root.slc-open .slc-welcome-card{
    max-width:286px !important;
    padding:18px 16px 16px !important;
  }
  html body .slc-root .slc-starter-option{
    font-size:12.8px !important;
    padding:9px 11px !important;
  }
}


/* SLC v3890 - keep Vietnamese words intact in visitor bubbles */
html body .slc-root .slc-message__bubble{
  white-space:pre-line !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
  line-break:auto !important;
}
html body .slc-root .slc-message--agent,
html body .slc-root .slc-message--system{
  max-width:90% !important;
}
html body .slc-root .slc-message--visitor{
  max-width:84% !important;
}
@media (max-width:480px){
  html body .slc-root .slc-message--agent,
  html body .slc-root .slc-message--system{max-width:92% !important;}
  html body .slc-root .slc-message--visitor{max-width:88% !important;}
}

/* SLC v3891 - force real text block bubbles after old flex stabilizer rules */
html body .slc-root .slc-message--agent .slc-message__bubble,
html body .slc-root .slc-message--visitor .slc-message__bubble,
html body .slc-root .slc-message--proactive .slc-message__bubble,
html body .slc-root .slc-message--local-auto-reply .slc-message__bubble{
  display:block !important;
  align-items:initial !important;
  justify-content:initial !important;
  flex-direction:initial !important;
  text-align:left !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
}

/* SLC v3892 - make visitor auto-reply bubbles wide enough and avoid orphan Vietnamese words */
html body .slc-root .slc-message--agent,
html body .slc-root .slc-message--local-auto-reply,
html body .slc-root .slc-message--proactive{
  max-width:96% !important;
}
html body .slc-root .slc-message--agent .slc-message__bubble,
html body .slc-root .slc-message--local-auto-reply .slc-message__bubble,
html body .slc-root .slc-message--proactive .slc-message__bubble{
  max-width:100% !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
  text-wrap:pretty !important;
}
html body .slc-root .slc-message--visitor{
  max-width:88% !important;
}
@media (max-width:480px){
  html body .slc-root .slc-message--agent,
  html body .slc-root .slc-message--local-auto-reply,
  html body .slc-root .slc-message--proactive{max-width:97% !important;}
  html body .slc-root .slc-message--visitor{max-width:90% !important;}
}

/* SLC v3895 - center visitor starter button labels */
html body .slc-root .slc-starter-option{
  text-align:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}


/* SLC v3896 - compact centered pill visitor starter buttons */
html body .slc-root .slc-starter-options{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:24px !important;
  margin-top:18px !important;
}
html body .slc-root .slc-starter-option{
  width:auto !important;
  min-width:136px !important;
  max-width:86% !important;
  min-height:34px !important;
  border-radius:999px !important;
  padding:8px 18px !important;
  text-align:center !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  box-shadow:0 10px 22px rgba(2,6,23,.12) !important;
}
@media (max-width:480px){
  html body .slc-root .slc-starter-options{
    gap:22px !important;
    margin-top:18px !important;
  }
  html body .slc-root .slc-starter-option{
    min-width:132px !important;
    min-height:33px !important;
    padding:8px 17px !important;
    max-width:88% !important;
  }
}
