.mtr-reviews {
	--mtr-accent: #1672df;
	--mtr-trustpilot-green: #00b67a;
	--mtr-text: #252525;
	--mtr-muted: #666;
	--mtr-border: #eee;
	--mtr-gap: 20px;
	box-sizing: border-box;
	width: 100%;
	margin: 28px 0;
	color: var(--mtr-text);
	font-family: Arial, Helvetica, sans-serif;
}

.mtr-reviews *,
.mtr-reviews *::before,
.mtr-reviews *::after {
	box-sizing: border-box;
}

.mtr-card {
	margin: 0;
	color: var(--mtr-text);
}

.mtr-card a {
	color: inherit;
	text-decoration: none;
}

.mtr-avatar {
	display: inline-flex !important;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	border-radius: 50%;
	background: hsl(var(--mtr-avatar-hue, 160) 48% 48%);
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 500;
	line-height: 1;
}

.mtr-rating-row,
.mtr-stars,
.mtr-verified {
	display: flex;
	align-items: center;
}

.mtr-rating-row {
	flex-wrap: wrap;
	gap: 9px;
}

.mtr-stars {
	gap: 2px;
	white-space: nowrap;
}

.mtr-star-tile {
	position: relative;
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	background: var(--mtr-trustpilot-green);
}

.mtr-star-tile.is-empty {
	background: #d9d9e1;
}

.mtr-star-tile::before {
	width: 15px;
	height: 15px;
	background: #fff;
	content: "";
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
}

.mtr-verified {
	gap: 4px;
	color: #007a4d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.mtr-verified svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.35;
}

.mtr-card__comment {
	color: inherit;
	font-size: 15px;
	line-height: 1.42;
}

.mtr-card__comment p {
	margin: 0 0 8px;
}

.mtr-card__comment p:last-child {
	margin-bottom: 0;
}

.mtr-card__reply {
	margin-top: 16px;
	padding: 12px 14px;
	border-left: 3px solid #00a878;
	border-radius: 4px;
	background: #f5f8f7;
	font-size: 13px;
	line-height: 1.45;
}

.mtr-card__reply strong {
	display: block;
	margin-bottom: 4px;
}

.mtr-card__reply p {
	margin: 0;
}

/* Slider */
.mtr-reviews--slider {
	position: relative;
	padding: 10px 0;
}

.mtr-slider__viewport {
	overflow: hidden;
	width: 100%;
	padding: 2px;
}

