/* ===============================
   CHATBOT CONTENEDOR PRINCIPAL
   =============================== */
#probit-chatbot-container {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 460px;                /* 🔥 ALTURA TOTAL FIJA */
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 99999;
  display: none;
  display: flex;
  flex-direction: column;       /* 🔥 CLAVE */
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===============================
   HEADER
   =============================== */
#probit-chatbot-header {
  height: 60px;
  flex-shrink: 0;               /* 🔥 NO SE ENCOGE */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--probit-primary-color);
  color: #fff;
  box-sizing: border-box;
}

.probit-chatbot-header-left img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.probit-chatbot-header-center {
  flex: 1;
  display: flex;              /* 🔥 clave */
  flex-direction: column;     /* 🔥 uno arriba del otro */
  align-items: center;        /* centrado horizontal */
  justify-content: center;    /* centrado vertical */
  line-height: 1.1;
}

.probit-chatbot-company-name {
  font-weight: 700;
  font-size: 14px;
  display: block;
  color: var(--probit-header-text-color);
}


.probit-chatbot-anto-name {
  font-size: 10px;
  color: #ddd;
  display: block;
  margin-top: 2px;
  color: var(--probit-header-text-color);
}


#probit-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   BODY (CLAVE ABSOLUTA)
   =============================== */
#probit-chatbot-body {
  flex: 0 0 65%;            /* 🔥 OCUPA TODO EL ALTO DISPONIBLE */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* ===============================
   CONTENEDOR CHAT (MENSAJES)
   =============================== */
#probit-chatbot-chat{
  flex: 1;                      /* 🔥 OCUPA TODO EL ESPACIO */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===============================
   MENSAJES
   =============================== */
#probit-chatbot-messages {
  flex: 1;                      /* 🔥 ALTURA AUTOMÁTICA */
  padding: 12px;
  overflow-y: auto;             /* 🔥 SCROLL REAL */
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* MENSAJE BASE */
.probit-chatbot-msg {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

/* USUARIO */
.probit-chatbot-msg.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* BOT */
.probit-chatbot-msg.bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0,0,0,.06);
}

/* HORA */
.probit-chatbot-msg small {
  display: block;
  font-size: 10px;
  text-align: right;
  margin-top: 4px;
  opacity: .7;
}

/* ===============================
   INPUT
   =============================== */
#probit-chatbot-input-area {
  height: 58px;
  flex-shrink: 0;               /* 🔥 NO SE MUEVE */
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  box-sizing: border-box;
}

#probit-chatbot-text {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;   /* 🔥 totalmente ovalado */
  outline: none;
  font-size: 14px;
}


#probit-chatbot-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--probit-primary-color);
  color: var(--probit-header-text-color);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


#probit-chatbot-send:disabled,
#probit-chatbot-text:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===============================
   BOTÓN FLOTANTE
   =============================== */
#probit-chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--probit-primary-color);
  color: var(--probit-header-text-color);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  z-index: 99999;
}

/* ===============================
   FOOTER GENERAL
   =============================== */
#probit-chatbot-footer {
  padding: 8px 10px 10px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
  box-sizing: border-box;
}

/* Tabs en extremos */
.probit-footer-tabs {
  display: flex;
  justify-content: space-between; /* 🔥 izquierda / derecha */
  align-items: center;
  margin-bottom: 6px;
}

/* Botones tab */
.probit-tab {
  background: none;        /* 🔥 sin fondo */
  border: none;            /* 🔥 sin borde */
  padding: 10px 50px;
  font-size: 14px;
  font-weight: 500;
  color: #000;             /* 🔥 texto negro */
  cursor: pointer;
  opacity: 0.5;
  
}

.probit-tab:hover{
    opacity: 0.7;
}

/* Estado activo */
.probit-tab.active {
  opacity: 1;
}

/* Logo centrado */
.probit-footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.probit-footer-logo img {
  max-width: 50px;
  height: auto;
  opacity: 0.3;
}
.probit-footer-logo img:hover {
  opacity: 0.6;
}


/* ===============================
   SOPORTE (USA TODO EL ALTO)
   =============================== */
#probit-chatbot-support {
  flex: 1;                          /* 🔥 usa todo el alto */
  display: flex;
  flex-direction: column;
  align-items: center;              /* 🔥 centrado horizontal */
  gap: 14px;
  padding: 20px;
  box-sizing: border-box;
}

.probit-support-item a:hover {
  color: var(--probit-primary-color);
}


/* Botones ovalados */
.probit-support-link {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 999px;             /* 🔥 ovalado */
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  margin: 0px 0px 30px 0px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
  background: #fff;
}

/* Hover */
.probit-support-link:hover, .probit-support-link:focus {
  background: #f5f5f5;
  transform: translateY(-1px);
  color: var(--probit-primary-color);
}

.probit-support-link svg{
    width: 25px;
}
.mensaje-footer{
    font-size: 66% !important;
}