.abs-assistant {
  --abs-navy: #12345b;
  --abs-blue: #1769aa;
  --abs-sky: #eaf4fb;
  --abs-ink: #17283b;
  --abs-muted: #637487;
  position: fixed;
  right: 92px;
  bottom: 24px;
  z-index: 1055;
  font-family: "Poppins", sans-serif;
}

.abs-assistant__launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 18px 7px 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--abs-blue), var(--abs-navy));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(18, 52, 91, 0.28);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.abs-assistant__launcher:hover,
.abs-assistant__launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(18, 52, 91, 0.36);
}

.abs-assistant__launcher-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--abs-navy);
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
}

.abs-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 32px));
  overflow: hidden;
  flex-direction: column;
  color: var(--abs-ink);
  background: #f7fafc;
  border: 1px solid rgba(18, 52, 91, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 36, 61, 0.28);
}

.abs-assistant__panel[hidden] { display: none; }

.abs-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--abs-navy), #1d6096);
}

.abs-assistant__eyebrow {
  margin: 0 0 2px;
  color: #a9d9f5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.abs-assistant__header h2 { margin: 0; color: #fff; font-size: 21px; font-weight: 600; }
.abs-assistant__close { color: #fff; background: transparent; border: 0; font-size: 20px; cursor: pointer; }

.abs-assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  scroll-behavior: smooth;
}

.abs-assistant__message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; }
.abs-assistant__message--user { justify-content: flex-end; }
.abs-assistant__avatar {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--abs-navy);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}

.abs-assistant__bubble {
  max-width: 82%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e1eaf1;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 3px 10px rgba(20, 48, 75, .06);
}

.abs-assistant__message--user .abs-assistant__bubble {
  color: #fff;
  background: var(--abs-blue);
  border: 0;
  border-radius: 16px 4px 16px 16px;
}

.abs-assistant__bubble p { margin: 0; font-size: 13px; line-height: 1.55; }
.abs-assistant__hint { margin-top: 8px !important; color: var(--abs-muted); font-size: 11px !important; }
.abs-assistant__result { display: block; margin-top: 10px; padding: 11px; color: var(--abs-ink); background: var(--abs-sky); border: 1px solid #cee4f2; border-radius: 12px; text-decoration: none; }
.abs-assistant__result:hover { color: var(--abs-blue); border-color: #8dc5e5; text-decoration: none; }
.abs-assistant__result-title { display: block; font-size: 13px; font-weight: 700; }
.abs-assistant__result-location { display: block; margin-top: 4px; color: #315f7e; font-size: 10px; font-weight: 600; }
.abs-assistant__result-description { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--abs-muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.abs-assistant__result-link { display: block; margin-top: 6px; color: var(--abs-blue); font-size: 11px; font-weight: 600; }

.abs-assistant__typing { display: flex; gap: 4px; padding: 5px 2px; }
.abs-assistant__typing span { width: 6px; height: 6px; background: #8aa0b5; border-radius: 50%; animation: abs-assistant-pulse 1s infinite alternate; }
.abs-assistant__typing span:nth-child(2) { animation-delay: .2s; }
.abs-assistant__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes abs-assistant-pulse { to { opacity: .3; transform: translateY(-3px); } }

.abs-assistant__composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 8px 8px 8px 14px; background: #fff; border: 1px solid #d7e1e9; border-radius: 17px; }
.abs-assistant__composer:focus-within { border-color: #70acd2; box-shadow: 0 0 0 3px rgba(23, 105, 170, .10); }
.abs-assistant__composer textarea { flex: 1; max-height: 96px; resize: none; color: var(--abs-ink); background: transparent; border: 0; outline: 0; font: 13px/1.45 "Poppins", sans-serif; }
.abs-assistant__composer button { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: #fff; background: var(--abs-blue); border: 0; border-radius: 12px; cursor: pointer; }
.abs-assistant__composer button:disabled { opacity: .5; cursor: wait; }
.abs-assistant__privacy { margin: 8px 0 12px; color: #7b8a98; text-align: center; font-size: 9px; }

@media (max-width: 575.98px) {
  .abs-assistant { right: 12px; bottom: 12px; }
  .abs-assistant__launcher-label { display: none; }
  .abs-assistant__launcher { padding: 7px; }
  .abs-assistant__panel { position: fixed; right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .abs-assistant__launcher, .abs-assistant__messages { transition: none; scroll-behavior: auto; }
  .abs-assistant__typing span { animation: none; }
}
