/* RSLM Promo Banners popup */

.rslm-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity .25s ease;
}
.rslm-popup[hidden] { display: none; }
.rslm-popup.is-open { opacity: 1; }

.rslm-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.rslm-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 820px;
	transform: translateY(12px);
	transition: transform .25s ease;
}
.rslm-popup.is-open .rslm-popup__dialog { transform: none; }

/* The active slide sets the popup height; inactive slides sit on top of it
   (absolutely positioned) so the crossfade works between different aspect ratios. */
.rslm-popup__track {
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.rslm-popup__slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .5s ease;
	pointer-events: none;
}
.rslm-popup__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}
.rslm-popup__slide a { display: block; line-height: 0; }
.rslm-popup__slide img {
	display: block;
	width: 100%;
	height: auto;
}

/* Close button: top-right, outside the image. */
.rslm-popup__close {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--accent, #2d5a27);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.rslm-popup__close:hover,
.rslm-popup__close:focus-visible { background: var(--primary, #1f3d1b); outline: none; }

/* Arrows */
.rslm-popup__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}
.rslm-popup__arrow:hover,
.rslm-popup__arrow:focus-visible { background: rgba(0, 0, 0, .85); outline: none; }
.rslm-popup__arrow--prev { left: 10px; }
.rslm-popup__arrow--next { right: 10px; }

/* Dots */
.rslm-popup__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.rslm-popup__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.rslm-popup__dot.is-active { background: #fff; transform: scale(1.2); }
.rslm-popup__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
	.rslm-popup { padding: 16px; }
	.rslm-popup__close { top: -14px; right: -6px; width: 32px; height: 32px; }
	.rslm-popup__arrow { width: 32px; height: 32px; }
	.rslm-popup__arrow--prev { left: 4px; }
	.rslm-popup__arrow--next { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.rslm-popup,
	.rslm-popup__dialog,
	.rslm-popup__slide { transition: none; }
}
