.ls-widget {
  --ls-bg: rgba(255, 255, 255, .78);
  --ls-ink: #111827;
  --ls-muted: #64748b;
  --ls-line: rgba(15, 23, 42, .12);
  --ls-blue: #2563eb;
  --ls-green: #16a34a;
  --ls-shadow: 0 28px 70px rgba(2, 6, 23, .24);
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 1400;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] .ls-widget,
.theme-dark .ls-widget {
  --ls-bg: rgba(15, 23, 42, .82);
  --ls-ink: #f8fafc;
  --ls-muted: #94a3b8;
  --ls-line: rgba(255, 255, 255, .14);
  --ls-shadow: 0 32px 80px rgba(0, 0, 0, .44);
}

.ls-fab,
.ls-send,
.ls-icon-btn,
.ls-close,
.ls-fullscreen,
.ls-lang-current,
.ls-mini-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ls-fab {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .92), rgba(37, 99, 235, .72)),
    radial-gradient(circle at var(--liquid-x, 18%) var(--liquid-y, 0%), rgba(255,255,255,.42), transparent 34%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 44px rgba(2, 6, 23, .28);
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ls-fab:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 22px 52px rgba(2, 6, 23, .34);
}

.ls-fab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: lsPulse 1.8s infinite;
}

@keyframes lsPulse {
  70% { box-shadow: 0 0 0 13px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ls-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 132px));
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 26px;
  background:
    linear-gradient(135deg, var(--ls-bg), rgba(255,255,255,.58)),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.76), transparent 36%);
  color: var(--ls-ink);
  box-shadow: var(--ls-shadow);
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  transform-origin: bottom right;
  animation: lsPanelIn .22s ease both;
}

.ls-panel[hidden],
.ls-chat-stage[hidden],
.ls-language-step[hidden],
.ls-footer[hidden] {
  display: none !important;
}

body.ls-support-open {
  overflow: hidden;
  touch-action: none;
}

[data-theme="dark"] .ls-panel,
.theme-dark .ls-panel {
  background:
    linear-gradient(135deg, var(--ls-bg), rgba(15,23,42,.66)),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.16), transparent 36%);
}

@keyframes lsPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ls-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--ls-line);
}

.ls-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.ls-title {
  flex: 1;
  min-width: 0;
}

.ls-title strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.ls-title span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 700;
}

.ls-title span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.ls-close,
.ls-icon-btn,
.ls-fullscreen,
.ls-lang-current,
.ls-mini-btn {
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ls-ink);
  background: rgba(255,255,255,.42);
  border: 1px solid var(--ls-line);
}

.ls-close,
.ls-fullscreen,
.ls-icon-btn {
  width: 38px;
  height: 38px;
}

.ls-lang-current {
  position: relative;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.ls-body {
  min-height: 260px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
}

.ls-chat-stage {
  display: grid;
}

.ls-language-step {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 8px 0 4px;
}

.ls-language-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ls-blue), var(--ls-green));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 14px 26px rgba(37,99,235,.2);
}

.ls-language-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
}

.ls-language-step p {
  margin: -4px 0 2px;
  color: var(--ls-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ls-language-grid {
  display: grid;
  gap: 8px;
}

.ls-language-grid button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--ls-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.36)),
    radial-gradient(circle at var(--liquid-x, 15%) var(--liquid-y, 0%), rgba(255,255,255,.62), transparent 34%);
  color: var(--ls-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}

.ls-language-grid button span {
  font-size: 14px;
  font-weight: 950;
}

.ls-language-grid button small {
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 800;
}

.ls-language-grid button.active {
  border-color: rgba(37,99,235,.34);
  background:
    linear-gradient(135deg, rgba(37,99,235,.14), rgba(22,163,74,.12)),
    rgba(255,255,255,.48);
}

