#jac-wpbot-chat-root {
  position: fixed;
  bottom: 24px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

#jac-wpbot-chat-root.jac-pos-right { right: 24px; }
#jac-wpbot-chat-root.jac-pos-left  { left: 24px; }

#jac-wpbot-launcher {
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#jac-wpbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.32);
}

.jac-launcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes jacSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#jac-wpbot-window.jac-animate-in {
  animation: jacSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

#jac-wpbot-window {
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 575px;
  max-height: calc(100vh - 44px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

#jac-wpbot-header {
  color: #fff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jac-header-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.jac-bot-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jac-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #1e3a8a;
}

.jac-header-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.jac-header-sub {
  font-size: 11.5px;
  opacity: 0.88;
  margin-top: 2px;
}

.jac-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.jac-wpbot-pill-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.jac-wpbot-pill-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

#jac-wpbot-close {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#jac-wpbot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}

#jac-wpbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jac-msg-row {
  display: flex;
  width: 100%;
}

.jac-row-user { justify-content: flex-end; }
.jac-row-bot  { justify-content: flex-start; }

.jac-wpbot-msg {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.jac-wpbot-bot {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
}

.jac-wpbot-user {
  border-radius: 16px 16px 4px 16px;
}

.jac-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.jac-chip {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.jac-chip:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.jac-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 13px 16px;
}

.jac-typing-dots span {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: jacBounce 1.2s infinite ease-in-out;
}

.jac-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.jac-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jacBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

#jac-wpbot-chat-form {
  display: flex;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
}

#jac-wpbot-chat-form input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

#jac-wpbot-chat-form input:focus {
  border-color: #2563eb;
}

#jac-wpbot-chat-form button {
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jac-wpbot-book-form {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.jac-wpbot-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.jac-wpbot-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.jac-wpbot-field input,
.jac-wpbot-field select {
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13px;
  background: #fff;
}

.jac-wpbot-field-row {
  display: flex;
  gap: 8px;
}
