.rifs-device {
	position: relative;
	width: 100%;
	margin-inline: auto;
}

.rifs-desktop {
	max-width: 1400px;
}

.rifs-mobile {
	max-width: none;
}

.rifs-device[style*="--rifs-device-height"] {
	height: var(--rifs-device-height);
}

.rifs-desktop-screen,
.rifs-mobile-screen {
	position: absolute;
	z-index: 1;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	background: #0b0d12;
}

.rifs-scroll-screen::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.rifs-desktop-screen {
	left: var(--rifs-screen-left, 8.6%);
	top: var(--rifs-screen-top, 1.8%);
	width: var(--rifs-screen-width, 83%);
	height: var(--rifs-screen-height, 67.7%);
}

.rifs-mobile-screen {
	left: var(--rifs-mobile-screen-left, 17.9%);
	top: var(--rifs-mobile-screen-top, 3.1%);
	width: var(--rifs-mobile-screen-width, 64.8%);
	height: var(--rifs-mobile-screen-height, 91.8%);
	border-radius: var(--rifs-mobile-screen-radius, 8%);
}

.rifs-scroll-content {
	width: 100%;
}

.rifs-screenshot {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.rifs-device-frame {
	position: relative;
	z-index: 5;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}

.rifs-device.rifs-debug .rifs-desktop-screen,
.rifs-device.rifs-debug .rifs-mobile-screen {
	outline: 2px solid red;
	outline-offset: -2px;
}

.rifs-showcase {
	position: relative;
	width: min(1400px, 100%);
	margin-inline: auto;
}

.rifs-showcase-mobile,
.rifs-frame-fit {
	width: 100%;
	overflow: hidden;
}

.rifs-frame-fit > .rifs-mobile,
.rifs-showcase-mobile .rifs-mobile {
	width: 144.3%;
	margin-left: -22.37%;
	max-width: none;
}

@media (min-width: 992px) {
	.rifs-showcase-mobile {
		position: absolute;
		z-index: 6;
		right: 3%;
		bottom: 2%;
		width: min(280px, 24%);
	}
}

@media (max-width: 991px) {
	.rifs-showcase {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.rifs-showcase-desktop,
	.rifs-showcase-mobile {
		position: static;
		width: 100%;
	}
}

.rifs-empty {
	margin: 0;
	padding: 12px 14px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.rifs-device {
		scroll-behavior: auto;
	}
}
