﻿
.supplier-chatbot {
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 99999;
}

.supplier-chat-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background: #8a1538;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.supplier-chat-window {
    position: fixed;
    right: 25px;
    bottom: 85px;
    width: 350px;
    height: 480px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.supplier-chat-header {
    background: #8a1538;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

    .supplier-chat-header button {
        background: transparent;
        color: #fff;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

.supplier-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #d8cfc6;
}

.supplier-message {
    max-width: 85%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.supplier-bot-message {
    background: #e8eef4;
    color: #222;
    margin-right: auto;
}

.supplier-user-message {
    background: #e8eef4;
    color: #222;
    margin-left: auto;
}

.supplier-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #ddd;
}

    .supplier-chat-input-area input {
        flex: 1;
        min-width: 0;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    .supplier-chat-input-area button {
        background: #d8cfc6;
        color: #fff;
        border: none;
        border-radius: 6px;
        padding: 10px 15px;
        cursor: pointer;
    }

        .supplier-chat-input-area button:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

.supplier-chat-status {
    padding: 0 12px 8px;
    font-size: 12px;
    color: #666;
}

@media (max-width: 480px) {
    .supplier-chat-window {
        right: 10px;
        left: 10px;
        bottom: 75px;
        width: auto;
        height: min(480px, 75vh);
    }

    .supplier-chat-toggle {
        right: 15px;
        bottom: 15px;
    }
}
