/* ✅ קונטיינר ראשי - מוודא שהכול ב-RTL ומיושר נכון */
.my-fbt-container {
    direction: rtl;
    text-align: right;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* ✅ כותרת הקופסה - מיושרת לימין עד הסוף עם המחיר בצד שמאל */
.my-fbt-container h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-start; /* מחזיר את הכותרת לצד ימין */
    align-items: center;
    gap: 10px; /* מקטין את הרווח בין הכותרת למחיר */
}

/* ✅ מחיר ליד הכותרת */
.fbt-total-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073e6;
    margin-right: auto; /* דוחף את המחיר שמאלה */
}

/* ✅ רשימת המוצרים - מסודרת עם יישור מלא */
.fbt-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* ✅ כל שורה של מוצר - מסודרת לרוחב עם מרווחים נכונים */
.fbt-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: right;
    width: 100%;
}

/* ✅ הצ'קבוקס חייב להיות בצד ימין */
.fbt-checkbox {
    order: 1;
    margin-left: 10px;
    transform: scale(1.2);
}

/* ✅ מיקום התמונה אחרי הצ'קבוקס */
.fbt-product-image {
    order: 2;
    width: 50px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbt-product-image img {
    width: 50px;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* ✅ שם המוצר ומחירים אחרי התמונה */
.fbt-product-info {
    order: 3;
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ✅ שם המוצר - מיושר צמוד לימין */
.fbt-product-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    text-align: right;
}

/* ✅ מחירים - הצמדה נכונה */
.fbt-price-wrapper {
    display: flex;
    align-items: center;
    gap: 3px; /* מקטין את הרווח בין המחירים */
    flex-shrink: 0;
}

/* ✅ מחיר מקורי (מחוק) */
.original-price {
    font-size: 16px;
    color: #777;
    text-decoration: line-through;
    margin-left: 3px; /* מקרב את המחיר למחיר ההנחה */
}

/* ✅ מחיר לאחר הנחה */
.discounted-price {
    font-size: 16px;
    color: #0073e6;
    font-weight: bold;
        margin-left: 3px; /* מצמיד את המחיר השמאלי */

}

/* ✅ התאמה למסכים קטנים */
@media screen and (max-width: 768px) {
    .fbt-product-item {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .fbt-product-image img {
        order: -1;
        width: 50px;
        height: auto;
        border-radius: 5px;
        border: 1px solid #ddd;
    }

    .fbt-checkbox {
        margin-right: 10px;
    }
}

.elementor-widget-my_fbt_widget .my-fbt-container {
    width: 100%; /* מלא רוחב */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}
