.reviewbot-grid {
	display: flex;
	justify-content: center;
	font-family: sans-serif
}

.reviewbot-grid .review-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	padding: 0;
	margin: 0 auto;
	list-style: none
}

.reviewbot-grid .review-list li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-basis: calc(33% - 20px);
	background: #fff;
	padding: 20px;
	gap: 5px;
	border-radius: 8px;
	border: 1px solid #e6eef6;
	min-height: 250px;
	min-width: 350px;
}

.reviewbot-grid .review-list .author {
	font-weight: 700;
	line-height: 1.25
}

.reviewbot-grid .review-list .rating {
	color: #ffb53f;
	font-size: 20px;
	line-height: 1
}

.reviewbot-grid .review-list .review {
	overflow-y: auto;
	padding-bottom: 20px
}

.reviewbot-grid .review-list .date {
	display: flex;
	align-items: center;
	gap: 5px;
}

.reviewbot-grid .review-list .stats {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	background: #e6eef6;
	width: calc(100% + 40px);
	font-size: 16px;
	padding: 10px 20px;
	margin-top: auto;
	transform: translateX(-20px);
	margin-bottom: -20px
}

.reviewbot-grid .review-list .stats a {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: #0e4e9b;
	text-decoration: none
}

.reviewbot-grid .review-list .stats a:hover {
	color: #2a7de1
}

.reviewbot-grid .review-list .header {
	position: relative;
	display: flex;
	justify-content: space-between
}

.reviewbot-grid .review-list .header .left {
	display: flex;
	flex-direction: column;
	gap: 5px
}

.reviewbot-grid .review-list li .header .right {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 12px;
	font-weight: 600;
	color: green;
	background: #fff;
	border: 1px solid;
	border-radius: 5px;
	line-height: 1.5;
	height: max-content;
	padding: 4px 10px;
	transition: 250ms;
	transform: rotate(0deg)
}

.reviewbot-grid .review-list li:hover .header .right {
	font-size: 14px;
	top: -25px;
	right: -25px;
	transform: rotate(5deg);
	box-shadow: 5px 5px 10px -8px rgba(0, 0, 0, .5)
}

@media (max-width: 991px) {
	.reviewbot-grid .review-list li {
		flex: 1 1 100%
	}
}


/* Pagination */

.reviewbot-pagination {
	margin-top: 24px;
	text-align: center;
}

.reviewbot-pagination .page-numbers {
	display: inline-block;
	padding: 6px 10px;
	margin: 0 4px;
	border: 1px solid var(--brand-light);
	border-radius: 6px;
	text-decoration: none;
}

.reviewbot-pagination .page-numbers.current,
.reviewbot-pagination .page-numbers:hover {
	font-weight: 700;
}


/* === Scoped ReviewBot Badge ============================================== */

#rb-badge .rb-agg {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 5px;
	padding: 18px 22px;
	background: #fff;
	color: #111;
	max-width: 560px;
}

#rb-badge .rb-agg__label {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

#rb-badge .rb-agg__row {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

#rb-badge .rb-agg__value {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

#rb-badge .rb-agg__count {
	font-size: 16px;
	color: #777;
}

#rb-badge .rb-agg--inline .rb-agg__label {
	display: none;
}

#rb-badge .rb-agg--inline .rb-agg__value {
	font-size: 22px;
}

#rb-badge .rb-agg--compact .rb-agg__label {
	display: none;
}

#rb-badge .rb-agg--compact .rb-agg__value {
	font-size: 18px;
}

#rb-badge .rb-agg--compact .rb-agg__count {
	font-size: 14px;
}


/* Per-star renderer */

#rb-badge .rb-stars.rb-stars--per-star {
	display: inline-flex;
	align-items: center;
	height: 22px;
}

#rb-badge .rb-star {
	position: relative;
	display: inline-block;
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-size: 22px 22px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="%23d8d8d8" d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

#rb-badge .rb-star__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background-repeat: no-repeat;
	background-size: 22px 22px;
	overflow: hidden;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="%23f5a623" d="M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
}

#rb-badge .rb-agg--inline .rb-star,
#rb-badge .rb-agg--inline .rb-star__fill,
#rb-badge .rb-agg--compact .rb-star,
#rb-badge .rb-agg--compact .rb-star__fill {
	width: 18px;
	height: 18px;
	background-size: 18px 18px;
}

#rb-badge .rb-agg--inline .rb-stars.rb-stars--per-star,
#rb-badge .rb-agg--compact .rb-stars.rb-stars--per-star {
	height: 18px;
}

#rb-badge a.rb-button {
	display: flex;
	justify-content: center;
	flex: 1 1 fit-content;
	flex-basis: 100%;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	margin: 10px auto 5px;
	padding: 5px;
	border-radius: 3px;
	background: white;
	color: black;
	outline: 1px solid #111;
}

#rb-badge a.rb-button:active,
#rb-badge a.rb-button:focus,
#rb-badge a.rb-button:hover {
	background: #111;
	color: white;
}


/*** COMPACT ***/

#rb-badge .rb-agg--compact a.rb-button {
	margin: 0;
	padding: 0 10px;
	font-size: 16px;
}

.rb-agg.rb-agg--compact {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

@media screen and (max-width: 480px) {

    #rb-badge .rb-agg.rb-agg--compact {
        align-items: center;
    }
    
    #rb-badge .rb-agg__row {
        flex-wrap: wrap;
        max-width: 50%;
        gap: 5px;
    }

    #rb-badge .rb-agg--compact .rb-agg__count {
        line-height: 1;
        font-size: 16px;
    }

}