/* ===================================================================
   🔵 1) BOTÓN FLOTANTE DEL CHAT
   ------------------------------------------------------------------- */
#probit-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    font-size: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
#probit-chatbot-toggle img.emoji {
    margin-right: 0 !important;
}


/* ===================================================================
   🔵 2) CONTENEDOR PRINCIPAL DEL CHAT
   ------------------------------------------------------------------- */
#probit-chatbot-container {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 460px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


/* ===================================================================
   🔵 3) HEADER DEL CHAT
   ------------------------------------------------------------------- */
#probit-chatbot-header {
    background-color: #0073aa;
    color: white;
    padding: 12px;
    font-weight: bold;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}
#probit-chatbot-close {
    position: absolute;
    top: -5px;
    right: 12px;
    cursor: pointer;
    color: white;
    font-size: 20px;
}
.img-probit {
    width: 15%;
}


/* ===================================================================
   🔵 4) MENSAJES – ÁREA MODERNA SCROLLEABLE
   ------------------------------------------------------------------- */
#probit-chatbot-container-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #ffffff;

    /* Scroll moderno */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}
#probit-chatbot-container-messages::-webkit-scrollbar {
    width: 6px;
}
#probit-chatbot-container-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
#probit-chatbot-container-messages::-webkit-scrollbar-track {
    background: transparent;
}

#probit-chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px !important;
}

/* Mensajes */
.probit-chatbot-msg {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 90%;
    line-height: 1.4;
    word-break: break-word;
	font-size: 12px;
}
.probit-chatbot-msg.user {
    background: #d5d5d561;
    align-self: flex-end;
    font-weight: bold;
	color: #000;
}
.probit-chatbot-msg.bot {
    background: #f1f1f1;
    align-self: flex-start;
}

.probit-chatbot-msg.bot .probit-chatbot-time {
    margin-top: 4px;
    font-size: 10px;
    color: #fff;
    text-align: right;
    opacity: .8;
}

.probit-chatbot-msg.user .probit-chatbot-time {
    margin-top: 4px;
    font-size: 10px;
    color: #000;
    text-align: right;
    opacity: .8;
}



/* ===================================================================
   🔵 5) NUEVO INPUT + BOTÓN DE ENVÍO DENTRO DEL INPUT
   ------------------------------------------------------------------- */
.probit-chatbot-input-area {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
}

.probit-chatbot-input-wrapper {
    position: relative;
    width: 100%;
}

#probit-chatbot-text {
    width: 100%;
    height: 44px;
    padding: 12px 50px 12px 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
    background: #fafafa;
    outline: none;
    font-size: 14px;
    transition: all .2s ease;
}
#probit-chatbot-text:focus {
    border-color: #0073aa;
    background: #ffffff;
}

/* Botón dentro del input */
#probit-chatbot-send {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0073aa;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background .2s ease;
}
#probit-chatbot-send:hover {
    background: #005d8f;
}
#probit-chatbot-send i {
    color: #fff;
    font-size: 16px;
}


/* ===================================================================
   🔵 6) FOOTER DEL CHAT (ChatBox / Contacto)
   ------------------------------------------------------------------- */
#probit-chatbot-footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 6px 8px;          /* 🔽 antes 10px */
    height: 48px;              /* 🔽 altura más compacta */
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    flex-shrink: 0; /* evita desaparecer */
}

/* Ajustar tamaño de los íconos y textos del footer */
#probit-chatbot-footer span {
    font-size: 18px;           /* 🔽 un poco más pequeño que antes */
}
#probit-chatbot-footer small {
    font-size: 10px;
	opacity: 0.75;
	color: #000000;
}

.chatbox-div,
.contacto-div {
    text-align: center;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity .2s;
}
.chatbox-div:hover,
.contacto-div:hover {
    opacity: 1;
}


/* ===================================================================
   🔵 7) LOGO PROBIT SIEMPRE VISIBLE
   ------------------------------------------------------------------- */
#probit-chatbox-footer-probit {
    text-align: center;
    padding: 4px 0;            /* 🔽 antes 8px */
    background: #fff;
    flex-shrink: 0;
}
#probit-chatbox-footer-probit .img-probit {
    opacity: .3;
    width: 38px;               /* 🔽 antes 50px */
    filter: grayscale(100%);
    transition: .3s ease;
}
#probit-chatbox-footer-probit .img-probit:hover {
    opacity: 1;
    filter: grayscale(0%);
}


/* ===================================================================
   🔵 8) CONTACTO (contenedor de info)
   ------------------------------------------------------------------- */
#probit-chatbot-container-info {
    flex: 1;
    overflow-y: auto;
    display: none;
    padding: 12px;

    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}
#probit-chatbot-container-info::-webkit-scrollbar {
    width: 6px;
}
#probit-chatbot-container-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}


/* ===================================================================
   🔵 9) RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
    #probit-chatbot-container {
        width: 310px !important;
        right: 5px !important;
    }
}


/* Quitar scroll visible en todos los navegadores */
#probit-chatbot-container-messages {
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
}

#probit-chatbot-container-messages::-webkit-scrollbar {
    width: 0 !important; /* Chrome / Safari */
    height: 0 !important;
}

#probit-chatbot-container-messages::-webkit-scrollbar-thumb {
    background: transparent !important;
}

#probit-chatbot-container-messages::-webkit-scrollbar-track {
    background: transparent !important;
}

#probit-chatbot-close {
    display: none !important;
}
