.chatbot-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 64px;
    height: 64px;
    background: #560F11;
    border-radius: 32px;
    bottom: 230px;
    right: 20px;
    z-index: 99999;
    border: 1px solid #fff;
}

.chatbot-widget {
   display: none;
}

.chatbot-widget.show{
    width: 420px;
    height: 640px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 99999;
}

/* HEADER */
.header {
    background: #8b0000;
    color: white;
    min-height: 76px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.bot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #ffffff, transparent);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.header-name {
    font-size: 16px;
    font-weight: 650;
}

.header-status {
    margin-top: 4px;
    font-size: 12px;
    color: #a3e635;
}

.clear-btn {
    width: auto;
    padding: 7px 11px;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: 0.15s;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* MESSAGES */
.messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.bot-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 90%;
}

.bot-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #ffffff, transparent);

    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.msg {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.msg.bot {
    background: #f2f3f5;
    color: #111827;
    border-bottom-left-radius: 5px;
}

.msg.user {
    align-self: flex-end;
    max-width: 82%;
    background: #4f46e5;
    color: white;
    border-bottom-right-radius: 5px;
}

/* QUICK BUTTONS */
.chips {
    padding: 7px 14px 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #8B0000;
    padding: 7px 11px;
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.15s;
}

.chip:hover {
    background: #8B0000;
    color: #FFFFFF;
}

/* INPUT */
.input-row {
    border-top: 1px solid #e5e7eb;
    padding: 12px;
    display: flex;
    gap: 9px;
}

#userInput {
    flex: 1;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
}

#userInput:focus {
    border-color: #EF4444;
}

#sendBtn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #F87171;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#sendBtn:hover {
    background: #EF4444;
}

#sendBtn:disabled,
#userInput:disabled {
    opacity: 0.5;
    cursor: default;
}

.blocked-input {
    opacity: 0.7;
}

/* MOBILE */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .widget {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}
