/**
 * public CSS for WIT Offers.
 * Designed with premium typography, grid layouts, soft shadows, and card hover effects.
 */

.vit-offers-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
}

/* Tabs Bar Navigation */
.vit-tabs-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding-bottom: 12px;
}

.vit-tab-btn {
	background: none !important;
	border: none !important;
	font-size: 15px;
	font-weight: 700;
	color: #2c3e50;
	padding: 8px 4px;
	cursor: pointer;
	position: relative;
	box-shadow: none !important;
	outline: none !important;
	transition: color 0.3s ease;
	text-transform: capitalize;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vit-tab-btn:hover {
	color: #8c7758;
}

.vit-tab-btn::after {
	content: '';
	position: absolute;
	bottom: -4px; /* Sits closer to the text */
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #8c7758;
	transform: scaleX(0);
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vit-tab-btn.active {
	color: #2c3e50;
}

.vit-tab-btn.active::after {
	transform: scaleX(1);
}

.vit-tab-logo {
	display: inline-block;
	height: 1.1em;
	width: auto;
	vertical-align: middle;
}

/* Offers Grid */
.vit-offers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	align-items: stretch;
	transition: opacity 0.3s ease;
}

/* Offer Card Box */
.vit-offer-card {
	height: 100%;
	box-sizing: border-box;
	transition: opacity 0.15s ease, transform 0.15s ease; /* Snappy transition speed */
}

.vit-offer-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid #f2f2f2;
	border-radius: 12px;
	padding: 24px 20px 24px 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Crisp, clean shadow */
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
	box-sizing: border-box;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

.vit-offer-card:hover .vit-offer-inner {
	transform: translate3d(0, -6px, 0);
	-webkit-transform: translate3d(0, -6px, 0);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Sharp hover shadow */
	border-color: #e5e5e5;
}

/* Header Banner (if set) */
.vit-offer-header-banner {
	margin: -24px -20px 20px -20px;
	border-top-left-radius: 11px;
	border-top-right-radius: 11px;
	overflow: hidden;
}

.vit-offer-header-banner img {
	width: 100%;
	height: auto;
	display: block;
}

/* Top Row (Promo Validity & Badge Type) */
.vit-offer-header-row {
	position: relative;
	min-height: 20px;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.vit-offer-promo {
	font-size: 11px; /* Smaller promo text size as requested */
	color: #738c64; /* Sage green color matching the mockup */
	line-height: 1.4;
	font-weight: 600;
	text-align: center;
	width: 100%;
}

.vit-offer-badge {
	position: absolute;
	right: 0;
	top: -5px; /* Floating at top right of image container */
	font-size: 14px; /* Larger badge text */
	font-weight: 800;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	z-index: 5;
}

.vit-offer-image-box {
	text-align: center;
	margin-left: -20px !important; /* Counter card padding left */
	margin-right: -20px !important; /* Counter card padding right */
	margin-bottom: 6px !important; /* Brought title closer to image */
	padding: 0 !important;
	position: relative;
	overflow: hidden;
}

.vit-car-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 170px; /* Made car image larger */
	object-fit: contain;
	margin: 0 auto;
	display: block;
	transition: transform 0.4s ease;
}

.vit-offer-card:hover .vit-car-img {
	transform: scale(1.04);
}

.vit-image-placeholder {
	width: 100%;
	height: 170px; /* Scaled up placeholder */
	background-color: #f9f9f9;
	border-radius: 8px;
}

.vit-offer-disclaimer {
	position: absolute; /* Positioned absolutely over the image in the bottom part */
	bottom: 2px;
	left: 0;
	right: 0;
	font-size: 9px;
	color: #999999;
	text-align: center;
	z-index: 2;
}

/* Details and Pricing Wrapper */
.vit-offer-details-box {
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Pushes content to fill space */
	text-align: center;
}

.vit-offer-title {
	font-size: 24px; /* Title font-size reverted to 24px */
	font-weight: 600;
	color: #1a1a1a;
	margin: 4px 0 0px 0 !important; /* Brought closer to image disclaimer */
	line-height: 1.25 !important; /* Overriding parent line-height to remove gaps */
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

.vit-title-logo {
	display: inline-block;
	height: 0.9em;
	width: auto;
	vertical-align: middle;
	margin-left: 6px;
	margin-top: -3px;
}

.vit-offer-version {
	font-size: 13px;
	font-weight: 600;
	color: var(--vit-green-color); /* Linked to settings color selection */
	margin-top: 1px !important; /* Brought closer to title */
	margin-bottom: 8px !important; /* Tight spacing below version */
	line-height: 1.2 !important;
}

.vit-offer-pricing {
	margin-top: 6px !important;
	margin-bottom: 12px !important;
	display: flex;
	flex-direction: column;
	gap: 2px; /* Explicit tight gap for all pricing lines (Image 1 style) */
}

.vit-offer-price-lbl {
	font-size: 16px; /* 30% larger (was 12px) */
	color: #888888;
	margin: 0 !important;
	line-height: 1.2 !important;
}

/* Original price (strikethrough) */
.vit-offer-original-price {
	font-size: 17px; /* 30% larger (was 13px) */
	color: #9b9b9b;
	margin: 0 !important;
	line-height: 1.2 !important;
}

.vit-strike {
	text-decoration: line-through;
	color: #9b9b9b;
	font-weight: 500;
}

/* New Special Price */
.vit-offer-special-price {
	color: var(--vit-green-color); /* Linked to settings color selection */
	line-height: 1.15 !important;
	margin: 0 !important;
}

.vit-price-num {
	font-size: 26px; /* Sized to 26px as requested */
	font-weight: 800;
}

.vit-price-suff {
	font-size: 17px; /* 30% larger (was 13px) */
	font-weight: 600;
	margin-left: 2px;
}

/* Button Styling (Rectangular, gold/olive border, hover transition) */
.vit-offer-action {
	margin-top: auto;
	padding-top: 6px;
}

.vit-offer-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid var(--vit-green-color) !important; /* Green color variable instead of maro */
	color: var(--vit-green-color) !important;
	background-color: transparent !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 11px 15px;
	border-radius: 0px !important; /* Square corners like in mock */
	text-transform: uppercase;
	transition: all 0.3s ease;
	text-align: center;
	box-shadow: none !important;
	outline: none !important;
}

.vit-offer-btn:hover {
	background-color: var(--vit-green-color) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15) !important;
}

