@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

#hlg-chatbot-wrapper{box-sizing:border-box;margin:0;padding:0}
#hlg-chatbot-wrapper *{box-sizing:border-box}

#hlg-chatbot-wrapper{
  position:fixed;
  right:24px;
  bottom:66px;
  z-index:2147483000;
  max-width:100vw;
  font-family:"Source Sans 3",sans-serif;
  color:#0d1b2a;
}

@keyframes hlg-panel-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@keyframes hlg-fade-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes hlg-loading-dot{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
@keyframes hlg-owner-blink{0%,84%,100%{opacity:1;transform:scale(1)}88%{opacity:.25;transform:scale(.72)}92%{opacity:1;transform:scale(1.18)}}
@keyframes hlg-owner-pulse{0%,72%,100%{transform:translateY(0) scale(1);box-shadow:0 12px 26px rgba(13,27,42,.24)}76%{transform:translateY(-3px) scale(1.02);box-shadow:0 15px 30px rgba(13,27,42,.30)}80%{transform:translateY(0) scale(1)}}

#hlg-chatbot-launcher{
  position:relative;
  width:auto;
  min-width:148px;
  height:48px;
  border:0;
  border-radius:999px;
  background:#0d1b2a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:7px 15px;
  overflow:visible;
  box-shadow:0 12px 26px rgba(13,27,42,.24);
  cursor:pointer;
  animation:hlg-owner-pulse 5.8s ease-in-out infinite;
}
#hlg-chatbot-launcher::after{
  content:"";
  position:absolute;
  right:7px;
  top:5px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#d4af37;
  animation:hlg-owner-blink 4.6s ease-in-out infinite;
}
.hlg-launcher-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#d4af37;
  color:#fff;
  font-weight:700;
  letter-spacing:1px;
}
.hlg-launcher-copy{display:flex;flex-direction:column;text-align:left;line-height:1.05}
.hlg-launcher-copy strong{font-size:14px;white-space:nowrap}
.hlg-launcher-copy small{display:none}
.hlg-launcher-mobile-label{display:none}

#hlg-chatbot-container{
  display:none;
  position:fixed;
  right:24px;
  bottom:72px;
  width:360px;
  max-width:calc(100vw - 40px);
  height:min(760px,calc(100dvh - 120px));
  min-height:min(540px,calc(100dvh - 120px));
  overflow:hidden;
  flex-direction:column;
  background:#fff;
  border:1px solid #e7e9ee;
  border-radius:24px;
  box-shadow:0 28px 78px rgba(13,27,42,.28);
  animation:hlg-panel-in .22s ease;
}
#hlg-chatbot-container.active{display:flex}
#hlg-chatbot-container.minimized{display:none}

