/**
 * SHFTX Reviews Slider — front-end styles.
 * Scoped under .shftx-revs. Accent via --shftx-revs-accent (inline) → #0e8f7e.
 */

.shftx-revs,
.shftx-revs * {
	box-sizing: border-box;
}

.shftx-revs {
	--a: var(--shftx-revs-accent, #0e8f7e);
	--gap: 16px;
	--star: #f5a623;
	--star-empty: #dce0e5;
	margin: 28px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #1f2933;
}

.shftx-revs svg {
	display: block;
}

.shftx-revs-heading {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
}

/* ---------- Summary header ---------- */
.shftx-revs-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 20px;
	padding: 16px 18px;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.shftx-revs-summary__score {
	display: flex;
	align-items: baseline;
	gap: 2px;
}

.shftx-revs-summary__num {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	color: #111827;
}

.shftx-revs-summary__out {
	font-size: 15px;
	font-weight: 600;
	color: #9aa1ab;
}

.shftx-revs-summary__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.shftx-revs-summary__count {
	font-size: 13px;
	color: #6b7280;
}

.shftx-revs-writebtn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff !important;
	background: var(--a);
	text-decoration: none !important;
	border: 0;
	transition: filter 0.15s;
}

.shftx-revs-writebtn:hover {
	filter: brightness(0.95);
	color: #fff !important;
}

/* ---------- Star rating component ---------- */
.shftx-revs-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	white-space: nowrap;
	vertical-align: middle;
}

.shftx-revs-stars__base {
	display: block;
	color: var(--star-empty);
}

.shftx-revs-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	color: var(--star);
}

.shftx-revs .shftx-revs-star {
	display: inline-block;
	vertical-align: top;
	margin-right: 2px;
	flex: none;
}

.shftx-revs .shftx-revs-star:last-child {
	margin-right: 0;
}

/* ---------- Slider shell ---------- */
.shftx-revs-slider {
	display: flex;
	align-items: center;
	gap: 8px;
}

.shftx-revs-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.shftx-revs-track {
	display: flex;
	align-items: flex-start;
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-padding-left: 2px;
	padding: 4px 2px 8px;
	margin: 0;
	list-style: none;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.shftx-revs-track::-webkit-scrollbar {
	display: none;
}

/* ---------- Card ---------- */
.shftx-revs-card {
	scroll-snap-align: start;
	flex: 0 0 auto;
	flex-basis: 86%;
	display: flex;
	flex-direction: column;
	padding: 18px;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.shftx-revs-card__top {
	display: flex;
	align-items: center;
	gap: 11px;
}

.shftx-revs-card__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef1f4;
}

.shftx-revs-card__avatar img {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.shftx-revs-card__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.shftx-revs-card__name {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.shftx-revs-card__date {
	font-size: 12px;
	color: #9aa1ab;
	margin-top: 2px;
}

.shftx-revs-card__quote {
	margin-left: auto;
	color: var(--a);
	opacity: 0.18;
}

.shftx-revs-card__rate {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 12px 0 8px;
}

.shftx-revs-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #166534;
	background: #ecfdf3;
	padding: 2px 8px;
	border-radius: 999px;
}

.shftx-revs-card__text {
	font-size: 13.5px;
	color: #374151;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--shftx-revs-clamp, 6);
}

.shftx-revs-card__text.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
}

.shftx-revs-more {
	align-self: flex-start;
	margin-top: 8px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--a);
}

.shftx-revs-more:hover {
	text-decoration: underline;
}

/* ---------- Nav buttons ---------- */
.shftx-revs-nav {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #111;
	border: 0;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
	transition: background 0.15s, transform 0.15s, opacity 0.15s;
}

.shftx-revs-nav svg {
	color: #fff;
}

.shftx-revs-nav:hover {
	background: #000;
	color: #fff;
	transform: scale(1.06);
}

.shftx-revs-nav[disabled] {
	opacity: 0.3;
	cursor: default;
	box-shadow: none;
	transform: none;
}

.shftx-revs-nav[disabled]:hover {
	background: #111;
	transform: none;
}

/* ---------- Dots ---------- */
.shftx-revs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
}

.shftx-revs-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d3d8df;
	cursor: pointer;
	transition: width 0.2s, background 0.2s;
}

.shftx-revs-dot.is-active {
	width: 22px;
	background: var(--a);
}

.shftx-revs-dots:empty {
	display: none;
}

/* ---------- Responsive cards-per-view ---------- */
@media (min-width: 961px) {
	.shftx-revs--pv-1 .shftx-revs-card { flex-basis: 100%; }
	.shftx-revs--pv-2 .shftx-revs-card { flex-basis: calc((100% - 16px) / 2); }
	.shftx-revs--pv-3 .shftx-revs-card { flex-basis: calc((100% - 32px) / 3); }
	.shftx-revs--pv-4 .shftx-revs-card { flex-basis: calc((100% - 48px) / 4); }
}

@media (min-width: 641px) and (max-width: 960px) {
	.shftx-revs-card { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 640px) {
	.shftx-revs-card { flex-basis: 86%; }
	.shftx-revs-nav { display: none; }
	.shftx-revs-heading { font-size: 20px; }
	.shftx-revs-summary__num { font-size: 30px; }
}
