/* Floating "Talk to AI" button + status bubble. Colour comes from --tva-color. */
.tva-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--tva-color, #255df0);
  color: #fff;
  font: 600 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.tva-floating.tva-left {
  right: auto;
  left: 24px;
}
.tva-floating:hover {
  transform: translateY(-2px);
}
.tva-floating[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}
.tva-floating svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.js-telnyx-agent[aria-busy="true"] {
  cursor: progress;
}

.tva-status {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 99999;
  max-width: min(90vw, 320px);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 20, 24, 0.92);
  color: #cdcdcd;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
}
.tva-status.tva-left {
  right: auto;
  left: 24px;
}
.tva-status:empty {
  display: none;
}

@media (max-width: 575px) {
  .tva-floating {
    right: 16px;
    bottom: 16px;
  }
  .tva-floating.tva-left {
    left: 16px;
  }
  .tva-status {
    right: 16px;
    bottom: 80px;
  }
  .tva-status.tva-left {
    left: 16px;
  }
}
