.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 1000;
}

.chatbot-header {
    background: #4CAF50; /* Green for a florist theme */
    color: #fff;
    padding: 12px;
    border-radius: 12px 12px 0 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

.chat-toggle:hover,
.chat-toggle:focus {
    color: #e0e0e0;
    outline: none;
}

.chatbot-support {
    background: #f9f4f5; /* Light pink for a florist aesthetic */
    color: #333;
    padding: 8px;
    font-size: 0.9em;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f4f5; /* Light pink for a florist aesthetic */
    border-bottom: 1px solid #e0e0e0;
    scrollbar-width: thin;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 6px;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: #4CAF50; /* Green for user messages */
    color: #fff;
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background: #fff0f5; /* Light pink for bot messages */
    color: #333;
    margin-right: auto;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    margin-right: auto;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.chatbot-input input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    outline: none;
}

.chatbot-input button {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.chatbot-input button:hover {
    background: #388E3C;
}

.chatbot-input button:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.chatbot-icon:hover,
.chatbot-icon:focus {
    background: #388E3C;
    outline: none;
}

.loading {
    text-align: center;
    padding: 10px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.chatbot-input input:focus,
.chatbot-input button:focus,
.chatbot-icon:focus,
.chat-toggle:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}