.kb-ai-badge {
  position: fixed;
  right: 0;
  bottom: max(164px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  width: min(292px, calc(100vw - 24px));
  color: #f5f2e9;
  background: #242720;
  border: 1px solid #b6a779;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 8px 28px #0003;
  font-family: Manrope, sans-serif;
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1);
}
.kb-ai-badge.is-collapsed { transform: translateX(calc(100% - 48px)); }
.kb-ai-badge__toggle {
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  padding: 12px 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: #d8c592;
  cursor: pointer;
  font: 700 13px Manrope, sans-serif;
  letter-spacing: .08em;
}
.kb-ai-badge__toggle:hover { background: #ffffff0d; }
.kb-ai-badge__toggle:focus-visible { outline: 2px solid #d8c592; outline-offset: -5px; }
.kb-ai-badge__arrow { transition: transform 380ms ease; }
.kb-ai-badge.is-collapsed .kb-ai-badge__arrow { transform: rotate(180deg); }
.kb-ai-badge__content { flex: 1; padding: 19px 18px 19px 0; }
.kb-ai-badge__title { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.kb-ai-badge__text { margin: 0; font-size: 11px; line-height: 1.6; color: #e0ddd3; }
@media (max-width: 767px) {
  .kb-ai-badge { bottom: max(136px, calc(env(safe-area-inset-bottom) + 120px)); }
}
@media (prefers-reduced-motion: reduce) {
  .kb-ai-badge, .kb-ai-badge__arrow { transition: none; }
}
