/* pl_cawidgets - Review Carousel widget (pl-review-carousel) */

.pl-review-carousel {
	--pl-rc-arrow-box: 38px;
	--pl-rc-arrow-gap: 10px;
	position: relative;
}

/* Header: title on the left, room for the arrows on the right */
.pl-review-carousel__header {
	display: flex;
	align-items: center;
	min-height: var(--pl-rc-arrow-box);
	margin-bottom: 30px;
}
.pl-review-carousel--has-title .pl-review-carousel__header {
	padding-inline-end: calc(2 * var(--pl-rc-arrow-box) + var(--pl-rc-arrow-gap) + 10px);
}
.pl-review-carousel__title {
	margin: 0;
}

/* Arrow buttons (CE renders them inside the swiper, which is position: static,
   so they are placed against .pl-review-carousel) */
.pl-review-carousel .elementor-swiper-button {
	align-items: center;
	justify-content: center;
	width: var(--pl-rc-arrow-box);
	height: var(--pl-rc-arrow-box);
	border: 1px solid #e4e4e4;
	border-radius: 50%;
	background-color: #fff;
	color: #333;
	font-size: 16px;
}
.pl-review-carousel--has-title .elementor-swiper-button {
	top: 0;
	transform: none;
}
.pl-review-carousel--has-title .elementor-swiper-button-next {
	left: auto;
	right: 0;
}
.pl-review-carousel--has-title .elementor-swiper-button-prev {
	left: auto;
	right: calc(var(--pl-rc-arrow-box) + var(--pl-rc-arrow-gap));
}
.pl-review-carousel--has-title .elementor-carousel-wrapper {
	width: 100%;
}

/* Cards */
.pl-review-carousel .swiper-slide {
	height: auto;
	padding: 26px 40px;
	border-radius: 16px;
	background-color: #f7f4ef;
	box-sizing: border-box;
}
.pl-review {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	text-align: start;
}
.pl-review__avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 50%;
	background-color: #eee;
	color: #555;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
}
.pl-review__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pl-review__body {
	flex: 1;
	min-width: 0;
}
.pl-review__content {
	margin-bottom: 20px;
	font-style: italic;
	line-height: 1.5;
}
.pl-review__rating {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 1px;
}
.pl-review__star--on {
	color: #f5b800;
}
.pl-review__star--off {
	color: #ddd;
}
.pl-review__author {
	font-size: 13px;
	font-weight: 600;
}
.pl-review__author a {
	color: inherit;
}
