.huecit-chatbot-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: "Segoe UI", sans-serif;
}

.huecit-chatbot-root[data-position="left"] .huecit-chatbot-launcher,
.huecit-chatbot-root[data-position="left"] .huecit-chatbot-panel {
  left: 18px;
  right: auto;
}

.huecit-chatbot-launcher {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
}

.huecit-chatbot-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.huecit-chatbot-launcher-label {
  position: absolute;
  right: 86px;
  bottom: 30px;
  max-width: 200px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 24, 32, 0.88);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.huecit-chatbot-launcher:hover + .huecit-chatbot-launcher-label,
.huecit-chatbot-launcher:focus-visible + .huecit-chatbot-launcher-label {
  opacity: 1;
  transform: translateY(0);
}

.huecit-chatbot-panel {
  position: absolute;
  right: 18px;
  bottom: 94px;
  width: min(400px, calc(100vw - 36px));
  height: min(80vh, 760px);
  max-height: calc(100vh - 112px);
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  display: none;
}

.huecit-chatbot-panel.is-open {
  display: block;
}

.huecit-chatbot-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .huecit-chatbot-launcher {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
  }

  .huecit-chatbot-launcher-label {
    display: none;
  }

  .huecit-chatbot-panel {
    inset: 8px;
    width: auto;
    height: auto;
    border-radius: 16px;
  }
}