/* Floating Chat Button */
#grok-chat-button {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 99999;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
	padding: 0;
}

#grok-chat-button::after {
    content: 'Chat with Grok';
    position: absolute;
    bottom: 8px;
    right: 55px;
    background: #1a73e8;
    padding: 6px 10px;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

/* Chat Modal */
#grok-chat-modal {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 99999;
    width: 360px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto;
}

#grok-chat-header {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    background: #f7f7f8;
	color: #000;
}

#grok-chat-messages {
    height: 320px;
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.grok-msg {
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 85%;
}

.grok-msg.user {
    align-self: flex-end;
    background: #1a73e8;
    color: #fff;
}

.grok-msg.bot {
    align-self: flex-start;
    background: #f1f1f1;
    color: #111;
}

#grok-chat-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

#grok-chat-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 8px;
	background-color: #fff;
	color: #000;
}

#grok-chat-send {
    padding: 8px 12px;
    border-radius: 6px;
    background: #1a73e8;
    color: #fff;
    border: 0;
    cursor: pointer;
	height: 35px;
}

/* Typing animation */
.typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    background: #555;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

#grok-floating-btn-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}