.hlg-header{
  min-height:82px;
  flex:0 0 auto;
  background:#0d1b2a;
  border-bottom:4px solid #d4af37;
  color:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:14px;
}
.hlg-header-brand{display:flex;align-items:center;flex:1 1 auto;min-width:0;padding-top:0}
.hlg-brand-copy{display:flex;flex-direction:column;min-width:0}
.hlg-brand-name{
  font-family:"Libre Baskerville",serif;
  color:#d4af37;
  font-size:12px;
  line-height:1.25;
  letter-spacing:.015em;
  font-weight:700;
}
.hlg-brand-name span{display:block;white-space:normal}
.hlg-brand-sub{margin-top:4px;font-size:8px;letter-spacing:.26em;color:#f0d681}
.hlg-header-actions{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:auto;
  grid-template-areas:"close" "lang";
  justify-items:end;
  align-items:center;
  gap:3px;
  margin-left:auto;
}
.hlg-close-btn{
  grid-area:close;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.hlg-close-btn:hover{background:rgba(255,255,255,.08)}
.hlg-language-toggle{
  grid-area:lang;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:4px;
  color:rgba(255,255,255,.72);
  font-size:11px;
}
.hlg-language-toggle button{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.72);
  font:700 11px "Source Sans 3",sans-serif;
  cursor:pointer;
}
.hlg-language-toggle button.active{color:#fff;text-decoration:underline;text-decoration-color:#d4af37;text-underline-offset:3px}

#hlg-messages{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:20px 16px;
  background:#f5f6f8;
  scrollbar-width:thin;
  scrollbar-color:#b9c0ca transparent;
}
.hlg-message{display:flex;margin-bottom:20px;animation:hlg-fade-in .18s ease}
.hlg-message.bot{justify-content:flex-start}
.hlg-message.user{justify-content:flex-end}
.hlg-message-content{
  max-width:90%;
  padding:15px 16px;
  border-radius:17px;
  font-size:15px;
  line-height:1.52;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.hlg-message.bot .hlg-message-content{background:#fff;border:1px solid #e7e9ee;box-shadow:0 6px 16px rgba(13,27,42,.06);color:#182231}
.hlg-message.user .hlg-message-content{min-width:0;max-width:80%;padding:12px 15px;line-height:1.42;border-radius:15px;background:#0d1b2a;color:#fff;box-shadow:0 7px 18px rgba(13,27,42,.12)}

.hlg-quick-replies{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.hlg-quick-replies button{
  flex:0 0 auto;
  min-width:118px;
  min-height:42px;
  border:1px solid #d4af37;
  border-radius:999px;
  padding:11px 18px;
  background:#fff;
  color:#0d1b2a;
  font:600 14.5px/1.25 "Source Sans 3",sans-serif;
  white-space:nowrap;
  cursor:pointer;
}
.hlg-quick-replies button:first-child{background:#d4af37;color:#fff}
.hlg-quick-replies button:hover{filter:brightness(.98)}

.hlg-loading{display:flex;align-items:center;gap:5px;padding:14px 16px}
.hlg-loading span{width:8px;height:8px;border-radius:50%;background:#0d1b2a;animation:hlg-loading-dot 1.3s infinite}
.hlg-loading span:nth-child(2){animation-delay:.16s}
.hlg-loading span:nth-child(3){animation-delay:.32s}
.hlg-loading .hlg-typing-label{width:auto;height:auto;border-radius:0;background:transparent;animation:none;font-size:12px;font-weight:700;color:#667085;margin-right:3px}

.hlg-input-wrap{flex:0 0 auto;padding:14px;background:#fff;border-top:1px solid #eceef1}
.hlg-input-area{display:flex;align-items:flex-end;gap:9px;min-height:56px;border:1.5px solid #d4af37;border-radius:14px;padding:8px 9px 8px 12px;background:#fff}
.hlg-secure-note{text-align:center;color:#79818c;font-size:10px;margin-top:8px}
#hlg-input{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  min-height:44px;
  max-height:132px;
  border:0;
  outline:0;
  resize:none;
  overflow-y:hidden;
  padding:11px 4px;
  color:#182231;
  background:transparent;
  font:15px/22px "Source Sans 3",sans-serif;
}
#hlg-input::placeholder{color:#8b9199}
#hlg-input.hlg-scrollable{overflow-y:auto}
#hlg-input:disabled{color:#a2a8b0}
.hlg-send-btn{width:36px;height:36px;flex:0 0 auto;border:0;border-radius:50%;display:grid;place-items:center;background:#0d1b2a;color:#d4af37;cursor:pointer;margin-bottom:2px}
.hlg-send-btn svg{width:19px;height:19px}
.hlg-send-btn:hover{transform:translateY(-1px)}
.hlg-send-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}

@media(max-width:760px) and (hover:none) and (pointer:coarse){
  #hlg-chatbot-wrapper{
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom,0px));
    max-width:calc(100vw - 24px);
    z-index:2147483640;
  }
  #hlg-chatbot-launcher{min-width:132px;height:44px;padding:6px 12px;gap:7px}
  #hlg-chatbot-launcher .hlg-launcher-icon{width:25px;height:25px;flex-basis:25px}
  #hlg-chatbot-launcher .hlg-launcher-copy{display:flex}
  #hlg-chatbot-launcher .hlg-launcher-copy strong{font-size:13px}
  #hlg-chatbot-container{
    right:10px;
    left:auto;
    bottom:calc(62px + env(safe-area-inset-bottom,0px));
    width:min(82vw,380px);
    max-width:calc(100vw - 20px);
    min-width:0;
    height:min(540px,calc(100dvh - 86px));
    max-height:calc(100dvh - 86px);
    min-height:0;
    border-radius:18px;
    overscroll-behavior:contain;
  }
  .hlg-header{min-height:76px;padding:12px 11px 11px;gap:7px}
  .hlg-brand-name{font-size:9.5px;line-height:1.22;letter-spacing:0}
  .hlg-brand-sub{font-size:6px;letter-spacing:.12em;margin-top:3px}
  .hlg-header-actions{gap:1px}
  .hlg-close-btn{width:26px;height:26px;font-size:17px}
  .hlg-language-toggle,.hlg-language-toggle button{font-size:10px}
  #hlg-messages{padding:16px 14px}
  .hlg-message-content{max-width:94%;font-size:13.5px;padding:14px 15px}
  .hlg-message.user .hlg-message-content{max-width:84%;padding:11px 13px}
  .hlg-quick-replies button{min-width:112px;min-height:42px;padding:10px 16px;font-size:14px}
  .hlg-input-wrap{padding:12px}
  .hlg-input-area{min-height:54px;padding:7px 8px 7px 11px;gap:8px}
  #hlg-input{min-height:42px;padding:10px 4px;font-size:16px;line-height:22px}
  .hlg-send-btn{width:34px;height:34px;margin-bottom:3px}
  .hlg-send-btn svg{width:17px;height:17px}
}

@supports not (height:100dvh){
  @media(max-width:760px) and (hover:none) and (pointer:coarse){
    #hlg-chatbot-container{height:min(540px,calc(100vh - 86px));max-height:calc(100vh - 86px)}
  }
}

@media(prefers-reduced-motion:reduce){
  #hlg-chatbot-launcher,
  #hlg-chatbot-launcher::after{animation:none}
}