.ls-intro {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--ls-line);
  border-radius: 18px;
  background: rgba(255,255,255,.36);
  color: var(--ls-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ls-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.ls-contact input,
.ls-input textarea {
  width: 100%;
  border: 1px solid var(--ls-line);
  border-radius: 14px;
  background: rgba(255,255,255,.52);
  color: var(--ls-ink);
  outline: none;
  font: inherit;
  font-size: 13px;
}

.ls-contact input {
  min-height: 40px;
  padding: 0 11px;
}

.ls-contact input:first-child {
  grid-column: 1 / -1;
}

[data-theme="dark"] .ls-contact input,
[data-theme="dark"] .ls-input textarea,
.theme-dark .ls-contact input,
.theme-dark .ls-input textarea {
  background: rgba(15,23,42,.48);
}

.ls-messages {
  display: grid;
  gap: 10px;
}

.ls-msg {
  max-width: 86%;
  justify-self: start;
  animation: lsMsgIn .18s ease both;
}

.ls-msg.me {
  justify-self: end;
}

@keyframes lsMsgIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ls-bubble {
  padding: 10px 12px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,.58);
  border: 1px solid var(--ls-line);
  color: var(--ls-ink);
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ls-msg.me .ls-bubble {
  border-radius: 18px 18px 6px 18px;
  border-color: rgba(37, 99, 235, .18);
  background: linear-gradient(135deg, rgba(37,99,235,.94), rgba(22,163,74,.84));
  color: #fff;
}

.ls-msg.system {
  justify-self: center;
  max-width: 100%;
}

.ls-msg.system .ls-bubble {
  border-radius: 999px;
  background: rgba(148,163,184,.16);
  color: var(--ls-muted);
  font-size: 12px;
}

.ls-meta {
  margin: 4px 4px 0;
  color: var(--ls-muted);
  font-size: 11px;
}

.ls-attachment {
  display: block;
  width: 100%;
  max-height: 170px;
  margin-top: 8px;
  border-radius: 14px;
  object-fit: cover;
}

.ls-typing {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.ls-typing.on {
  display: flex;
}

.ls-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ls-muted);
  animation: lsTyping 1s infinite ease-in-out;
}

.ls-typing span:nth-child(2) { animation-delay: .12s; }
.ls-typing span:nth-child(3) { animation-delay: .24s; }

@keyframes lsTyping {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.ls-footer {
  padding: 12px;
  border-top: 1px solid var(--ls-line);
}

.ls-file-preview {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(37,99,235,.10);
  color: var(--ls-ink);
  font-size: 12px;
  font-weight: 800;
}

.ls-file-preview.on {
  display: flex;
}

.ls-file-preview img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.ls-input {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: end;
}

.ls-input textarea {
  min-height: 42px;
  max-height: 110px;
  resize: none;
  padding: 11px 12px;
}

.ls-send {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--ls-blue), var(--ls-green));
  box-shadow: 0 12px 26px rgba(37,99,235,.24);
}

.ls-send:disabled,
.ls-icon-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.ls-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--ls-muted);
  font-size: 12px;
  font-weight: 700;
}

.ls-liquid {
  transform: scale(.98);
}

.ls-liquid::after {
  content: "";
  position: absolute;
  inset: auto;
  left: var(--liquid-x, 50%);
  top: var(--liquid-y, 50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: translate(-50%, -50%) scale(1);
  animation: lsRipple .42s ease-out forwards;
  pointer-events: none;
}

@keyframes lsRipple {
  to { opacity: 0; transform: translate(-50%, -50%) scale(16); }
}

.ls-mini-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.ls-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .ls-widget {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .ls-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(88dvh, calc(100dvh - 12px));
    max-height: none;
    border-radius: 26px 26px 0 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform-origin: bottom center;
  }

  .ls-head {
    padding: 14px;
  }

  .ls-body {
    min-height: 0;
    padding: 14px;
  }

  .ls-language-step {
    min-height: 0;
  }

  .ls-contact {
    grid-template-columns: 1fr;
  }

  .ls-footer {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .ls-fab {
    width: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 38px rgba(2, 6, 23, .28);
  }

  .ls-fab strong {
    display: none;
  }

  .ls-fab-dot {
    position: absolute;
    right: 8px;
    top: 8px;
  }
}

.ls-widget .ls-panel[hidden],
.ls-widget .ls-chat-stage[hidden],
.ls-widget .ls-language-step[hidden],
.ls-widget .ls-footer[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* v20260622.4: professional support surface and mobile behavior. */
.ls-widget {
  --ls-bg: #ffffff;
  --ls-ink: #101827;
  --ls-muted: #65748b;
  --ls-line: rgba(15, 23, 42, .12);
  --ls-soft: #f6f8fb;
  --ls-blue: #2563eb;
  --ls-green: #0f9f6e;
  --ls-shadow: 0 28px 74px rgba(2, 6, 23, .24);
}

[data-theme="dark"] .ls-widget,
.theme-dark .ls-widget {
  --ls-bg: #101827;
  --ls-ink: #f8fafc;
  --ls-muted: #a5b4c7;
  --ls-line: rgba(255, 255, 255, .13);
  --ls-soft: #172033;
  --ls-shadow: 0 30px 82px rgba(0, 0, 0, .48);
}

.ls-widget.is-open .ls-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.94);
}

