.boafit-ai-root {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999999;
  font-family: 'Aeonik', Arial, Helvetica, sans-serif;
  color: #0E1E1D;
}

.boafit-ai-toggle {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #69D18F 0%, #BDE800 100%);
  color: #0E1E1D;
  box-shadow: 0 18px 46px rgba(14, 30, 29, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.boafit-ai-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(14, 30, 29, .28);
}

.boafit-ai-toggle svg {
  width: 28px;
  height: 28px;
}

.boafit-ai-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(410px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 124px));
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(248, 251, 248, .96);
  box-shadow: 0 26px 86px rgba(14, 30, 29, .28);
  backdrop-filter: blur(18px);
  display: none;
}

.boafit-ai-root.is-open .boafit-ai-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.boafit-ai-head {
  padding: 18px 18px 16px;
  background: #0E1E1D;
  color: #fff;
}

.boafit-ai-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boafit-ai-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(105, 209, 143, .16);
  border: 1px solid rgba(105, 209, 143, .32);
}

.boafit-ai-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.boafit-ai-title {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.boafit-ai-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.boafit-ai-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69D18F;
}

.boafit-ai-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}

.boafit-ai-messages {
  padding: 18px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.boafit-ai-message {
  max-width: 88%;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.boafit-ai-message.assistant {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(14, 30, 29, .08);
  box-shadow: 0 10px 24px rgba(14, 30, 29, .06);
  white-space: normal;
}

.boafit-ai-message.assistant p {
  margin: 0 0 10px 0;
}
.boafit-ai-message.assistant p:last-child {
  margin: 0;
}
.boafit-ai-message.assistant ul.boafit-ai-list {
  margin: 10px 0 10px 4px;
  padding-left: 16px;
  list-style-type: none;
}
.boafit-ai-message.assistant ul.boafit-ai-list li {
  position: relative;
  margin-bottom: 6px;
}
.boafit-ai-message.assistant ul.boafit-ai-list li::before {
  content: "•";
  color: #69D18F;
  font-weight: bold;
  position: absolute;
  left: -14px;
}
.boafit-ai-message.assistant strong {
  font-weight: 800;
  color: #0E1E1D;
}

.boafit-ai-message.user {
  justify-self: end;
  background: #0E1E1D;
  color: #fff;
}

.boafit-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.boafit-ai-suggestion {
  border: 1px solid rgba(14, 30, 29, .1);
  border-radius: 999px;
  background: #eef9f2;
  color: #0E1E1D;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

.boafit-ai-form {
  border-top: 1px solid rgba(14, 30, 29, .08);
  background: #fff;
  padding: 13px;
  display: flex;
  gap: 9px;
}

.boafit-ai-input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid rgba(14, 30, 29, .12);
  border-radius: 999px;
  padding: 0 14px;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.boafit-ai-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #69D18F;
  color: #0E1E1D;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.boafit-ai-send svg {
  width: 19px;
  height: 19px;
}

.boafit-ai-note {
  padding: 0 18px 14px;
  color: #74807c;
  font-size: 11px;
  line-height: 1.45;
  background: #fff;
}

@media (max-width: 640px) {
  .boafit-ai-root {
    right: 14px;
    bottom: 18px;
  }

  .boafit-ai-toggle {
    width: 56px;
    height: 56px;
  }

  .boafit-ai-panel {
    position: fixed;
    inset: auto 10px 86px 10px;
    width: auto;
    height: min(600px, calc(100vh - 112px));
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .boafit-ai-root {
    right: 12px;
    bottom: 16px;
  }

  .boafit-ai-panel {
    inset: auto 8px 82px 8px;
    height: min(580px, calc(100vh - 104px));
  }

  .boafit-ai-title {
    font-size: 14px;
  }

  .boafit-ai-status {
    font-size: 11px;
  }
}