.mtr-slider__track {
	--mtr-visible: 3;
	display: grid;
	grid-auto-columns: calc(
		(100% - (var(--mtr-visible) - 1) * var(--mtr-gap)) / var(--mtr-visible)
	);
	grid-auto-flow: column;
	gap: var(--mtr-gap);
	transform: translate3d(0, 0, 0);
	transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.mtr-slider-card {
	height: 220px;
	overflow: hidden;
	border: 1px solid var(--mtr-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mtr-slider-card .mtr-card__link {
	display: flex;
	height: 100%;
	flex-direction: column;
	padding: 25px;
}

.mtr-slider-card__header {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 24px;
	align-items: start;
	gap: 14px;
}

.mtr-slider-card .mtr-avatar {
	width: 44px;
	height: 44px;
	flex-basis: 44px;
	font-size: 16px !important;
}

.mtr-slider-card__identity {
	min-width: 0;
	padding-top: 3px;
}

.mtr-slider-card__identity strong {
	display: block;
	overflow: hidden;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtr-slider-card__date {
	display: block;
	margin: 0 0 7px;
	color: var(--mtr-muted);
	font-size: 12px;
	line-height: 1.2;
}

.mtr-source-icon {
	display: block;
	width: 24px;
	height: 24px;
	margin: 1px 0 0 auto;
}

.mtr-slider-card .mtr-card__comment {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 24px;
	color: var(--mtr-muted);
	font-size: 14px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.mtr-slider-card .mtr-card__reply {
	display: none;
}

.mtr-slider:not(.is-ready) .mtr-slider__navigation {
	visibility: hidden;
}

.mtr-slider__navigation {
	position: absolute;
	z-index: 3;
	top: 50%;
	right: -22px;
	left: -22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	transform: translateY(-50%);
}

.mtr-slider__navigation[hidden] {
	display: none;
}

.mtr-slider__arrow {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14);
	color: #0067c7;
	cursor: pointer;
	pointer-events: auto;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.mtr-slider__arrow:hover,
.mtr-slider__arrow:focus-visible {
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
	outline: none;
	transform: scale(1.04);
}

.mtr-slider__arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.mtr-slider__dots {
	display: none;
}

/* Masonry list */
.mtr-grid {
	column-count: 3;
	column-gap: 14px;
}

.mtr-grid-card {
	display: inline-block;
	width: 100%;
	margin: 0 0 14px;
	padding: 30px;
	break-inside: avoid;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	vertical-align: top;
}

.mtr-grid-card__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.mtr-grid-card__identity {
	min-width: 0;
}

.mtr-grid-card__identity strong,
.mtr-grid-card__identity time {
	display: block;
}

.mtr-grid-card__identity strong {
	overflow: hidden;
	color: var(--mtr-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtr-grid-card__identity time {
	margin-top: 7px;
	color: #222;
	font-size: 13px;
	line-height: 1.2;
}

.mtr-grid-card > .mtr-rating-row {
	margin-bottom: 14px;
}

.mtr-card__title {
	margin: 0 0 8px;
	color: #202020;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.mtr-grid-card .mtr-card__comment {
	color: #222;
}

.mtr-grid-card__footer {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.mtr-grid-card__details {
	color: var(--mtr-muted);
	font-size: 12px;
}

.mtr-review-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 15px;
	border-radius: 3px;
	background: #3f5e82;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	transition: background 150ms ease, transform 150ms ease;
}

.mtr-review-link:hover,
.mtr-review-link:focus-visible {
	background: #294767;
	outline: none;
	transform: translateY(-1px);
}

/* Style variations */
.mtr-style--2 {
	--mtr-accent: #73b4ff;
	--mtr-text: #f8fafb;
	--mtr-muted: #c3ccd3;
	--mtr-border: #2e3c46;
}

.mtr-style--2 .mtr-slider-card,
.mtr-style--2 .mtr-grid-card {
	background: #17232c;
	box-shadow: 0 7px 20px rgba(12, 22, 29, 0.22);
}

.mtr-style--2 .mtr-grid-card__identity time,
.mtr-style--2 .mtr-card__title,
.mtr-style--2 .mtr-grid-card .mtr-card__comment {
	color: #f8fafb;
}

.mtr-style--2 .mtr-card__reply {
	background: #21323d;
}

.mtr-style--3 {
	--mtr-accent: #755520;
	--mtr-text: #312d26;
	--mtr-muted: #726b5f;
	--mtr-border: #e5dccb;
}

.mtr-style--3 .mtr-slider-card,
.mtr-style--3 .mtr-grid-card {
	border: 1px solid #e5dccb;
	background: #fbf8f1;
	box-shadow: 0 4px 14px rgba(82, 68, 43, 0.08);
}

.mtr-style--3 .mtr-review-link {
	background: #755520;
}

.mtr-style--3 .mtr-card__reply {
	background: #f2eadc;
}

.mtr-empty {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e1e6e3;
	border-radius: 8px;
	background: #f7faf8;
	color: #53625d;
	text-align: center;
}

@media (max-width: 1023px) {
	.mtr-slider__track {
		--mtr-visible: 2;
	}

	.mtr-grid {
		column-count: 2;
	}
}

@media (max-width: 639px) {
	.mtr-reviews {
		--mtr-gap: 14px;
	}

	.mtr-reviews--slider {
		padding-right: 8px;
		padding-left: 8px;
	}

	.mtr-slider__track {
		--mtr-visible: 1;
	}

	.mtr-slider__navigation {
		right: -4px;
		left: -4px;
	}

	.mtr-slider__arrow {
		width: 40px;
		height: 40px;
	}

	.mtr-grid {
		column-count: 1;
	}

	.mtr-grid-card {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mtr-slider__track,
	.mtr-slider__arrow,
	.mtr-review-link {
		transition: none;
	}
}
