/* =============================================================
   Custom Google Reviews - Frontend Styles
   ============================================================= */

/* ---------------------------------------------------------------
   Outer wrapper: two-column flex row
--------------------------------------------------------------- */
.wp-google-reviews-wrapper {
	display: flex;
	flex-direction: row;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
	overflow: hidden;
	margin: 32px 0;
	border-left: 5px solid #3d5a99;
}

/* ---------------------------------------------------------------
   Left column: Business info panel
--------------------------------------------------------------- */
.wp-reviews-business-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 185px;
	max-width: 215px;
	padding: 32px 18px;
	background: #ffffff;
	border-right: 1px solid #f0f0f0;
	text-align: center;
}

.wp-business-logo-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e8f0fe;
	border: 2px solid #c5daff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	color: #4285F4;
	line-height: 1;
	flex-shrink: 0;
}

.wp-business-name {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
}

.wp-business-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.wp-business-rating-number {
	font-size: 24px;
	font-weight: 700;
	color: #f59e0b;
	line-height: 1;
}

.wp-business-rating-stars {
	display: flex;
	gap: 1px;
}

.wp-business-rating-stars .wp-star {
	font-size: 18px;
	color: #d9d9d9;
}

.wp-business-rating-stars .wp-star-full {
	color: #f59e0b;
}

.wp-powered-by {
	font-size: 11px;
	color: #888;
	line-height: 1.5;
}

.wp-google-wordmark {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
}

.wp-review-us-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #1a73e8;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 20px;
	text-decoration: none !important;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
	line-height: 1.2;
}

.wp-review-us-btn:hover,
.wp-review-us-btn:focus {
	background: #1557b0;
	box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
	color: #ffffff !important;
}

/* ---------------------------------------------------------------
   Right column: Slider panel
--------------------------------------------------------------- */
.wp-reviews-slider-panel {
	flex: 1;
	min-width: 0;
	padding: 24px 24px 24px 20px;
	background: #f8f9fb;
}

/* ---------------------------------------------------------------
   Review cards
--------------------------------------------------------------- */
.wp-google-reviews-swiper {
	position: relative;
	padding-bottom: 38px;
}

.wp-google-review-card {
	background: #ffffff;
	border: 1px solid #e8eaed;
	border-radius: 10px;
	padding: 16px 16px 14px;
	box-sizing: border-box;
	height: auto;
}

.wp-review-item-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

/* Google G badge - absolute top-right */
.wp-review-google-badge {
	position: absolute;
	top: 0;
	right: 0;
	line-height: 0;
}

/* Avatar + author row */
.wp-review-author-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 28px; /* clear the G badge */
}

.wp-review-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	flex-shrink: 0;
	line-height: 1;
}

.wp-review-author-meta {
	min-width: 0;
}

.wp-review-author-name {
	font-size: 13px;
	font-weight: 700;
	color: #202124;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wp-review-time {
	font-size: 11px;
	color: #80868b;
	margin-top: 1px;
}

/* Star rating */
.wp-review-stars {
	display: flex;
	gap: 1px;
}

.wp-review-stars .wp-star-full {
	font-size: 15px;
	color: #f59e0b;
}

.wp-review-stars .wp-star-empty {
	font-size: 15px;
	color: #d9d9d9;
}

/* Review text */
.wp-review-text {
	font-size: 13px;
	line-height: 1.55;
	color: #5f6368;
	margin: 0;
}

/* ---------------------------------------------------------------
   Swiper navigation & pagination
--------------------------------------------------------------- */
.wp-google-reviews-swiper .swiper-button-prev,
.wp-google-reviews-swiper .swiper-button-next {
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
	color: #555;
	top: 40%;
}

.wp-google-reviews-swiper .swiper-button-prev::after,
.wp-google-reviews-swiper .swiper-button-next::after {
	font-size: 12px;
	font-weight: 700;
}

.wp-google-reviews-swiper .swiper-button-prev:hover,
.wp-google-reviews-swiper .swiper-button-next:hover {
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.wp-google-reviews-swiper .swiper-pagination {
	bottom: 6px;
}

.wp-google-reviews-swiper .swiper-pagination-bullet {
	background: #c5c5c5;
	opacity: 1;
}

.wp-google-reviews-swiper .swiper-pagination-bullet-active {
	background: #1a73e8;
}

/* ---------------------------------------------------------------
   Error state
--------------------------------------------------------------- */
.wp-google-reviews-error {
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border-radius: 8px;
	color: #666;
}

/* ---------------------------------------------------------------
   Responsive: stack panels vertically on narrow screens
--------------------------------------------------------------- */
@media (max-width: 700px) {
	.wp-google-reviews-wrapper {
		flex-direction: column;
		border-left: none;
		border-top: 5px solid #3d5a99;
	}

	.wp-reviews-business-panel {
		max-width: 100%;
		min-width: 0;
		border-right: none;
		border-bottom: 1px solid #f0f0f0;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding: 18px 16px;
		gap: 8px 20px;
	}

	.wp-reviews-slider-panel {
		padding: 16px;
	}
}
