/* Chat belongs to the sticky header, not the space above the mobile quote bar. */
.afs-chat-launch:not([hidden]) {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .36rem;
  min-width: 44px; min-height: 44px; padding: .4rem .65rem;
  border: 1px solid #b5ced1; border-radius: 999px; background: #f1f8f6;
  color: #174f4c; font: 650 .92rem/1.1 var(--font); cursor: pointer;
}
.afs-chat-launch[hidden], .afs-chat:not([open]) { display: none; }
.afs-chat-launch:hover { background: #e0f1ec; border-color: #397269; }
.afs-chat-launch svg { width: 21px; height: 21px; }
@media (min-width: 1181px) {
  .header-row:has(.afs-chat-launch:not([hidden])) { gap: 10px; }
  .header-row:has(.afs-chat-launch:not([hidden])) .header-actions { gap: 8px; }
  .header-row:has(.afs-chat-launch:not([hidden])) .nav-link { padding-inline: 6px; }
  .header-row:has(.afs-chat-launch:not([hidden])) .nav-list { gap: 0; }
}
@media (max-width: 375px) {
  .header-row:has(.afs-chat-launch:not([hidden])) { gap: 6px; }
  .afs-chat-launch:not([hidden]) { padding-inline: .45rem; }
  .afs-chat-launch span { display: none; }
}
.afs-chat {
  color: var(--ink); width: min(25.5rem, calc(100% - 1.5rem));
  inset: auto .75rem .75rem auto; margin: 0; padding: 0; max-width: none;
  max-height: none; border: 1px solid #b9cdd4; border-radius: 1.1rem;
  background: white; box-shadow: 0 18px 70px #0d253744; overflow: hidden;
}
.afs-chat::backdrop { background: #0b283b73; }
html:has(#afs-chat-dialog[open]) { overflow: hidden; }
.afs-chat-shell {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(34rem, calc(100vh - 2rem)); height: min(34rem, calc(100dvh - 2rem));
}
.afs-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: white; background: #123548; }
.afs-chat-eyebrow { margin: 0 0 2px; color: #ade3d4; font: 750 .67rem/1.5 var(--font); text-transform: uppercase; letter-spacing: .1em; }
.afs-chat-head h2 { margin: 0; color: white; font-size: 1.5rem; }
.afs-chat-close, .afs-chat-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #75949f; border-radius: .65rem; background: transparent; color: white; cursor: pointer; }
.afs-chat-close:hover { background: #294e5f; }
.afs-chat-close svg, .afs-chat-send svg { width: 21px; height: 21px; }
.afs-chat-main { padding: 15px 18px; overflow-y: auto; overscroll-behavior: contain; background: #f5f9f8; }
.afs-chat-privacy { margin: 0 0 16px; color: #456073; font: 400 .84rem/1.5 var(--font); }
.afs-chat-prompt { margin: 0 0 6px; font: 700 1.05rem/1.4 var(--font); }
.afs-chat-options, .afs-chat-links { display: flex; flex-wrap: wrap; gap: 6px; }
.afs-chat-options button, .afs-chat-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px;
  background: white; border: 1px solid #abcac4; border-radius: .65rem; color: #17584f;
  font: 650 .88rem/1.3 var(--font); text-decoration: none; cursor: pointer;
}
.afs-chat-options button:hover, .afs-chat-links a:hover { background: #e4f3ed; border-color: #4e8074; }
.afs-chat-log { display: grid; gap: 10px; }
.afs-chat-log:not(:empty) { margin-top: 18px; }
.afs-chat-msg { overflow-wrap: anywhere; }
.afs-chat-msg p { margin: 0; }
.afs-chat-msg--user { justify-self: end; padding: 7px 12px; border-radius: .8rem .8rem .15rem .8rem; color: white; background: #224b60; font-size: .9rem; }
.afs-chat-msg--bot { padding: 12px; border: 1px solid #d8e5e2; border-radius: .25rem .85rem .85rem; background: white; font: 400 .95rem/1.5 var(--font); }
.afs-chat-links { margin-top: 9px; }
.afs-chat-form { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-top: 1px solid #d7e3e6; background: white; }
.afs-chat-form input { min-width: 0; flex: 1; min-height: 44px; padding: 6px 10px; border: 1px solid #a3b8c1; border-radius: .6rem; font: 400 1rem/1.3 var(--font); color: var(--ink); background: white; }
.afs-chat-send { border-color: #154c49; background: #185951; }
.afs-chat-send:hover { background: #123f3c; }
@media (max-width: 600px) {
  .afs-chat { inset: auto .5rem max(.5rem, env(safe-area-inset-bottom)) auto; width: calc(100% - 1rem); }
  .afs-chat-shell { height: min(32rem, calc(100vh - 1.5rem)); height: min(32rem, calc(100dvh - 1.5rem - env(safe-area-inset-bottom))); }
}
