.baly-cards-carousel,
.baly-cards-carousel * {
	box-sizing: border-box;
}

.baly-cards-carousel {
	--baly-font-family: "Graphikarabic3", sans-serif;
	direction: rtl;
	font-family: var(--baly-font-family);
	font-weight: 400;
	background: #ffffff;
	border-radius: 18px;
	padding: 20px;
	margin: 0px auto 10px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	width: 100%;
}

.baly-cards-carousel--message {
	color: #6b7280;
	text-align: center;
}

.baly-cards-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.baly-cards-carousel__title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.baly-cards-carousel__accent {
	width: 4px;
	height: 22px;
	border-radius: 4px;
	background: #0000ff;
	flex-shrink: 0;
}

.baly-cards-carousel__title {
	color: #0a0a18;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	font-family: var(--baly-font-family);
}

.baly-cards-carousel__show-more {
	color: #0000ff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	font-family: var(--baly-font-family);
}

.baly-cards-carousel__show-more:hover {
	text-decoration: none;
	opacity: 0.88;
}

.baly-cards-carousel__viewport {
	position: relative;
}

.baly-cards-carousel__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	flex-wrap: nowrap;
	padding: 8px;
	margin: -8px;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.baly-cards-carousel__track::-webkit-scrollbar {
	display: none;
}

.baly-cards-carousel__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 6px 4px 0;
}

.baly-cards-carousel__card {
	position: relative;
	width: 110px;
	min-width: 110px;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.18s ease;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.baly-cards-carousel__card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}

.baly-cards-carousel__card-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}

.baly-cards-carousel__fallback-name {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #374151;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	padding: 0 8px;
	font-family: var(--baly-font-family);
}

.baly-cards-carousel__fallback-name--hidden {
	display: none;
}

.baly-cards-carousel__badges {
	position: absolute;
	top: 7px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	z-index: 2;
}

.baly-cards-carousel__badges--right {
	right: 7px;
}

.baly-cards-carousel__badges--left {
	left: 7px;
}

.baly-cards-carousel__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 96px;
	padding: 2px 6px;
	border-radius: 20px;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	font-family: var(--baly-font-family);
}

.baly-cards-carousel__item-name {
	max-width: 110px;
	color: #374151;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
	margin-bottom: 6px;
	font-family: var(--baly-font-family);
}

.baly-cards-carousel__arrow {
	position: absolute;
	top: 50%;
	width: 32px;
	height: 32px;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #ffffff;
	color: #0000ff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	cursor: pointer;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.baly-cards-carousel__arrow--prev {
	right: -16px;
}

.baly-cards-carousel__arrow--next {
	left: -16px;
}

.baly-cards-carousel__arrow.is-visible {
	opacity: 0.7;
	visibility: visible;
	pointer-events: auto;
}

.baly-cards-carousel__arrow:hover {
	opacity: 1;
}

@media (max-width: 767px) {
	.baly-cards-carousel {
		padding: 18px 16px;
	}

	.baly-cards-carousel__arrow {
		display: none;
	}

	.baly-cards-carousel__header {
		gap: 10px;
	}

	.baly-cards-carousel__title {
		font-size: 17px;
	}
}
