.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.airport-assistant {
  --ava-blue: #1685ed;
  --ava-blue-dark: #0868c4;
  --ava-soft: #eaf6ff;
  position: fixed;
  z-index: 4500;
  right: 24px;
  bottom: 24px;
  color: #111827;
  font-family: "Poppins", sans-serif;
}

.airport-assistant button,
.airport-assistant input { font: inherit; }

.airport-assistant__launcher {
  display: flex;
  min-width: 190px;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 7px;
  border: 1.5px solid #69b7ff;
  border-radius: 999px;
  background: rgba(239, 248, 255, .97);
  color: #172033;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(22, 133, 237, .32), 0 0 0 7px rgba(255, 255, 255, .6);
  transition: transform .2s ease, box-shadow .2s ease;
}

.airport-assistant__launcher:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(22, 133, 237, .38), 0 0 0 7px rgba(255, 255, 255, .7); }
.airport-assistant__launcher:focus-visible { outline: 3px solid rgba(22, 133, 237, .32); outline-offset: 5px; }
.airport-assistant__launcher > span:last-child { display: flex; flex-direction: column; }
.airport-assistant__launcher strong { color: var(--ava-blue); font-size: 1.05rem; line-height: 1.05; letter-spacing: .02em; }
.airport-assistant__launcher small { margin-top: 2px; color: #273142; font-size: .62rem; }

.airport-assistant__bot {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1.5px solid #58acfa;
  border-radius: 50%;
  background: #fff;
  color: var(--ava-blue);
  font-size: 1rem;
  box-shadow: 0 5px 12px rgba(22, 133, 237, .22);
}

.airport-assistant__bot b { position: absolute; right: 1px; bottom: -2px; padding: 1px 3px; background: #fff; color: #147fde; font-size: .85rem; line-height: 1; }

.airport-assistant__panel {
  display: grid;
  width: min(420px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 100px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #e4edf5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 41, 69, .25);
}

.airport-assistant__panel[hidden] { display: none; }
.airport-assistant.is-open .airport-assistant__launcher { display: none; }

.airport-assistant__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6edf4;
  background: #fff;
}

.airport-assistant__header .airport-assistant__bot { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.1rem; }
.airport-assistant__identity { display: flex; min-width: 0; flex-direction: column; }
.airport-assistant__identity strong { font-size: 1.05rem; line-height: 1.2; }
.airport-assistant__identity em { display: inline-block; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ava-blue); color: #fff; font-size: .7rem; font-style: normal; vertical-align: 2px; }
.airport-assistant__identity small { margin-top: 3px; overflow: hidden; color: #344054; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.airport-assistant__header > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf7ff;
  color: #253244;
  cursor: pointer;
  font-size: 1rem;
}
.airport-assistant__header > button:hover { background: #dcefff; color: var(--ava-blue-dark); }

.airport-assistant__feed {
  min-height: 0;
  padding: 14px 14px 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #eff9ff 0%, #e7f8ff 100%);
  scrollbar-width: thin;
  scrollbar-color: #8dd2f4 transparent;
}

.airport-assistant__welcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 17px 14px;
  border-radius: 20px 20px 0 0;
  background: #d9efff;
}
.airport-assistant__welcome h2 { margin: 2px 0 7px; font-size: 1.2rem; line-height: 1.15; }
.airport-assistant__welcome p { margin: 0; color: #27364a; font-size: .76rem; line-height: 1.45; }

.airport-assistant__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 0 8px;
}
.airport-assistant__actions button {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px;
  border: 1.5px solid #83c7ff;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  color: #141b27;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 600;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.airport-assistant__actions button:hover { border-color: var(--ava-blue); background: #fff; transform: translateY(-2px); }
.airport-assistant__actions i { color: var(--ava-blue); font-size: 1.15rem; }

.airport-assistant__message { display: flex; margin: 12px 0; }
.airport-assistant__message span { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .84rem; line-height: 1.5; white-space: pre-wrap; }
.airport-assistant__message--user { justify-content: flex-end; }
.airport-assistant__message--user span { border-bottom-right-radius: 5px; background: var(--ava-blue); color: #fff; }
.airport-assistant__message--assistant span { border: 1px solid #d7eafa; border-bottom-left-radius: 5px; background: #fff; color: #26364b; box-shadow: 0 5px 15px rgba(17, 88, 150, .08); }

.airport-assistant__typing span { display: inline-flex; gap: 5px; align-items: center; min-height: 42px; }
.airport-assistant__typing i { width: 7px; height: 7px; border-radius: 50%; background: #65aee9; animation: ava-bounce 1s ease-in-out infinite; }
.airport-assistant__typing i:nth-child(2) { animation-delay: .14s; }
.airport-assistant__typing i:nth-child(3) { animation-delay: .28s; }
@keyframes ava-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.airport-assistant__composer { padding: 9px 12px 10px; background: #e7f8ff; }
.airport-assistant__input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 50px;
  padding: 5px 6px 5px 16px;
  border: 1.5px solid #b9dfff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 88, 150, .08);
}
.airport-assistant__input-wrap:focus-within { border-color: var(--ava-blue); box-shadow: 0 0 0 3px rgba(22, 133, 237, .12); }
.airport-assistant__input-wrap input { min-width: 0; border: 0; outline: 0; background: transparent; color: #172033; font-size: .9rem; }
.airport-assistant__input-wrap input::placeholder { color: #98a9bd; }
.airport-assistant__input-wrap button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #8b98a8; cursor: pointer; }
.airport-assistant__input-wrap .airport-assistant__send { background: var(--ava-blue); color: #fff; }
.airport-assistant__input-wrap .airport-assistant__send:hover { background: var(--ava-blue-dark); }
.airport-assistant__input-wrap button:disabled { cursor: wait; opacity: .55; }
.airport-assistant__composer > small { display: block; margin-top: 9px; color: #91a4b9; font-size: .67rem; text-align: center; }
.airport-assistant__mic-listening { color: #dc2626 !important; animation: ava-pulse 1s ease-in-out infinite; }
@keyframes ava-pulse { 50% { transform: scale(1.18); } }

@media (max-width: 760px) {
  .airport-assistant { right: 12px; bottom: 14px; }
  .airport-assistant__launcher { min-width: 184px; min-height: 50px; padding: 6px 14px 6px 7px; gap: 8px; }
  .airport-assistant__launcher .airport-assistant__bot { width: 36px; height: 36px; flex-basis: 36px; font-size: .92rem; }
  .airport-assistant__launcher strong { font-size: 1rem; }
  .airport-assistant__launcher small { font-size: .59rem; }
  .airport-assistant__panel { position: fixed; right: 8px; bottom: 8px; left: auto; width: min(400px, calc(100vw - 16px)); height: min(600px, calc(100vh - 90px)); border-radius: 20px; }
  .airport-assistant__header { min-height: 76px; padding: 10px 12px; gap: 7px; }
  .airport-assistant__header .airport-assistant__bot { width: 43px; height: 43px; flex-basis: 43px; }
  .airport-assistant__header > button { width: 39px; height: 39px; }
  .airport-assistant__feed { padding: 14px 14px 8px; }
  .airport-assistant__welcome { gap: 12px; padding: 18px 14px; }
  .airport-assistant__welcome .airport-assistant__bot { width: 46px; height: 46px; flex-basis: 46px; }
  .airport-assistant__welcome h2 { font-size: 1.25rem; }
  .airport-assistant__actions { gap: 9px; }
  .airport-assistant__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .airport-assistant__actions button { min-height: 88px; padding: 12px; font-size: .76rem; }
  .airport-assistant__composer { padding: 9px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .airport-assistant__launcher,
  .airport-assistant__actions button { transition: none; }
  .airport-assistant__typing i,
  .airport-assistant__mic-listening { animation-duration: 2s; }
}
