> For the complete documentation index, see [llms.txt](https://reputon.gitbook.io/reputon-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reputon.gitbook.io/reputon-help/google-reviews-app/custom-style-codes/compact-widgets/rating-badge-medium-sticky-compact-rating-widget.md).

# Rating badge medium /sticky compact rating widget

### Change rating color

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-rating-stars {color: #2fd45d;}
```

{% endcode %}

<figure><img src="/files/jhj9Hlyk6hnGl6RWYEDM" alt=""><figcaption></figcaption></figure>

***

### Change name color

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-name {color: #2fd45d;}
```

{% endcode %}

<figure><img src="/files/no9Go6fnbA7z7zl4yWnr" alt=""><figcaption></figcaption></figure>

***

### Change reviews counter color

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-reviews-count {color: #2fd45d;}
```

{% endcode %}

<figure><img src="/files/ysC5uRvCxiUf3gWImhbD" alt=""><figcaption></figcaption></figure>

***

### Change widget font

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-badge {font-family: Comic Sans MS;}
```

{% endcode %}

<figure><img src="/files/3s0WDyJYupeyLDxDCcEN" alt=""><figcaption></figcaption></figure>

***

### Center content

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-content {align-items: center;}
.reputon-google-reviews-widget .reputon-basic .reputon-name {text-align: center;}
```

{% endcode %}

<figure><img src="/files/q8PgeYoCns7kinoG38En" alt=""><figcaption></figcaption></figure>

***

### Center review counter

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-reviews-count {align-self: center;}
```

{% endcode %}

<figure><img src="/files/jBoKuMdfr2Y0qT34V1OC" alt=""><figcaption></figcaption></figure>

***

### Center business name

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-name {text-align: center;}
```

{% endcode %}

<figure><img src="/files/9RIJSUG91kNvds4yT66x" alt=""><figcaption></figcaption></figure>

***

### Center rating

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-rating-stars {align-self: center;}
```

{% endcode %}

<figure><img src="/files/EJ9ce2KNNFEX3XPgWBPs" alt=""><figcaption></figcaption></figure>

***

### Adjust widget size

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-content {padding: 2px;}

/* logo */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-image {
  width: 25px;
  height: 25px;
  min-width: 25px;}

/* text */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-name {
  font-size: 12px;
  line-height: 16px;}

/* stars-text */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-rating-stars 
.reputon-count-number {
  font-size: 12px;
  margin-right: 2px;}

/* stars */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-rating-stars svg {
  width: 12px;
  height: 12px;
  margin-right: 2px;}

/* change container width */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-container {
	width: 160px;
	min-width: 160px;}
```

{% endcode %}

<figure><img src="/files/YccfCsXFjKS5d5WQ62Sj" alt=""><figcaption></figcaption></figure>

***

### **Hide widget element**

{% code overflow="wrap" %}

```css
/* hide reviews counter */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-reviews-count {display: none;}

/* hide Google logo */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-image {display: none;}

/* hide name */
.reputon-google-reviews-widget .reputon-basic .reputon-badge .reputon-name {display: none;}

/* hide top border*/
.reputon-google-reviews-widget .reputon-basic .reputon-badge:before {content: none}

/* remove shadow */
.reputon-google-reviews-widget .reputon-basic .reputon-badge {box-shadow: none;}
```

{% endcode %}

***

### Add margin above widget

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-badge {margin-top: 100px;}
```

{% endcode %}

***

### Add margin below widget

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-badge {margin-bottom: 100px;}
```

{% endcode %}

***

### Change top line color

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-badge:before {background: red;}
```

{% endcode %}

<figure><img src="/files/vojHK2oM9FcrTQTbrkOe" alt=""><figcaption></figcaption></figure>

***

### Move the widget

{% code overflow="wrap" %}

```css
/* move to the start of the block */
.reputon-google-reviews-widget {
	justify-content: flex-start !important;}
.reputon-google-reviews-widget .reputon-basic {margin: 0 !important;}

/* move to the end of the block */
.reputon-google-reviews-widget {justify-content: flex-end !important;}
.reputon-google-reviews-widget .reputon-basic {margin: 0 !important;}

/* center on mobile devices */
@media (max-width: 640px) {
  .reputon-google-reviews-widget .reputon-basic .reputon-badge {transform-origin: center !important;}}
```

{% endcode %}

***

### Apply black-and-white filter

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic {filter: grayscale(100%);}
```

{% endcode %}

<figure><img src="/files/RU4InYT2vdaO3VJDK5Pd" alt=""><figcaption></figcaption></figure>

***

### Change background color

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-container {background: antiquewhite;}
.reputon-google-reviews-widget .reputon-basic .reputon-bt-close {background: antiquewhite;}

/* change color when hover at element */
.reputon-google-reviews-widget .reputon-basic .reputon-container:hover {background: wheat;}

/* To change the background color of the widget section, add this code to your theme.liquid file. */
<style> 
	section:has(.reputon-google-reviews-widget .reputon-basic) {background: bisque;}
</style> 
```

{% endcode %}

<figure><img src="/files/RSwa5RjyrE1VOkz0rFt2" alt=""><figcaption></figcaption></figure>

***

### Change widget

{% code overflow="wrap" %}

```css
.reputon-google-reviews-widget .reputon-basic .reputon-info {padding: 0;}
.reputon-google-reviews-widget .reputon-basic .reputon-content {width: auto;}
.reputon-google-reviews-widget .reputon-basic .reputon-badge {box-shadow: none;}
.reputon-google-reviews-widget .reputon-basic .reputon-badge:before {content: none;}
.reputon-google-reviews-widget .reputon-basic .reputon-name,
.reputon-google-reviews-widget .reputon-basic .reputon-reviews-count {display: none;}
.reputon-google-reviews-widget .reputon-basic .reputon-image {order:2; width: 25px; height: 25px; min-width: 25px;}
.reputon-google-reviews-widget .reputon-basic .reputon-container {width: auto; min-width: initial;}
.reputon-google-reviews-widget .reputon-basic .reputon-count-number {order:2; margin-right: 0;}
.reputon-google-reviews-widget .reputon-basic .reputon-rating-stars {gap:10px; color: #eda755;}
```

{% endcode %}

<figure><img src="/files/lK5yzVyztZSeBRdPPBFo" alt=""><figcaption></figcaption></figure>

***

{% hint style="info" icon="comments-question" %}
**Have questions or need help with CSS?** **We're here to help:** [**support@reputon.com**](mailto:support@reputon.com) **or** [**live chat**](https://go.crisp.chat/chat/embed/?website_id=d24ef16e-6e05-49e9-bd59-a6f3bde0658a)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://reputon.gitbook.io/reputon-help/google-reviews-app/custom-style-codes/compact-widgets/rating-badge-medium-sticky-compact-rating-widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
