.hnla-chat{max-width:760px;border:1px solid #d7dce4;border-radius:14px;overflow:hidden;background:#fff;color:#102a43;font:inherit;box-shadow:0 8px 26px rgba(16,42,67,.07)}
.hnla-head{display:flex;flex-direction:column;gap:4px;background:#102a43;color:white;padding:17px 20px}
.hnla-head strong{font-size:18px}.hnla-head small{font-size:13px;opacity:.9}
.hnla-messages{height:360px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:18px;background:#f7f9fc}
.hnla-message{max-width:92%;padding:11px 14px;border-radius:12px;margin:0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}
.hnla-bot{background:#fff;border:1px solid #e1e7ef;align-self:flex-start}.hnla-user{background:#102a43;color:white;align-self:flex-end}
.hnla-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e1e7ef}.hnla-form input{flex:1;min-width:0;padding:11px;border:1px solid #aab7c7;border-radius:8px;font-size:15px}.hnla-form button{border:0;border-radius:8px;background:#a67527;color:#fff;padding:0 19px;cursor:pointer}.hnla-form button:disabled{opacity:.6;cursor:wait}
.hnla-disclaimer{padding:0 14px 13px;margin:0;font-size:12px;color:#5a6878}
@media(max-width:520px){.hnla-chat{border-radius:8px}.hnla-messages{height:330px}.hnla-head{padding:14px}.hnla-form button{padding:0 12px}}

/* HNLA floating launcher, scoped to avoid Astra/Elementor conflicts */
.hnla-float{position:fixed;right:22px;bottom:22px;z-index:99990;font-family:inherit;display:flex;align-items:flex-end;flex-direction:column;gap:10px}
.hnla-float-welcome{background:#fff;color:#102a43;border:1px solid #d9e0e9;box-shadow:0 8px 24px #102a4326;border-radius:18px;padding:12px 16px;max-width:265px;display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.4}
.hnla-float-welcome strong{color:#a67527;font-size:18px}
.hnla-float-toggle{display:flex;align-items:center;gap:11px;background:#073d93!important;color:#fff!important;border:2px solid #d6a849!important;border-radius:55px!important;padding:6px 16px 6px 6px!important;box-shadow:0 6px 22px #102a4366;cursor:pointer;font-size:16px!important;font-weight:700;line-height:1.3;text-align:left;min-height:72px}
.hnla-float-toggle img{height:58px;width:58px;border-radius:50%;object-fit:cover;border:2px solid #e5b64f;background:#fff}
.hnla-float-arrow{font-size:28px;line-height:1}
.hnla-float-toggle:focus-visible,.hnla-float-close:focus-visible{outline:3px solid #e6b855;outline-offset:3px}
.hnla-float-panel[hidden]{display:none!important}
.hnla-float-panel{position:relative;width:min(430px,calc(100vw - 32px));max-height:min(670px,calc(100dvh - 110px));box-shadow:0 12px 40px #102a4355;border-radius:16px;background:#fff;overflow:hidden}
.hnla-float-panel .hnla-chat{width:100%;max-width:none;border:0;border-radius:0;box-shadow:none}
.hnla-float-panel .hnla-messages{height:min(360px,calc(100dvh - 300px));min-height:150px}
.hnla-float-close{position:absolute;right:10px;top:9px;z-index:2;background:#fff!important;color:#102a43!important;border:0!important;border-radius:50%;font-size:25px;line-height:1;width:32px;height:32px;cursor:pointer}
.hnla-is-open .hnla-float-welcome{display:none}
@media(max-width:600px){.hnla-float{right:14px;bottom:max(14px,env(safe-area-inset-bottom));gap:8px}.hnla-float-welcome{display:none}.hnla-float-toggle{width:60px;height:60px;min-height:60px;padding:3px!important;border-radius:50%!important;justify-content:center}.hnla-float-toggle img{width:50px;height:50px;border:0}.hnla-float-toggle span{display:none}.hnla-float-panel{width:calc(100vw - 28px);max-height:calc(100dvh - 92px)}.hnla-float-panel .hnla-messages{height:calc(100dvh - 330px);min-height:160px;max-height:440px}}
@media(prefers-reduced-motion:reduce){.hnla-float *{animation:none!important;transition:none!important}}

/* 1.0.7: leave clearance for Astra back-to-top button, both desktop and mobile. */
.hnla-float{bottom:96px!important;right:22px!important}
@media(max-width:600px){.hnla-float{bottom:max(88px,calc(env(safe-area-inset-bottom) + 76px))!important;right:14px!important}}

/* HNLA 1.0.8 — close control: neutralize Astra/Elementor button rules. */
.hnla-float .hnla-float-close,
.hnla-float .hnla-float-close:hover,
.hnla-float .hnla-float-close:focus {
  position:absolute!important;top:12px!important;right:12px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-width:0!important;min-height:0!important;
  width:34px!important;height:34px!important;max-width:34px!important;
  padding:0!important;margin:0!important;line-height:1!important;
  border:1px solid #cbd5e1!important;border-radius:50%!important;
  background:#fff!important;color:#102a43!important;
  font-size:23px!important;font-weight:500!important;
  box-shadow:0 1px 5px #102a4320!important;transform:none!important;
  cursor:pointer;appearance:none;-webkit-appearance:none;
}
.hnla-float .hnla-float-close:hover{background:#edf3f9!important}
/* Move the mobile launcher slightly lower and inward while clearing back-to-top. */
@media(max-width:600px){
  .hnla-float:not(.hnla-is-open){bottom:max(58px,calc(env(safe-area-inset-bottom) + 48px))!important;right:25px!important}
  .hnla-float.hnla-is-open{bottom:max(58px,calc(env(safe-area-inset-bottom) + 48px))!important;right:12px!important}
  .hnla-float .hnla-float-panel{width:calc(100vw - 24px)}
}

/* 1.0.9: golden round close button with precisely centered X. */
.hnla-float .hnla-float-close,
.hnla-float .hnla-float-close:focus,
.hnla-float .hnla-float-close:hover {
  display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;max-width:40px!important;
  top:10px!important;right:12px!important;
  padding:0!important;border:2px solid #e8c474!important;
  border-radius:50%!important;background:#c89a43!important;
  color:#102a43!important;font:600 26px/1 Arial,sans-serif!important;
  text-align:center!important;letter-spacing:0!important;
  box-shadow:0 2px 7px rgba(16,42,67,.18)!important;
}
.hnla-float .hnla-float-close:hover{background:#e0b65f!important}
@media(max-width:600px){
  /* Closed launcher: a little more inward and close to back-to-top without overlap. */
  .hnla-float:not(.hnla-is-open){right:39px!important;bottom:max(52px,calc(env(safe-area-inset-bottom) + 42px))!important}
  /* Open dialog is positioned independently of launcher, avoiding viewport
     displacement when the virtual keyboard appears. */
  .hnla-float.hnla-is-open{right:0!important;bottom:0!important;gap:0!important}
  .hnla-float.hnla-is-open .hnla-float-toggle{display:none!important}
  .hnla-float.hnla-is-open .hnla-float-panel{
    position:fixed!important;inset:0!important;left:0!important;right:0!important;
    top:0!important;bottom:0!important;width:100vw!important;
    max-width:none!important;max-height:none!important;height:100dvh!important;
    border-radius:0!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    z-index:99999!important;
  }
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-chat{
    flex:1 1 auto!important;min-height:0!important;height:100%!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
  }
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-head{
    flex:0 0 auto!important;padding:20px 60px 16px 16px!important;
  }
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-messages{
    flex:1 1 auto!important;min-height:0!important;height:auto!important;
    max-height:none!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-form,
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-disclaimer{flex:0 0 auto!important}
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-disclaimer{
    padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
  }
}

/* 1.0.10: center the gold close button vertically within the navy chat header. */
.hnla-float .hnla-float-panel .hnla-head{min-height:110px!important;box-sizing:border-box!important;justify-content:center!important}
.hnla-float .hnla-float-close,
.hnla-float .hnla-float-close:focus,
.hnla-float .hnla-float-close:hover{top:35px!important;right:12px!important}

/* 1.0.11: mobile close control centered vertically in the navy header.
   Panel contains the close button as a direct child; its header is 110px tall. */
@media (max-width:600px){
  .hnla-float.hnla-is-open .hnla-float-panel .hnla-head{
    height:110px!important;min-height:110px!important;max-height:110px!important;
    padding:16px 64px 16px 16px!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
  }
  .hnla-float.hnla-is-open .hnla-float-panel > .hnla-float-close,
  .hnla-float.hnla-is-open .hnla-float-panel > .hnla-float-close:hover,
  .hnla-float.hnla-is-open .hnla-float-panel > .hnla-float-close:focus{
    top:55px!important;right:12px!important;transform:translateY(-50%)!important;
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
    display:grid!important;place-items:center!important;
    background:#c89a43!important;color:#102a43!important;border:2px solid #e8c474!important;
    border-radius:50%!important;padding:0!important;line-height:1!important;
  }
}
