/* ECN CHAT ASSISTANT - demo (TEST build).
   Brand: parchment/linen, deep brown, gold hairlines, plum buttons, Playfair headings, Outfit body.
   Calm hovers (a plain colour change, no glow, no sliding). */

.cx-launch,.cx{
  --cx-linen:#F6EFE6; --cx-parch:#FCF8F3; --cx-sand:#EBE0D2;
  --cx-brown:#2A1F1A; --cx-text:#5C5048; --cx-plum:#482C5B; --cx-plum-dk:#3A2249;
  --cx-honey:#C9A25B; --cx-gold:#E6B85C; --cx-hair:rgba(201,162,91,.34);
  --cx-raised:4px 4px 12px rgba(148,124,100,.26),-4px -4px 12px rgba(255,255,255,.95);
  font-family:'Outfit','Avenir Next','Segoe UI',sans-serif;
}

/* launcher */
.cx-launch{
  position:fixed;right:24px;bottom:24px;z-index:1300;
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  padding:14px 22px 14px 18px;border-radius:99px;
  background:var(--cx-plum);color:#FCF8F3;border:1px solid var(--cx-honey);
  font:500 .98rem/1 'Outfit','Avenir Next','Segoe UI',sans-serif;letter-spacing:.01em;
  box-shadow:0 10px 26px -8px rgba(42,31,26,.5);
  transition:background .2s ease,opacity .2s ease,transform .2s ease;
}
.cx-launch:hover{background:var(--cx-plum-dk)}
.cx-launch:focus-visible,.cx__x:focus-visible,.cx__send:focus-visible{outline:2px solid var(--cx-gold);outline-offset:3px}
.cx-launch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.cx-launch.is-hidden{opacity:0;pointer-events:none;transform:translateY(8px)}

/* window */
.cx{
  position:fixed;right:24px;bottom:24px;z-index:1500;
  width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 48px));
  display:flex;flex-direction:column;overflow:hidden;
  border-radius:26px;border:1px solid var(--cx-hair);color:var(--cx-brown);
  background:linear-gradient(165deg,var(--cx-parch) 0%,var(--cx-linen) 70%,#F1E8DB 100%);
  box-shadow:0 50px 90px -28px rgba(42,31,26,.55),0 16px 36px -16px rgba(42,31,26,.35),inset 0 1px 0 #fff;
  opacity:0;transform:translateY(18px) scale(.98);transform-origin:100% 100%;
  transition:opacity .25s ease,transform .3s cubic-bezier(.22,.8,.28,1);
}
.cx[hidden]{display:none}
.cx.is-open{opacity:1;transform:none}

.cx__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:18px 14px 12px 22px;border-bottom:1px solid var(--cx-hair);
}
.cx__title{margin:0;font:600 1.3rem/1.15 'Playfair Display',Georgia,serif;color:var(--cx-brown)}
.cx__sub{margin:4px 0 0;font:italic 500 .95rem/1.3 'Playfair Display',Georgia,serif;color:#C76A4A}
.cx__x{
  flex:none;width:38px;height:38px;border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:var(--cx-text);background:transparent;transition:background .2s ease,color .2s ease;
}
.cx__x:hover{background:rgba(201,162,91,.18);color:var(--cx-brown)}
.cx__x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.cx__note{
  margin:0;padding:6px 22px;font-size:.78rem;letter-spacing:.04em;text-align:center;
  color:var(--cx-text);background:rgba(201,162,91,.14);border-bottom:1px solid var(--cx-hair);
}

.cx__log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 6px;display:flex;flex-direction:column;gap:10px}
.cx__msg{max-width:88%;padding:11px 15px;border-radius:20px;font-size:.96rem;line-height:1.5;animation:cx-in .28s ease both}
.cx__msg p{margin:0}.cx__msg p+p{margin-top:7px}
.cx__msg--bot{align-self:flex-start;background:#fff;border:1px solid var(--cx-hair);border-bottom-left-radius:7px;color:var(--cx-brown);box-shadow:var(--cx-raised)}
.cx__msg--me{align-self:flex-end;background:var(--cx-plum);color:#FCF8F3;border-bottom-right-radius:7px}
@keyframes cx-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.cx__typing{display:inline-flex;gap:5px;padding:14px 16px}
.cx__typing i{width:7px;height:7px;border-radius:50%;background:var(--cx-honey);animation:cx-dot 1s ease-in-out infinite}
.cx__typing i:nth-child(2){animation-delay:.15s}.cx__typing i:nth-child(3){animation-delay:.3s}
@keyframes cx-dot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}

.cx__acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.cx__act{
  display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:99px;text-decoration:none;
  font:500 .88rem/1.1 'Outfit','Avenir Next','Segoe UI',sans-serif;color:var(--cx-plum);
  background:var(--cx-parch);border:1px solid var(--cx-honey);transition:background .2s ease,color .2s ease;
}
.cx__act:hover{background:var(--cx-sand)}
.cx__act--go{background:var(--cx-plum);color:#FCF8F3;border-color:var(--cx-plum)}
.cx__act--go:hover{background:var(--cx-plum-dk)}
.cx__act svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.cx__chips{display:flex;flex-wrap:wrap;gap:8px;padding:6px 16px 10px;min-height:8px}
.cx__chips button{
  cursor:pointer;padding:8px 14px;border-radius:99px;font:500 .85rem/1.1 'Outfit','Avenir Next','Segoe UI',sans-serif;
  color:var(--cx-text);background:var(--cx-parch);border:1px solid var(--cx-hair);transition:background .2s ease,color .2s ease;
}
.cx__chips button:hover{background:var(--cx-sand);color:var(--cx-brown)}

.cx__form{display:flex;gap:8px;padding:10px 14px 14px;border-top:1px solid var(--cx-hair)}
.cx__in{
  flex:1;min-width:0;padding:12px 16px;border-radius:99px;border:1px solid var(--cx-hair);background:#fff;
  font:400 16px/1.2 'Outfit','Avenir Next','Segoe UI',sans-serif;color:var(--cx-brown);
  box-shadow:inset 2px 2px 6px rgba(148,124,100,.18);
}
.cx__in::placeholder{color:#8F8279}
.cx__in:focus{outline:2px solid var(--cx-gold);outline-offset:1px}
.cx__send{
  flex:none;width:46px;height:46px;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  background:var(--cx-plum);color:#FCF8F3;transition:background .2s ease;
}
.cx__send:hover{background:var(--cx-plum-dk)}
.cx__send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cx__foot{margin:0;padding:2px 18px 14px;text-align:center;font-size:.8rem;color:var(--cx-text)}
.cx__foot a{white-space:nowrap;color:var(--cx-plum);text-decoration:underline;text-underline-offset:2px}

/* phones: sit above the bottom booking bar; chat fills most of the screen */
@media (max-width:760px){
  .cx-launch{right:14px;bottom:5.9rem;padding:13px 18px 13px 15px}
  .cx{right:8px;left:8px;bottom:8px;width:auto;height:min(82vh,640px);border-radius:22px}
  .cx__msg{max-width:92%}
}
@media (prefers-reduced-motion:reduce){
  .cx,.cx-launch,.cx__msg{transition:none;animation:none}
  .cx__typing i{animation:none;opacity:.7}
}
