#chatgpt-chatbot-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px; /* moved to left */
    width: 52px;
    height: 52px;
    background-color: #2563eb;
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 52px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 9999;
}

#chatgpt-chatbot-container {
    position: fixed;
    bottom: 90px;
    max-height: 600px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: Arial, sans-serif;
    overflow: hidden;
    direction: ltr;
    left: 24px;
    right: 24px; /* Add this to avoid cutoff on right */
    width: calc(100% - 48px); /* dynamically adjust width */
    max-width: 500px;
}

#chatgpt-chatbot-header {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #fff;
    padding: 18px 20px;
    font-size: 21px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatgpt-chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

#chatgpt-chat-log {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    direction: ltr;
    text-align: left;
}

#chatgpt-chatbot-input-area {
    display: flex;
    align-items: center;
    padding: 8px;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
    direction: ltr;
}

#chatgpt-chat-input {
    flex: 1;
    resize: none;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    min-height: 48px;
    max-height: 140px;
    overflow-y: auto;
    margin-right: 10px; /* Pushes input away from send button on right */
    direction: ltr;
    text-align: left;
}

#chatgpt-send-button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

#chatgpt-send-button:hover {
    background-color: #1d4ed8;
}

.chatgpt-chat-msg {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0;
    padding: 0 6px;
    font-family: "Calibri", sans-serif;
    font-size: 18px;
    direction: ltr;
}

.chatgpt-chat-msg.user {
    justify-content: flex-end;
}

.chatgpt-chat-bubble {
    background-color: #f1f0f0;
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 70%;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    direction: ltr;
    text-align: left;
}

.chatgpt-chat-msg.user .chatgpt-chat-bubble {
    background-color: #d1e7dd;
}

.chatgpt-message-text {
    margin-bottom: 6px;
}

.chatgpt-timestamp {
    display: block;
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 4px;
}

.chatgpt-chat-avatar {
    font-size: 24px;
    margin-left: 8px;
    width: 30px;
    text-align: center;
}

.chatgpt-chat-msg.user .chatgpt-chat-avatar {
    order: 2;
    margin-right: 8px;
    margin-left: 0;
}



@media (min-width: 767px) {
    #chatgpt-chatbot-header{
        font-size:medium;
    }
    
}