.smartwidgets-reviews__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.smartwidgets-reviews__title {
	margin: 0;
	color: var(--white_text_black);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.smartwidgets-reviews__summary {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	column-gap: 8px;
	color: #8d9098;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.smartwidgets-reviews__summary-rating {
	grid-row: span 2;
	color: #272a33;
	font-size: 36px;
	font-weight: 600;
}

.smartwidgets-reviews__summary-stars,
.smartwidgets-reviews__stars {
	display: inline-flex;
	gap: 2px;
}

.smartwidgets-reviews__summary-stars {
	gap: 3px;
}

.smartwidgets-reviews__star * {
	fill: #d7d9dd;
}

.smartwidgets-reviews__star--filled * {
	fill: #f2aa00;
}

.smartwidgets-reviews__track {
	--theme-items-gap: 16px;
}

.smartwidgets-reviews__card {
	position: relative;
	display: flex;
	min-height: 260px;
	box-sizing: border-box;
	flex-direction: column;
	padding: 24px;
	border-radius: 8px;
	background: var(--light, #F8F8F8) var(--dark, #313137);
}

.smartwidgets-reviews__card-head,
.smartwidgets-reviews__card-footer,
.smartwidgets-reviews__rating {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.smartwidgets-reviews__author,
.smartwidgets-reviews__rating-value {
	color: var(--white_text_black);
}

.smartwidgets-reviews__date,
.smartwidgets-reviews__source {
	color: #8d9098;
	font-size: 13px;
	font-style: normal;
	line-height: 18px;
}

.smartwidgets-reviews__date {
	display: block;
	margin-top: 2px;
}

.smartwidgets-reviews__stars {
	line-height: 20px;
}

.smartwidgets-reviews__text {
	display: -webkit-box;
	min-height: 38px;
	max-height: 38px;
	margin-top: 16px;
	overflow: hidden;
	color: var(--white_text_black);
	line-height: 19px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.smartwidgets-reviews__images {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}

.smartwidgets-reviews__image {
	position: relative;
	display: block;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 4px;
}

.smartwidgets-reviews__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smartwidgets-reviews__image--more::after {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	content: '';
}

.smartwidgets-reviews__image--more span {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	color: #fff;
	font-size: 14px;
	transform: translate(-50%, -50%);
}

.smartwidgets-reviews__link,
.smartwidgets-reviews__source {
	text-decoration: none;
}

.smartwidgets-reviews__link {
	display: inline-flex;
	width: fit-content;
	margin-top: 16px;
	color: #00263E;
}

.smartwidgets-reviews__link.hidden {
	display: inline-flex !important;
	visibility: hidden;
	pointer-events: none;
}

.smartwidgets-reviews__card-footer {
	position: absolute;
	bottom: 24px;
	right: 24px;
	margin-top: auto;
	padding-top: 16px;
}

.smartwidgets-reviews__source {
	margin-left: auto;
	text-align: right;
}

.smartwidgets-reviews__popup {
	display: none;
	width: 100%;
	max-height: calc(100vh - 96px);
	box-sizing: border-box;
	padding: 32px;
	overflow-y: auto;
	border-radius: 8px;
	background: #fff;
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-bg {
	background: rgba(0, 0, 0, .58);
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-slide {
	padding: 24px;
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-content {
	width: 644px;
	max-width: calc(100% - 64px);
	overflow: visible;
	padding: clamp(16px, 2vw, 32px);
	top: 50%;
	transform: translateY(-50%);
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-close-small svg path {
	fill: #ffffff;
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-close-small {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	top: 10px;
	right: -36px;
	z-index: 1;
	padding: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.smartwidgets-reviews-popup.fancybox-container .fancybox-close-small:hover {
	background: transparent;
}

.smartwidgets-reviews__popup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.smartwidgets-reviews__popup-text {
	margin-top: 24px;
	color: var(--white_text_black);
	line-height: 21px;
}

.smartwidgets-reviews__popup-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.smartwidgets-reviews__popup-images a {
	display: block;
	width: 88px;
	height: 88px;
	overflow: hidden;
	border-radius: 4px;
}

.smartwidgets-reviews__popup-images img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.swiper-nav-offset .smartwidgets-reviews__nav {
	width: 40px;
	height: 40px;
	background: var(--light, #F8F8F8) var(--dark, #313137);
}

.swiper-nav-offset .smartwidgets-reviews__nav:hover {
	background-color: var(--theme-base-color);
}

.swiper-nav-offset .swiper-button-prev.smartwidgets-reviews__nav {
	left: -50px;
}

.swiper-nav-offset .swiper-button-next.smartwidgets-reviews__nav {
	right: -50px;
}

@media (max-width: 767px) {
	.smartwidgets-reviews__header {
		display: block;
		margin-bottom: 20px;
	}

	.smartwidgets-reviews__title {
		font-size: 21px;
	}

	.smartwidgets-reviews__summary {
		width: fit-content;
		margin-top: 12px;
	}

	.smartwidgets-reviews__summary-rating {
		font-size: 34px;
	}

	.smartwidgets-reviews__track {
		--theme-items-gap: 10px;
		overflow: visible;
	}

	.smartwidgets-reviews__card {
		width: min(298px, calc(100vw - 64px));
		min-height: 230px;
		padding: 16px;
	}

	.smartwidgets-reviews__text,
	.smartwidgets-reviews__images {
		margin-top: 14px;
	}

	.smartwidgets-reviews__text {
		min-height: 57px;
		max-height: 57px;
		-webkit-line-clamp: 3;
	}

	.smartwidgets-reviews__link.hidden {
		display: none !important;
	}

	.smartwidgets-reviews__popup.fancybox-container {
		width: 100%;
		max-height: calc(100vh - 96px);
		padding: 24px 20px;
		overflow-y: auto;
	}

	.smartwidgets-reviews-popup.fancybox-container .fancybox-slide {
		padding: 16px;
	}

	.smartwidgets-reviews-popup.fancybox-container .fancybox-content {
		width: 328px;
		max-width: calc(100% - 32px);
	}

	.smartwidgets-reviews-popup.fancybox-container .fancybox-close-small {
		top: calc(100% + 16px);
		right: 50%;
		transform: translateX(50%);
	}
}
