.xlt-robot-loading {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  pointer-events: none;
}

.xlt-robot-loading > svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: xlt-robot-loading-spin 1.1s linear infinite;
}

.xlt-robot-tip {
  position: absolute;
  z-index: 3;
  left: calc(48% + var(--xlt-tips-x, 0px));
  top: calc(17% + var(--xlt-tips-y, 0px));
  width: max-content;
  max-width: min(250px, 62vw);
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  background: #1260e8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0;
  translate: 0 10px;
  scale: 0.97;
  transform: translateX(-100%);
  transform-origin: 100% 100%;
  pointer-events: none;
  transition: opacity 220ms ease, translate 220ms ease, scale 220ms ease;
}

.xlt-robot-tip::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background: #1260e8;
  translate: 0 -50%;
  rotate: 45deg;
}

.xlt-robot-tip--visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.xlt-robot-tip__text {
  position: relative;
  z-index: 1;
  white-space: pre-wrap;
}

.xlt-robot-tip--typing .xlt-robot-tip__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: #ffffff;
  animation: xlt-robot-tip-caret 700ms steps(1) infinite;
}

@keyframes xlt-robot-loading-spin {
  to { rotate: 360deg; }
}

@keyframes xlt-robot-tip-caret {
  50% { opacity: 0; }
}
