/**
 * MSDB Powersports Vehicle Compare & Wishlist Stylesheet
 *
 * @package MSDB_Powersports_Inventory
 * @author  MS Digital Branding
 */

/* ==========================================================================
   1. FLOATING BOTTOM COMPARE BAR
   ========================================================================== */
.msdb-floating-compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.98);
	border-top: 2px solid #e11d48;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(12px);
	padding: 12px 0;
	animation: slideUpCompare 0.3s ease forwards;
}

@keyframes slideUpCompare {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.compare-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.compare-bar-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.compare-bar-icon {
	font-size: 1.6rem;
}

.compare-bar-title {
	display: block;
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	font-family: var(--msdb-font-heading, sans-serif);
}

.compare-bar-count {
	color: #0ea5e9;
	font-size: 0.75rem;
	font-weight: 700;
}

.compare-bar-thumbs {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	overflow-x: auto;
	padding: 4px 0;
}

.compare-bar-thumb {
	position: relative;
	width: 58px;
	height: 48px;
	background: #07090e;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	shrink: 0;
	overflow: hidden;
}

.compare-bar-thumb img {
	max-height: 42px;
	max-width: 52px;
	object-fit: contain;
}

.thumb-remove-btn {
	position: absolute;
	top: 2px;
	right: 2px;
	background: rgba(225, 29, 72, 0.9);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 9px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}

.compare-bar-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.btn-compare-now { color: #ffffff !important;

	background: #e11d48;
	color: #ffffff !important;
	padding: 8px 18px;
	font-weight: 800;
	font-size: 0.85rem;
	border-radius: 4px;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
	transition: all 0.2s ease;
}

.btn-compare-now:hover {
	background: #be123c;
	transform: translateY(-1px);
}

.btn-compare-now .badge-num {
	background: #ffffff;
	color: #e11d48;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
}

.btn-clear-compare-bar {
	background: #1e293b;
	color: #64748b;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
}

.btn-clear-compare-bar:hover {
	color: #f87171;
	border-color: #ef4444;
}

/* ==========================================================================
   2. CARD ACTION BUTTONS (COMPARE & WISHLIST)
   ========================================================================== */
.msdb-card-quick-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	display: flex;
	gap: 6px;
}

.btn-toggle-wishlist,
.btn-toggle-compare {
	background: rgba(7, 9, 14, 0.85);
	backdrop-filter: blur(4px);
	border: 1px solid #e2e8f0;
	color: #64748b;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	padding: 0;
}

.btn-toggle-wishlist:hover {
	color: #f43f5e;
	border-color: #f43f5e;
	transform: scale(1.08);
}

.btn-toggle-wishlist.is-active,
.btn-toggle-wishlist.is-in-wishlist {
	color: #e11d48 !important;
	border-color: #e11d48 !important;
	background: rgba(225, 29, 72, 0.15);
}

.btn-toggle-compare:hover {
	color: #0ea5e9;
	border-color: #0ea5e9;
	transform: scale(1.08);
}

.btn-toggle-compare.is-in-compare {
	color: #0ea5e9 !important;
	border-color: #0ea5e9 !important;
	background: rgba(14, 165, 233, 0.15);
}

/* ==========================================================================
   3. TOAST NOTIFICATIONS
   ========================================================================== */
.msdb-toast-notification {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 100000;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0ea5e9;
	border-radius: 8px;
	padding: 12px 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	font-weight: 600;
	transform: translateY(30px);
	opacity: 0;
	transition: all 0.25s ease;
}

.msdb-toast-notification.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.msdb-toast-notification.toast-success {
	border-left-color: #10b981;
}

.msdb-toast-notification.toast-warning {
	border-left-color: #f59e0b;
}

/* ==========================================================================
   4. COMPARE MATRIX TABLE
   ========================================================================== */
.msdb-compare-table-scroll {
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: #e11d48 #0f1420;
}

.msdb-compare-table th,
.msdb-compare-table td {
	transition: background-color 0.2s ease;
}

.msdb-compare-table tbody tr:hover td {
	background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
	.msdb-floating-compare-bar {
		bottom: calc(60px + env(safe-area-inset-bottom, 0px));
		padding: 8px 12px;
	}
	.compare-bar-thumbs {
		display: none;
	}
	.compare-bar-title {
		font-size: 0.8rem;
	}
	.btn-compare-now { color: #ffffff !important;

		padding: 6px 12px;
		font-size: 0.75rem;
	}
	.msdb-compare-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 480px) {
	.compare-bar-inner {
		gap: 0.5rem;
	}
	.compare-bar-icon {
		font-size: 1.25rem;
	}
}

