.bgr-google-rating {
    --bgr-star-color: #fbbc04;
    --bgr-muted-color: #5e5e5e;
    --bgr-empty-star-color: rgba(94, 94, 94, 0.22);

    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    font-family: inherit;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.bgr-google-rating--loaded {
    opacity: 1;
    visibility: visible;
}

.bgr-google-rating--left {
    align-items: flex-start;
    text-align: left;
}

.bgr-google-rating--center {
    align-items: center;
    text-align: center;
}

.bgr-google-rating--right {
    align-items: flex-end;
    text-align: right;
}

.bgr-attribution {
    min-height: 16px;
}

.bgr-attribution-text {
    display: inline-block;
    color: var(--bgr-muted-color);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    white-space: nowrap;
}

.bgr-attribution-logo {
    box-sizing: content-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 5px;
}

.bgr-google-maps-logo {
    display: block;
    width: auto;
    height: 18px;
    max-width: none;
    object-fit: contain;
}

.bgr-rating-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bgr-stars {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.bgr-stars-background {
    display: block;
    color: var(--bgr-empty-star-color);
}

.bgr-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 0;
    overflow: hidden;
    color: var(--bgr-star-color);
    white-space: nowrap;
    transition: width 280ms ease;
}

.bgr-score {
    display: inline-block;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.bgr-review-count {
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.bgr-review-link {
    color: inherit;
    text-decoration: none;
}

.bgr-review-link:hover,
.bgr-review-link:focus {
    text-decoration: underline;
}

.bgr-review-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.bgr-count {
    font-weight: 700;
}

.bgr-google-rating--dark {
    --bgr-muted-color: #ffffff;
    --bgr-empty-star-color: rgba(255, 255, 255, 0.28);
}

.bgr-google-rating--dark .bgr-attribution-text {
    color: #ffffff;
}

@media (max-width: 600px) {
    .bgr-stars {
        font-size: 20px;
    }

    .bgr-score {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bgr-google-rating,
    .bgr-stars-fill {
        transition: none;
    }
}
