.chat-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

.chat-bot-toggle {
    background: #9B8281; /* Changed from blue to brown */
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.chat-bot-toggle:hover {
    transform: translateY(-2px);
}

.chat-bot-icon {
    font-size: 24px;
}

.chat-bot-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1000;
}

/* Remove the showing-recommendations class as we don't need it anymore */
.chat-bot-window.showing-recommendations {
    display: none;
}

@media (max-width: 480px) {
    .chat-bot-window {
        width: 100%;
        height: calc(100% - 20px);
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
    }
}

.chat-bot.active .chat-bot-window {
    display: flex !important;
    flex-direction: column;
}

.chat-bot-header {
    background: #9B8281; /* Changed from blue to brown */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.chat-bot-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message, .user-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.bot-message {
    background: #f0f2f5;
    align-self: flex-start;
}

.user-message {
    background: #9B8281; /* Changed from blue to brown */
    color: white;
    align-self: flex-end;
}

.chat-options {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 40%;
    overflow-y: auto;
    flex-shrink: 0;
}

.options-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.chat-option {
    background: #f0f2f5;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.chat-option:hover {
    background: #e4e6e9;
    transform: translateY(-1px);
}

.chat-recommendation {
    border: none;
    box-shadow: none;
}

.chat-recommendation img {
    max-height: 180px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
}

.chat-recommendation h4 {
    color: #333;
    font-size: 16px;
    margin: 0 0 8px;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.chat-rec-btn {
    display: inline-block;
    background: #9B8281;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.chat-rec-btn:hover {
    background: #8A716F;
    transform: translateY(-1px);
}

.product-message {
    max-width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
}

.product-message .chat-recommendation {
    background: #f0f2f5;
    margin: 10px 0;
    padding: 15px;
    border-radius: 12px;
}

/* Remove unused styles */
.chat-recommendations-wrapper,
.chat-reset-container {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
