/* Live chat jodiwa CS — ringan */
.lc-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 220;
  font-family: inherit;
}
.lc-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #217cff;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(33, 124, 255, 0.35);
}
.lc-launcher:hover {
  background: #155fd4;
}
.lc-launcher__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.lc-panel {
  position: absolute;
  right: 0;
  bottom: 3.6rem;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(520px, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.lc-panel[hidden] {
  display: none !important;
}
.lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: #217cff;
  color: #fff;
  font-size: 0.95rem;
}
.lc-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.lc-body {
  flex: 1;
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 0.75rem;
  background: #f8fafc;
  scroll-behavior: smooth;
}
.lc-foot {
  padding: 0.65rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.lc-msgs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: min-content;
}
.lc-msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.lc-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.lc-msg--user {
  align-self: flex-end;
  background: #ccfbf1;
  color: #134e4a;
}
.lc-note {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}
.lc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lc-chip {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #115e59;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.lc-chip:hover {
  background: #ccfbf1;
}
.lc-form {
  display: grid;
  gap: 0.4rem;
}
.lc-form--row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.lc-form input:not(.lc-hp) {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
}
.lc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.lc-btn {
  border: 0;
  border-radius: 10px;
  background: #217cff;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.lc-btn:hover {
  background: #155fd4;
}
.lc-root.is-busy .lc-btn,
.lc-root.is-busy .lc-chip {
  opacity: 0.6;
  pointer-events: none;
}
.lc-err {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 4.2rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}
.lc-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.82rem;
}
.lc-typing__dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.lc-typing__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  animation: lc-dot 1.1s infinite ease-in-out;
}
.lc-typing__dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.lc-typing__dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes lc-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@media (max-width: 480px) {
  .lc-launcher__text {
    display: none;
  }
  .lc-launcher {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
