/* Chat Widget Container */
#isppme-chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073aa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9998;
}

#isppme-chatbot-icon::after {
    content: '💬';
    font-size: 28px;
    color: white;
}

#isppme-chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

#isppme-chatbot-header {
    background-color: #0073aa;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#isppme-chatbot-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

#isppme-chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.isppme-chatbot-message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.isppme-chatbot-message p {
    margin: 0;
    padding: 0;
}

.isppme-chatbot-message-bot {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.isppme-chatbot-message-user {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#isppme-chatbot-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#isppme-chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 8px 15px;
    font-size: 14px;
}

#isppme-chatbot-send {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Loader Styles */
#isppme-chatbot-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 auto;
}

#isppme-chatbot-loader.show {
    display: flex;
}

#isppme-chatbot-loader::after {
    content: '';
    width: 25px;
    height: 25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
