.discount-table-data {
	color: #086700;
}

.discount-table-title {
	color: #086700;
}

.discount-table-total {
	color: #086700;
}

.item-cost.discount-table-total,
.optional-discount-row {
	color: #0b8f00;
}

.red-text {
	color: #ff0000;
}

.green-text {
	color: #0b8f00;
}

.bold {
	font-weight: bold;
}

@keyframes pulse {
	0% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes side-to-side {
	0% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(10px);
	}

	100% {
		transform: translateX(0);
	}
}

.discount-table-total:not(.item-cost) {

	/* animation: shakeh 3s cubic-bezier(.36, .07, .19, .97) infinite; */
	font-weight: bold !important;
}



@keyframes wobble {

	0%,
	100% {
		transform: rotate3d(1, 1, 0, 19deg);
	}

	25% {
		transform: rotate3d(-1, 1, 0, 13deg);
	}

	50% {
		transform: rotate3d(-1, -1, 0, 17deg);
	}

	75% {
		transform: rotate3d(1, -1, 0, 20deg);
	}
}

@keyframes blink {

	0% {
		opacity: 0;
	}

	49% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	99% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes blink-inv {
	0% {
		opacity: 1;
	}

	49% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}

	99% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes glow {

	0%,
	100% {
		text-shadow: 0 0 10px #ff000066;
	}

	25% {
		text-shadow: 0 0 10px #ffa50087;
	}

	50% {
		text-shadow: 0 0 10px #228b226b;
	}

	75% {
		text-shadow: 0 0 10px #00ffff69;
	}
}

.lifetime-warranty-text,
.flashing-text {
	font-family: Arial, Helvetica, sans-serif;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	grid-column: 1/4;
	padding-top: 1em;
	padding-bottom: 2em;
	background: black;
	padding: 1em;

	* {
		box-sizing: border-box;
	}

	a {
		text-decoration: none;
	}

	/* text-shadow: 0 0 10px #ff000066; */
	/* text-shadow: 0 0 10px #ffa50087; */
	/* text-shadow: 0 0 10px #228b226b; */
	/* text-shadow: 0 0 10px #00ffff69; */

	/* text-shadow: 0 0 10px #ff000066, 
	0 0 20px #ffa50087, 
	0 0 30px #228b226b, 
	0 0 40px #00ffff69; */

	span {
		color: #fe0000;
	}
}

/* Override legacy style.css rule that paints VDP price text white -------- */
body #featured-inventory div.inv-item-cost {
	display: block;
	font-size: inherit;
	color: #111;
	font-weight: inherit;
	flex-direction: initial;
	align-items: initial;
}

/* VDP featured-inventory layout (title + warranty / price + countdown) ----- */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&display=swap');

#featured-inventory-wrap {
	background: #fff;
	width: 100%;
	position: relative;
	overflow: hidden;
}

#featured-inventory-wrap::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(195, 0, 47, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

body #featured-inventory.featured-inventory-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	column-gap: clamp(16px, 2vw, 28px);
	row-gap: 24px;
	padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px);
	background: #fff;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	font-family: 'DM Sans', system-ui, sans-serif;
	position: relative;
	text-align: left;
}

body #featured-inventory.featured-inventory-grid .fi-col {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

body #featured-inventory.featured-inventory-grid .fi-col-left .lifetime-warranty-badge,
body #featured-inventory.featured-inventory-grid .fi-col-right .fi-countdown {
	margin-top: auto;
}

body #featured-inventory.featured-inventory-grid .fi-col-left {
	flex: 0 1 480px;
	max-width: 480px;
}

body #featured-inventory.featured-inventory-grid .fi-col-right {
	flex: 0 1 560px;
	max-width: 560px;
}

.featured-inventory-grid .inv-info {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 18px;
	border-left: 4px solid #c3002f;
}

body .featured-inventory-grid h1.inv-item-title,
body .featured-inventory-grid h1.inv-item-title span,
body .featured-inventory-grid h1.inv-item-title strong {
	color: #0d0d0d !important;
}

body .featured-inventory-grid h1.inv-item-title {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start !important;
	column-gap: 14px;
	row-gap: 4px;
	text-align: left;
}

body .featured-inventory-grid .inv-item-year {
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	color: #c3002f !important;
	font-size: clamp(1.8em, 3vw, 2.4em);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}

body .featured-inventory-grid .inv-item-headline {
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	font-weight: 400;
	font-size: clamp(1.8em, 3vw, 2.4em);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.3em;
	row-gap: 2px;
	color: #0d0d0d !important;
}

body .featured-inventory-grid .inv-item-headline .inv-item-make,
body .featured-inventory-grid .inv-item-headline .inv-item-model {
	color: #0d0d0d !important;
}

