/* Vision-X Concierge Widget (no popup form) */

#vxc-chat-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

#vxc-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 640px;
  max-height: calc(100vh - 90px);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  z-index: 999999;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);

  display: none;            /* JS toggles to flex */
  flex-direction: column;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#vxc-chat-header {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

#vxc-lead-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#vxc-close {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}

#vxc-chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
}

.vxc-msg {
  display: flex;
  margin-bottom: 10px;
}

.vxc-msg.user {
  justify-content: flex-end;
}

.vxc-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-line;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.vxc-msg.user .vxc-bubble {
  background: var(--vxc-primary, #111827);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

#vxc-chat-quick {
  flex: 0 0 auto;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: #fff;

  /* remove the scrollbar here */
  max-height: none;
  overflow: visible;
}

/* Theme-proof quick reply buttons */
#vxc-chat-panel .vxc-qr {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: var(--vxc-primary, #111827) !important;
  color: #fff !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;

  padding: 8px 10px !important;
  border-radius: 10px !important;

  cursor: pointer !important;
  width: auto !important;
  min-height: 36px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 1 1 calc(50% - 8px) !important; /* 2 columns */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#vxc-chat-panel .vxc-qr:hover {
  filter: brightness(1.08);
}

#vxc-chat-input {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}

#vxc-input {
  flex: 1 1 auto;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
}

#vxc-send {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  min-height: 40px;
}
