.vulman-assistant {
  position: fixed;
  z-index: 15962537;
  right: 24px;
  bottom: 22px;
  font-family: "Open Sans", sans-serif;
}
.vulman-assistant-launcher {
  position: relative;
  display: flex;
  height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 19px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: #1b2e52;
  box-shadow: 0 12px 32px rgba(18, 38, 75, 0.32);
  font-weight: 600;
  transition: 0.25s;
}
.vulman-assistant-launcher:hover {
  transform: translateY(-2px);
  background: #2a416b;
}
.vulman-assistant-launcher i {
  font-size: 20px;
}
.vulman-assistant-launcher em {
  font-size: 13px;
  font-style: normal;
}
.assistant-pulse {
  position: absolute;
  top: 0;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #25a87e;
}
.vulman-chat {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  width: min(390px, calc(100vw - 30px));
  height: min(590px, calc(100vh - 115px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(27, 46, 82, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 27, 54, 0.28);
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  visibility: hidden;
  opacity: 0;
  transition: 0.22s;
}
.vulman-chat.open {
  transform: none;
  visibility: visible;
  opacity: 1;
}
.vulman-chat header {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(120deg, #172a4d, #304b76);
}
.assistant-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #1b2e52;
  background: #fff;
}
.vulman-chat header strong,
.vulman-chat header small {
  display: block;
}
.vulman-chat header strong {
  font-family: "Rubik", sans-serif;
  font-size: 15px;
}
.vulman-chat header small {
  margin-top: 3px;
  color: #cbd6e5;
  font-size: 10px;
}
.vulman-chat header small span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #42d3a6;
}
.assistant-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.assistant-clear,
.assistant-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #dce4f0;
  background: rgba(255, 255, 255, 0.09);
}
.assistant-clear:hover,
.assistant-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}
.assistant-messages {
  display: flex;
  overflow-y: auto;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 19px;
  background: #f5f7fa;
}
.assistant-message {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 13px;
  color: #344057;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 38, 70, 0.06);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.assistant-message.bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.assistant-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: #425a7e;
}
.assistant-message.typing {
  color: #7c8798;
  font-style: italic;
}
.assistant-message.error {
  color: #9c3440;
  background: #fff0f2;
}
.assistant-suggestions {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding: 10px 14px 5px;
  background: #f5f7fa;
}
.assistant-suggestions button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #d8dfe9;
  border-radius: 16px;
  color: #455a78;
  background: #fff;
  font-size: 10px;
}
.assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 13px;
  border-top: 1px solid #e8ecf2;
  background: #fff;
}
.assistant-form textarea {
  width: 100%;
  max-height: 88px;
  padding: 10px 11px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  outline: 0;
  resize: none;
  font-size: 12px;
}
.assistant-form textarea:focus {
  border-color: #7c8da7;
}
.assistant-form button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #1b2e52;
}
.assistant-form button:disabled {
  opacity: 0.55;
}
.assistant-whatsapp {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #168c68;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.assistant-whatsapp:hover {
  color: #fff;
  background: #117556;
}
.assistant-whatsapp i {
  font-size: 16px;
}
body:has(.vulman-assistant) #chat {
  bottom: 22px !important;
}
@media (max-width: 575.98px) {
  .vulman-assistant {
    right: 14px;
    bottom: 14px;
  }
  .vulman-assistant-launcher {
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
  }
  .vulman-assistant-launcher em {
    display: none;
  }
  .vulman-chat {
    position: fixed;
    right: 10px;
    bottom: 82px;
    left: 10px;
    width: auto;
    height: min(610px, calc(100vh - 100px));
  }
  body:has(.vulman-assistant) #chat {
    right: 18px !important;
    bottom: 82px !important;
  }
}

/* Definitive floating-button stack; no :has() support required. */
#chat {
  right: 24px !important;
  bottom: 22px !important;
}

.vulman-assistant {
  right: 20px !important;
  bottom: 105px !important;
}

@media (max-width: 991.98px) {
  #chat {
    right: 18px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .vulman-assistant {
    right: 14px !important;
    bottom: calc(165px + env(safe-area-inset-bottom)) !important;
  }

  .vulman-assistant-launcher {
    width: 56px !important;
    height: 56px !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .vulman-assistant-launcher em {
    display: none !important;
  }

  .vulman-chat {
    position: fixed !important;
    right: 10px !important;
    bottom: calc(233px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    height: min(590px, calc(100vh - 253px)) !important;
  }
}
