/* Agathas Avaliações do Google. Herda a fonte do tema; a cor de destaque vem de --agr-accent. */
.agr {
	--agr-accent: #DB1E0B;
	--agr-ink: #1f1f1f;
	--agr-muted: #6D6D6D;
	--agr-line: #e6e6e6;
	--agr-card: #fff;
	--agr-star: #fbbc04;
	--agr-star-off: #dadce0;
	font: inherit;
	color: var(--agr-ink);
	max-width: 1200px;
	margin-inline: auto;
	box-sizing: border-box;
}
.agr *, .agr *::before, .agr *::after { box-sizing: border-box; }
.agr p { margin: 0; }

/* Cabeçalho: nota média + botão */
.agr-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 24px;
}
.agr-summary { display: flex; align-items: center; gap: 14px; }
.agr-g { width: 44px; height: 44px; flex: none; }
.agr-title { font-weight: 700; font-size: 1.05em; margin-bottom: 2px !important; }
.agr-score { display: flex; align-items: center; gap: 8px; line-height: 1; }
.agr-score strong { font-size: 1.9em; font-weight: 700; }
.agr-count { color: var(--agr-muted); font-size: .9em; margin-top: 6px !important; }
.agr-count a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agr-count a:hover { color: var(--agr-accent); }

.agr-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 4px;
	background: var(--agr-accent);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: filter .15s;
}
.agr-btn:hover, .agr-btn:focus-visible { filter: brightness(.9); }

/* Estrelas */
/* width: max-content evita esticar no card (flex em coluna), o que faria a % do preenchimento cobrir todas as estrelas. */
.agr-stars { position: relative; display: inline-block; width: max-content; align-self: flex-start; line-height: 0; white-space: nowrap; }
.agr-stars svg { width: 16px; height: 16px; display: inline-block; }
.agr-stars--lg svg { width: 20px; height: 20px; }
.agr-stars-bg svg { fill: var(--agr-star-off); }
.agr-stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.agr-stars-fg svg { fill: var(--agr-star); }

/* Lista */
.agr-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
}
.agr--grid .agr-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.agr--carousel .agr-list {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 40px) / 3);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	overscroll-behavior-x: contain;
}
.agr--carousel .agr-list::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) { .agr--carousel .agr-list { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px)  { .agr--carousel .agr-list { grid-auto-columns: 86%; } }

.agr-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--agr-card);
	border: 1px solid var(--agr-line);
	border-radius: 8px;
	margin: 0 !important;
}
.agr-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.agr-author > div { display: flex; flex-direction: column; min-width: 0; }
.agr-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.agr-avatar--txt {
	display: grid;
	place-items: center;
	background: hsl(var(--agr-hue, 0) 45% 42%);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
}
.agr-name { font-weight: 700; color: var(--agr-ink) !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.agr-name:hover { color: var(--agr-accent) !important; }
.agr-when { color: var(--agr-muted); font-size: .85em; }

.agr-text {
	color: #3c3c3c;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.agr-card--open .agr-text { -webkit-line-clamp: unset; display: block; }

.agr-more {
	align-self: flex-start;
	background: none !important;
	border: 0 !important;
	padding: 4px 0 !important;
	margin-top: auto;
	color: var(--agr-accent) !important;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	min-height: 32px;
}
.agr-more[hidden] { display: none; }

/* Setas */
.agr-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.agr--fits .agr-nav { display: none; }
.agr-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50% !important;
	border: 1px solid var(--agr-line) !important;
	background: #fff !important;
	color: var(--agr-ink) !important;
	font-size: 26px;
	line-height: 1;
	padding: 0 0 3px !important;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.agr-arrow:hover:not(:disabled) { border-color: var(--agr-accent) !important; color: var(--agr-accent) !important; }
.agr-arrow:disabled { opacity: .35; cursor: default; }

.agr-source { margin-top: 14px !important; text-align: center; color: var(--agr-muted); font-size: .8em; }

.agr a:focus-visible, .agr button:focus-visible { outline: 2px solid var(--agr-accent); outline-offset: 2px; }

.agr-admin-note { padding: 12px 16px; border: 1px dashed #c00; color: #c00; background: #fff5f5; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.agr-list { scroll-behavior: auto; }
}

/* Várias lojas: um botão por cidade */
.agr-write { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.agr-write-label { font-weight: 700; width: 100%; font-size: .9em; color: var(--agr-muted); }
@media (min-width: 641px) { .agr-write-label { width: auto; } }

/* Com título (H2): o bloco vira uma seção com espaçamento próprio, sem depender do CSS do construtor. */
.agr--section { padding: 72px 20px 64px; }
.agr-heading {
	margin: 0 0 36px !important;
	text-align: center;
	color: var(--agr-accent);
	font-family: var(--agr-heading-font, inherit);
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}
@media (max-width: 640px) { .agr--section { padding: 48px 16px 44px; } }
