/* CHATBOT STYLES FOR DEVIANT */
:root {
    --chat-bg: rgba(255, 255, 255, 0.95);
    --chat-accent: #B48E66; /* Gold */
    --chat-text: #1A1A1A;
    --chat-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.deviant-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #C49A6C 0%, #9A7146 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(180, 142, 102, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 142, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(180, 142, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(180, 142, 102, 0);
    }
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

.chat-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--chat-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(180, 142, 102, 0.2);
    border-radius: 20px;
    box-shadow: var(--chat-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: slideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-header {
    background: var(--chat-accent);
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header .bot-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--chat-accent);
    font-weight: 700;
}

.chat-header h4 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
}

.chat-header p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(250, 247, 242, 0.5); /* Cream tint */
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.bot {
    align-self: flex-start;
    background: white;
    color: var(--chat-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.message.user {
    align-self: flex-end;
    background: var(--chat-accent);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Suggestions / Chips */
.chat-suggestions {
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.chat-suggestions::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.suggestion-chip {
    background: #f8f5f1;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(180, 142, 102, 0.1);
    flex-shrink: 0;
}

.suggestion-chip:hover {
    background: var(--chat-accent);
    color: white;
    border-color: var(--chat-accent);
}

/* Chat Input */
.chat-input-area {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #eee;
    padding: 12px 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.chat-send-btn {
    background: var(--chat-accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Warm Theme Button for Ordering */
.btn-order-now {
    display: block;
    width: 100%;
    background: linear-gradient(135.45deg, #B48E66 0%, #D4A373 100%);
    color: white !important;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(180, 142, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-order-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 142, 102, 0.4);
    filter: brightness(1.1);
}

/* Mobile Responsive Chat */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 80px;
        right: -10px;
    }
}