body .featured-inventory-grid .inv-item-headline .inv-item-trim {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 0.5em;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: #6b6b6b !important;
	text-transform: uppercase;
	align-self: center;
	padding-left: 0.4em;
	border-left: 2px solid #d6d6d6;
	margin-left: 0.1em;
}

body .featured-inventory-grid .g-info {
	font-family: 'DM Sans', system-ui, sans-serif;
	color: #555 !important;
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.95em;
}

body .featured-inventory-grid .g-info p {
	margin: 2px 0;
}

/* VDP price row grid (restores rule that used to live inline in header.php). */
body #featured-inventory div.item-cost {
	word-break: keep-all;
	display: grid;
	grid-template-columns: 1fr fit-content(10px) 18px;
	align-items: center;
	text-align: left;
	padding: 6px 0;
	line-height: 16px;
	width: 100%;
	gap: 10px;
}

/* footer.php's f1() helper toggles `.vip-elem` / `.non-elem` via inline
   `display: inherit` (visible) or `display: none` (hidden). `inherit`
   resolves to the parent display (block), which breaks the row's grid.
   Force grid when the helper made the row visible; keep `none` untouched. */
body #featured-inventory div.item-cost[style*="display: inherit"],
body #featured-inventory div.item-cost[style*="display:inherit"] {
	display: grid !important;
}

body #featured-inventory .item-cost a {
	width: 18px;
	height: 18px;
	background: #fff;
	color: #000;
	text-align: center;
	border-radius: 70px;
	display: flex;
	font-size: 12px;
	justify-content: center;
	align-items: center;
	justify-self: right;
	text-decoration: none;
}

.featured-inventory-grid .g-info {
	color: #111;
	text-align: left;
	padding-left: 0;
	margin: 8px 0 0;
	font-size: 12pt;
}

.featured-inventory-grid .pricing-info {
	margin: 0;
}

.featured-inventory-grid .fi-countdown {
	margin-top: 6px;
}

.featured-inventory-grid .fi-countdown .countdown-container {
	margin: 0;
}

.featured-inventory-grid .fi-countdown .countdown {
	background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
	color: #fff;
	padding: 18px 24px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 100% !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	position: relative;
	overflow: hidden;
	font-size: 1.35em;
}

.featured-inventory-grid .fi-countdown .countdown::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #c3002f;
}

.featured-inventory-grid .fi-countdown .countdown-title {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-weight: 700;
	color: #fff;
	margin: 0;
	flex: 1;
	font-size: 0.78em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
}

.featured-inventory-grid .fi-countdown .countdown-timer {
	color: #fff;
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.featured-inventory-grid .fi-countdown .countdown-timer span {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 0.55em;
	font-weight: 500;
	letter-spacing: 0.08em;
	opacity: 0.7;
	margin-left: 2px;
}

.featured-inventory-grid .pricing-info {
	background: #fafafa;
	border: 1px solid #e9e9e9;
	border-radius: 12px;
	padding: 28px 36px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body #featured-inventory .pricing-info .inv-item-cost {
	width: 100%;
}

body #featured-inventory .pricing-info div.item-cost {
	grid-template-columns: 1fr auto 18px;
	column-gap: 16px;
	padding: 8px 0;
}

body #featured-inventory .pricing-info .item-cost {
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 0.95em;
}

body #featured-inventory .pricing-info .item-cost.final-price-row b,
body #featured-inventory .pricing-info .item-cost.final-price-row .amount {
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	font-weight: 700;
	font-size: 1.65em;
	letter-spacing: 0.03em;
}

body #featured-inventory .pricing-info .item-cost.final-price-row {
	font-weight: 700;
}

body #featured-inventory .pricing-info .item-cost.monthly-row,
body #featured-inventory .pricing-info .item-cost.monthly-row b {
	color: #00c853;
}

body #featured-inventory .pricing-info .item-cost.monthly-row b {
	font-weight: 800;
}

body div.price p.title.monthly,
body div.price span.amount.monthly,
body div.price .monthly {
	color: #00c853 !important;
	font-weight: 800 !important;
}

.lifetime-warranty-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: #111;
	max-width: 100%;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-left: 4px solid #c3002f;
	border-radius: 0 10px 10px 0;
	padding: clamp(18px, 3vw, 36px) clamp(20px, 3vw, 32px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
	font-family: 'DM Sans', system-ui, sans-serif;
	text-align: center;
}

body #featured-inventory.featured-inventory-grid .fi-col-left .lifetime-warranty-badge {
	flex: 1 1 auto;
	margin-top: 0;
}

