/* =========================================================================
   WPFixTech Google Reviews — front-end styles (Trustindex-style)
   All classes are namespaced with .tindex to avoid theme collisions.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.tindex,
.tindex * { box-sizing: border-box; }

.tindex {
	--tindex-gold: #fbbc04;
	--tindex-empty: #dadce0;
	--tindex-card: #f4f4f4;
	--tindex-text: #000000;
	--tindex-muted: #767676;
	--tindex-radius: 12px;
	font-family: 'Poppins', Arial, Helvetica, sans-serif;
	color: #333;
	line-height: 1.45;
}

/* ---------- Stars ---------- */
.tindex-stars {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	font-size: 17px;
	line-height: 0;
	vertical-align: middle;
}
.tindex-stars .tindex-star {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
}
.tindex-stars .tindex-star + .tindex-star { margin-left: 1px; }
/* Literal colours (not CSS vars) so stars also render gold inside the
   read-more modal, which is appended outside the .tindex scope. */
.tindex-stars-empty { color: #dadce0; }
.tindex-stars-full {
	position: absolute;
	top: 0; left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #fbbc04;
}

/* ---------- Review card ---------- */
.tindex-card {
	background: var(--tindex-card);
	border-radius: var(--tindex-radius);
	padding: 20px;
	margin: 0 0 16px;
}
.tindex-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tindex-avatar {
	position: relative;
	width: 40px; height: 40px;
	border-radius: 50%;
	flex: 0 0 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: #fff;
	background: #7b8794;
	text-transform: uppercase;
	overflow: hidden;
	font-size: 16px;
}
.tindex-avatar-initial img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.tindex-card-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tindex-author {
	font-weight: 600; font-size: 15px; line-height: 1.3;
	color: var(--tindex-text); text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.tindex-author:hover { text-decoration: underline; }
.tindex-date { font-size: 13px; color: var(--tindex-muted); }
.tindex-card-source { margin-left: auto; align-self: flex-start; }
.tindex-card-source svg { width: 20px; height: 20px; }

.tindex-stars-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tindex-verified { display: inline-flex; align-items: center; }
.tindex-verified svg { width: 16px; height: 16px; display: block; }

.tindex-card-body { position: relative; }
.tindex-card-text { font-size: 15px; color: var(--tindex-text); line-height: 1.5; font-weight: 400; }
.tindex-card-text p { margin: 0 0 8px; }
.tindex-card-text p:last-child { margin-bottom: 0; }
.tindex-readmore {
	background: transparent !important; border: none; padding: 0;
	color: var(--tindex-muted) !important; font-size: 15px; cursor: pointer;
	font-family: inherit; white-space: nowrap;
}
.tindex-readmore:hover { text-decoration: underline; }

/* ---------- Big stars (badge + slider summary) ---------- */
.tindex-stars--lg { font-size: 34.2px; }
.tindex-stars--lg .tindex-star + .tindex-star { margin-left: 1px; }

/* ---------- Badge widget (centered, transparent summary) ---------- */
.tindex-badge {
	display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
	background: none; border: none; box-shadow: none; padding: 0;
	text-decoration: none; color: var(--tindex-text); text-align: center;
}
.tindex-badge-logo-lg { display: inline-flex; }
.tindex-badge-logo-lg svg { height: 34px; width: auto; display: block; }
.tindex-badge-score { font-size: 18px; font-weight: 700; color: var(--tindex-text); }
.tindex-badge-count { font-size: 15px; color: var(--tindex-text); font-weight: 400; }
.tindex-badge-count .tindex-reviews { color: #000; font-weight: 700; text-decoration: underline; }

/* ---------- Slider ---------- */
.tindex-slider-wrap { display: flex; flex-direction: column; gap: 20px; }
.tindex-slider-summary {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	text-align: center; text-decoration: none; color: var(--tindex-text);
}
.tindex-slider-excellent { font-weight: 600; font-size: 24px; line-height: 1.2; text-transform: uppercase; letter-spacing: normal; color: var(--tindex-text); }
@media (min-width: 768px) {
	.tindex-slider-wrap { flex-direction: row; align-items: center; gap: 24px; }
	.tindex-slider-summary { flex: 0 0 220px; }
	.tindex-slider { flex: 1 1 auto; min-width: 0; }
}
.tindex-slider { position: relative; padding: 0 22px; }
.tindex-slider-viewport { overflow: hidden; }
.tindex-slider-track { display: flex; transition: transform .4s ease; will-change: transform; }
.tindex-slide { flex: 0 0 100%; box-sizing: border-box; padding: 0 8px; }
@media (min-width: 600px) { .tindex-slide { flex-basis: 50%; } }
@media (min-width: 900px) { .tindex-slide { flex-basis: 33.3333%; } }
.tindex-slide .tindex-card { height: 100%; margin: 0; }
.tindex-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid #e6e8eb; background: #fff !important; line-height: 0;
	color: #444 !important; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.18);
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease;
    padding:0px !important;
}
.tindex-arrow svg { width: 24px; height: 24px; display: block; }
.tindex-prev { left: 0; }
.tindex-next { right: 0; }
.tindex-arrow:hover { background: #f1f3f4; }
.tindex-arrow:disabled { opacity: .35; cursor: default; }

/* ---------- Grid (masonry columns, Trustindex-style) ---------- */
.tindex-grid-wrap { display: block; }
.tindex-grid-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	background: var(--tindex-card);
	border-radius: var(--tindex-radius);
	padding: 16px 22px; margin-bottom: 16px;
}
.tindex-grid-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tindex-gwordmark { display: inline-flex; }
.tindex-gwordmark svg { height: 22px; width: auto; display: block; }
.tindex-grid-header-excellent { font-weight: 600; font-size: 15px; color: var(--tindex-text); }
.tindex-grid-header .tindex-badge-score { font-size: 15px; font-weight: 700; }
.tindex-grid-header-count { font-size: 15px; color: #000; font-weight: 600; }
.tindex-writereview-btn {
	background: transparent; border: 1px solid var(--tindex-muted);
	border-radius: 5px; color: var(--tindex-text);
	padding: 7px 18px; font-size: 14px; font-weight: 600;
	text-decoration: none; white-space: nowrap;
	font-family: inherit;
}
.tindex-writereview-btn:hover { background: rgba(0,0,0,.04); color: var(--tindex-text); }

.tindex-grid {
	column-count: 1;
	column-gap: 16px;
}
@media (min-width: 600px) { .tindex-grid { column-count: 2; } }
@media (min-width: 980px) {
	.tindex-cols-3 { column-count: 3; }
	.tindex-cols-4 { column-count: 3; }
}
@media (min-width: 1240px) {
	.tindex-cols-4 { column-count: 4; }
}
.tindex-grid .tindex-card {
	display: inline-block;
	width: 100%;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.tindex-grid-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.tindex-loadmore {
	background: #fff; border: 1px solid var(--tindex-muted);
	padding: 9px 22px; border-radius: 5px; cursor: pointer;
	font-size: 14px; font-weight: 600; color: var(--tindex-text); font-family: inherit;
}
.tindex-loadmore:hover { background: rgba(0,0,0,.04); }
.tindex-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tindex-page-btn {
	min-width: 36px; height: 36px; padding: 0 8px;
	border: 1px solid #e6e8eb; background: #fff;
	border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--tindex-text); font-family: inherit;
}
.tindex-page-btn:hover { background: #f1f3f4; }
.tindex-page-btn.tindex-active { background: #1a73e8; border-color: #1a73e8; color: #fff; }

.tindex-spinner {
	width: 22px; height: 22px; border-radius: 50%;
	border: 3px solid var(--tindex-empty); border-top-color: #4285F4;
	animation: tindex-spin .8s linear infinite;
}
@keyframes tindex-spin { to { transform: rotate(360deg); } }

.tindex-empty { color: var(--tindex-muted); font-style: italic; }

/* ---------- Read-more modal ---------- */
.tindex-modal-overlay {
	position: fixed; inset: 0; z-index: 99999;
	display: none; align-items: center; justify-content: center;
	background: rgba(0,0,0,.55); padding: 20px;
}
.tindex-modal-overlay.tindex-modal-open { display: flex; }
.tindex-modal {
	background: #fff; border-radius: 14px;
	max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
	padding: 24px; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.3);
	font-family: 'Poppins', Arial, Helvetica, sans-serif; color: var(--tindex-text);
}
.tindex-modal-close {
	position: absolute; top: -5px; right: -5px;
	background: transparent !important; border: none; font-size: 26px; line-height: 1;
	color: var(--tindex-muted); cursor: pointer;
}
.tindex-modal-close:hover { color: #000; }
.tindex-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding-right: 28px; }
.tindex-modal-head .tindex-avatar { width: 48px; height: 48px; flex-basis: 48px; }
.tindex-modal-name { font-weight: 600; font-size: 16px; }
.tindex-modal-date { font-size: 13px; color: var(--tindex-muted); }
.tindex-modal-g { margin-left: auto; }
.tindex-modal-g svg { width: 22px; height: 22px; }
.tindex-modal-stars { margin: 8px 0 12px; font-size: 1.15em; }
.tindex-modal-text { font-size: 15px; line-height: 1.6; color: var(--tindex-text); }
.tindex-modal-text p { margin: 0 0 10px; }
.tindex-modal-text p:last-child { margin-bottom: 0; }
