/* =========================================================================
   Google Reviews Display — styles
   Front-end card, carousel and grid, plus admin dashboard.
   Uses neutral, theme-friendly values; minimal opinionated styling.
   ========================================================================= */

/* ---- Card (shared by carousel + grid) ---------------------------------- */
.grd-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	padding: 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.grd-card:hover,
.grd-card:focus {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	text-decoration: none;
}

.grd-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.grd-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 44px;
	background: #f0f0f0;
}
.grd-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #555;
	font-size: 18px;
}
.grd-card-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}
.grd-card-name {
	font-weight: 600;
}
.grd-card-when {
	font-size: 0.82em;
	opacity: 0.65;
}
.grd-google-mark {
	margin-left: auto;
	flex: 0 0 auto;
}
.grd-google-mark svg {
	width: 18px;
	height: 18px;
	display: block;
}

.grd-card-text {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.55;
	opacity: 0.92;
}
.grd-clamp {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Stars ------------------------------------------------------------- */
.grd-stars {
	display: inline-flex;
	gap: 2px;
}
.grd-star {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 18px;
	line-height: 0;
}
.grd-star svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: #dadce0;
}
.grd-star-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
}
.grd-star-fill svg {
	fill: #fbbc04;
}

/* ---- Carousel ---------------------------------------------------------- */
.grd-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}
.grd-viewport {
	overflow: hidden;
	flex: 1 1 auto;
	width: 100%;
}
.grd-track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}
.grd-slide {
	box-sizing: border-box;
	padding: 8px;
	flex: 0 0 20%;
	max-width: 20%;
}
.grd-nav {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e0e0e0;
	background: #fff;
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background 0.15s ease;
}
.grd-nav:hover {
	background: #f3f3f3;
}
.grd-dots {
	position: absolute;
	bottom: -22px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
}
.grd-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #cfcfcf;
	cursor: pointer;
}
.grd-dot.is-active {
	background: #fbbc04;
}

/* ---- Grid ([review-page]) ---------------------------------------------- */
.grd-grid {
	display: grid;
	gap: 18px;
	width: 100%;
}

/* ---- Notices ----------------------------------------------------------- */
.grd-empty {
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px dashed #f0c000;
	border-radius: 8px;
	font-size: 0.9em;
}

/* =========================================================================
   Admin dashboard
   ========================================================================= */
.grd-wrap .grd-note {
	background: #f0f6fc;
	border-left: 4px solid #72aee6;
	padding: 10px 14px;
	max-width: 760px;
}
.grd-wrap .grd-fetched,
.grd-wrap .grd-place-summary {
	margin-left: 8px;
	color: #555;
}
.grd-admin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	margin: 14px 0;
}
.grd-admin-card {
	display: block;
	background: #fff;
	border: 2px solid #e2e4e7;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.grd-admin-card.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1 inset;
	background: #f6fbff;
}
.grd-admin-card input[type="checkbox"] {
	float: right;
	transform: scale(1.3);
	margin-left: 8px;
}
.grd-admin-card-head {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
}
.grd-admin-card-head img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
.grd-admin-stars {
	color: #fbbc04;
	letter-spacing: 1px;
}
.grd-admin-when {
	display: block;
	font-size: 0.8em;
	color: #777;
}
.grd-admin-card p {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.5;
	color: #333;
	max-height: 7.5em;
	overflow: auto;
}
.grd-shortcode-table {
	max-width: 820px;
}
.grd-shortcode-table code {
	white-space: nowrap;
}

/* =========================================================================
   v2 admin additions: stats, filters, bulk, pagination
   ========================================================================= */
.grd-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 16px 0;
}
.grd-stat {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 12px 18px;
	min-width: 140px;
	font-size: 0.85em;
	color: #555;
	line-height: 1.3;
}
.grd-stat-num {
	display: block;
	font-size: 1.7em;
	font-weight: 700;
	color: #1d2327;
}
.grd-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin: 12px 0;
	padding: 12px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
}
.grd-filters label {
	display: flex;
	flex-direction: column;
	font-size: 0.8em;
	color: #555;
	gap: 3px;
}
.grd-filters input[type="search"] {
	min-width: 200px;
	align-self: flex-end;
}
.grd-matched {
	align-self: center;
	color: #666;
	font-style: italic;
}
.grd-bulk-form {
	margin: 8px 0 16px;
	display: flex;
	gap: 8px;
}
.grd-fetch-form {
	margin: 8px 0;
}
.grd-pagination {
	margin: 18px 0;
}
.grd-pagination .page-numbers {
	display: inline-block;
	padding: 6px 11px;
	margin: 0 2px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	text-decoration: none;
	color: #2271b1;
}
.grd-pagination .page-numbers.current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}
