/* ==========================================================================
   elTutors AI ChatBot & Live Support Floating Widget Stylesheet
   ========================================================================== */

.bh-chatbot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057FF 0%, #0042C7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 87, 255, 0.35);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

[dir="rtl"] .bh-chatbot-launcher {
    right: auto;
    left: 24px;
}

.bh-chatbot-launcher:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 87, 255, 0.45);
}

.bh-chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    height: 540px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

[dir="rtl"] .bh-chatbot-window {
    right: auto;
    left: 24px;
    transform-origin: bottom left;
}

.bh-chatbot-window.d-none {
    display: none !important;
}

.bh-chatbot-header {
    background: #0F172A;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bh-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #F8FAFC;
}

.bh-chatbot-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.bh-chatbot-bubble.bot {
    background: #ffffff;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bh-chatbot-bubble.visitor {
    background: #0057FF;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bh-chatbot-bubble.agent {
    background: #10B981;
    color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bh-chatbot-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #E2E8F0;
}

.bh-chatbot-chip {
    background: #ffffff;
    border: 1px solid #CBD5E1;
    color: #0057FF;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bh-chatbot-chip:hover {
    background: #0057FF;
    color: #ffffff;
    border-color: #0057FF;
}

.bh-feedback-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
}

.bh-feedback-btn:hover {
    color: #0057FF;
}
