/**
 * Ford Indonesia - Product Sticky Subheader CSS
 * Full width, strictly downward shadow (zero horizontal bleeding), left-aligned layout
 */

.ford-product-subheader-widget {
	width: 100%;
	position: relative;
	z-index: 99;
}

.ford-product-subheader-widget.fpsn-is-sticky .fpsn-sticky-bar {
	position: sticky;
	top: 72px;
	/* Sticks directly below the 72px desktop header */
	z-index: 999;
	/* Shadow strictly downward: Y offset 5px with negative spread -3px completely eliminates left/right shadow */
	box-shadow: 0 5px 6px -3px rgba(0, 0, 0, 0.08);
	transition: top 0.3s ease, box-shadow 0.3s ease;
}

/* If admin bar is visible */
body.admin-bar .ford-product-subheader-widget.fpsn-is-sticky .fpsn-sticky-bar {
	top: 104px;
	/* 72px header + 32px admin bar */
}

@media screen and (max-width: 782px) {
	.ford-product-subheader-widget.fpsn-is-sticky .fpsn-sticky-bar {
		top: 60px;
		/* Sticks directly below the 60px mobile header */
	}

	body.admin-bar .ford-product-subheader-widget.fpsn-is-sticky .fpsn-sticky-bar {
		top: 106px;
		/* 60px header + 46px mobile admin bar */
	}
}

/* Fixed-on-scroll state (immune to parent overflow or section boundaries) */
.ford-product-subheader-widget.fpsn-sticking .fpsn-sticky-bar {
	position: fixed !important;
	top: 72px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 999 !important;
	box-shadow: 0 5px 8px -2px rgba(0, 0, 0, 0.12) !important;
}

body.admin-bar .ford-product-subheader-widget.fpsn-sticking .fpsn-sticky-bar {
	top: 104px !important;
}

@media screen and (max-width: 782px) {
	.ford-product-subheader-widget.fpsn-sticking .fpsn-sticky-bar {
		top: 60px !important;
	}

	body.admin-bar .ford-product-subheader-widget.fpsn-sticking .fpsn-sticky-bar {
		top: 106px !important;
	}
}

.fpsn-sticky-bar {
	background-color: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 10px 0;
	width: 100%;
}

.fpsn-container {
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 1rem;
}

.fpsn-inner {
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
}

/* Back Link (< Ranger Raptor) */
.fpsn-back-wrapper {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.fpsn-back-link {
	color: #001A4E;
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	transition: color 0.25s ease;
}

.fpsn-back-link:hover {
	color: #006bf5;
}

.fpsn-back-icon {
	color: #001A4E;
	margin-right: 6px;
	transition: transform 0.25s ease, color 0.25s ease;
}

.fpsn-back-link:hover .fpsn-back-icon {
	color: #006bf5;
	transform: translateX(-3px);
}

.fpsn-back-title {
	letter-spacing: 0.2px;
}

.fpsn-vertical-divider {
	width: 1px;
	height: 22px;
	background-color: #cbd5e1;
	margin-left: 20px;
	margin-right: 25px;
	flex-shrink: 0;
}

/* Navigation Links (Overview Model Feature Spec Compare) */
.fpsn-nav-wrapper {
	display: flex;
	align-items: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Firefox */
}

.fpsn-nav-wrapper::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.fpsn-nav-list {
	display: flex;
	align-items: center;
	gap: 26px;
	white-space: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fpsn-nav-item {
	display: inline-block;
}

.fpsn-link {
	position: relative;
	display: inline-block;
	color: #001A4E;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 6px 0;
	transition: color 0.25s ease;
}

.fpsn-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #006bf5;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2px;
}

.fpsn-link:hover {
	color: #006bf5;
}

.fpsn-link.active {
	color: #006bf5 !important;
	font-weight: 600;
}

.fpsn-link.active::after {
	width: 100%;
}

.fpsn-compare-trigger {
	cursor: pointer;
}

/* Mobile Responsive: Single Continuous Row under 60px header */
@media (max-width: 991px) {
	.fpsn-container {
		padding: 0 1rem;
	}

	.fpsn-nav-list {
		gap: 18px;
	}

	.fpsn-link {
		font-size: 0.88rem;
	}
}

@media (max-width: 782px) {
	.fpsn-sticky-bar {
		position: relative !important;
		padding: 7px 0 !important;
	}

	/* Subtle Right Fade Gradient Affordance */
	.fpsn-sticky-bar::after {
		content: '' !important;
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		height: 100% !important;
		width: 44px !important;
		background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
		pointer-events: none !important;
		z-index: 10 !important;
		transition: opacity 0.25s ease !important;
	}

	.fpsn-sticky-bar.at-end::after {
		opacity: 0 !important;
	}

	.fpsn-container {
		padding: 0 0.85rem !important;
	}

	.fpsn-inner {
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		gap: 0 !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: none !important;
	}

	.fpsn-inner::-webkit-scrollbar {
		display: none !important;
	}

	.fpsn-back-wrapper {
		flex-shrink: 0 !important;
	}

	.fpsn-back-link {
		font-size: 0.85rem !important;
		white-space: nowrap !important;
	}

	.fpsn-back-icon {
		width: 14px !important;
		height: 14px !important;
		margin-right: 4px !important;
	}

	.fpsn-vertical-divider {
		display: block !important;
		height: 15px !important;
		width: 1px !important;
		background-color: #cbd5e1 !important;
		margin: 0 10px !important;
		flex-shrink: 0 !important;
	}

	.fpsn-nav-wrapper {
		flex-shrink: 0 !important;
	}

	.fpsn-nav-list {
		gap: 14px !important;
		white-space: nowrap !important;
		padding-right: 42px !important;
	}

	.fpsn-link {
		font-size: 0.82rem !important;
		padding: 3px 0 !important;
		white-space: nowrap !important;
	}
}