#automizaes-chatbot-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#automizaes-chatbot-root * {
  box-sizing: border-box;
  letter-spacing: 0;
}

#automizaes-chatbot-root [hidden] {
  display: none !important;
}

.az-chat-launcher,
.az-chat-send,
.az-chat-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.az-chat-avatar {
  border: 0;
  cursor: pointer;
  padding: 0;
}

.az-chat-launcher {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 170px);
  align-items: center;
  gap: 10px;
  min-width: 354px;
  min-height: 92px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 34px;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.88)),
    radial-gradient(circle at 18% 8%, rgba(99, 102, 241, 0.38), transparent 34%),
    radial-gradient(circle at 86% 100%, rgba(6, 182, 212, 0.28), transparent 36%);
  box-shadow:
    0 22px 60px rgba(2, 6, 23, 0.38),
    0 0 34px rgba(99, 102, 241, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  isolation: isolate;
  overflow: visible;
}

.az-chat-launcher:hover {
  transform: translateY(-1px);
  box-shadow:
    0 26px 70px rgba(2, 6, 23, 0.46),
    0 0 42px rgba(6, 182, 212, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.az-chat-orbit {
  position: absolute;
  inset: -10px auto auto -10px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(99, 102, 241, 0), rgba(99, 102, 241, 0.72), rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0));
  filter: blur(10px);
  opacity: 0.54;
  z-index: -1;
}

.az-chat-robot,
.az-chat-avatar {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.az-chat-robot {
  width: 68px;
  height: 68px;
}

.az-chat-robot::before,
.az-chat-avatar::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.62;
  animation: az-robot-scan 2.8s ease-in-out infinite;
}

.az-chat-robot::after,
.az-chat-avatar::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #dffbff;
  box-shadow: 0 0 12px rgba(223, 251, 255, 0.9);
  animation: az-robot-blink 4.4s ease-in-out infinite;
}

.az-chat-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.az-chat-robot svg,
.az-chat-avatar svg,
.az-chat-send svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.az-chat-avatar svg {
  width: 27px;
  height: 27px;
  animation: az-robot-icon-tour 12s ease-in-out infinite;
  animation-delay: var(--az-robot-delay, 0s);
}

.az-chat-status {
  position: absolute;
  right: 4px;
  bottom: 7px;
  width: 14px;
  height: 14px;
  border: 2px solid #07111f;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18), 0 0 18px rgba(34, 197, 94, 0.9);
}

.az-chat-bubble {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
  transform: translateX(0);
}

.az-chat-bubble strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.az-chat-bubble small {
  color: #8ee9ff;
  font-size: 12px;
  font-weight: 700;
}

.az-chat-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, calc(100vw - 32px));
  height: clamp(480px, 66vh, 700px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 14% 0%, rgba(99, 102, 241, 0.32), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(6, 182, 212, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.95));
  box-shadow:
    0 30px 90px rgba(2, 6, 23, 0.56),
    0 0 60px rgba(99, 102, 241, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.az-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.az-chat-header::after {
  content: "";
  position: absolute;
  right: 64px;
  bottom: -1px;
  left: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.72), transparent);
}

.az-chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.az-chat-identity strong,
.az-chat-identity span {
  display: block;
}

.az-chat-identity strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.az-chat-identity span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #9cecff;
  font-size: 12px;
  font-weight: 700;
}

.az-chat-identity i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
}

.az-chat-close {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.az-chat-close span {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.az-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.45) transparent;
}

.az-chat-message-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 88%;
}

.az-chat-message-wrap--assistant {
  align-self: flex-start;
}

.az-chat-message-wrap--user {
  align-self: flex-end;
}

.az-chat-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.az-chat-message a {
  color: #67e8f9;
  font-weight: 800;
  text-decoration: none;
}

.az-chat-message strong {
  color: #ffffff;
  font-weight: 850;
}

.az-chat-message--assistant {
  color: #e5edf7;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.az-chat-message--user {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 52%, #06b6d4);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.24);
}

