.trust-bar-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    direction: rtl;
}

.trust-bar-bg {
    background: linear-gradient(to right, #FF4B2B 0%, #FFFF00 50%, #28A745 100%);
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.trust-bar-fill {
    height: 100%;
    background: transparent;
}

.trust-indicator {
    position: absolute;
    top: -35px;
    text-align: center;
    /* ברירת המחדל: מרכוז מושלם */
    transform: translateX(-50%);
}

/*
 * תיקון באג: חוקים מיוחדים למצבי קצה.
 * כאשר התיבה מגיעה להתחלה, אנו משנים את ה-transform
 * כך שהיא תתיישר לקצה השמאלי במקום לחרוג ממנו.
*/
.trust-indicator.at-start {
    transform: translateX(0);
}

/*
 * כאשר התיבה מגיעה לסוף, אנו משנים את ה-transform
 * כך שהיא תתיישר לקצה הימני.
*/
.trust-indicator.at-end {
    transform: translateX(-100%);
}

.trust-indicator .arrow {
    font-size: 20px;
    color: var(--arrow-color);
}

.trust-indicator .score {
    color: white;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}