.budi-customer-rating-box__wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 315px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.budi-customer-rating-box__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 55, 83, 0.8);
    border-radius: 16px;
    z-index: 1;
}

.budi-customer-rating-box__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.budi-customer-rating-box__rating-group {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.budi-customer-rating-box__stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.budi-customer-rating-box__star {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.54052 1.45444C7.7138 1.05069 8.2862 1.05069 8.45948 1.45444L10.0409 5.13947C10.1133 5.30806 10.2722 5.42349 10.4549 5.4402L14.4482 5.80551C14.8858 5.84554 15.0626 6.38993 14.7322 6.67949L11.7162 9.32227C11.5782 9.44318 11.5175 9.62995 11.5581 9.80887L12.4447 13.7197C12.5418 14.1482 12.0787 14.4846 11.7012 14.2598L8.25582 12.2081C8.09819 12.1143 7.90181 12.1143 7.74418 12.2081L4.29875 14.2598C3.92126 14.4846 3.45817 14.1482 3.55531 13.7197L4.44189 9.80887C4.48245 9.62995 4.42177 9.44318 4.28379 9.32228L1.26781 6.67949C0.937365 6.38993 1.11425 5.84554 1.55178 5.80552L5.54515 5.4402C5.72785 5.42349 5.88672 5.30806 5.95907 5.13947L7.54052 1.45444Z' fill='%23FFCF3F'/%3E%3C/svg%3E%0A");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.budi-customer-rating-box__score {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.budi-customer-rating-box__meta-group {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.budi-customer-rating-box__avatars {
    display: flex;
    align-items: center;
    gap: -8px;
}

.budi-customer-rating-box__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.budi-customer-rating-box__avatar:first-child {
    margin-left: 0;
}

.budi-customer-rating-box__number {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 992px) {
    .budi-customer-rating-box__wrapper{
        min-height: 235px;
        background-position: top center !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .budi-customer-rating-box__wrapper {
        max-width: 100%;
    }

    .budi-customer-rating-box__star {
        width: 16px;
        height: 16px;
    }

    .budi-customer-rating-box__score {
        font-size: 20px;
    }

    .budi-customer-rating-box__avatar {
        width: 28px;
        height: 28px;
    }

    .budi-customer-rating-box__number {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .budi-customer-rating-box__wrapper {
        height: 160px;
        padding: 12px;
    }

    .budi-customer-rating-box__star {
        width: 14px;
        height: 14px;
    }

    .budi-customer-rating-box__score {
        font-size: 18px;
    }

    .budi-customer-rating-box__avatar {
        width: 24px;
        height: 24px;
    }

    .budi-customer-rating-box__number {
        font-size: 11px;
    }
}

/* Animation for stars */
.budi-customer-rating-box__star {
    animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

/* Staggered animation for stars */
.budi-customer-rating-box__star:nth-child(1) {
    animation-delay: 0s;
}

.budi-customer-rating-box__star:nth-child(2) {
    animation-delay: 0.1s;
}

.budi-customer-rating-box__star:nth-child(3) {
    animation-delay: 0.2s;
}

.budi-customer-rating-box__star:nth-child(4) {
    animation-delay: 0.3s;
}

.budi-customer-rating-box__star:nth-child(5) {
    animation-delay: 0.4s;
}