.acs-floating-widget,
.acs-floating-widget *{
  box-sizing:border-box;
}
.acs-floating-widget{
  --fb-bg:#0ea5e9;
  --fb-fg:#fff;
  --acs-floating-bottom:24px;
  --acs-floating-side:24px;
  font-family:inherit;
  pointer-events:none;
}
.acs-floating-widget .acs-fb{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  min-height:60px !important;
  max-width:60px !important;
  max-height:60px !important;
  border-radius:9999px !important;
  border:0;
  cursor:pointer;
  background:var(--fb-bg);
  color:var(--fb-fg);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 38px rgba(15,23,42,.22), 0 4px 12px rgba(15,23,42,.12);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  padding:0 !important;
  outline:none;
  position:fixed;
  right:var(--acs-floating-side);
  bottom:var(--acs-floating-bottom);
  z-index:999;
  pointer-events:auto;
}
.acs-floating-widget[data-pos="left"] .acs-fb{
  right:auto;
  left:var(--acs-floating-side);
}
.acs-fb:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 44px rgba(15,23,42,.26), 0 6px 16px rgba(15,23,42,.14);
}
.acs-fb:active{
  transform:translateY(0);
}
.acs-fb:focus-visible{
  box-shadow:0 0 0 4px rgba(59,130,246,.22), 0 18px 38px rgba(15,23,42,.22);
}
.acs-fb-svg{
  width:31px;
  height:31px;
  display:block;
  color:var(--fb-fg);
}
.acs-fb-close-svg{
  width:25px;
  height:25px;
  display:block;
  color:var(--fb-fg);
  flex:0 0 auto;
}
.acs-fb-icon,
.acs-fb-close-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:opacity .16s ease, transform .16s ease;
}
.acs-fb-close-icon{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  transform:scale(.7) rotate(-45deg);
  color:var(--fb-fg);
}
.acs-floating-widget.acs-floating-open .acs-fb-icon{
  opacity:0;
  transform:scale(.7) rotate(45deg);
}
.acs-floating-widget.acs-floating-open .acs-fb-close-icon{
  opacity:1;
  transform:scale(1) rotate(0deg);
}
.acs-floating-panel{
  position:fixed;
  right:var(--acs-floating-side);
  bottom:92px;
  z-index:999999;
  pointer-events:auto;
  width:min(390px, calc(100vw - 32px));
  max-height:min(720px, calc(100vh - 132px));
  display:none;
  opacity:0;
  transform:translateY(12px) scale(.985);
  transform-origin:bottom right;
  transition:opacity .2s ease, transform .2s ease;
}
.acs-floating-widget[data-pos="left"] .acs-floating-panel{
  right:auto;
  left:var(--acs-floating-side);
  transform-origin:bottom left;
}
.acs-floating-widget.acs-floating-open .acs-floating-panel{
  display:block;
  opacity:1;
  transform:translateY(0) scale(1);
}
.acs-floating-panel #ai-chat-support{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
.acs-floating-panel #ai-chat-support .acs-card{
  width:100%;
  max-width:none;
  margin:0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 24px 72px rgba(15,23,42,.26), 0 6px 20px rgba(15,23,42,.12);
}
.acs-floating-panel #ai-chat-support .acs-header{
  padding:19px 22px 18px 22px;
}
.acs-floating-panel #ai-chat-support .acs-body{
  padding:18px 16px 16px;
}
.acs-floating-panel #ai-chat-support .acs-history{
  height:430px;
  max-height:calc(100vh - 290px);
  min-height:260px;
}
.acs-floating-panel #ai-chat-support .acs-grid{
  grid-template-columns:1fr;
}
.acs-floating-panel #ai-chat-support .acs-chatbar{
  margin-bottom:0 !important;
}
.acs-floating-widget.acs-floating-open .acs-fb{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
html.acs-floating-lock,
body.acs-floating-lock{
  overflow:hidden !important;
}

@media (min-width:783px){
  .acs-floating-panel{
    bottom:120px;
    height:auto;
    max-height:min(720px, calc(100dvh - 184px));
  }
  .acs-floating-panel #ai-chat-support .acs-card{
    max-height:min(720px, calc(100dvh - 184px));
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .acs-floating-panel #ai-chat-support .acs-body{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  .acs-floating-panel #ai-chat-support .acs-step.acs-chat{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  .acs-floating-panel #ai-chat-support .acs-history{
    flex:1 1 auto;
    height:auto;
    max-height:none;
    min-height:180px;
  }
}
@media (min-width:783px) and (max-height:680px){
  .acs-floating-panel{
    bottom:112px;
    max-height:calc(100dvh - 166px);
  }
  .acs-floating-panel #ai-chat-support .acs-card{
    max-height:calc(100dvh - 166px);
  }
  .acs-floating-panel #ai-chat-support .acs-header{
    padding:15px 18px 14px 18px;
  }
  .acs-floating-panel #ai-chat-support .acs-body{
    padding:14px 14px 14px;
  }
  .acs-floating-panel #ai-chat-support .acs-history{
    min-height:150px;
  }
}
@media (max-width:782px){
  .acs-floating-widget,
  .acs-floating-widget[data-pos="left"]{
    --acs-floating-side:0;
    --acs-floating-bottom:0;
  }
  .acs-floating-widget .acs-fb{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
    max-width:58px !important;
    max-height:58px !important;
    border-radius:9999px !important;
    padding:0 !important;
    right:18px;
    bottom:18px;
    z-index:999;
  }
  .acs-floating-widget[data-pos="left"] .acs-fb{
    left:18px;
    right:auto;
  }
  .acs-floating-widget.acs-floating-open .acs-fb,
  .acs-floating-widget[data-pos="left"].acs-floating-open .acs-fb{
    display:none;
  }
  .acs-floating-panel,
  .acs-floating-widget[data-pos="left"] .acs-floating-panel{
    position:fixed;
    inset:0;
    width:100vw;
    height:100dvh;
    max-width:none;
    max-height:none;
    transform:translateY(10px);
    transform-origin:center bottom;
    background:var(--acs-card,#ffffff);
  }
  .acs-floating-widget.acs-floating-open .acs-floating-panel{
    transform:translateY(0);
  }
  .acs-floating-panel #ai-chat-support{
    width:100% !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    background:var(--acs-card,#ffffff) !important;
  }
  .acs-floating-panel #ai-chat-support .acs-card{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    margin:0 !important;
    display:flex !important;
    flex-direction:column !important;
    min-height:0 !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
    box-shadow:none !important;
  }
  .acs-floating-panel #ai-chat-support .acs-header{
    position:relative !important;
    padding:18px 58px 17px 18px !important;
    flex:0 0 auto !important;
    border-radius:0 !important;
  }
  .acs-floating-panel #ai-chat-support .acs-home-icon{
    display:block !important;
    position:absolute !important;
    right:18px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:30px !important;
    height:30px !important;
    cursor:pointer !important;
    fill:var(--acs-icon) !important;
  }
  .acs-floating-panel #ai-chat-support .acs-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    padding:16px !important;
  }
  .acs-floating-panel #ai-chat-support .acs-step.acs-chat{
    flex:1 1 auto !important;
    min-height:0 !important;
  }
  .acs-floating-panel #ai-chat-support.acs-chat-active .acs-step.acs-chat{
    display:flex !important;
    flex-direction:column !important;
  }
  .acs-floating-panel #ai-chat-support .acs-history{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .acs-floating-panel #ai-chat-support .acs-chatbar{
    flex:0 0 auto !important;
  }
}
