#jobedge-live-chat-root {
  --jlc-primary: #0f172a;
  --jlc-accent: #2563eb;
  --jlc-bg: #ffffff;
  --jlc-muted: #64748b;
  --jlc-border: #e2e8f0;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

#jobedge-live-chat-root * {
  box-sizing: border-box;
}

.jlc-launcher {
  pointer-events: auto;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--jlc-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jlc-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
}

.jlc-launcher svg {
  width: 24px;
  height: 24px;
}

.jlc-panel {
  pointer-events: auto;
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: min(380px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 120px));
  background: var(--jlc-bg);
  border: 1px solid var(--jlc-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.jlc-panel.is-open {
  transform: translateX(0);
  opacity: 1;
}

.jlc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--jlc-primary);
  color: #fff;
}

#jobedge-live-chat-root .jlc-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

#jobedge-live-chat-root .jlc-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.jlc-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jlc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.jlc-start-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jlc-start-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--jlc-primary);
}

.jlc-start-form input,
.jlc-start-form textarea {
  width: 100%;
  border: 1px solid var(--jlc-border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--jlc-primary);
}

.jlc-start-form textarea {
  min-height: 88px;
  resize: vertical;
}

.jlc-start-form button,
.jlc-send {
  border: none;
  border-radius: 999px;
  background: var(--jlc-primary);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jlc-start-form button:disabled,
.jlc-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.jlc-error {
  color: #dc2626;
  font-size: 12px;
  margin: 0;
}

.jlc-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.jlc-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.jlc-msg.visitor {
  align-self: flex-end;
  background: var(--jlc-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.jlc-msg.admin {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--jlc-primary);
  border-bottom-left-radius: 4px;
}

.jlc-msg time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.65;
}

.jlc-composer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--jlc-border);
}

.jlc-composer input {
  flex: 1;
  border: 1px solid var(--jlc-border);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.jlc-send {
  padding-inline: 16px;
}

.jlc-status {
  font-size: 12px;
  color: var(--jlc-muted);
  margin: 0 0 8px;
}

.jlc-hidden {
  display: none !important;
}
