/* Каросел с отзиви (rp-car) — споделен компонент за demo6.
   Мерките са снети от swiper-а на remontpokriv.com при 1440 и 390:
   трак 95% (2.5% улуци, в тях стоят стрелките), слайд на цялата ширина
   с padding 20, разстояние 10, лента 40px под трака за точките,
   точки 6px черни (.2 / 1), стрелки 20px.

   Единственото отклонение е цветът на стрелките: в оригинала са
   rgba(237,237,237,.9) върху фон #F9FAFB и практически не се виждат.
   Тук са в синьото на секцията, за да личи, че каруселът се превърта.

   Всички правила са с двойна специфичност (.rp-car .rp-car__…), защото
   hello-elementor стилизира всеки `button` през `[type="button"]` — при
   равна специфичност той идва по-късно и печели. */

.rp-car { position: relative; }

.rp-car .rp-car__track {
	display: flex;
	gap: 10px;
	margin: 0 2.5%;
	padding-bottom: 40px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.rp-car .rp-car__track::-webkit-scrollbar { display: none; }

.rp-car .rp-car__track > * {
	flex: 0 0 100%;
	scroll-snap-align: center;
}

/* Нулиране на бутонните стилове на темата. */
.rp-car .rp-car__arrow,
.rp-car .rp-car__dot {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	line-height: 0;
	cursor: pointer;
}

/* Стрелките се показват едва след като скриптът ги е вързал. */
.rp-car .rp-car__arrow {
	position: absolute;
	top: calc(50% - 20px);
	transform: translateY(-50%);
	display: none;
	width: 20px;
	min-width: 0;
	height: 20px;
	color: #003DA6;
}

.rp-car.is-ready .rp-car__arrow { display: block; }
.rp-car .rp-car__arrow--prev { left: 10px; }
.rp-car .rp-car__arrow--next { right: 10px; }

.rp-car .rp-car__arrow svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.rp-car .rp-car__arrow:hover { color: #002F80; background: none; }
.rp-car .rp-car__arrow:focus-visible { outline: 2px solid #003DA6; outline-offset: 4px; }

.rp-car .rp-car__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 24px;
	line-height: 24px;
	text-align: center;
}

.rp-car .rp-car__dot {
	display: inline-block;
	vertical-align: middle;
	width: 6px;
	min-width: 0;
	height: 6px;
	margin: 0 6px;
	border-radius: 50%;
	background: #000;
	opacity: .2;
}

.rp-car .rp-car__dot[aria-current="true"] { opacity: 1; }
.rp-car .rp-car__dot:focus-visible { outline: 2px solid #003DA6; outline-offset: 3px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.rp-car .rp-car__track { scroll-behavior: auto; }
}
