.answerly-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999998;
    transition: all 0.3s ease;
}

.answerly-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.answerly-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    background: white;
    z-index: 999999;
}

.answerly-chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.answerly-header {
    padding: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.answerly-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.answerly-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.answerly-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.answerly-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 24px;
}

.answerly-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.answerly-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
}

.answerly-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fafb;
}

.answerly-message {
    display: flex;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.answerly-message.user {
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.answerly-message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.answerly-message-bubble.bot {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.answerly-message-bubble.user {
    background: #2563eb;
    color: white;
}

.answerly-input-area {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.answerly-input-group {
    display: flex;
    gap: 8px;
}

.answerly-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.answerly-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.answerly-send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .answerly-chat-window {
        width: calc(100vw - 20px);
        height: 80vh;
    }
}
