#flx-chat-root{
  --flx-blue:#157fc7;
  --flx-navy:#0b2f4d;
  --flx-orange:#f08a24;
  --flx-text:#18212b;
  --flx-muted:#667583;
  --flx-soft:#f4f7f9;
  --flx-bottom:24px;
  position:fixed;
  bottom:calc(var(--flx-bottom) + env(safe-area-inset-bottom,0px));
  z-index:999990;
  color:var(--flx-text);
  font:14px/1.55 "Rubik",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:left;
  letter-spacing:normal
}
#flx-chat-root.flx-right{right:24px}
#flx-chat-root.flx-left{left:24px}
#flx-chat-root *{box-sizing:border-box}
#flx-chat-root [hidden]{display:none!important}
#flx-chat-root button,#flx-chat-root input,#flx-chat-root textarea{font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none;margin:0}
#flx-chat-root button,#flx-chat-root a{touch-action:manipulation}
#flx-chat-root button{cursor:pointer;min-height:40px}
#flx-chat-root button:disabled{cursor:wait;opacity:.6}
#flx-chat-root button:focus-visible,#flx-chat-root a:focus-visible,#flx-chat-root input:focus-visible,#flx-chat-root textarea:focus-visible{outline:3px solid var(--flx-orange);outline-offset:3px}

#flx-chat-root .flx-launch{
  position:relative;
  isolation:isolate;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:hidden;
  border:0;
  border-radius:999px;
  padding:15px 22px;
  min-height:56px;
  background:var(--flx-blue);
  color:#fff;
  box-shadow:0 12px 34px rgba(11,47,77,.24),0 0 0 1px rgba(255,255,255,.16) inset;
  font-family:"Exo 2","Rubik",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  font-weight:700;
  transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease
}
#flx-chat-root .flx-launch:before{content:"";position:absolute;z-index:-1;width:72px;height:72px;right:-34px;top:-38px;border-radius:50%;background:var(--flx-orange);opacity:.95;transition:transform .4s cubic-bezier(.22,1,.36,1)}
#flx-chat-root .flx-launch:after{content:"";width:7px;height:7px;border-radius:50%;background:var(--flx-orange);box-shadow:0 0 0 4px rgba(240,138,36,.18)}
#flx-chat-root .flx-launch:hover{transform:translateY(-2px);background:#1174b8;box-shadow:0 16px 40px rgba(11,47,77,.3),0 0 0 1px rgba(255,255,255,.2) inset}
#flx-chat-root .flx-launch:hover:before{transform:scale(1.16)}
#flx-chat-root .flx-launch:active{transform:translateY(0) scale(.98)}
#flx-chat-root .flx-launch svg{transition:transform .3s cubic-bezier(.22,1,.36,1)}
#flx-chat-root.flx-open .flx-launch svg{transform:rotate(-8deg) scale(.92)}
#flx-chat-root.flx-left .flx-launch{margin-left:0;margin-right:auto}

