.cpdav {
	--cpdav-red: #971c20;
	--cpdav-red-dark: #721014;
	--cpdav-gold: #b99a7a;
	--cpdav-ink: #191716;
	--cpdav-muted: #746e69;
	--cpdav-line: #ebe5df;
	width: 100%;
	margin: 0 0 22px;
	padding: 15px;
	border: 1px solid rgba(151, 28, 32, .12);
	border-radius: 18px;
	background:
		radial-gradient(circle at 100% 0, rgba(185, 154, 122, .11), transparent 31%),
		linear-gradient(135deg, #fff 45%, #fcf9f7);
	box-shadow: 0 12px 32px rgba(47, 26, 18, .055);
	color: var(--cpdav-ink);
	font-family: "Modam", "مدام", var(--e-global-typography-primary-font-family), Tahoma, sans-serif !important;
}

.cpdav *,
.cpdav *::before,
.cpdav *::after {
	box-sizing: border-box;
	font-family: inherit !important;
}

.cpdav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 0 2px 11px;
	border-bottom: 1px solid var(--cpdav-line);
}

.cpdav__heading {
	display: flex;
	align-items: center;
	gap: 9px;
}

.cpdav__heading-icon {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	border: 1px solid rgba(151, 28, 32, .14);
	border-radius: 11px;
	background: linear-gradient(145deg, var(--cpdav-red), var(--cpdav-red-dark));
	box-shadow: 0 8px 18px rgba(151, 28, 32, .19);
}

.cpdav__heading-icon svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}

.cpdav__eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--cpdav-red);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: -.1px;
}

.cpdav__head h2 {
	margin: 0;
	color: var(--cpdav-ink);
	font-size: clamp(15px, 1.7vw, 19px);
	font-weight: 900;
	line-height: 1.45;
}

.cpdav__carousel-tools {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
}

.cpdav__swipe-hint {
	display: grid;
	width: 31px;
	height: 31px;
	margin: 0 3px;
	place-items: center;
	border-radius: 9px;
	background: #f1ece6;
	color: var(--cpdav-red);
	animation: cpdavSwipe 1.3s ease-in-out infinite;
}

@keyframes cpdavSwipe {
	50% { transform: translateX(-2px); }
}

.cpdav__swipe-hint svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cpdav__nav {
	display: grid;
	width: 31px;
	height: 31px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--cpdav-line);
	border-radius: 9px;
	background: #fff !important;
	color: var(--cpdav-ink) !important;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.cpdav .cpdav__nav:hover:not(:disabled),
.cpdav .cpdav__nav:focus:not(:disabled),
.cpdav .cpdav__nav:active:not(:disabled) {
	border-color: var(--cpdav-red-dark) !important;
	background: var(--cpdav-red-dark) !important;
	color: #fff !important;
	box-shadow: 0 5px 13px rgba(60, 20, 16, .2) !important;
}

.cpdav__nav:focus-visible {
	outline: 2px solid var(--cpdav-red);
	outline-offset: 2px;
}

.cpdav__nav:disabled {
	opacity: .32;
	cursor: default;
}

.cpdav__nav svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cpdav__grid {
	display: flex;
	gap: 9px;
	align-items: start;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 2px 2px 8px;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.cpdav--carousel .cpdav__grid {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}

.cpdav--fits .cpdav__carousel-tools {
	display: none;
}

.cpdav--fits .cpdav__grid {
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.cpdav--static .cpdav__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 290px));
	overflow: visible;
	padding-bottom: 2px;
	scroll-snap-type: none;
}

.cpdav--static.cpdav--count-2 .cpdav__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cpdav--static.cpdav--count-2 .cpdav__card {
	width: 100%;
}

.cpdav__grid::-webkit-scrollbar {
	display: none;
}

.cpdav__card {
	position: relative;
	display: flex;
	flex: 0 0 clamp(255px, 22vw, 290px);
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--cpdav-line);
	border-radius: 14px;
	background: #fff;
	color: var(--cpdav-ink);
	box-shadow: 0 6px 20px rgba(48, 27, 20, .04);
	scroll-snap-align: start;
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.cpdav__card-link {
	position: absolute;
	z-index: 2;
	inset: 0;
	border-radius: inherit;
}

.cpdav__card:hover,
.cpdav__card:focus-within {
	border-color: var(--cpdav-line);
	color: var(--cpdav-ink);
	box-shadow: 0 10px 25px rgba(48, 27, 20, .08);
	transform: translateY(-1px);
}

.cpdav__card:focus-within {
	outline: none;
}

