/* Decent Florist Chatbot Styles (Scoped to .df-chat-container) */

.df-chat-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
}

/* Floating Button */
.df-chat-btn {
    background: linear-gradient(135deg, #E91E63, #ff477e);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.df-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.df-chat-btn img.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

/* Chat Window */
.df-chat-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    transform-origin: bottom left;
}

.df-chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.df-chat-header {
    background: linear-gradient(135deg, #E91E63, #ff477e);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.df-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.df-header-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.df-header-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.df-header-text p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.df-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.df-close-btn:hover { opacity: 1; }

/* Body */
.df-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.df-chat-body::-webkit-scrollbar { width: 6px; }
.df-chat-body::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 3px; }

/* Messages */
.df-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.df-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.df-msg-user {
    align-self: flex-end;
    background: #E91E63;
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(233,30,99,0.2);
}

.df-msg-bot a {
    color: #E91E63;
    text-decoration: none;
    font-weight: 600;
}

/* Quick Actions */
.df-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.df-quick-btn {
    background: white;
    border: 1px solid #E91E63;
    color: #E91E63;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.df-quick-btn:hover {
    background: #E91E63;
    color: white;
}

/* Input Area */
.df-chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.df-chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 12px 15px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.df-chat-input-area input:focus {
    border-color: #E91E63;
}

.df-send-btn {
    background: #E91E63;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.df-send-btn:hover {
    background: #d81b60;
    transform: scale(1.05);
}
.df-send-btn svg { width: 18px; height: 18px; fill: white; }

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .df-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1000000;
        transform: translateY(100%);
    }
    .df-chat-window.active {
        transform: translateY(0);
    }
    .df-chat-btn {
        bottom: 90px;
        left: 20px;
        position: fixed;
    }
    .df-chat-window.active ~ .df-chat-btn {
        display: none;
    }
}