/* Filtering transition classes */
.vit-offer-card.vit-fade-out,
.vit-pl-card.vit-fade-out {
	opacity: 0;
	transform: scale(0.96);
}

.vit-offer-card.vit-hide-card,
.vit-pl-card.vit-hide-card {
	display: none;
}

.vit-offer-card.vit-show-card,
.vit-pl-card.vit-show-card {
	display: block;
}

/* Grid Breakpoints */
@media (max-width: 1100px) {
	.vit-offers-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 850px) {
	.vit-offers-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 550px) {
	.vit-offers-container {
		padding: 10px 0 !important;
	}
	.vit-offers-grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.vit-offer-inner {
		padding: 20px 15px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.vit-tabs-bar {
		gap: 12px !important;
		margin-bottom: 20px !important;
	}
}

/* Red Theme Styles */
.vit-theme-red .vit-offer-version {
	color: var(--vit-red-color); /* Linked to settings color selection */
}

.vit-theme-red .vit-offer-special-price {
	color: var(--vit-red-color); /* Linked to settings color selection */
}

.vit-theme-red .vit-offer-btn {
	border: 1.5px solid var(--vit-red-color) !important;
	color: var(--vit-red-color) !important;
}

.vit-theme-red .vit-offer-btn:hover {
	background-color: var(--vit-red-color) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(125, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Price List Shortcode Styles [vit_price_list]
   ========================================================================== */

.vit-price-list-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
}

.vit-price-list-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	align-items: stretch;
}

.vit-pl-card {
	height: 100%;
	box-sizing: border-box;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.vit-pl-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid #f2f2f2;
	border-radius: 12px;
	padding: 24px 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Crisp, clean shadow */
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
	box-sizing: border-box;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

.vit-pl-card:hover .vit-pl-card-inner {
	transform: translate3d(0, -6px, 0);
	-webkit-transform: translate3d(0, -6px, 0);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Sharp hover shadow */
	border-color: #e5e5e5;
}

.vit-pl-image-box {
	text-align: center;
	margin-left: -20px;
	margin-right: -20px;
	margin-bottom: 12px;
	position: relative;
	overflow: hidden;
}

.vit-pl-car-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: contain;
	margin: 0 auto;
	display: block;
	transition: transform 0.4s ease;
}

.vit-pl-card:hover .vit-pl-car-img {
	transform: scale(1.04);
}

.vit-pl-image-placeholder {
	width: 100%;
	height: 150px;
	background-color: #f9f9f9;
	border-radius: 8px;
}

.vit-pl-details-box {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	text-align: center;
	margin-bottom: 20px;
}

.vit-pl-title {
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 4px 0 10px 0 !important;
	line-height: 1.25 !important;
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

.vit-pl-title-logo {
	display: inline-block;
	height: 0.9em;
	width: auto;
	vertical-align: middle;
	margin-left: 6px;
	margin-top: -3px;
}

.vit-pl-pricing {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.vit-pl-price-lbl {
	font-size: 15px;
	color: #888888;
	font-weight: 500;
}

.vit-pl-price-num {
	font-size: 24px;
	font-weight: 800;
	color: var(--vit-green-color);
}

.vit-pl-price-suff {
	font-size: 15px;
	font-weight: 600;
	color: var(--vit-green-color);
}

/* Actions Section - Stacked Download Buttons */
.vit-pl-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
}

.vit-pl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #e0e0e0 !important;
	color: #2c3e50 !important;
	background-color: #ffffff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 10px 15px;
	border-radius: 6px !important;
	text-transform: uppercase;
	transition: all 0.3s ease;
	text-align: center;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.vit-pl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #7f8c8d;
	transition: color 0.3s ease;
}

.vit-pl-btn:hover {
	border-color: var(--vit-green-color) !important;
	color: var(--vit-green-color) !important;
	box-shadow: 0 4px 12px rgba(39, 174, 96, 0.1) !important;
}

.vit-pl-btn:hover .vit-pl-icon {
	color: var(--vit-green-color);
}

/* Red Theme adjustments */
.vit-theme-red .vit-pl-price-num,
.vit-theme-red .vit-pl-price-suff {
	color: var(--vit-red-color);
}

.vit-theme-red .vit-pl-btn:hover {
	border-color: var(--vit-red-color) !important;
	color: var(--vit-red-color) !important;
	box-shadow: 0 4px 12px rgba(140, 0, 0, 0.1) !important;
}

.vit-theme-red .vit-pl-btn:hover .vit-pl-icon {
	color: var(--vit-red-color);
}

/* Inline logo inside price list buttons */
.vit-btn-logo {
	display: inline-block;
	height: 1.35em;
	width: auto;
	vertical-align: middle;
	margin-left: 6px;
	margin-top: -2px;
}

/* Charging Icon Animation */
.vit-charge-svg {
	overflow: visible;
}

.vit-charge-bar {
	width: 0;
	transition: width 0.3s ease;
}

/* Hover effects for Hybrid and Plug-in Hybrid buttons (Subtle background progress charging) */
.vit-pl-btn-hybrid::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	background-color: rgba(46, 204, 113, 0.12) !important; /* Soft premium green fill */
	z-index: -1;
	transition: width 0.3s ease;
}

