/* Chat Container */
#wsa-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Toggle Button */
#wsa-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d63384; /* Yarn Pinkish Color */
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#wsa-chat-toggle:hover {
    transform: scale(1.1);
}

/* Chat Window */
#wsa-chat-window {
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 80px; /* Space for the toggle button */
    position: absolute;
    bottom: 0;
    right: 0;
    border: 1px solid #eee;
}

/* Header */
.wsa-chat-header {
    background-color: #d63384;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#wsa-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Messages Area */
#wsa-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsa-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

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

.wsa-user {
    background-color: #d63384;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.wsa-chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background-color: white;
}

#wsa-user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#wsa-user-input:focus {
    border-color: #d63384;
}

#wsa-send-btn {
    background-color: #d63384;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

#wsa-send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wsa-loading {
    font-style: italic;
    color: #888;
    font-size: 12px;
    margin-left: 10px;
}