#flx-chat-root .flx-panel{
  display:flex;
  flex-direction:column;
  width:400px;
  height:min(680px,calc(100dvh - var(--flx-bottom) - 100px));
  height:min(680px,calc(100vh - var(--flx-bottom) - 100px));
  max-height:calc(100dvh - var(--flx-bottom) - 100px);
  min-height:160px;
  overflow:hidden;
  margin-bottom:14px;
  border:1px solid rgba(11,47,77,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(7,31,51,.22),0 4px 18px rgba(21,127,199,.1);
  opacity:0;
  transform:translate3d(0,18px,0) scale(.97);
  transform-origin:bottom right;
  will-change:transform,opacity
}
#flx-chat-root.flx-left .flx-panel{transform-origin:bottom left}
#flx-chat-root .flx-panel.flx-is-open{animation:flx-panel-in .34s cubic-bezier(.22,1,.36,1) forwards}
#flx-chat-root .flx-panel.flx-is-closing{animation:flx-panel-out .24s cubic-bezier(.4,0,1,1) forwards;pointer-events:none}
@keyframes flx-panel-in{from{opacity:0;transform:translate3d(0,20px,0) scale(.96)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes flx-panel-out{from{opacity:1;transform:translate3d(0,0,0) scale(1)}to{opacity:0;transform:translate3d(0,14px,0) scale(.975)}}

#flx-chat-root .flx-header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:18px;background:linear-gradient(135deg,var(--flx-navy) 0%,#124f7c 100%);color:#fff;flex-shrink:0}
#flx-chat-root .flx-header:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--flx-orange) 0 28%,var(--flx-blue) 28% 100%)}
#flx-chat-root .flx-brand{display:flex;align-items:center;gap:12px;min-width:0}
#flx-chat-root .flx-brand>div{min-width:0}
#flx-chat-root .flx-mark{display:grid;place-items:center;width:62px;height:46px;padding:5px 7px;border-radius:10px;background:#fff;box-shadow:0 5px 16px rgba(3,25,42,.25);flex-shrink:0;overflow:hidden;color:var(--flx-blue);font-weight:800}
#flx-chat-root .flx-mark img{display:block;width:100%;height:100%;object-fit:contain}
#flx-chat-root h2{font:700 16px/1.3 "Rubik",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#fff!important;margin:0 0 3px!important;letter-spacing:.02em;overflow-wrap:anywhere}
#flx-chat-root .flx-header p{color:#dbe7ef;font-size:11px;line-height:1.4;margin:0;overflow-wrap:anywhere}
#flx-chat-root .flx-icon-button{display:grid;place-items:center;border:0;background:transparent;color:#fff;font-size:27px;line-height:1;padding:0;width:40px;flex-shrink:0;border-radius:50%;transition:background-color .18s ease,transform .18s ease}
#flx-chat-root .flx-icon-button:hover{background:rgba(255,255,255,.12);transform:rotate(3deg)}

#flx-chat-root .flx-toolbar{display:flex;align-items:center;justify-content:space-between;padding:7px 18px;border-bottom:1px solid #dce4eb;background:var(--flx-soft);flex-shrink:0}
#flx-chat-root .flx-guide-label{font-size:9px;letter-spacing:1.5px;font-weight:800;color:var(--flx-orange)}
#flx-chat-root .flx-reset{padding:4px 0;min-height:32px;border:0;background:transparent;font-size:11px;color:var(--flx-muted);transition:color .18s ease}
#flx-chat-root .flx-reset:hover{color:var(--flx-blue)}
#flx-chat-root .flx-log{position:relative;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px;min-height:0;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);scrollbar-width:thin;scrollbar-color:#b9cad6 transparent;scroll-behavior:smooth}
#flx-chat-root .flx-bubble{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 16px;margin-bottom:12px;max-width:92%;font-size:13px;line-height:1.65;animation:flx-message-in .32s cubic-bezier(.22,1,.36,1) both}
#flx-chat-root .flx-bot{background:#fff;border:1px solid #dce4eb;border-radius:4px 16px 16px 16px;box-shadow:0 5px 16px rgba(11,47,77,.06);transform-origin:top left}
#flx-chat-root .flx-user{background:var(--flx-blue);color:#fff;border-radius:16px 4px 16px 16px;margin-left:auto;width:fit-content;padding:10px 14px;box-shadow:0 6px 16px rgba(21,127,199,.18);transform-origin:top right}
@keyframes flx-message-in{from{opacity:0;transform:translate3d(0,8px,0) scale(.985)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}

#flx-chat-root .flx-options{display:grid;gap:8px;margin:4px 0 18px}
#flx-chat-root .flx-options>*{animation:flx-choice-in .3s cubic-bezier(.22,1,.36,1) both}
#flx-chat-root .flx-options>*:nth-child(2){animation-delay:.04s}
#flx-chat-root .flx-options>*:nth-child(3){animation-delay:.08s}
#flx-chat-root .flx-options>*:nth-child(4){animation-delay:.12s}
#flx-chat-root .flx-options>*:nth-child(n+5){animation-delay:.16s}
@keyframes flx-choice-in{from{opacity:0;transform:translate3d(0,6px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
#flx-chat-root .flx-option{position:relative;display:block;min-height:43px;padding:11px 38px 11px 14px;border:1px solid #c9d8e3;border-radius:10px;color:var(--flx-navy);background:#fff;text-align:left;text-decoration:none;font-size:12px;font-weight:700;line-height:1.5;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
#flx-chat-root .flx-option:after{content:"→";position:absolute;right:14px;top:50%;color:var(--flx-orange);font-size:16px;transform:translateY(-52%);transition:transform .18s ease}
#flx-chat-root .flx-option:hover{background:#f3f8fc;border-color:var(--flx-blue);color:#0d669f;transform:translateX(2px);box-shadow:0 4px 12px rgba(21,127,199,.08)}
#flx-chat-root .flx-option:hover:after{transform:translate(3px,-52%)}

#flx-chat-root .flx-compose{padding:12px 16px;display:flex;align-items:center;gap:8px;border-top:1px solid #dce4eb;background:#fff;flex-shrink:0;margin:0}
#flx-chat-root .flx-compose input{min-width:0;flex:1;border:0;background:transparent;color:var(--flx-text);outline-offset:0;padding:8px 2px;height:40px;font-size:14px}
#flx-chat-root .flx-compose input::placeholder{color:#8494a0}
#flx-chat-root .flx-compose button{display:grid;place-items:center;border:0;border-radius:11px;background:var(--flx-orange);color:#fff;width:40px;font-size:21px;padding:0;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
#flx-chat-root .flx-compose button:hover{transform:translateY(-1px);background:#de7818;box-shadow:0 6px 14px rgba(240,138,36,.24)}
#flx-chat-root .flx-foot{text-align:center;font-size:9px;color:#7a8994;background:#fff;padding:0 10px 12px;flex-shrink:0}
#flx-chat-root .flx-foot a{color:inherit;text-decoration:underline}

#flx-chat-root .flx-lead-form{background:#fff;border:1px solid #dce4eb;border-top:3px solid var(--flx-orange);border-radius:12px;padding:16px;margin:0 0 16px;position:relative;box-shadow:0 6px 18px rgba(11,47,77,.06);animation:flx-message-in .32s cubic-bezier(.22,1,.36,1) both}
#flx-chat-root .flx-form-note{font-size:11px;color:var(--flx-muted);margin:0 0 12px}
#flx-chat-root .flx-field{display:block;margin:0 0 12px;font-size:12px;font-weight:700;color:var(--flx-navy)}
#flx-chat-root .flx-field>span{display:block;margin-bottom:5px}
#flx-chat-root .flx-field input,#flx-chat-root .flx-field textarea{width:100%;max-width:100%;background:#fbfcfd;border:1px solid #cbd8e1;border-radius:8px;padding:10px;color:var(--flx-text);min-height:40px;resize:vertical;font-size:14px;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
#flx-chat-root .flx-field input:focus,#flx-chat-root .flx-field textarea:focus{border-color:var(--flx-blue);background:#fff;box-shadow:0 0 0 3px rgba(21,127,199,.1)}
#flx-chat-root .flx-field input[type=file]{font-size:11px;padding:8px;overflow:hidden}
#flx-chat-root .flx-field small{display:block;font-size:10px;color:var(--flx-muted);font-weight:400;margin-top:5px}
#flx-chat-root .flx-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px;font-weight:400;margin:15px 0;color:#4f606c}
#flx-chat-root .flx-consent input{width:16px;height:16px;min-width:16px;appearance:auto;margin:3px 0 0;accent-color:var(--flx-blue)}
#flx-chat-root .flx-submit{width:100%;background:var(--flx-blue);color:#fff;border:0;border-radius:9px;padding:12px;font-size:12px;font-weight:700;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
#flx-chat-root .flx-submit:hover{background:#1174b8;transform:translateY(-1px);box-shadow:0 7px 16px rgba(21,127,199,.2)}
#flx-chat-root .flx-form-status{font-size:12px;color:#9b5514;margin:10px 0 0;overflow-wrap:anywhere}
#flx-chat-root .flx-form-status:empty{display:none}
#flx-chat-root .flx-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}

@media(max-width:480px){
  #flx-chat-root.flx-left{left:12px}
  #flx-chat-root.flx-right{right:12px}
  #flx-chat-root .flx-panel{width:calc(100vw - 24px);max-height:calc(100dvh - var(--flx-bottom) - 86px);height:660px;border-radius:16px;margin-bottom:10px}
  #flx-chat-root .flx-launch{min-height:50px;padding:12px 17px}
  #flx-chat-root .flx-header{padding:14px}
  #flx-chat-root .flx-mark{width:56px;height:42px}
  #flx-chat-root .flx-field input,#flx-chat-root .flx-field textarea,#flx-chat-root .flx-compose input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  #flx-chat-root *,#flx-chat-root *:before,#flx-chat-root *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  #flx-chat-root .flx-panel.flx-is-open{opacity:1;transform:none}
  #flx-chat-root .flx-panel.flx-is-closing{opacity:0;transform:none}
}
