/* Ask Eric client side bot. Static, no network calls.
   Also hides the retired app chat widget (.floating-ask launcher and .chat-drawer panel). */
.floating-ask,
.chat-drawer {
  display: none !important;
}

.aeb-launcher {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.05rem;
  border-radius: 50px;
  border: 1px solid #b99a62;
  background: #101722;
  color: #f3f0e6;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.aeb-launcher:hover {
  border-color: #d8ad4b;
  background: #17212e;
}
.aeb-launcher img {
  width: 26px;
  height: 26px;
}
.aeb-launcher[hidden] {
  display: none;
}

.aeb-panel {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 91;
  width: min(388px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(185, 154, 98, 0.65);
  background: linear-gradient(180deg, #111a29 0%, #0b111c 100%);
  color: #e9edf4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.5;
}
.aeb-panel[hidden] {
  display: none;
}

.aeb-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: #0d1522;
  border-bottom: 1px solid #2a3441;
}
.aeb-head .aeb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #17212e;
  border: 1px solid rgba(185, 154, 98, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.aeb-head .aeb-avatar img {
  width: 26px;
  height: 26px;
}
.aeb-head .aeb-titles {
  flex: 1;
  min-width: 0;
}
.aeb-head .aeb-title {
  font-weight: 700;
  color: #f3f0e6;
  font-size: 1rem;
  line-height: 1.25;
}
.aeb-head .aeb-sub {
  color: #a5afbe;
  font-size: 0.78rem;
  line-height: 1.3;
}
.aeb-close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #2a3441;
  background: #17212e;
  color: #e9edf4;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.aeb-close:hover {
  border-color: #b99a62;
}

.aeb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.9rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.aeb-msg {
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  overflow-wrap: break-word;
}
.aeb-msg p {
  margin: 0 0 0.5rem;
}
.aeb-msg p:last-child {
  margin-bottom: 0;
}
.aeb-msg ul {
  margin: 0.2rem 0 0.5rem;
  padding-left: 1.1rem;
}
.aeb-msg li {
  margin: 0.18rem 0;
}
.aeb-msg a {
  color: #f0cd78;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aeb-msg .aeb-group {
  color: #a5afbe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.55rem 0 0.15rem;
}
.aeb-msg-bot {
  align-self: flex-start;
  background: #17212e;
  border: 1px solid #2a3441;
  border-bottom-left-radius: 4px;
}
.aeb-msg-user {
  align-self: flex-end;
  background: #d8ad4b;
  color: #1a1405;
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
}

.aeb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem 0.7rem;
}
.aeb-chip {
  border: 1px solid rgba(185, 154, 98, 0.75);
  background: transparent;
  color: #f0cd78;
  border-radius: 50px;
  padding: 0.34rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.aeb-chip:hover {
  background: rgba(216, 173, 75, 0.14);
}

.aeb-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  background: #0d1522;
  border-top: 1px solid #2a3441;
}
.aeb-input {
  flex: 1;
  min-width: 0;
  background: #0a0f18;
  border: 1px solid #303b48;
  border-radius: 12px;
  color: #f3f5f8;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
}
.aeb-input:focus {
  outline: 2px solid rgba(216, 173, 75, 0.55);
  outline-offset: 0;
  border-color: #b99a62;
}
.aeb-input::placeholder {
  color: #7e8a99;
}
.aeb-icon-btn {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #303b48;
  background: #17212e;
  color: #e9edf4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aeb-icon-btn:hover {
  border-color: #b99a62;
}
.aeb-icon-btn svg {
  width: 19px;
  height: 19px;
}
.aeb-send {
  background: #d8ad4b;
  border-color: #d8ad4b;
  color: #1a1405;
}
.aeb-send:hover {
  background: #e6c168;
}
.aeb-mic-recording {
  border-color: #e0655f !important;
  color: #ff9d97 !important;
  animation: aeb-pulse 1.1s ease-in-out infinite;
}
@keyframes aeb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 101, 95, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(224, 101, 95, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .aeb-mic-recording { animation: none; }
}

@media (max-width: 680px) {
  .aeb-launcher {
    right: 16px;
    bottom: 16px;
  }
  .aeb-panel {
    right: 12px;
    left: 12px;
    bottom: 78px;
    width: auto;
    height: min(600px, calc(100dvh - 104px));
  }
}