.ls-widget.is-open {
  z-index: 10020;
}

.ls-fab {
  border-color: rgba(255, 255, 255, .56);
  background:
    radial-gradient(circle at var(--liquid-x, 18%) var(--liquid-y, 0%), rgba(255, 255, 255, .42), transparent 34%),
    linear-gradient(135deg, #172033, #2359d8 58%, #0f9f6e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 18px 44px rgba(2, 6, 23, .28);
}

.ls-panel {
  width: min(408px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - 124px));
  grid-template-rows: auto minmax(180px, 1fr) auto;
  border: 1px solid var(--ls-line);
  border-radius: 24px;
  background: var(--ls-bg);
  box-shadow: var(--ls-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="dark"] .ls-panel,
.theme-dark .ls-panel {
  background: var(--ls-bg);
}

.ls-head {
  padding: 15px 16px;
  background: linear-gradient(180deg, rgba(37, 99, 235, .06), transparent);
}

.ls-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.ls-title strong {
  font-size: 15px;
}

.ls-title span {
  font-size: 12px;
}

.ls-close,
.ls-icon-btn,
.ls-fullscreen,
.ls-lang-current,
.ls-mini-btn {
  background: var(--ls-soft);
  border-color: var(--ls-line);
}

.ls-close:hover,
.ls-icon-btn:hover,
.ls-fullscreen:hover,
.ls-lang-current:hover,
.ls-mini-btn:hover {
  border-color: rgba(37, 99, 235, .28);
}

.ls-body {
  min-height: 210px;
  padding: 15px;
  background:
    linear-gradient(180deg, transparent, rgba(15, 23, 42, .025)),
    var(--ls-bg);
}

.ls-language-step {
  min-height: 210px;
}

.ls-language-grid button,
.ls-intro,
.ls-contact input,
.ls-input textarea,
.ls-bubble {
  background: var(--ls-soft);
  border-color: var(--ls-line);
  box-shadow: none;
}

.ls-language-grid button.active {
  border-color: rgba(37, 99, 235, .36);
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(15, 159, 110, .10)), var(--ls-soft);
}

.ls-intro {
  color: var(--ls-muted);
  margin-bottom: 12px;
}

.ls-msg.me .ls-bubble {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0f9f6e);
}

.ls-footer {
  padding: 12px;
  background: var(--ls-bg);
}

.ls-input {
  grid-template-columns: 42px minmax(0, 1fr) 46px;
}

.ls-send {
  border-radius: 15px;
  background: linear-gradient(135deg, #2563eb, #0f9f6e);
}

.ls-status {
  min-height: 0;
  margin-top: 8px;
}

.ls-status:empty {
  display: none;
}

.ls-status[data-kind="error"],
.ls-status[data-kind="warn"],
.ls-status[data-kind="ok"] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.3;
}

.ls-status[data-kind="error"] {
  color: #991b1b;
  border-color: rgba(239, 68, 68, .24);
  background: #fff1f2;
}

.ls-status[data-kind="warn"] {
  color: #92400e;
  border-color: rgba(245, 158, 11, .28);
  background: #fffbeb;
}

.ls-status[data-kind="ok"] {
  color: #166534;
  border-color: rgba(34, 197, 94, .24);
  background: #f0fdf4;
}

[data-theme="dark"] .ls-status[data-kind="error"],
.theme-dark .ls-status[data-kind="error"] {
  color: #fecaca;
  background: rgba(127, 29, 29, .32);
}

[data-theme="dark"] .ls-status[data-kind="warn"],
.theme-dark .ls-status[data-kind="warn"] {
  color: #fde68a;
  background: rgba(120, 53, 15, .28);
}

[data-theme="dark"] .ls-status[data-kind="ok"],
.theme-dark .ls-status[data-kind="ok"] {
  color: #bbf7d0;
  background: rgba(20, 83, 45, .28);
}