.lifetime-warranty-badge .lwb-includes {
	color: #c3002f;
	font-family: 'Anton', 'Arial Narrow', sans-serif;
	font-weight: 700;
	font-size: clamp(1.5em, 2.4vw, 2.4em);
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.lifetime-warranty-badge .lwb-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}

.lifetime-warranty-badge img {
	display: block;
	width: 100%;
	max-width: clamp(220px, 80%, 360px);
	height: auto;
	object-fit: contain;
}

.lifetime-warranty-badge .lwb-learn-more {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #c3002f;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.5em 1.2em;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.7em;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 6px rgba(195, 0, 47, 0.22);
}

.lifetime-warranty-badge .lwb-learn-more::after {
	content: '\2192';
	font-size: 1.1em;
	transition: transform 0.15s ease;
}

.lifetime-warranty-badge .lwb-learn-more:hover {
	background: #a00026;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(195, 0, 47, 0.35);
}

.lifetime-warranty-badge .lwb-learn-more:hover::after {
	transform: translateX(3px);
}

@media (max-width: 1200px) {
	body #featured-inventory.featured-inventory-grid {
		flex-direction: column;
		align-items: center;
		row-gap: 20px;
		padding: 28px 24px;
	}

	body #featured-inventory.featured-inventory-grid .fi-col-left,
	body #featured-inventory.featured-inventory-grid .fi-col-right {
		flex: 0 0 auto;
		width: 100%;
		max-width: 560px;
		align-items: stretch;
	}

	body #featured-inventory.featured-inventory-grid .fi-col-left {
		display: contents;
	}

	body #featured-inventory.featured-inventory-grid .fi-col-right {
		display: contents;
	}

	body #featured-inventory.featured-inventory-grid .inv-info,
	body #featured-inventory.featured-inventory-grid .pricing-info,
	body #featured-inventory.featured-inventory-grid .lifetime-warranty-badge,
	body #featured-inventory.featured-inventory-grid .fi-countdown {
		width: 100%;
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	body #featured-inventory.featured-inventory-grid .fi-col-left .lifetime-warranty-badge {
		flex: 0 0 auto;
	}

	body #featured-inventory.featured-inventory-grid .inv-info { order: 1; }
	body #featured-inventory.featured-inventory-grid .pricing-info { order: 2; }
	body #featured-inventory.featured-inventory-grid .fi-countdown { order: 3; }
	body #featured-inventory.featured-inventory-grid .lifetime-warranty-badge { order: 4; }

	#featured-inventory-wrap::before {
		display: none;
	}

	body .featured-inventory-grid .inv-item-headline {
		font-size: 2.1em;
	}

	.lifetime-warranty-badge {
		max-width: 360px;
		margin: 0 auto;
	}

	.lifetime-warranty-badge img {
		max-width: 240px;
	}
}

/* Unlock Additional Discounts flow ---------------------------------------- */

.msrp-row .amount del,
.msrp-row del {
	color: inherit;
}

.static-fee-row .amount {
	color: #444;
}

.additional-discount-row .amount,
.dream-price-row .amount {
	color: #086700;
}

.final-price-row .amount {
	color: #c3002f;
}

.trade-in-credit-row .amount {
	color: #086700;
}

.wanna-better-deal-text {
	color: #086700;
	font-weight: 700;
	text-align: center;
	margin: 0.6em 0 0.3em;
	font-size: 1.35em;
	white-space: nowrap;
	grid-column: 1/4;
}

.unlock-discount-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0.3em 0 0.6em;
	min-height: 56px;
}

.unlock-additional-discount,
.lock-additional-discounts {
	display: inline-block;
	background: #ffea00;
	color: #111;
	font-weight: 800;
	text-align: center;
	padding: 0.8em 1.2em;
	border: 2px solid #111;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 2px 0 #b8a800;
	letter-spacing: 0.02em;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	width: 80%;
	max-width: 320px;
}

.unlock-additional-discount:hover,
.lock-additional-discounts:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 0 #b8a800;
}

.curved-red-arrow {
	position: absolute;
	right: 4%;
	top: -10px;
	width: 60px;
	height: 60px;
	pointer-events: none;
	animation: arrow-wiggle 1.4s ease-in-out infinite;
	transform-origin: 70% 30%;
}

.curved-red-arrow svg {
	width: 100%;
	height: 100%;
	display: block;
}

@keyframes arrow-wiggle {
	0%, 100% {
		transform: rotate(-3deg) translateX(0);
	}

	50% {
		transform: rotate(5deg) translateX(-4px);
	}
}

@media print {
	.unlock-discount-wrap,
	.wanna-better-deal-text,
	.curved-red-arrow,
	.unlock-additional-discount,
	.lock-additional-discounts {
		display: none !important;
	}
}
