/* WCSC Reviews - base styles. Elementor Style controls override colors/spacing per-instance. */

.wcsc-review-widget {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ---------- Shared card (Carousel / Marquee / Testimonial) ---------- */
.wcsc-review-card {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 24px;
	height: 100%;
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wcsc-stars {
	margin-bottom: 12px;
}

.wcsc-star {
	color: #d9d9d9;
	font-size: 18px;
}

.wcsc-star.filled {
	color: #f5a623;
}

.wcsc-review-text {
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	margin: 0 0 12px;
}

.wcsc-review-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
	font-size: 13px;
}

.wcsc-review-name {
	color: #222;
	font-size: 15px;
}

.wcsc-review-date {
	color: #999;
	font-size: 12px;
}

/* ---------- Read More / View More ----------
   !important is intentional here: some themes/page-builders apply broad
   "p { display: block }" resets that outrank a plain class selector and
   were overriding this toggle. Inline styles set by JS handle the live
   toggle; these rules are the fallback if inline styles ever get stripped
   (some aggressive HTML minifiers do this). */
.wcsc-review-text-wrap .wcsc-text-full {
	display: none !important;
}

.wcsc-review-text-wrap.wcsc-expanded .wcsc-text-short {
	display: none !important;
}

.wcsc-review-text-wrap.wcsc-expanded .wcsc-text-full {
	display: block !important;
}

.wcsc-view-more-btn {
	background: none;
	border: none;
	padding: 0;
	margin-top: 4px;
	color: #1f3a2e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wcsc-review-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100000;
}

.wcsc-review-modal-overlay.wcsc-active {
	display: flex;
}

.wcsc-review-modal {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
}

.wcsc-review-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: none;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.wcsc-review-modal-content .wcsc-review-card {
	/* The cloned card already carries all Style-tab customizations (bg, border,
	   radius, padding, typography) via the widget's scoped selectors — no extra
	   overrides needed here. Just make sure it isn't clipped inside the popup. */
	height: auto;
	max-height: none;
}

.wcsc-review-modal-content .wcsc-view-more-btn {
	display: none;
}

/* ---------- Custom carousel (Cards + Testimonial) ---------- */
.wcsc-carousel-wrap {
	--wcsc-arrow-size: 40px;
	--wcsc-arrow-bg: #ffffff;
	--wcsc-arrow-color: #333333;
	--wcsc-arrow-radius: 50%;
	position: relative;
	padding: 0 4px;
}

.wcsc-carousel-viewport {
	overflow: hidden;
}

.wcsc-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	transition: transform 0.4s ease;
	will-change: transform;
}

.wcsc-carousel-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 4px 10px;
}

.wcsc-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wcsc-arrow-size);
	height: var(--wcsc-arrow-size);
	background: var(--wcsc-arrow-bg);
	color: var(--wcsc-arrow-color);
	border: none;
	border-radius: var(--wcsc-arrow-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	z-index: 2;
}

.wcsc-carousel-arrow svg {
	width: 45%;
	height: 45%;
}

.wcsc-carousel-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.wcsc-carousel-prev { left: 10px; }
.wcsc-carousel-next { right: 10px; }

.wcsc-arrows-outside .wcsc-carousel-prev {
	left: calc(-1 * (var(--wcsc-arrow-size) / 2 + 6px));
}
.wcsc-arrows-outside .wcsc-carousel-next {
	right: calc(-1 * (var(--wcsc-arrow-size) / 2 + 6px));
}

.wcsc-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.wcsc-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9d9d9;
	cursor: pointer;
}

.wcsc-carousel-dot.active {
	background: var(--wcsc-arrow-color, #333333);
}

/* ---------- Marquee (continuous scroll) ---------- */
.wcsc-marquee {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.wcsc-marquee-track {
	display: flex;
	gap: 20px;
	width: max-content;
	animation: wcsc-marquee-scroll var(--wcsc-marquee-duration, 25s) linear infinite;
}

.wcsc-marquee-direction-right .wcsc-marquee-track {
	animation-direction: reverse;
}

.wcsc-marquee-pause-hover:hover .wcsc-marquee-track {
	animation-play-state: paused;
}

.wcsc-marquee .wcsc-review-card {
	flex: 0 0 300px;
	width: 300px;
}

@keyframes wcsc-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---------- Testimonial (spotlight) ---------- */
.wcsc-testimonial-card {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	padding: 40px;
}

.wcsc-testimonial-card .wcsc-quote-icon {
	font-size: 48px;
	line-height: 1;
	color: #e0d9c8;
	margin-bottom: 8px;
	font-family: Georgia, serif;
}

.wcsc-testimonial-card .wcsc-stars {
	display: flex;
	justify-content: center;
}

.wcsc-testimonial-card .wcsc-review-meta {
	align-items: center;
}

/* ---------- Form (labeled fields, card style) ---------- */
.wcsc-review-form {
	max-width: 520px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: 12px;
	background: #8fa787;
}

.wcsc-form-title {
	margin: 0 0 4px;
	color: #ffffff;
}

.wcsc-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcsc-form-row label {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
}

.wcsc-review-form input,
.wcsc-review-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #e9ede7;
	color: #333;
	font-size: 14px;
}

.wcsc-review-form textarea {
	min-height: 100px;
	resize: vertical;
}

.wcsc-rating-input {
	display: flex;
	gap: 6px;
	font-size: 26px;
	cursor: pointer;
}

.wcsc-rating-input .wcsc-star-select {
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.15s ease;
}

.wcsc-rating-input .wcsc-star-select.filled {
	color: #f5a623;
}

.wcsc-submit-btn {
	width: 100%;
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	background: #1f3a2e;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.wcsc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wcsc-form-message {
	font-size: 13px;
	color: #ffffff;
}
