/* Campaign visuals on product listings (src/Promo/SiteVisuals.php) and the campaign badge on
   product pages (src/Promo/ProductBadge.php). */

/* Slider: every slide in the same grid cell, the active one faded in. */
.raacmp-visuals {
	position: relative;
	margin: 0 0 1.25rem;
}
.raacmp-visuals__track {
	display: grid;
}
.raacmp-visuals__slide {
	display: block;
	grid-area: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	line-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.raacmp-visuals__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s;
}
.raacmp-visuals__slide:focus-visible {
	outline: 2px solid #8c0014;
	outline-offset: 2px;
}
.raacmp-visuals__img {
	display: block;
	width: 100%;
	height: auto;
}
.raacmp-visuals__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding-top: 8px;
}
.raacmp-visuals__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9c9c9;
	cursor: pointer;
}
.raacmp-visuals__dot[aria-selected="true"] {
	background: #1d1d1b;
}
@media (prefers-reduced-motion: reduce) {
	.raacmp-visuals__slide,
	.raacmp-visuals__slide.is-active {
		transition: none;
	}
}

/* Mobile strip above the category title; the sidebar square on desktop. Same breakpoint as
   the theme's filter drawer and raa-mobile-listing. */
.raacmp-visuals--mobile .raacmp-visuals__img {
	aspect-ratio: 4 / 1;
	object-fit: cover;
}
.raacmp-visuals--desktop {
	margin-bottom: 1.5rem;
}
.raacmp-visuals--desktop .raacmp-visuals__img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
@media (min-width: 993px) {
	.raacmp-visuals--mobile {
		display: none;
	}
}
@media (max-width: 992px) {
	.raacmp-visuals--desktop {
		display: none;
	}
	.raacmp-visuals--mobile {
		margin: 0.25rem 0 1rem;
	}
}

/* Campaign badge on the product page: on the "Reduceri!" line above the title. */
.raacmp-shop-badge {
	display: inline-block;
	margin: 0 0.5rem 0.35rem 0;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--raacmp-badge-bg, #1d1d1b);
	color: var(--raacmp-badge-fg, #fff);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}
.summary .onsale + .raacmp-shop-badge {
	margin-left: 0.6rem;
}
