.tngr {
	--tngr-per-view: 4;
	--tngr-gap: 20px;
	--tngr-star-on: #fbbc04;
	--tngr-star-off: #d9d9e3;
	margin: 0 auto;
}

/* Header bar */
.tngr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #e3e3e3;
	border-radius: 8px;
	padding: 20px;
}
.tngr-brand {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	color: #000;
}
.tngr-brand img {
	display: block;
	width: 75px;
	height: 25px;
}
.tngr-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-size: 14px;
	color: #000;
}
.tngr-avg {
	font-size: 16px;
	font-weight: 700;
	color: #333;
}
.tngr-write {
	display: inline-block;
	background: #4284f3;
	color: #fff !important;
	font-size: 14px;
	line-height: 20px;
	padding: 5px 15px;
	border-radius: 50px;
	text-decoration: none !important;
	transition: background-color .15s;
}
.tngr-write:hover {
	background: #2f6fde;
}

/* Stars: one shape, filled by --fill so 4.9 shows a 90% star */
.tngr-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 0;
}
.tngr-star {
	width: 20px;
	height: 20px;
	background: linear-gradient(90deg, var(--tngr-star-on) var(--fill), var(--tngr-star-off) var(--fill));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.1 6.56.9-4.78 4.6 1.17 6.6L12 17.6l-5.89 3.1 1.17-6.6L2.5 9.5l6.56-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.1 6.56.9-4.78 4.6 1.17 6.6L12 17.6l-5.89 3.1 1.17-6.6L2.5 9.5l6.56-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Slider */
.tngr-slider {
	position: relative;
	margin-top: 10px;
}
.tngr-track {
	display: flex;
	gap: var(--tngr-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 40px 10px 30px;
	outline: none;
}
.tngr-track::-webkit-scrollbar {
	display: none;
}
.tngr-slide {
	flex: 0 0 calc((100% - (var(--tngr-per-view) - 1) * var(--tngr-gap)) / var(--tngr-per-view));
	scroll-snap-align: start;
	min-width: 0;
}

.tngr-card {
	position: relative;
	box-sizing: border-box;
	height: 250px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border-radius: 8px;
	box-shadow: rgba(0, 0, 0, .07) 0 8px 20px 2px;
	padding: 50px 30px 20px;
}
.tngr-avatar {
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	background: #78909c;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
}
.tngr-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tngr-avatar span {
	color: #fff;
	font-size: 40px;
	font-weight: 500;
}
.tngr-g {
	position: absolute;
	top: 15px;
	left: 15px;
	width: 20px;
	height: 20px;
}
.tngr-name {
	max-width: 100%;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #333 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tngr-name,
.tngr-card .tngr-stars,
.tngr-date {
	flex-shrink: 0;
}
.tngr-card .tngr-stars {
	margin-top: 6px;
}
.tngr-date {
	margin-top: 4px;
	font-size: 12px;
	color: #888;
}
.tngr-text {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
}

.tngr-nav {
	position: absolute;
	top: calc(50% + 5px);
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: rgba(0, 0, 0, .2) 0 0 16px 0;
	cursor: pointer;
}
.tngr-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border: solid #909090;
	border-width: 0 0 2px 2px;
	transform: translate(-30%, -50%) rotate(45deg);
}
.tngr-next::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}
.tngr-prev {
	left: -20px;
}
.tngr-next {
	right: -20px;
}
.tngr-nav:focus-visible {
	outline: 2px solid #4284f3;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.tngr {
		--tngr-per-view: 2;
	}
}
@media (max-width: 767px) {
	.tngr {
		--tngr-gap: 12px;
	}
	.tngr-header {
		padding: 16px;
	}
	.tngr-card {
		padding: 50px 14px 16px;
	}
	.tngr-name {
		font-size: 15px;
	}
	.tngr-card .tngr-star {
		width: 16px;
		height: 16px;
	}
	.tngr-prev {
		left: -8px;
	}
	.tngr-next {
		right: -8px;
	}
}
