.lg-cb-highlighted {
	padding: 48px 0 0 0;
	background: #f9fafb;
	overflow-x: hidden;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 32px 0 0 0;
	}
}

.highlighted-container {
	max-width: 1248px !important;
	margin: 0 auto;
	padding: 0 24px;
	font-family: var(--font-family);
}

.highlighted-container > * {
	color: #212121;
	font-family: var(--font-family);
}

.highlighted-title {
	font-size: 30px;
	font-weight: 250;
	line-height: 38px;
	color: #212121;
	text-align: left;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		font-size: 20px;
		line-height: 24px;
	}
}

.prev-icon-highlighted::before,
.next-icon-highlighted::before {
	content: '';
	display: inline-block;
	width: 40px;
	height: 40px;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: currentColor;
	vertical-align: middle;
	filter: drop-shadow(0 0 0.5px currentColor)
		drop-shadow(0 0 0.5px currentColor);
}

.prev-icon-highlighted::before {
	-webkit-mask-image: url('../assets/icons/light-arrow.svg');
	mask-image: url('../assets/icons/light-arrow.svg');
}

.next-icon-highlighted::before {
	-webkit-mask-image: url('../assets/icons/light-arrow.svg');
	mask-image: url('../assets/icons/light-arrow.svg');
}

.next-icon-highlighted {
	transform: rotate(180deg) !important;
}

.prev-icon-highlighted,
.next-icon-highlighted {
	border: 1px solid var(--primary-color);
}

/* Slider styles */
.highlighted-slider {
	position: relative;
	width: 100%;
}

.slider-container {
	position: relative;
	width: 100%;
}

/* When arrows are outside, remove any centering issues */
.slider-container.arrows-outside {
	margin: 0;
	padding: 0;
}

/* Ensure minimum container width for outside arrows */
@media (min-width: 1101px) {
	.highlighted-container {
		min-width: 800px; /* Ensure enough space for 5 cards + arrows */
	}
}

.slider-wrapper {
	width: 100%;
	border-radius: 12px;
	user-select: none;
    overflow: hidden;
}

/* Show grab cursor only when dragging is enabled */
.slider-wrapper.draggable {
	cursor: grab;
}

.slider-wrapper.draggable:active {
	cursor: grabbing;
}

.slider-track {
	display: flex;
	transition: transform 0.3s ease;
	width: 100%;
	padding-top: 36px;
}

/* Navigation arrows */
.slider-nav {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	/* border: 1px solid #dcdbdb; */
	/* background: #fff; */
	color: var(--primary-color);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease, opacity 0.2s ease;
	z-index: 10;
}

