/* Floating Widget Container */
#tg-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 100px;
    width: 350px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    z-index: 9999;
    overflow: hidden;
}

/* Header */
#tg-chat-header {
    background: #0073aa; /* WordPress Blue - Change to Brand Color */
    color: #fff;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

/* Chat Body */
#tg-chat-body {
    display: block; /* Change to 'none' if you want it closed by default */
}

/* Messages Area */
#tg-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message Bubbles */
.bot-msg, .user-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-msg {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: #0073aa;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.loading {
    font-style: italic;
    color: #888;
    background: transparent;
}

/* Input Area */
#tg-input-area {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
}

#tg-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#tg-send-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 0 15px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
}