.apf-container {
    max-width: 400px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'IRANSans', Tahoma, sans-serif;
    direction: rtl;
}

.apf-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apf-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.apf-message {
    margin-bottom: 15px;
    animation: fadeIn 0.5s;
}

.apf-message.user {
    text-align: right;
    color: #667eea;
}

.apf-message.bot {
    text-align: left;
    color: #333;
}

.apf-products {
    margin-top: 10px;
}

.apf-product {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.apf-product img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.apf-input {
    display: flex;
    padding: 10px;
    background: white;
}

.apf-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-left: 10px;
}

.apf-input button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.apf-input button:hover {
    background: #764ba2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}