.vit-pl-btn-hybrid:hover::before {
	animation: vitBtnCharge 2.2s infinite ease-in-out !important;
}

.vit-pl-btn-hybrid:hover {
	border-color: #2ecc71 !important;
	color: #27ae60 !important;
	box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15) !important;
}

/* Red Theme variations for Hybrid / PHEV buttons */
.vit-theme-red .vit-pl-btn-hybrid::before {
	background-color: rgba(140, 0, 0, 0.08) !important; /* Soft red fill */
}

.vit-theme-red .vit-pl-btn-hybrid:hover {
	border-color: var(--vit-red-color) !important;
	color: var(--vit-red-color) !important;
	box-shadow: 0 4px 15px rgba(140, 0, 0, 0.15) !important;
}

/* Animation Keyframes for whole button charging effect */
@keyframes vitBtnCharge {
	0% {
		width: 0%;
		opacity: 0.3;
	}
	50% {
		width: 100%;
		opacity: 1;
	}
	100% {
		width: 100%;
		opacity: 0;
	}
}

/* Responsiveness for Price List Grid */
@media (max-width: 1100px) {
	.vit-price-list-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 850px) {
	.vit-price-list-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 550px) {
	.vit-price-list-container {
		padding: 10px 0 !important;
	}
	.vit-price-list-grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.vit-pl-card-inner {
		padding: 20px 15px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
