/* Reliance Google Reviews */
.rr-wrap {
	--rr-star: #f39c12;
	--rr-red: #ce0e2d;
	--rr-ink: #231f20;
	--rr-gray: #595858;
	--rr-blue: #1a5bd6;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: center;
	background: #fff;
	padding: 24px;
	font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--rr-ink);
	box-sizing: border-box;
}
.rr-wrap *, .rr-badge * { box-sizing: border-box; }

/* Stars: one element, fill controlled by --rr-fill */
.rr-stars {
	--rr-fill: 100%;
	display: inline-block;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 3px;
	background: linear-gradient(90deg, var(--rr-star, #f39c12) var(--rr-fill), #d6d6d6 var(--rr-fill));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rr-stars::before { content: "\2605\2605\2605\2605\2605"; }
.rr-g { display: inline-block; vertical-align: middle; flex: none; }

/* Summary column */
.rr-summary { text-align: center; }
.rr-summary-label { font-size: 26px; font-weight: 700; color: var(--rr-gray); }
.rr-summary-score { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; }
.rr-summary-num { font-size: 34px; font-weight: 700; color: #b8650f; }
.rr-summary-score .rr-stars { font-size: 26px; }
.rr-summary-count { font-size: 15px; color: var(--rr-ink); display: flex; align-items: center; justify-content: center; gap: 6px; }
.rr-btn {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 16px; padding: 10px 16px;
	background: var(--rr-blue); color: #fff !important; text-decoration: none !important;
	border-radius: 999px; font-weight: 700; font-size: 15px;
}
.rr-btn .rr-g { background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }
.rr-btn:hover { filter: brightness(1.1); }

/* Slider */
.rr-slider { position: relative; padding: 0 30px 30px; min-width: 0; }
.rr-track {
	display: flex; gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 10px 4px;
}
.rr-track::-webkit-scrollbar { display: none; }
.rr-card {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
	background: #fff; border-radius: 4px;
	box-shadow: 0 1px 6px rgba(0,0,0,.18);
	padding: 16px; display: flex; flex-direction: column; gap: 10px;
	min-height: 280px;
}
.rr-card-head { display: flex; align-items: flex-start; gap: 12px; }
.rr-card-head > .rr-g { margin-left: auto; }
.rr-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.rr-avatar-init { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 400; }
.rr-who { display: flex; flex-direction: column; min-width: 0; padding-top: 6px; }
.rr-name { font-weight: 700; color: var(--rr-blue, #1a5bd6) !important; text-decoration: none !important; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-when { font-size: 13px; color: var(--rr-gray, #595858); }
.rr-text { font-size: 16px; line-height: 1.5; color: var(--rr-gray); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rr-text.rr-open { -webkit-line-clamp: unset; display: block; }
.rr-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--rr-gray); font-size: 14px; cursor: pointer; text-decoration: underline; }

.rr-arrow {
	position: absolute; top: calc(50% - 15px); transform: translateY(-50%);
	background: none; border: 0; font-size: 34px; line-height: 1; color: #999; cursor: pointer; padding: 4px;
}
.rr-arrow:hover { color: var(--rr-ink); }
.rr-arrow[disabled] { opacity: .3; cursor: default; }
.rr-prev { left: 0; }
.rr-next { right: 0; }
.rr-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 7px; }
.rr-dots span { width: 9px; height: 9px; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
.rr-dots span.rr-on { background: var(--rr-blue); }

@media (max-width: 1024px) {
	.rr-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 760px) {
	.rr-wrap { grid-template-columns: 1fr; padding: 16px; }
	.rr-slider { padding: 0 0 30px; }
	.rr-card { flex-basis: 88%; }
	.rr-arrow { display: none; }
}

/* Floating badge + panel */
.rr-float {
	position: fixed; bottom: 20px; z-index: 9990;
	font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif; color: #231f20;
}
.rr-float-left { left: 20px; }
.rr-float-right { right: 20px; }
.rr-float *, .rr-float *::before { box-sizing: border-box; }

.rr-badge {
	display: flex; align-items: center; gap: 12px; text-align: left;
	background: #fff; padding: 12px 16px 12px 12px; margin: 0;
	border: 0; border-top: 5px solid #4caf50; border-radius: 3px;
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
	font: inherit; color: #231f20; cursor: pointer;
	transition: transform .2s ease;
}
.rr-badge:hover { transform: translateY(-2px); }
.rr-badge-body { display: flex; flex-direction: column; }
.rr-badge-title { font-size: 14px; }
.rr-badge-score, .rr-panel-score { display: flex; align-items: center; gap: 8px; }
.rr-badge-num { font-size: 20px; color: #b8650f; }
.rr-float .rr-stars { font-size: 18px; letter-spacing: 2px; }
.rr-badge-count { font-size: 13px; color: #595858; }
.rr-float.rr-open .rr-badge { display: none; }

.rr-panel {
	position: absolute; bottom: 0; width: 370px; max-width: calc(100vw - 24px);
	height: min(640px, calc(100vh - 40px));
	display: flex; flex-direction: column;
	background: #fff; border-radius: 4px;
	box-shadow: 0 4px 24px rgba(0,0,0,.3);
	overflow: hidden;
	animation: rr-pop .2s ease;
}
.rr-panel[hidden] { display: none; }
.rr-float-left .rr-panel { left: 0; }
.rr-float-right .rr-panel { right: 0; }
@keyframes rr-pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rr-panel-head { position: relative; display: flex; gap: 14px; padding: 16px 40px 14px 16px; border-bottom: 1px solid #e5e5e5; }
.rr-store { flex: none; margin-top: 4px; }
.rr-panel-name { font-size: 16px; color: #595858; }
.rr-panel-score .rr-badge-num { font-size: 18px; }
.rr-panel-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rr-pill {
	display: inline-flex; align-items: center; gap: 4px;
	background: #3b82f6; color: #fff !important; text-decoration: none !important;
	border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700;
}
.rr-pill .rr-g { background: #fff; border-radius: 50%; padding: 1px; width: 17px; height: 17px; }
.rr-pill:hover { filter: brightness(1.1); }
.rr-panel-close {
	position: absolute; top: 8px; right: 10px;
	background: none; border: 0; font-size: 28px; line-height: 1; color: #888; cursor: pointer; padding: 2px 6px;
}
.rr-panel-close:hover { color: #231f20; }

.rr-panel-list { flex: 1; overflow-y: auto; padding: 4px 16px; background: #fafafa; overscroll-behavior: contain; }
.rr-pr { display: flex; gap: 14px; padding: 12px 0; }
.rr-pr .rr-avatar { width: 50px; height: 50px; }
.rr-pr-body { min-width: 0; display: flex; flex-direction: column; }
.rr-pr .rr-name { font-size: 14px; white-space: normal; }
.rr-pr .rr-when { font-size: 13px; margin: 2px 0 4px; }
.rr-pr-text { margin: 0; font-size: 14px; line-height: 1.75; color: #595858; }
.rr-pr-text .rr-stars { font-size: 17px; letter-spacing: 1px; vertical-align: -1px; }

.rr-panel-foot { text-align: center; font-size: 13px; color: #595858; padding: 10px; border-top: 1px solid #e5e5e5; background: #fff; }
.rr-google b { font-weight: 500; font-size: 15px; }

@media (max-width: 760px) {
	.rr-float { bottom: 12px; }
	.rr-float-left { left: 12px; }
	.rr-float-right { right: 12px; }
	.rr-badge { padding: 8px 12px 8px 8px; gap: 8px; }
	.rr-badge > .rr-g { width: 28px; height: 28px; }
	.rr-badge-count { display: none; }
	.rr-panel { width: calc(100vw - 24px); height: calc(100vh - 24px); }
}
