#nutsforpress-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Toggle Button */
#nutsforpress-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#nutsforpress-chat-toggle:hover {
    transform: scale(1.1);
}

#nutsforpress-chat-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Chat Window */
#nutsforpress-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
}

#nutsforpress-chatbot-container.nutsforpress-chatbot-open #nutsforpress-chat-window {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Header */
#nutsforpress-chat-header {
    padding: 15px 20px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#nutsforpress-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Messages Area */
#nutsforpress-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nutsforpress-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.nutsforpress-bot {
    align-self: flex-start;
    background: rgba(243, 244, 246, 0.95);
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.nutsforpress-bot a {
    color: #4f46e5;
    text-decoration: underline;
}

.nutsforpress-user {
    align-self: flex-end;
    background: #6366f1;
    color: white;
    border-bottom-right-radius: 4px;
}

/* Input Area */
#nutsforpress-chat-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

#nutsforpress-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    padding: 10px 18px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
}

#nutsforpress-chat-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#nutsforpress-chat-send {
    background: #6366f1;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

#nutsforpress-chat-send:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

#nutsforpress-chat-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Loading indicator */
.nutsforpress-loading {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    width: auto;
}

.nutsforpress-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: nfp-bounce 1.4s infinite ease-in-out both;
}

.nutsforpress-dot:nth-child(1) { animation-delay: -0.32s; }
.nutsforpress-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes nfp-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