/* Arrows when positioned outside - relative to highlighted-slider */
.slider-nav.outside {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.slider-nav.outside.prev {
	left: 0;
}

.slider-nav.outside.next {
	right: 0;
}

/* Safety positioning for very large screens */
@media (min-width: 1300px) {
	.slider-nav.outside.prev {
		left: -65px;
	}

	.slider-nav.outside.next {
		right: -65px;
	}
}

/* Arrows when positioned over cards */
.slider-nav.over {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
}

.slider-nav.over.prev {
	left: 8px;
}

.slider-nav.over.next {
	right: 8px;
}

/* Tablet and smaller - force arrows over cards */
@media (max-width: 1100px) {
	.slider-nav {
		display: none;
	}

	.slider-nav.outside {
		left: 8px;
		right: auto;
	}

	.slider-nav.outside.next {
		left: auto;
		right: 8px;
	}
}

/* Mobile responsive */
@media (max-width: 768px) {
	.slider-nav {
		width: 40px !important;
		height: 40px !important;
	}
}

/* Fix gap on very small screens */
@media (max-width: 480px) {
	.slider-track {
		gap: var(--card-margin, 17px);
	}
}

/* Next card preview styles */
.lg-cb-highlighted.show-next-preview .slider-wrapper,
.lg-cb-highlighted.show-prev-preview .slider-wrapper {
	overflow: visible; /* Allow preview cards to be visible */
}

.lg-cb-highlighted.show-next-preview .slider-track,
.lg-cb-highlighted.show-prev-preview .slider-track {
	overflow: visible; /* Allow preview cards to be visible */
}

/* Ensure last card margin is preserved when showing preview */
.lg-cb-highlighted.show-next-preview .highlighted-card:last-child,
.lg-cb-highlighted.show-prev-preview .highlighted-card:last-child {
	margin-right: var(--card-margin, 17px);
}

/* Fade effect for preview cards */
.lg-cb-highlighted.show-next-preview .highlighted-card:nth-last-child(1),
.lg-cb-highlighted.show-prev-preview .highlighted-card:first-child {
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.slider-nav:hover:not(:disabled) {
	background: var(--primary-color, #1a73e8);
	color: #fff;
	border-color: var(--primary-color, #1a73e8);
}

.slider-nav:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f5f5f5 !important;
	color: #ccc !important;
	border-color: #e0e0e0 !important;
}

.slider-nav svg {
	width: 20px;
	height: 20px;
}

/* Dots navigation */
.slider-dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: #dcdbdb;
	cursor: pointer;
	transition: all 0.2s ease;
}

.slider-dot:hover,
.slider-dot.active {
	background: var(--primary-color, #1a73e8);
	transform: scale(1.2);
}

/* Card styles - reusing from shops-exploration */
.highlighted-card {
	flex: 0 0 auto;
	width: var(--card-width, 20%);
	position: relative;
	border-radius: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	margin-right: var(--card-margin, 17px);
	cursor: pointer;
	box-shadow: 0px 0px 4px 0px #21212140;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		border-radius: 12px;
	}
}

.highlighted-card:last-child {
	margin-right: 0;
}

/* Special handling for single card - maintain proper spacing */
.slider-track[data-single-card='true'] {
	justify-content: flex-start;
}

.slider-track[data-single-card='true'] .highlighted-card {
	margin-right: var(
		--card-margin,
		17px
	); /* Keep the gap even for single card */
}

.slider-track[data-single-card='true'] .highlighted-card:last-child {
	margin-right: var(
		--card-margin,
		17px
	); /* Override the last-child rule for single card */
}

.highlighted-card:hover {
	border-color: #e6e1da;
	transform: translateY(-2px);
}

.highlighted-card .m-card-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	border-radius: 16px 16px 0 0;
	top: -25px;
	left: 15px;
	height: 24px;
	z-index: 100;

	@media (max-width: 768px) {
		top: -22px;
		left: 10px;
		border-radius: 12px 12px 0 0;
	}
}

.highlighted-card .m-card-inner > * {
	font-size: 12px;
	font-weight: 500;
	font-family: var(--font-family);
}

.highlighted-card .m-card-inner-left-top {
	background: #f05d38;
	border-radius: 4px 0 0 0;
	white-space: nowrap;
	font-weight: 600;
	padding: 3px 10px;
	color: #fff;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 2px 6px;
		font-size: 10px;
		border-radius: 6px 0 0 0;
	}
}

.highlighted-card .m-card-inner-left-top.expiring-not-soon {
	border-radius: 4px 4px 0 0;
	font-weight: 600;

	@media (max-width: 768px) {
		border-radius: 4px 4px 0 0;
	}
}

.highlighted-card .m-card-inner-left-bottom {
	white-space: nowrap;
	border-radius: 0 4px 0 0;
	padding: 3px 10px;
	color: #000;
	background-color: #E8EFF2;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 2px 0;
		font-size: 10px;
		border-radius: 0 4px 0 0;
	}
}

.highlighted-card .m-cover {
	height: 160px;
	background: #e9eff2;
	border-radius: 16px 16px 0 0;
	flex-shrink: 0;
	position: relative;

	@media (max-width: 768px) {
		height: 130px;
		border-radius: 12px 12px 0 0;
	}
}

.offer-countdown {
	font-weight: 600;
	font-family: var(--font-family);
}

.highlighted-card .m-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px 16px 0 0;

	@media (max-width: 768px) {
		border-radius: 12px 12px 0 0;
	}
}

.highlighted-card .m-cover-logo-holder {
	position: relative;
	bottom: 64px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	width: calc(100% - 12px);
	z-index: 3;

	@media (max-width: 768px) {
		bottom: 60px;
	}
}

.highlighted-card .m-cover-logo {
	position: static;
	width: 52px;
	height: 52px;
	object-fit: cover;
	display: block;
	background-color: #fff;
	padding: 4px;
	border-radius: 8px;
	border: 1px solid #dcdbdb;
	flex-shrink: 0;

	@media (max-width: 768px) {
		width: 48px;
		height: 48px;
		top: 35px;
		padding: 4px !important;
		left: 12px;
		border-radius: 6px;
	}
}

.highlighted-card .m-cover-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	display: block;
	border-radius: 0 !important;
}

.highlighted-card .m-name {
	position: static;
	font-size: 18px;
	line-height: 24px;
	font-weight: 350;
	color: #fff;
	font-family: var(--font-family);

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	@media (max-width: 768px) {
		display: block;
		font-size: 16px;
	}
}

.highlighted-card .m-name-mobile {
	display: none;
	font-size: 14px;
	font-weight: 400;
	color: #000;
	padding-left: 0px !important;
	padding-top: 8px !important;
	padding-bottom: 2px !important;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		display: block;
	}
}

.highlighted-card .m-badges {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	gap: 8px;
}

.highlighted-card .badge {
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid #dcdbdb;
	font-family: var(--font-family);
}