.cpdav__card-link:focus-visible {
	border-radius: inherit;
	outline: 2px solid rgba(151, 28, 32, .38);
	outline-offset: -3px;
}

.cpdav__photo {
	position: relative;
	display: flex;
	height: 96px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 7px 10px 4px;
	background:
		radial-gradient(circle at 50% 85%, rgba(185, 154, 122, .13), transparent 42%),
		linear-gradient(145deg, #fbf9f7, #f1ece7);
}

.cpdav__photo::after {
	position: absolute;
	right: 25%;
	bottom: 11px;
	left: 25%;
	height: 7px;
	border-radius: 50%;
	background: rgba(37, 22, 16, .11);
	content: "";
	filter: blur(6px);
}

.cpdav__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 86px !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	mix-blend-mode: multiply;
	transition: transform .28s ease;
}

.cpdav__card:hover .cpdav__image {
	transform: scale(1.025);
}

.cpdav__placeholder {
	position: relative;
	z-index: 1;
	width: 68%;
	height: 78%;
	fill: #b8aaa0;
}

.cpdav__content {
	display: block;
	min-width: 0;
	padding: 8px 10px 9px 36px;
	border-top: 1px solid rgba(235, 229, 223, .72);
}

.cpdav__content strong {
	display: block;
	overflow: hidden;
	margin-bottom: 3px;
	color: inherit;
	font-size: 13.5px;
	font-weight: 900;
	line-height: 1.7;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpdav__title-link {
	position: relative;
	z-index: 3;
	display: block;
	overflow: hidden;
	color: inherit !important;
	text-decoration: none !important;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpdav__title-link:hover,
.cpdav__title-link:focus-visible {
	color: var(--cpdav-red) !important;
}

.cpdav__content small {
	display: block;
	color: var(--cpdav-muted);
	font-size: 11px;
	font-weight: 600;
}

.cpdav__arrow {
	position: absolute;
	bottom: 9px;
	left: 9px;
	display: grid;
	width: 23px;
	height: 23px;
	place-items: center;
	border: 1px solid rgba(151, 28, 32, .1);
	border-radius: 7px;
	background: #f3f0ec;
	color: var(--cpdav-red);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cpdav__arrow svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cpdav__card:hover .cpdav__arrow {
	background: var(--cpdav-red-dark);
	color: #fff;
	transform: translateX(-2px);
}

@media (max-width: 1024px) {
	.cpdav__card {
		flex-basis: 255px;
	}

	.cpdav__content strong {
		font-size: 12.5px;
	}

	.cpdav__content small {
		font-size: 10px;
	}
}

@media (max-width: 767px) {
	.cpdav {
		margin-bottom: 18px;
		padding: 11px;
		border-radius: 15px;
	}

	.cpdav__head {
		align-items: center;
		margin-bottom: 13px;
		padding-bottom: 12px;
	}

	.cpdav__heading {
		gap: 9px;
	}

	.cpdav__heading-icon {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		border-radius: 11px;
	}

	.cpdav__heading-icon svg {
		width: 22px;
		height: 22px;
	}

	.cpdav__grid {
		gap: 9px;
		margin-left: -11px;
		margin-right: -11px;
		padding: 2px 11px 9px;
		scroll-padding-inline: 11px;
		scroll-snap-type: inline proximity;
	}

	.cpdav__card {
		flex-basis: min(78vw, 285px);
	}

	.cpdav--static .cpdav__grid {
		grid-template-columns: 1fr;
		margin: 0;
		padding-right: 2px;
		padding-left: 2px;
	}

	.cpdav--static .cpdav__card {
		width: 100%;
		max-width: 360px;
		justify-self: center;
	}

	.cpdav--static.cpdav--count-2 .cpdav__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cpdav__photo {
		height: 122px;
		padding: 8px 10px 5px;
	}

	.cpdav__image {
		max-height: 110px !important;
	}

	.cpdav__content {
		padding: 11px 11px 12px 39px;
	}

	.cpdav__content strong {
		font-size: 12.5px;
	}

	.cpdav__content small {
		font-size: 10px;
	}

	.cpdav__arrow {
		bottom: 11px;
		left: 10px;
		width: 26px;
		height: 26px;
	}

	.cpdav__arrow svg {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 380px) {
	.cpdav__card {
		flex-basis: 84vw;
	}

	.cpdav__photo {
		height: 116px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpdav *,
	.cpdav *::before,
	.cpdav *::after {
		transition: none !important;
	}

	.cpdav__swipe-hint {
		animation: none !important;
	}
}
