.avante-ai-root {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.avante-ai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #123a20 0%, #1f6f43 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(18, 58, 32, 0.28);
  cursor: pointer;
}

.avante-ai-launcher:hover {
  transform: translateY(-2px);
}

.avante-ai-launcher-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.avante-ai-launcher-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.avante-ai-launcher-copy strong {
  font-size: 0.96rem;
}

.avante-ai-launcher-copy span {
  font-size: 0.72rem;
  opacity: 0.78;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avante-ai-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.85rem);
  width: min(380px, calc(100vw - 2rem));
  border: 1px solid rgba(18, 58, 32, 0.12);
  border-radius: 1.5rem;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 28px 70px rgba(18, 58, 32, 0.18);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.avante-ai-panel[hidden] {
  display: none;
}

.avante-ai-header {
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(135deg, #123a20 0%, #1f6f43 82%);
  color: #fff;
}

.avante-ai-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.avante-ai-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.avante-ai-header p {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.avante-ai-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.88;
}

.avante-ai-body {
  padding: 1rem;
}

.avante-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.avante-ai-message {
  max-width: 92%;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.avante-ai-message.bot {
  background: #f2f4ee;
  color: #16371f;
  border-top-left-radius: 0.45rem;
}

.avante-ai-message.user {
  align-self: flex-end;
  background: #1f6f43;
  color: #fff;
  border-top-right-radius: 0.45rem;
}

.avante-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.avante-ai-chip {
  border: 1px solid rgba(18, 58, 32, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #1d4227;
  padding: 0.55rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.avante-ai-chip:hover {
  border-color: rgba(199, 154, 59, 0.48);
  color: #a16d0f;
}

.avante-ai-form {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.avante-ai-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(18, 58, 32, 0.14);
  border-radius: 0.95rem;
  background: #fff;
  color: #16371f;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.avante-ai-input:focus {
  outline: 2px solid rgba(199, 154, 59, 0.34);
  border-color: rgba(199, 154, 59, 0.6);
}

.avante-ai-submit,
.avante-ai-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.95rem;
  background: #d4a31f;
  color: #1d2a13;
  font-weight: 800;
  cursor: pointer;
}

.avante-ai-submit {
  padding: 0 1rem;
  min-width: 5rem;
}

.avante-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.avante-ai-action {
  text-decoration: none;
  padding: 0.72rem 0.9rem;
  font-size: 0.78rem;
}

.avante-ai-helper {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(22, 55, 31, 0.72);
}

@media (max-width: 767px) {
  .avante-ai-root {
    left: auto;
    right: 0.75rem;
    bottom: 5.75rem;
    display: flex;
    justify-content: flex-end;
    width: auto;
    max-width: calc(100vw - 1.5rem);
  }

  .avante-ai-panel {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 1.5rem));
  }

  .avante-ai-launcher {
    width: auto;
    max-width: min(290px, calc(100vw - 1.5rem));
    justify-content: flex-start;
    padding: 0.8rem 0.95rem;
    gap: 0.65rem;
    border-radius: 1.15rem;
  }

  .avante-ai-launcher-badge {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.88rem;
  }

  .avante-ai-launcher-copy strong {
    font-size: 0.92rem;
  }

  .avante-ai-launcher-copy span {
    font-size: 0.68rem;
  }

  .whatsapp-float {
    left: auto !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    width: auto !important;
    max-width: calc(100vw - 1.5rem);
    z-index: 69 !important;
  }
}
