/* Brightbird assistant. Isolated classes preserve the approved page/card design. */
.bb-chat { --chat-bottom: 22px; position: fixed; right: 22px; bottom: var(--chat-bottom); width: min(376px, calc(100% - 44px)); z-index: 65; font: 400 15px/1.5 var(--text); color: var(--navy); pointer-events: none; }
.bb-chat__panel, .bb-chat__launcher { pointer-events: auto; }
.bb-chat [hidden] { display: none !important; }
.bb-chat button, .bb-chat textarea { font: inherit; }
.bb-chat button { cursor: pointer; }
.bb-chat button:disabled { cursor: default; opacity: .6; }
.bb-chat :is(button, a, textarea):focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
/* One round navy button at every size with the light logo bird, the same colours as the header logo on the
   dark hero and the footer (bird-icon-reversed.svg is the bird from the reversed logo, nothing redrawn). */
.bb-chat__launcher { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 60px; height: 60px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: var(--navy); box-shadow: 0 6px 24px #12264a26; }
.bb-chat__avatar { width: 42px; height: 42px; flex: none; }
.bb-chat__launcher { position: relative; }
.bb-chat__ai { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--navy); border-radius: 50%; background: var(--sun); color: var(--navy); font: 800 10px/1 var(--text); }
.bb-chat__tooltip { display: none; position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 8px 12px; border-radius: 9px; background: var(--navy); color: white; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 16px #12264a26; pointer-events: none; }
@media (min-width: 900px) {
  .bb-chat__launcher[aria-expanded="false"]:is(:hover, :focus-visible) .bb-chat__tooltip { display: block; }
}
.bb-chat__greeting { position: absolute; right: 0; bottom: 76px; display: flex; align-items: flex-start; width: min(260px, 100%); border: 1px solid #e2e8f0; border-radius: 14px; background: white; box-shadow: 0 8px 32px #12264a26; pointer-events: auto; transform-origin: calc(100% - 30px) bottom; animation: bb-greeting-in .28s ease-out; }
.bb-chat__greeting::after { content: ''; position: absolute; right: 23px; bottom: -7px; width: 12px; height: 12px; background: white; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; transform: rotate(45deg); }
.bb-chat__greeting-text { flex: 1; min-width: 0; padding: 16px 0 16px 16px; border: 0; border-radius: 14px 0 0 14px; background: transparent; color: var(--navy); text-align: left; font-size: 14px !important; line-height: 1.5 !important; }
.bb-chat__greeting-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.bb-chat__greeting-dismiss { flex: none; width: 36px; height: 36px; padding: 0; margin: 3px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 23px !important; line-height: 1 !important; }
.bb-chat__greeting-dismiss:hover { background: #f0f6ff; }
@keyframes bb-greeting-in { from { transform: translateY(8px) scale(.96); } to { transform: translateY(0) scale(1); } }
@media (max-width: 640px) { .bb-chat__greeting { bottom: 68px; } }
/* The footer wordmark sits flush on the bottom edge: the closed launcher steps aside while it would cover the letters or the bird. */
.bb-chat__launcher { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.bb-chat--yield .bb-chat__launcher:not(:focus-visible) { transform: translateY(calc(100% + var(--chat-bottom) + 16px)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bb-chat__greeting { animation: none; } .bb-chat__launcher { transition: none; } }
.bb-chat__launcher:hover { background: var(--navy-deep); }
.bb-chat__panel { position: absolute; right: 0; bottom: 70px; width: 100%; height: auto; max-height: min(590px, calc(var(--chat-viewport, 100dvh) - var(--chat-bottom) - 88px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d9e2ed; border-radius: 22px; background: white; box-shadow: 0 16px 60px #12264a29; }
.bb-chat__head { display: flex; gap: 11px; align-items: center; padding: 19px 14px 19px 18px; background: var(--navy); color: white; flex-shrink: 0; }
.bb-chat__bird { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #fff; }
.bb-chat__head h2 { margin: 0; color: white; font: 800 18px/1.25 var(--display); letter-spacing: -.3px; }
.bb-chat__head h2:focus { outline: none; }
.bb-chat__head p { margin: 5px 0 0; color: #c4defb; font-size: 12px; }
.bb-chat__close { align-self: flex-start; flex-shrink: 0; margin: -7px -5px 0 auto; width: 44px; height: 44px; padding: 0; color: white; background: transparent; border: 0; border-radius: 50%; font-size: 30px !important; line-height: 1 !important; }
.bb-chat__close:hover { background: #ffffff1a; }
.bb-chat__body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px; }
.bb-chat__body p { margin: 0 0 10px; }
.bb-chat__intro { margin-bottom: 16px; }
.bb-chat__note { color: #52627a; font-size: 13px; }
.bb-chat__offline { background: #f0f6ff; border: 1px solid #d9e8fb; padding: 16px; border-radius: 15px; }
.bb-chat__links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.bb-chat__links a { color: #165db0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.bb-chat__links a[href^="sms:"], .bb-chat__links a[href^="tel:"] { white-space: nowrap; }
.bb-chat__suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.bb-chat__suggestions button { border: 1px solid #d9e2ed; border-radius: 999px; background: #f5f8fc; color: var(--navy); min-height: 44px; padding: 8px 13px; font-size: 13px; }
.bb-chat__suggestions button:hover { background: #e6f1ff; border-color: #96bce8; }
.bb-chat__message { margin-top: 14px; padding: 12px 14px; border-radius: 15px 15px 15px 4px; background: #f0f6ff; overflow-wrap: anywhere; white-space: pre-line; }
.bb-chat__message--user { margin-left: 24px; border-radius: 15px 15px 4px 15px; background: var(--navy); color: white; }
.bb-chat__message .bb-chat__links { white-space: normal; }
.bb-chat__status { color: #52627a; font-size: 13px; margin: 12px 0 0 !important; }
.bb-chat__status:empty { display: none; }
.bb-chat__form { padding: 14px 18px 10px; border-top: 1px solid #e5ebf3; flex-shrink: 0; }
.bb-chat__compose { display: flex; gap: 8px; align-items: flex-end; }
.bb-chat__compose textarea { resize: none; min-width: 0; width: 100%; min-height: 58px; max-height: 100px; padding: 10px 11px; border: 1px solid #cbd7e6; border-radius: 12px; color: var(--navy); background: #fff; font-size: 16px; line-height: 1.35; }
.bb-chat__compose textarea::placeholder { color: #52627a; opacity: 1; }
.bb-chat__compose button { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sun); color: var(--navy); }
.bb-chat__form > p { margin: 8px 0 0; color: #52627a; font-size: 11px; }
.bb-chat__foot { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; padding: 10px 18px 13px; color: #52627a; font-size: 11px; flex-shrink: 0; }
.bb-chat__foot a, .bb-chat__reset { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.bb-chat__foot a, .bb-chat__reset { min-height: 44px; display: inline-flex; align-items: center; }
.bb-chat__reset { border: 0; padding: 0; background: transparent; font-size: 12px !important; }
.bb-chat__foot > span { margin-left: auto; }
@media (max-width: 640px) {
  .bb-chat { --chat-bottom: calc(82px + env(safe-area-inset-bottom)); right: 14px; width: min(360px, calc(100% - 28px)); }
  .bb-chat__launcher { width: 52px; height: 52px; }
  .bb-chat__avatar { width: 36px; height: 36px; }
  /* Reserve the fixed icon's lane beside secondary hero actions, without scroll-time movement. */
  body:has(#bb-chat[data-chat-state="ready"]) .phero__btns .btn--glass { width: calc(100% - 64px); padding: 0 8px; gap: 6px; font-size: 14px; }
  .bb-chat__panel { bottom: 64px; border-radius: 19px; }
  .bb-chat__head { padding: 14px 10px 14px 14px; gap: 9px; }
  .bb-chat__head h2 { font-size: 17px; }
  .bb-chat__bird { width: 36px; height: 36px; border-radius: 11px; }
  .bb-chat__body { padding: 14px; }
  .bb-chat__form { padding: 12px 14px 8px; }
  .bb-chat__foot { padding: 5px 14px 10px; }
}