.az-chat-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.az-chat-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(6, 182, 212, 0.34);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.12);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.az-chat-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.58);
}

.az-chat-turnstile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.az-chat-input {
  width: 100%;
  max-height: 116px;
  min-height: 46px;
  resize: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.84);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.az-chat-input::placeholder {
  color: #94a3b8;
}

.az-chat-input:focus {
  border-color: rgba(6, 182, 212, 0.68);
  box-shadow:
    0 0 0 3px rgba(6, 182, 212, 0.12),
    0 0 26px rgba(99, 102, 241, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.az-chat-send {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.22);
}

.az-chat-send svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.az-chat-send:disabled,
.az-chat-input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.az-chat-send.is-busy svg {
  animation: az-chat-send-pulse 0.9s ease-in-out infinite;
}

.webia-service-card[id] {
  scroll-margin-top: 110px;
}

.webia-service-card[id]:target {
  border-color: rgba(6, 182, 212, 0.72) !important;
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.42),
    0 0 42px rgba(6, 182, 212, 0.28),
    0 18px 60px rgba(99, 102, 241, 0.22) !important;
}

@keyframes az-chat-send-pulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(3px);
    opacity: 1;
  }
}

@keyframes az-robot-scan {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.36;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.82;
  }
}

@keyframes az-robot-blink {
  0%,
  78%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  82%,
  86% {
    opacity: 0.45;
    transform: scaleY(0.25);
  }
}

@keyframes az-robot-icon-tour {
  0%,
  8% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }

  18% {
    transform: translate(6px, -5px) rotate(5deg) scale(0.98);
  }

  27% {
    transform: translate(-7px, 4px) rotate(-4deg) scale(0.98);
  }

  36% {
    transform: translate(5px, 6px) rotate(4deg) scale(1);
  }

  45% {
    transform: translate(-6px, -5px) rotate(-5deg) scale(0.98);
  }

  54% {
    transform: translate(7px, 0) rotate(3deg) scale(1);
  }

  63% {
    transform: translate(-3px, 5px) rotate(-2deg) scale(1);
  }

  72% {
    transform: translate(6px, 4px) rotate(5deg) scale(0.98);
  }

  82% {
    transform: translate(0, 0) rotate(0deg) scale(1.05);
  }

  88%,
  94% {
    filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(6, 182, 212, 0.95));
    transform: translate(0, 0) rotate(0deg) scale(1.18);
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes az-robot-icon-idle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  38% {
    transform: translateY(-2px) rotate(-2deg);
  }

  72% {
    transform: translateY(1px) rotate(2deg);
  }
}

.az-chat-robot svg {
  animation: az-robot-icon-tour 12s ease-in-out infinite;
  animation-delay: var(--az-robot-delay, 0s);
}

@keyframes az-robot-icon-panel-tour {
  0%,
  12% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  24% {
    transform: translate(4px, -3px) rotate(4deg) scale(0.99);
  }

  38% {
    transform: translate(-4px, 3px) rotate(-3deg) scale(0.99);
  }

  52% {
    transform: translate(3px, 4px) rotate(3deg) scale(1);
  }

  66% {
    transform: translate(-3px, -3px) rotate(-3deg) scale(0.99);
  }

  78% {
    transform: translate(0, 0) rotate(0deg) scale(1.04);
  }

  86%,
  93% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.92)) drop-shadow(0 0 15px rgba(6, 182, 212, 0.82));
    transform: translate(0, 0) rotate(0deg) scale(1.13);
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@media (max-width: 600px) {
  #automizaes-chatbot-root {
    right: 14px;
    bottom: 14px;
  }

  .az-chat-launcher {
    grid-template-columns: 60px;
    min-width: 74px;
    min-height: 74px;
    padding: 7px;
    border-radius: 999px;
  }

  .az-chat-robot {
    width: 60px;
    height: 60px;
  }

  .az-chat-bubble {
    display: none;
  }

  .az-chat-panel {
    width: calc(100vw - 28px);
    height: min(640px, calc(100vh - 28px));
    border-radius: 16px;
  }
}