.highlighted-card .badge.new {
	background: #497188;
	border-color: #497188;
	color: #fff;
	font-weight: 400;
}

.highlighted-card .m-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: space-between;
	height: 100%;
	padding-top: 0;
	font-family: var(--font-family);
}

.highlighted-card .m-body-inner {
	padding: 12px 16px 16px 16px;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		padding: 8px 12px 12px 12px;
		gap: 4px;
	}
}

.etihad-guestpay-logo img {
	width: 18px;
	height: 18px;
	display: inline-block;
}

.highlighted-card .m-metric-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	min-height: 32px;
	font-family: var(--font-family);
}

.highlighted-card .m-metric-inner-num {
	font-size: 42px;
	font-weight: 400;
	line-height: 36px;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		font-size: 32px;
		line-height: 32px;
	}
}

.highlighted-card .m-metric-inner-text {
	font-size: 18px;
	font-weight: 400;
	line-height: 24px;
	margin-bottom: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		font-size: 14px;
		line-height: 18px;
	}
}

.highlighted-card .m-metric-inner-unit {
	display: flex;
	flex-direction: column;
	font-family: var(--font-family);
}

.highlighted-card .m-metric-inner-unit-unit {
	font-size: 14px;
	line-height: 18px;
	font-family: var(--font-family);
	font-weight: 400;

	@media (max-width: 768px) {
		font-size: 12px;
		line-height: 16px;
	}
}

.highlighted-card .m-metric-inner-unit-num {
	font-size: 14px;
	line-height: 18px;
	text-decoration: line-through;
	opacity: 0.5;
	font-family: var(--font-family);
	font-weight: 350;

	@media (max-width: 768px) {
		font-size: 12px;
		line-height: 16px;
	}
}

.highlighted-card .m-pillbar {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 8px;
	width: fit-content;
	justify-content: start;
	font-family: var(--font-family);

	@media (max-width: 768px) {
		gap: 8px;
	}
}

.highlighted-card .pill {
	font-size: 14px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	color: #4e4c4a;
	font-family: var(--font-family);
	font-weight: 350;

	@media (max-width: 768px) {
		padding: 2px 0px;
		font-size: 12px;
	}
}

.highlighted-card .bottom-pill {
	font-size: 14px;
	border-radius: 0 0 16px 16px;
	display: flex;
	padding: 0px 16px;
	align-items: center;
	gap: 6px;
	color: var(--text-color);
	height: 36px;
	font-family: var(--font-family);
	font-weight: 400;

	@media (max-width: 768px) {
		padding: 0px 12px;
		font-size: 12px;
		border-radius: 0 0 12px 12px;
		height: 22px;
	}
}

.highlighted-card .bottom-pill.etihad-guestpay {
	background: var(--guestpay-color, #f68d2d);
	color: var(--paymentMethod-text);
}

.highlighted-card .bottom-pill.linked {
	background: var(--linked-color, #0b8043);
	color: var(--linked-text);
}

.highlighted-card .bottom-pill.tracked {
	background: var(--tracked-color, #1a73e8);
	color: var(--tracked-text);
}

/* Icons - reuse from shops-exploration */
.highlighted-card [class$='-icon']::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	vertical-align: middle;

	@media (max-width: 768px) {
		width: 16px;
		height: 16px;
	}
}

.highlighted-card .online-icon::before {
	background-image: url('../assets/icons/online.svg');
}

.highlighted-card .instore-icon::before {
	background-image: url('../assets/icons/store.svg');
}

.highlighted-card .earn-icon::before {
	background-image: url('../assets/icons/hand_up.svg');
}

.highlighted-card .redeem-icon::before {
	background-image: url('../assets/icons/hand_down.svg');
}

.highlighted-card .etihad-guestpay-icon::before {
	background-image: url('../assets/icons/eyg_pay.svg');
}

.highlighted-card .linked-icon::before {
	background-image: url('../assets/icons/linked.svg');
}

.highlighted-card .tracked-icon::before {
	background-image: url('../assets/icons/tracked.svg');
}

/* Responsive design */
@media (max-width: 1024px) {
	.highlighted-card {
		width: var(--card-width, 25%);
	}
}

@media (max-width: 768px) {
	.highlighted-container {
		padding: 0 16px;
	}

	.highlighted-card {
		width: var(--card-width, 50%);
	}

	.slider-nav svg {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 480px) {
	.highlighted-card {
		width: var(--card-width, 100%);
		margin-right: 0;
	}

	.slider-container {
		gap: 8px;
	}
}

.highlighted-card .m-cover-inner {
	display: none;
	position: absolute;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
	left: 0;
	right: 0;
	bottom: 0;
	height: 30%;
}

.m-pillbar-inner {
	display: flex;
	gap: 16px;
	font-family: var(--font-family);
}
