.ri-promo {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.ri-promo[hidden] {
	display: none !important;
}

body:has(.ri-promo:not([hidden])) {
	overflow: hidden !important;
}

.ri-promo__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 7, 9, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ri-promo__panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(34rem, calc(100% - 0rem));
	max-width: 100%;
	max-height: calc(100vh - 2.5rem);
	overflow-x: hidden;
	overflow-y: auto;
	margin: 0;
	padding: 1.85rem;
	border-radius: 1.25rem;
	border: 1px solid rgba(201, 162, 39, 0.38);
	background:
		linear-gradient(165deg, rgba(255, 252, 245, 0.99) 0%, rgba(247, 239, 227, 0.98) 48%, rgba(244, 232, 214, 0.98) 100%);
	color: #2b1f1a;
	text-align: center;
	box-shadow:
		0 28px 70px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.75);
	animation: ri-promo-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ri-promo__panel::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.ri-promo__glow {
	pointer-events: none;
	position: absolute;
	inset: -18% -8% auto;
	height: 50%;
	background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.18), transparent 70%);
}

.ri-promo__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	width: 2.45rem;
	height: 2.45rem;
	border: 1px solid rgba(92, 18, 32, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: #5c1220;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ri-promo__close:hover,
.ri-promo__close:focus-visible {
	background: #fff;
	transform: scale(1.04);
	outline: 2px solid rgba(201, 162, 39, 0.55);
	outline-offset: 2px;
}

.ri-promo__timer {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 3.35rem;
	height: 3.35rem;
	margin: 0 auto 1rem;
	padding-top: 0.1rem;
	border-radius: 999px;
	border: 1.5px solid rgba(201, 162, 39, 0.5);
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ri-promo__timer-count {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1;
	color: #5c1220;
	font-variant-numeric: tabular-nums;
}

.ri-promo__timer-unit {
	margin-top: 0.12rem;
	font-size: 0.56rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(43, 31, 26, 0.55);
}

.ri-promo__eyebrow {
	position: relative;
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8b1e2d;
}

.ri-promo__title {
	position: relative;
	margin: 0;
	padding: 0 1.75rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 4.5vw, 1.9rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0.01em;
	color: #5c1220;
}

.ri-promo__intro {
	position: relative;
	margin: 0.9rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(43, 31, 26, 0.88);
}

.ri-promo__highlight {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 1.1rem 0 0;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	border: 1px solid rgba(201, 162, 39, 0.45);
	background: linear-gradient(135deg, #5c1220, #8b1e2d);
	color: #fff8ef;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	box-shadow: 0 10px 24px rgba(92, 18, 32, 0.28);
}

.ri-promo__body {
	position: relative;
	margin: 1rem 0 0;
	font-size: 0.96rem;
	line-height: 1.55;
	color: rgba(43, 31, 26, 0.82);
}

.ri-promo__footer {
	position: relative;
	margin: 1.1rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1rem;
	font-style: italic;
	line-height: 1.45;
	color: #5c1220;
}

@keyframes ri-promo-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 640px) {
	.ri-promo {
		padding: 1rem;
		align-items: center;
	}

	.ri-promo__panel {
		width: 100%;
		max-height: calc(100vh - 2rem);
		padding: 1.5rem 1.15rem 1.4rem;
		border-radius: 1.1rem;
	}

	.ri-promo__close {
		top: 0.7rem;
		right: 0.7rem;
		width: 2.3rem;
		height: 2.3rem;
	}

	.ri-promo__timer {
		width: 3.1rem;
		height: 3.1rem;
		margin-bottom: 0.85rem;
	}

	.ri-promo__title {
		padding: 0 1.4rem;
		font-size: clamp(1.25rem, 6vw, 1.55rem);
	}

	.ri-promo__intro,
	.ri-promo__body {
		font-size: 0.94rem;
	}

	.ri-promo__highlight {
		font-size: 0.84rem;
		padding: 0.5rem 0.9rem;
		max-width: 100%;
	}
}

@media (max-width: 380px) {
	.ri-promo {
		padding: 0.75rem;
	}

	.ri-promo__panel {
		padding: 1.35rem 1rem 1.2rem;
		max-height: calc(100vh - 1.5rem);
	}
}
