/**
 * MSP Google Reviews Widget — Styles
 *
 * Base styles for the reviews carousel widget.
 * Color and style overrides are handled by Elementor control selectors.
 *
 * @package MSPGoogleReviews
 */

/* ============================================================
   Widget Container
   ============================================================ */

.msp-reviews-widget {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

/* ============================================================
   Carousel Track
   ============================================================ */

.msp-carousel-track {
	position: relative;
	overflow: hidden;
	min-height: 140px;
}

/* ============================================================
   Review Card
   ============================================================ */

.msp-review-card {
	display: none;
	padding: 24px 28px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-align: left;
	box-sizing: border-box;
}

.msp-review-card--active {
	display: block;
}

.msp-review-card__stars {
	margin-bottom: 10px;
}

.msp-stars {
	display: inline-block;
	letter-spacing: 2px;
}

.msp-star--filled {
	color: #F5A623;
}

.msp-star--empty {
	color: #cccccc;
}

.msp-review-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: #333333;
	margin-bottom: 14px;
}

.msp-read-more-toggle {
	display: inline;
	background: none;
	border: none;
	color: #5f6b7a;
	cursor: pointer;
	font-size: 12px;
	padding: 0 0 0 6px;
	margin: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	appearance: none;
	-webkit-appearance: none;
	font-weight: 400;
	line-height: inherit;
	vertical-align: baseline;
}

.msp-read-more-toggle:hover {
	color: #2f6ed4;
}

.msp-review-card__author {
	color: inherit;
	text-align: inherit;
	line-height: inherit;
}

/* ============================================================
   Navigation Arrows
   ============================================================ */

.msp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #dddddd;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	color: #333;
}

.msp-arrow:hover {
	background: #f0f0f0;
}

.msp-arrow--prev {
	left: -18px;
}

.msp-arrow--next {
	right: -18px;
}

/* ============================================================
   Dot Indicators
   ============================================================ */

.msp-carousel-dots {
	text-align: center;
	margin-top: 14px;
}

.msp-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cccccc;
	margin: 0 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.msp-dot--active {
	background: #4285F4;
}

/* ============================================================
   Aggregate Meta
   ============================================================ */

.msp-aggregate {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	font-size: 14px;
	color: #555555;
}

.msp-google-badge svg {
	display: block;
}

.msp-aggregate-rating {
	font-size: 22px;
	font-weight: 700;
	color: #222222;
}

.msp-aggregate-label {
	font-size: 13px;
	color: #666666;
}

/* ============================================================
   CTA Buttons
   ============================================================ */

.msp-cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.msp-cta-btn {
	display: inline-block;
	padding: 10px 18px;
	background-color: #4285F4;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: opacity 0.2s;
	border: none;
	cursor: pointer;
}

.msp-cta-btn:hover {
	opacity: 0.88;
	color: #ffffff;
	text-decoration: none;
}

.msp-cta-btn--write-review {
	background-color: #34A853;
}

/* ============================================================
   Fallback / Summary-only
   ============================================================ */

.msp-reviews-widget--summary-only .msp-aggregate {
	margin-top: 0;
}

/* ============================================================
   Elementor Editor Placeholder
   ============================================================ */

.msp-editor-placeholder {
	padding: 20px;
	background: #f9f9f9;
	border: 2px dashed #cccccc;
	border-radius: 6px;
	text-align: center;
	color: #888888;
	font-size: 14px;
}

/* ============================================================
   Admin Styles
   ============================================================ */

.msp-admin-wrap .msp-search-results-container {
	margin-top: 8px;
	font-size: 13px;
}

.msp-search-result-list li:hover {
	background: #f0f7ff;
}

/* ============================================================
   Responsive
   ============================================================ */

@media ( max-width: 480px ) {
	.msp-review-card {
		padding: 16px 18px;
	}

	.msp-arrow--prev {
		left: 0;
	}

	.msp-arrow--next {
		right: 0;
	}

	.msp-cta-buttons {
		flex-direction: column;
	}
}
