/**
 * Reggal Reviews — Carousel Shortcode Styles
 */

/* -----------------------------------------------
   Layout
   ----------------------------------------------- */

.rr-carousel {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
	align-items: center;
	padding: 2rem 0;
}

/* -----------------------------------------------
   Summary panel (left)
   ----------------------------------------------- */

.rr-carousel__summary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rr-carousel__heading {
	font-size: inherit;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 0.25rem 0;
	color: #222;
}

.rr-carousel__logo-rating {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.rr-carousel__logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	flex-shrink: 0;
}

.rr-carousel__rating-info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.rr-carousel__score-line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rr-carousel__score {
	font-size: inherit;
	font-weight: 700;
	line-height: 1;
	color: #222;
}

.rr-carousel__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.rr-carousel__stars .rr-star-icon {
	width: 18px;
	height: 18px;
}

.rr-carousel__count {
	font-size: inherit;
	color: #666;
}

.rr-carousel__write-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.25rem;
	border: 1.5px solid #333;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: inherit;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	align-self: flex-start;
}

.rr-carousel__write-btn:hover {
	background-color: #333;
	color: #fff;
}

/* -----------------------------------------------
   Star icons (shared)
   ----------------------------------------------- */

.rr-carousel .rr-star-icon {
	width: 16px;
	height: 16px;
	fill: #ddd;
	stroke: none;
	flex-shrink: 0;
}

.rr-carousel .rr-star-icon--filled {
	fill: #f5a623;
}

/* -----------------------------------------------
   Slider (right)
   ----------------------------------------------- */

.rr-carousel__slider {
	min-width: 0;
	position: relative;
}

.rr-carousel__slider .splide {
	padding: 0 2.5rem;
}

.rr-carousel__slider .splide__track {
	transition: height 0.3s ease;
	overflow: hidden;
}

.rr-carousel__slider .splide__slide {
	height: auto !important;
}

/* -----------------------------------------------
   Review cards
   ----------------------------------------------- */

.rr-carousel-card {
	background: transparent;
	padding: 0.5rem 1rem;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.rr-carousel-card__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.rr-carousel-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: inherit;
	font-weight: 600;
	flex-shrink: 0;
	line-height: 1;
}

.rr-carousel-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	flex: 1;
	min-width: 0;
}

.rr-carousel-card__author {
	font-weight: 600;
	font-size: inherit;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rr-carousel-card__date {
	font-size: inherit;
	color: #999;
}

.rr-carousel-card__rating {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	flex-shrink: 0;
	margin-left: auto;
}

.rr-carousel-card__rating-value {
	font-weight: 700;
	font-size: inherit;
	color: #222;
}

.rr-carousel-card__rating .rr-star-icon {
	width: 18px;
	height: 18px;
}

.rr-carousel-card__text {
	font-size: inherit;
	line-height: 1.65;
	color: #444;
	flex: 1;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
}

/* -----------------------------------------------
   Splide arrow overrides
   ----------------------------------------------- */

.rr-carousel .splide__arrow {
	background: #fff;
	border: 1px solid #e0e0e0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	opacity: 1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.rr-carousel .splide__arrow:hover {
	border-color: #bbb;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rr-carousel .splide__arrow svg {
	fill: #555;
	width: 12px;
	height: 12px;
}

.rr-carousel .splide__arrow--prev {
	left: 0;
}

.rr-carousel .splide__arrow--prev svg {
	transform: scaleX(-1);
}

.rr-carousel .splide__arrow--next {
	right: 0;
}

.rr-carousel .splide__pagination {
	display: none;
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */

@media (max-width: 768px) {
	.rr-carousel {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.rr-carousel__summary {
		align-items: center;
		text-align: center;
	}

	.rr-carousel__write-btn {
		align-self: center;
	}

	.rr-carousel__slider .splide {
		padding: 0 2rem;
	}
}