@media (max-width: 640px) {
  .ls-widget {
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .ls-panel {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(74dvh, 620px);
    max-height: calc(100dvh - 18px);
    border: 1px solid var(--ls-line);
    border-radius: 24px;
  }

  .ls-head {
    padding: 13px;
  }

  .ls-avatar {
    width: 40px;
    height: 40px;
  }

  .ls-close,
  .ls-icon-btn,
  .ls-fullscreen,
  .ls-lang-current {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .ls-body {
    min-height: 0;
    padding: 13px;
  }

  .ls-intro {
    font-size: 12px;
    line-height: 1.4;
  }

  .ls-footer {
    padding: 10px;
  }

  .ls-input {
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .ls-send,
  .ls-input textarea {
    min-height: 42px;
  }
}

/* v20260623.4: fullscreen support chat + secure image preview. */
.ls-fullscreen {
  position: relative;
  overflow: hidden;
}

.ls-widget.is-fullscreen {
  inset: 0;
  right: auto;
  bottom: auto;
  z-index: 10040;
}

.ls-widget.is-fullscreen .ls-panel {
  position: fixed;
  inset: 18px;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  border-radius: 24px;
  transform-origin: center;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ls-widget.is-fullscreen .ls-body {
  min-height: 0;
}

.ls-widget.is-fullscreen .ls-messages {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.ls-widget.is-fullscreen .ls-footer {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border-top: 0;
}

.ls-attachment-btn {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.ls-attachment-btn:focus-visible {
  outline: 2px solid var(--ls-blue);
  outline-offset: 2px;
}

.ls-attachment {
  margin-top: 0;
  transition: transform .18s ease, filter .18s ease;
}

.ls-attachment-btn:hover .ls-attachment {
  transform: scale(1.015);
  filter: saturate(1.04);
}

.ls-image-modal[hidden] {
  display: none !important;
}

.ls-image-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ls-image-modal img {
  display: block;
  max-width: min(980px, 94vw);
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.ls-image-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  cursor: pointer;
}

body.ls-image-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ls-widget.is-fullscreen .ls-panel {
    inset: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .ls-widget.is-fullscreen .ls-head {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .ls-image-modal {
    padding: 14px;
  }

  .ls-image-modal img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 14px;
  }
}

/* v20260623.5: first-run language step and clean contact layout. */
.ls-panel {
  overflow: hidden;
}

.ls-body {
  overflow-x: hidden;
}

.ls-language-step {
  min-height: 238px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 8px 0;
  text-align: center;
}

.ls-language-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0f9f6e);
  color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .24);
}

.ls-language-step h3 {
  margin: 2px 0 0;
  color: var(--ls-ink);
  font-size: 18px;
  line-height: 1.15;
}

.ls-language-step p {
  max-width: 310px;
  margin: 0;
  color: var(--ls-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ls-language-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.ls-language-grid button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--ls-line);
  border-radius: 16px;
  background: var(--ls-soft);
  color: var(--ls-ink);
  text-align: left;
  cursor: pointer;
}

.ls-language-grid button span,
.ls-language-grid button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-language-grid button span {
  font-weight: 800;
}

.ls-language-grid button small {
  color: var(--ls-muted);
  font-size: 11px;
}

.ls-language-grid button.active,
.ls-language-grid button:hover {
  border-color: rgba(37, 99, 235, .38);
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(15, 159, 110, .10)), var(--ls-soft);
}

.ls-contact {
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}

.ls-contact input {
  grid-column: auto !important;
  min-width: 0;
  min-height: 48px !important;
  border-radius: 16px !important;
  background: var(--ls-soft) !important;
  font-size: 14px !important;
}

.ls-input textarea {
  min-width: 0;
  line-height: 1.35;
  resize: none;
}

.ls-widget.awaiting-language .ls-footer {
  display: none !important;
}

.ls-widget.is-fullscreen .ls-language-step,
.ls-widget.is-fullscreen .ls-chat-stage {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .ls-widget.is-fullscreen .ls-contact {
    grid-template-columns: 1.2fr 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  .ls-language-grid {
    grid-template-columns: 1fr;
  }

  .ls-language-step {
    align-content: start;
    padding-top: 4px;
  }
}
