.has-slider {
	--has-max-width: 800px;
	--has-radius: 14px;
	--has-prev-color: #fff;
	--has-next-color: #fff;
	--has-arrow-bg: #172d4a;
	--has-arrow-hover-bg: #0f2035;
	--has-aspect-ratio: 4 / 3;
	box-sizing: border-box;
	direction: rtl;
	max-width: var(--has-max-width);
	margin: 2rem auto;
	outline: none;
	transition: max-width 220ms ease;
	width: 100%;
}

.has-slider *,
.has-slider *::before,
.has-slider *::after {
	box-sizing: border-box;
}

.has-slider:focus-visible {
	outline: 2px solid var(--has-arrow-bg);
	outline-offset: 4px;
	border-radius: var(--has-radius);
}

.has-viewport {
	background: #f3f5f7;
	border-radius: var(--has-radius);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
	width: 100%;
	aspect-ratio: var(--has-aspect-ratio);
}

.has-slides,
.has-slide {
	inset: 0;
	position: absolute;
}

.has-slide {
	background: #f3f5f7;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.has-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.has-slide[hidden] {
	display: none;
}

.has-slide-image {
	background: #f3f5f7;
	border-radius: inherit;
	display: block;
	height: 100% !important;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: contain;
	object-position: center;
	width: 100% !important;
}

.has-slide.is-smart-cover .has-slide-image {
	object-fit: cover;
}

.has-arrow {
	align-items: center;
	background: var(--has-arrow-bg);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	box-shadow: 0 3px 12px rgba(10, 24, 42, 0.2);
	cursor: pointer;
	display: flex;
	height: 46px;
	justify-content: center;
	margin: 0;
	opacity: 0.96;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
	width: 46px;
	z-index: 3;
}

.has-arrow:hover,
.has-arrow:focus-visible {
	background: var(--has-arrow-hover-bg);
	opacity: 1;
	transform: translateY(-50%) scale(1.06);
}

.has-arrow:focus-visible,
.has-thumb:focus-visible {
	outline: 3px solid rgba(23, 45, 74, 0.28);
	outline-offset: 3px;
}

.has-arrow svg {
	fill: none;
	height: 23px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
	width: 23px;
}

.has-prev {
	color: var(--has-prev-color);
	left: 16px;
}

.has-next {
	color: var(--has-next-color);
	right: 16px;
}

.has-counter {
	background: rgba(13, 25, 40, 0.68);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #fff;
	direction: rtl;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	left: 14px;
	line-height: 1;
	padding: 9px 13px;
	position: absolute;
	top: 14px;
	z-index: 3;
}

.has-caption {
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	color: #263548;
	font-size: 14px;
	line-height: 1.8;
	margin-top: 8px;
	min-height: 46px;
	padding: 10px 14px;
	text-align: right;
}

.has-caption[hidden] {
	display: none;
}

.has-thumbnails {
	direction: ltr;
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding: 3px 2px 7px;
	scrollbar-color: #a8b2c0 transparent;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.has-thumb {
	background: #fff;
	border: 2px solid transparent;
	border-radius: 9px;
	cursor: pointer;
	flex: 0 0 104px;
	height: 78px;
	margin: 0;
	overflow: hidden;
	padding: 0;
	transition: border-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.has-thumb:not(.is-active) {
	opacity: 0.72;
}

.has-thumb:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.has-thumb.is-active {
	border-color: var(--has-arrow-bg);
	opacity: 1;
}

.has-thumb-image {
	display: block;
	height: 100% !important;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: cover;
	width: 100% !important;
}

.has-live-region {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 600px) {
	.has-slider {
		margin: 1.5rem auto;
	}

	.has-arrow {
		height: 40px;
		width: 40px;
	}

	.has-arrow svg {
		height: 20px;
		width: 20px;
	}

	.has-prev {
		left: 9px;
	}

	.has-next {
		right: 9px;
	}

	.has-counter {
		font-size: 12px;
		left: 10px;
		padding: 7px 10px;
		top: 10px;
	}

	.has-caption {
		font-size: 13px;
		min-height: 42px;
		padding: 8px 11px;
	}

	.has-thumbnails {
		gap: 8px;
		margin-top: 9px;
	}

	.has-thumb {
		border-radius: 7px;
		flex-basis: 76px;
		height: 57px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.has-slider,
	.has-slide,
	.has-arrow,
	.has-thumb {
		transition: none;
	}
}
