


body.during-loader #btn-floating-alert,
body.during-loader #alert-panel,
body.during-loader #chatbotWidget {
    display: none !important;
}


.chatbot-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 850;
}


.chatbot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    background: var(--brand, #ea0029);
    color: #fff;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: transform .12s ease;
    padding: 0;
}

.chatbot-toggle:hover {
    transform: scale(1.04);
}


.chatbot-icon {
    width: 70%;
    
    height: auto;
    object-fit: contain;
}


.chatbot-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(10, 22, 70, .18);
    display: none;
    flex-direction: column;
    max-height: 72vh;
    overflow: hidden;
    z-index: 851;
}

.chatbot-panel.is-open {
    display: flex;
}


.chatbot-header {
    background: #f6f8fd;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eef1f6;
}

.chatbot-header span {
    font-weight: 600;
    font-size: 14px;
    color: #2b2f43;
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6b6f92;
}


.chatbot-body {
    padding: 10px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    height: 200px;
    
}

.chatbot-msg {
    padding: 7px 10px 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    max-width: 90%;
}

.chatbot-msg.bot {
    background: #f2f4f9;
    align-self: flex-start;
}

.chatbot-msg.user {
    background: rgba(234, 0, 41, .12);
    align-self: flex-end;
}


.chatbot-input {
    display: flex;
    gap: 6px;
    padding: 8px 10px 12px;
    border-top: 1px solid #eef1f6;
    background: #fff;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #dfe3ec;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
}

.chatbot-input button {
    background: var(--brand, #ea0029);
    border: none;
    border-radius: 999px;
    padding: 6px 15px 5px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}




.btn-floating-alert {
    position: fixed;
    top: 110px;
    bottom: auto;
    right: 30px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    background: #ea0029;
    color: #fff;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    cursor: pointer;
    z-index: 850;
    transition: transform .12s ease;
}

.btn-floating-alert:hover {
    transform: scale(1.04);
}


.floating-alert-panel {
    position: fixed;
    top: 180px;
    bottom: auto;
    right: 30px;
    width: min(340px, 90vw);
    height: auto;
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(10, 22, 70, .18);
    display: none;
    z-index: 851;
    overflow: hidden;
}


.floating-alert-panel.is-open {
    display: block;
}


.floating-alert-panel .chatbot-body {
    height: auto;
    
    padding-bottom: 15px;
    
}

.floating-alert-panel .alert-msg {
    max-width: 100%;
    background: transparent;
    padding: 0;
}

.floating-alert-panel .alert-msg p {
    font-size: 14px;
    line-height: 1.5;
}

.floating-alert-panel .alert-msg strong.text-danger {
    font-size: 16px;
}


@media (max-width: 575.98px) {
    .chatbot-widget {
        right: 15px;
        bottom: 20px;
    }

    .chatbot-panel {
        right: 15px;
        bottom: 90px;
    }

    .btn-floating-alert {
        right: 15px;
        top: 95px;
        bottom: auto;
        
    }

    .floating-alert-panel {
        right: 15px;
        top: 165px;
        bottom: auto;
    }
}


.btn-floating-alert {
    top: 160px !important;
    
    bottom: auto !important;
    z-index: 9999 !important;
    
}

.floating-alert-panel {
    top: 230px !important;
    
    bottom: auto !important;
    z-index: 10000 !important;
}

@media (max-width: 1440px) {
    .btn-floating-alert {
        top: 170px !important;
    }

    .floating-alert-panel {
        top: 240px !important;
    }
}