/* The Reset Room Reviews
   Change any value below with the custom properties on .rr-reviews */
.rr-reviews {
	--rr-per-view: 3;
	--rr-gap: 24px;
	--rr-font: "Saans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rr-card-bg: #1c1712;
	--rr-card-border: rgba(255, 255, 255, 0.05);
	--rr-text: #a99a88;
	--rr-name: #e9e1d6;
	--rr-star: #d4a85a;
	--rr-star-empty: rgba(255, 255, 255, 0.15);
	position: relative;
	width: 100%;
}

.rr-reviews__viewport {
	overflow: hidden;
}

.rr-reviews__track {
	display: flex;
	align-items: flex-start; /* an opened card grows alone */
	gap: var(--rr-gap);
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	touch-action: pan-y;
}

.rr-review {
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--rr-per-view) - 1) * var(--rr-gap)) / var(--rr-per-view));
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 28px;
	background: var(--rr-card-bg);
	border: 1px solid var(--rr-card-border);
	border-radius: 4px;
}

.rr-review__stars {
	display: flex;
	gap: 3px;
	font-size: 14px;
	line-height: 1;
}

.rr-star {
	color: var(--rr-star-empty);
}

.rr-star.is-filled {
	color: var(--rr-star);
}

.rr-review__text {
	position: relative;
	margin: 0;
	font-family: var(--rr-font);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--rr-text);
	/* Same height for every card while closed */
	height: calc(var(--rr-lines, 5) * 1.6em);
	overflow: hidden;
	transition: height 0.4s ease;
}

/* Soft fade on the last line of long reviews */
.rr-review.is-clamped:not(.is-open) .rr-review__text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.6em;
	background: linear-gradient(to bottom, rgba(28, 23, 18, 0), var(--rr-card-bg));
	pointer-events: none;
}

.rr-review__more {
	-webkit-appearance: none;
	appearance: none;
	align-self: flex-start;
	margin: -6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: var(--rr-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--rr-star);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	/* Short reviews keep the space so all cards stay the same size */
	visibility: hidden;
}

.rr-review.is-clamped .rr-review__more {
	visibility: visible;
}

.rr-review__more:hover,
.rr-review__more:focus-visible {
	color: var(--rr-name);
	outline: none;
}

.rr-review__name {
	margin: 0;
	font-family: var(--rr-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--rr-name);
}

/* Arrows */
.rr-reviews__nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.rr-reviews__nav[hidden] {
	display: none;
}

.rr-reviews__arrow {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: var(--rr-card-bg);
	color: var(--rr-text);
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rr-reviews__arrow svg {
	width: 18px;
	height: 18px;
}

.rr-reviews__arrow:hover:not(:disabled),
.rr-reviews__arrow:focus-visible {
	border-color: var(--rr-star);
	color: var(--rr-star);
	outline: none;
}

.rr-reviews__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Mobile: 1 card. Desktop and tablet keep 3. */
@media (max-width: 767px) {
	.rr-reviews {
		--rr-per-view: 1;
		--rr-gap: 16px;
	}

	.rr-review {
		padding: 28px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-reviews__track,
	.rr-review__text {
		transition: none;
	}
}
