/* AFI Aero website assistant */
.afichat { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--font-body, system-ui, sans-serif); }
.afichat-launch { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 26px; background: var(--navy, #1F3864); color: #fff; font-family: var(--font-display, inherit); font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 8px 24px rgba(20,33,58,.25); transition: background 180ms; }
.afichat-launch:hover { background: var(--navy-deep, #152846); }
.afichat-launch:focus-visible, .afichat button:focus-visible, .afichat input:focus-visible { outline: 3px solid var(--sky, #3B82C4); outline-offset: 2px; }
.afichat.is-open .afichat-launch { display: none; }
.afichat-panel { position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 24px); height: min(580px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border, #D5DCE6); border-radius: 12px; box-shadow: 0 16px 48px rgba(20,33,58,.22); overflow: hidden; }
.afichat-panel[hidden] { display: none; }
.afichat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--navy, #1F3864); color: #fff; }
.afichat-head strong { display: block; font-family: var(--font-display, inherit); font-size: 1rem; }
.afichat-head span { display: block; font-size: .8rem; color: #C9D6E8; }
.afichat-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.afichat-x:hover { background: rgba(255,255,255,.12); }
.afichat-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--color-surface, #F7F9FC); display: flex; flex-direction: column; gap: 10px; }
.afichat-msg { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: .9rem; line-height: 1.45; color: var(--color-text, #14213A); overflow-wrap: anywhere; }
.afichat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--color-divider, #E3E8EF); border-bottom-left-radius: 3px; }
.afichat-msg.user { align-self: flex-end; background: var(--sky, #3B82C4); color: #fff; border-bottom-right-radius: 3px; }
.afichat-msg a { color: var(--navy, #1F3864); font-weight: 600; }
.afichat-msg ul { margin: 6px 0; padding-left: 18px; }
.afichat-msg li { margin: 2px 0; }
.afichat-msg small { display: block; margin-top: 6px; color: var(--slate, #5B6573); font-size: .78rem; }
.afichat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--color-divider, #E3E8EF); }
.afichat-chips:empty { display: none; }
.afichat-chips button { padding: 6px 11px; border: 1px solid var(--sky, #3B82C4); border-radius: 16px; background: var(--light, #EEF2F7); color: var(--navy, #1F3864); font-size: .82rem; font-weight: 600; cursor: pointer; }
.afichat-chips button:hover { background: var(--navy, #1F3864); color: #fff; border-color: var(--navy, #1F3864); }
.afichat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--color-divider, #E3E8EF); background: #fff; }
.afichat-input input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--color-border, #D5DCE6); border-radius: 8px; font-size: 16px; color: var(--color-text, #14213A); }
.afichat-input button { height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--navy, #1F3864); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  .afichat { right: 12px; bottom: 66px; }
  .afichat-launch { height: 48px; }
  .afichat.is-open { left: 0; right: 0; bottom: 0; top: 0; z-index: 90; }
  .afichat-panel { position: fixed; inset: 0; width: auto; max-width: none; height: 100%; border-radius: 0; border: 0; }
}
@media print { .afichat { display: none; } }
