/* Scoped support chat widget — brand navy/blue */
.lkit-support-chat {
  --sc-navy: #2e4056;
  --sc-blue: #2f94d7;
  --sc-blue-dark: #236ba2;
  --sc-bg: #f4f7fb;
  --sc-card: #ffffff;
  --sc-border: #d5e0ec;
  --sc-text: #2e4056;
  --sc-muted: #5c6b7a;
  --sc-z: 2147483000;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sc-text);
  box-sizing: border-box;
}

.lkit-support-chat *,
.lkit-support-chat *::before,
.lkit-support-chat *::after {
  box-sizing: border-box;
}

.lkit-support-chat__fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: var(--sc-z);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sc-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 64, 86, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lkit-support-chat__fab:hover,
.lkit-support-chat__fab:focus {
  background: var(--sc-blue);
  outline: none;
  transform: translateY(-1px);
}

.lkit-support-chat__fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 13px;
}

.lkit-support-chat__fab-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lkit-support-chat__panel {
  position: fixed;
  right: 16px;
  left: auto;
  bottom: 72px;
  z-index: var(--sc-z);
  width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(46, 64, 86, 0.28);
  overflow: hidden;
}

.lkit-support-chat__panel[hidden] {
  display: none !important;
}

.lkit-support-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--sc-navy), var(--sc-blue));
  color: #fff;
}

.lkit-support-chat__header strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.lkit-support-chat__header p {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.lkit-support-chat__close {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lkit-support-chat__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lkit-support-chat__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  background: var(--sc-bg);
  min-height: 220px;
}

.lkit-support-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.lkit-support-chat__bubble {
  max-width: 95%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sc-border);
  color: var(--sc-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.lkit-support-chat__bubble--user {
  align-self: flex-end;
  background: #e8f4fc;
  border-color: #c5e2f5;
}

.lkit-support-chat__bubble--bot {
  align-self: flex-start;
}

.lkit-support-chat__bubble a {
  color: var(--sc-blue-dark);
  font-weight: 600;
  text-decoration: underline;
}

.lkit-support-chat__bubble ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.lkit-support-chat__bubble li {
  margin: 4px 0;
}

.lkit-support-chat__menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lkit-support-chat__submenu-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sc-muted);
}

.lkit-support-chat__submenu .lkit-support-chat__back {
  margin-top: 6px;
  text-align: left;
}

.lkit-support-chat__opt {
  text-align: left;
  width: 100%;
  border: 1px solid var(--sc-border);
  background: #fff;
  color: var(--sc-navy);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lkit-support-chat__opt:hover,
.lkit-support-chat__opt:focus {
  border-color: var(--sc-blue);
  background: #eef7fd;
  outline: none;
}

.lkit-support-chat__ticket label,
.lkit-support-chat__search label,
.lkit-support-chat__guest label {
  display: block;
  margin-bottom: 10px;
}

.lkit-support-chat__ticket span,
.lkit-support-chat__search span,
.lkit-support-chat__guest span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-muted);
  margin-bottom: 4px;
}

.lkit-support-chat__guest span em {
  color: #c0392b;
  font-style: normal;
}

.lkit-support-chat__ticket input,
.lkit-support-chat__ticket textarea,
.lkit-support-chat__search input,
.lkit-support-chat__guest input {
  width: 100%;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--sc-text);
  background: #fff;
}

.lkit-support-chat__ticket input:focus,
.lkit-support-chat__ticket textarea:focus,
.lkit-support-chat__search input:focus,
.lkit-support-chat__guest input:focus {
  outline: none;
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 2px rgba(47, 148, 215, 0.2);
}

.lkit-support-chat__guest-confirm {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: 12px;
}

.lkit-support-chat__guest-prompt {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--sc-text);
  line-height: 1.45;
}

.lkit-support-chat__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lkit-support-chat__ghost {
  border: 1px solid var(--sc-border);
  background: #fff;
  color: var(--sc-navy);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

.lkit-support-chat__ghost:hover {
  border-color: var(--sc-blue);
  background: #eef7fd;
}

.lkit-support-chat__results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.lkit-support-chat__results li {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #f8fbfe;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
}

.lkit-support-chat__result-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--sc-muted);
}

.lkit-support-chat__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--sc-muted);
}

.lkit-support-chat__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.lkit-support-chat__ticket-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.lkit-support-chat__submit {
  border: 0;
  background: var(--sc-blue);
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

.lkit-support-chat__submit:hover {
  background: var(--sc-blue-dark);
}

.lkit-support-chat__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lkit-support-chat__back {
  border: 0;
  background: transparent;
  color: var(--sc-blue-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
}

.lkit-support-chat__footer {
  border-top: 1px solid var(--sc-border);
  padding: 10px 12px;
  background: #fff;
}

.lkit-support-chat__back--footer {
  display: block;
  margin-bottom: 8px;
}

.lkit-support-chat__ask {
  display: flex;
  gap: 8px;
}

.lkit-support-chat__ask input {
  flex: 1;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.lkit-support-chat__ask input:focus {
  outline: none;
  border-color: var(--sc-blue);
}

.lkit-support-chat__ask button {
  border: 0;
  background: var(--sc-navy);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
}

.lkit-support-chat__ask button:hover {
  background: var(--sc-blue);
}

.lkit-support-chat__ask button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lkit-support-chat__typing {
  font-size: 12px;
  color: var(--sc-muted);
  font-style: italic;
}

@media (max-width: 480px) {
  .lkit-support-chat__fab {
    right: 12px;
    left: auto;
    bottom: 12px;
    padding: 11px 14px;
  }

  .lkit-support-chat__panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 68px;
    max-height: calc(100vh - 84px);
  }
}
