:root{--chx-bubble-bg: rgba(91,109,248,1);--chx-header-bg: rgba(91,109,248,1);--chx-send-bg: rgba(91,109,248,1);--chx-chat-bg: rgba(255,255,255,1);}
#chatnex-root, #chatenex-root {
  position: relative;
  isolation: isolate;
  z-index: 2147483643;
}

.chatenex-bubble {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--chx-bubble-bg);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(91, 109, 248, 0.35);
  cursor: grab;
  user-select: none;
  touch-action: none;
  border: 0;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease, left .26s ease, right .26s ease, bottom .26s ease;
  font-size: 24px;
  z-index: 2147483643;
}


.chatenex-bubble-svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: #ffffff;
  flex: none;
}

.chatenex-bubble::before,
.chatenex-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.chatenex-bubble::before {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.34), transparent 48%);
}

.chatenex-bubble::after {
  border: 2px solid rgba(114, 130, 255, 0.35);
  animation: chatenexPulse 2.2s infinite;
}

.chatenex-bubble:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 46px rgba(91, 109, 248, 0.42);
}

.chatenex-bubble:active,
.chatenex-bubble.is-dragging {
  cursor: grabbing;
  transition: none;
}

.chatenex-bubble.is-hidden {
  display: none !important;
}

.chatenex-helper {
  position: fixed;
  left: 24px;
  top: 24px;
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  max-width: 220px;
  z-index: 2147483644;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.chatenex-helper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chatenex-window {
  position: fixed;
  left: 24px;
  bottom: 100px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: calc(100vh - 132px);
  background: var(--chx-chat-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  display: none;
  flex-direction: column;
  border: 1px solid rgba(91, 109, 248, 0.12);
  z-index: 2147483646;
}

.chatenex-window.is-open {
  display: flex;
  transform: none !important;
  animation: chatenexWindowIn .18s ease;
}

.chatenex-header {
  background: var(--chx-bubble-bg);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatenex-header-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.chatenex-header-status {
  font-size: 12px;
  opacity: .9;
  margin-top: 4px;
}

.chatenex-close {
  background: rgba(255,255,255,0.16);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.chatenex-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: var(--chx-chat-bg);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.chatenex-message {
  max-width: 84%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  animation: chatenexFadeUp .2s ease;
}



/* Smooth pending-answer appearance and first-content transition. */
.chatenex-message.chatenex-pending-visible {
  animation: chatenexPendingFadeIn .28s ease both;
}

.chatenex-message.chatenex-content-transition {
  animation: chatenexContentFade .26s ease both;
}

@keyframes chatenexPendingFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatenexContentFade {
  from { opacity: .35; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatenex-message.bot {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(91, 109, 248, 0.10);
  border-bottom-left-radius: 6px;
}

.chatenex-message.user {
  margin-left: auto;
  background: var(--chx-bubble-bg);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.chatenex-composer {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #efe6ff;
  background: var(--chx-chat-bg);
}

.chatenex-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  max-height: 120px;
  resize: none;
  border: 1px solid #dccdff;
  border-radius: 14px;
  padding: 7px 10px;
  font-size: 16px !important;
  line-height: 1.4;
  font-family: inherit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  outline: none;
}

.chatenex-input:focus {
  border-color: #5b6df8;
  box-shadow: 0 0 0 4px rgba(91, 109, 248, 0.12);
}

.chatenex-send {
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 14px;
  background: var(--chx-bubble-bg);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0 12px;
  align-self: center;
}

.chatenex-hide-target {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) scale(.88);
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.97);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.35);
  font-size: 12px;
  line-height: 1.2;
  z-index: 2147483647;
  pointer-events: none;
}

.chatenex-hide-target.is-visible {
  display: flex;
  animation: chatenexTargetIn .18s ease;
}

.chatenex-hide-target::before {
  content: "✕";
  position: absolute;
  top: 12px;
  font-size: 20px;
  font-weight: 700;
}

.chatenex-hide-target span {
  display: block;
  margin-top: 22px;
}

@keyframes chatenexPulse {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

@keyframes chatenexFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatenexWindowIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chatenexTargetIn {
  from { opacity: 0; transform: translateX(-50%) scale(.75); }
  to { opacity: 1; transform: translateX(-50%) scale(.88); }
}

@media (max-width: 640px) {
  .chatenex-bubble {
    left: 16px;
    bottom: 16px;
  }

  .chatenex-helper {
    left: 16px;
    bottom: 88px;
  }

  .chatenex-window {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: 88px;
    height: min(70vh, 560px);
  }
}


.chatenex-quick-questions {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0 16px 14px;
  background: var(--chx-chat-bg);
  position: relative;
  z-index: 2;
}

.chatenex-quick-question {
  border: 1px solid rgba(91, 109, 248, 0.18);
  background: #ffffff;
  color: #1f2937;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: block;
  width: 100%;
  min-height: 38px;
  text-align: left;
  white-space: normal;
  position: relative;
  z-index: 3;
}

.chatenex-quick-question:hover {
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  border-color: rgba(91, 109, 248, 0.35);
}

.chatenex-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: none;
  z-index: 2147483642;
}

.chatenex-overlay.is-open {
  display: block;
}

.chatenex-input {
  box-sizing: border-box;
}


.chatenex-window.chatenex-ios-input-focus .chatenex-composer,
.chatenex-window.chatenex-ios-input-focus .chatenex-input {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.chatenex-input.chatenex-input-repaint {
  opacity: 0.999;
}

.chatenex-input.chatenex-ios-caret-hold {
  caret-color: transparent !important;
}

.chatenex-composer {
  align-items: center;
  position: relative;
  z-index: 4;
}


.chatenex-root-dragging,
.chatenex-root-dragging * {
  -webkit-user-select: none;
  user-select: none;
}

.chatenex-header img{
  background:none !important;
  box-shadow:none !important;
  padding:0 !important;
}


.chatenex-quick-question:focus,
.chatenex-quick-question:focus-visible,
.chatenex-quick-question:active,
.chatenex-send:focus,
.chatenex-send:focus-visible,
.chatenex-send:active {
  outline: none !important;
  box-shadow: none !important;
}

.chatenex-quick-question,
.chatenex-send,
.chatenex-close,
.chatenex-bubble {
  -webkit-tap-highlight-color: transparent;
}


.chatenex-message.bot a.chatenex-message-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--chx-bubble-bg);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(91, 109, 248, 0.22);
}

.chatenex-message.bot a.chatenex-message-link:hover,
.chatenex-message.bot a.chatenex-message-link:focus{
  text-decoration: none !important;
  transform: translateY(-1px);
}
