/* ==============================
   I LAB CHATBOT
================================ */

/* Floating Chatbot Button */
.chatbot-launcher {
    position: fixed !important;
    left: 25px !important;
    right: auto !important;
    bottom: 25px !important;

    width: 62px;
    height: 62px;

    border: none;
    border-radius: 50%;

    background: #dc2626;
    color: #ffffff;

    font-size: 28px;
    cursor: pointer;

    display: flex !important;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.35);

    transition: all 0.3s ease;
}

.chatbot-launcher:hover {
    background: #b91c1c;
    transform: translateY(-4px);
}

.chatbot-launcher i {
    pointer-events: none;
}

/* Chatbot Window */
.chatbot-box {
    position: fixed;

    left: 25px;
    right: auto;
    bottom: 100px;

    width: 360px;
    max-width: calc(100vw - 30px);
    height: 490px;
    max-height: calc(100vh - 130px);

    background: #ffffff;

    border-radius: 16px;
    overflow: hidden;

    display: none;
    flex-direction: column;

    z-index: 999998;

    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);

    border: 1px solid #eeeeee;
}

.chatbot-box.active {
    display: flex !important;
}

/* Header */
.chatbot-header {
    background: #b91c1c;
    color: #ffffff;

    padding: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 43px;
    height: 43px;

    background: #ffffff;
    color: #dc2626;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.chatbot-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.chatbot-header span {
    font-size: 11px;
    color: #ffe5e5;
}

.online-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    background: #4ade80;
    border-radius: 50%;

    margin-right: 4px;
}

.chatbot-close {
    background: transparent;
    border: none;

    color: #ffffff;
    font-size: 19px;

    cursor: pointer;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;

    padding: 16px;

    overflow-y: auto;

    background: #f8f9fb;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Messages */
.chat-message {
    max-width: 88%;

    padding: 11px 14px;

    font-size: 13px;
    line-height: 1.6;

    border-radius: 12px;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

.bot-message {
    align-self: flex-start;

    background: #ffffff;
    color: #333333;

    border: 1px solid #eeeeee;

    border-bottom-left-radius: 3px;
}

.user-message {
    align-self: flex-end;

    background: #dc2626;
    color: #ffffff;

    border-bottom-right-radius: 3px;
}

/* Quick Questions */
.chatbot-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chatbot-quick-options button {
    background: #ffffff;

    color: #b91c1c;

    border: 1px solid #dc2626;
    border-radius: 20px;

    padding: 7px 11px;

    font-size: 11px;
    cursor: pointer;

    transition: all 0.2s ease;
}

.chatbot-quick-options button:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 12px;

    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.chatbot-input-area input {
    flex: 1;
    min-width: 0;

    border: 1px solid #dddddd;
    outline: none;

    border-radius: 25px;

    padding: 11px 15px;

    font-size: 13px;
}

.chatbot-input-area input:focus {
    border-color: #dc2626;
}

.chatbot-input-area button {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #dc2626;
    color: #ffffff;

    font-size: 15px;

    cursor: pointer;
}

.chatbot-input-area button:hover {
    background: #b91c1c;
}

/* Footer */
.chatbot-footer {
    padding: 7px;

    text-align: center;

    font-size: 10px;
    color: #888888;

    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.chatbot-product-info,
.chatbot-service-info {
    line-height: 1.6;
}

.chatbot-product-info > strong,
.chatbot-service-info > strong {
    display: block;
    color: #a50000;
    margin: 8px 0;
}

.chatbot-product-info p,
.chatbot-service-info p {
    margin: 7px 0;
}

.chatbot-product-info ul,
.chatbot-service-info ul {
    padding-left: 20px;
    margin: 8px 0;
}

.chatbot-product-info li,
.chatbot-service-info li {
    margin-bottom: 5px;
}

.chatbot-model-name {
    display: inline-block;
    background: #f8eaea;
    color: #a50000;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 0 10px;
    font-weight: 600;
}

.chatbot-specifications {
    font-size: 12px;
}

.chatbot-more-specs {
    font-size: 12px;
    color: #666;
}

.chatbot-whatsapp-container {
    margin: 10px 0 15px;
}