> 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

Customize your Google Reviews compact/sticky compact widget with CSS. Change colors, fonts, layout, arrows, and more to match your website design.

### Change rating color

{% code overflow="wrap" %}

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

{% endcode %}

<figure><img src="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FZzILXgDDwitYBgyTYVfl%2Fimage.png?alt=media&amp;token=3a449342-66c4-4473-91b3-2124db446c78" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FabqRfZEd9cfbl9HkpZQi%2Fimage%201.png?alt=media&amp;token=ff21b511-7084-438b-bdc4-37a55b66bd71" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FBaYzyTwbW1IQ6Rt5a0M7%2Fimage%202.png?alt=media&amp;token=1095d1ce-803d-4ab9-b6b3-2e27a792869a" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FZneqBjyJQrpk4MsVSVxC%2Fimage%203.png?alt=media&amp;token=e7040f13-94b6-45c6-bb87-00aa314fc8e2" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FCvoWUPrNVKtiPbVB3lOB%2Fimage%204.png?alt=media&amp;token=457bbbfc-a4a2-454b-a997-a139f8763a86" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FSiFYcMLJ6TPz0K692gB9%2Fimage%205.png?alt=media&amp;token=3f848797-8396-4060-897f-6f6ac90c6c6c" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2ForOFvIGcZT31XrqFBWXd%2Fimage%206.png?alt=media&amp;token=041d10ef-5dfd-4e19-9116-821685260063" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2Fu8A2dd9M4LZaKpaBjIU2%2Fimage%207.png?alt=media&amp;token=c4557f36-a4a8-42f7-996e-581066b5a4ed" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FREcId2K3riHquoGSh1MS%2Fimage%208.png?alt=media&amp;token=98874a44-9421-4198-9889-86d459230e8f" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FjCYjYIkUC9MjFkoP5kyx%2Fimage%2011.png?alt=media&amp;token=9dc3e144-b13a-437e-9bb0-58e593789f8f" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2F9YlXkVPbQj5WAyhD4GMx%2Fimage%2012.png?alt=media&amp;token=727a54d8-5db3-473b-a8e0-38e39926428c" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2FAtZXOjLpHLw8Gv5mMcs8%2Fimage%2013.png?alt=media&amp;token=022a17b9-e981-4bba-a910-c62533003365" 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="https://3311081497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRkZZ4LuP4fAqhhizix17%2Fuploads%2F3d7qgFIDGg6P1LfIzhsq%2Fimage%2014.png?alt=media&amp;token=8f3fdc24-f254-4be9-924b-543810f2e7ba" 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 following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
