/**
 * Google Reviews para Elementor — estilos base.
 *
 * A ideia aqui é fornecer só o "esqueleto": layout, alinhamentos e
 * valores neutros. Cores, fontes, tamanhos etc. são controlados pelo
 * usuário no painel do Elementor (que injeta CSS com {{WRAPPER}}).
 */

.gre-widget {
	position: relative;
}

/* ---------- Cabeçalho (nota geral) ---------- */

.gre-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.gre-header-score {
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1;
}

.gre-header-total {
	opacity: 0.75;
}

/* ---------- Grade ---------- */

.gre-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* sobrescrito pelo controle "Colunas" */
	gap: 24px;
}

/* ---------- Card ---------- */

.gre-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.gre-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.gre-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.gre-card-meta {
	display: flex;
	flex-direction: column;
	min-width: 0; /* permite ellipsis dentro do flex */
	flex: 1;
}

.gre-author-name {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gre-date {
	font-size: 0.85em;
	opacity: 0.7;
}

.gre-google-icon {
	margin-left: auto;
	flex-shrink: 0;
	display: inline-flex;
}

/* ---------- Estrelas ---------- */

.gre-stars {
	margin-bottom: 10px;
	line-height: 1;
}

.gre-star {
	font-size: 16px;
	color: #dadce0; /* vazia (padrão) */
}

.gre-star.is-full {
	color: #fbbc04; /* cheia (padrão Google) */
}

/* ---------- Texto ---------- */

.gre-text {
	margin: 0;
	line-height: 1.6;
	flex: 1; /* empurra o "ler mais" para o rodapé do card */
}

.gre-read-more {
	background: none;
	border: none;
	padding: 0;
	margin-top: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	color: #1a73e8;
	align-self: flex-start;
	text-decoration: underline;
}

/* ---------- Carrossel ---------- */

.gre-carousel {
	overflow: hidden;
	padding-bottom: 36px; /* espaço para as bolinhas */
}

.gre-carousel .swiper-slide {
	height: auto; /* todos os cards com a mesma altura */
	display: flex;
}

.gre-carousel .swiper-slide .gre-card {
	width: 100%;
}

.swiper-pagination {
	bottom: 0 !important;
}

/* Setas customizadas (fora do container do Swiper para não serem cortadas) */

.gre-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: #ffffff;
	color: #202124;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.gre-nav-btn:hover {
	opacity: 0.85;
}

.gre-nav-prev {
	left: -12px;
}

.gre-nav-next {
	right: -12px;
}

.gre-nav-btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Avisos (editor / admins) ---------- */

.gre-notice {
	padding: 14px 18px;
	border-radius: 8px;
	background: #eef3fb;
	border: 1px dashed #a9c3ea;
	font-size: 14px;
}

.gre-notice--error {
	background: #fdeceb;
	border-color: #f0a9a4;
}
