/**
 * QuickRev V2 Floating Cart Experience & Styling
 * Matches modern Shopify/Stripe/QuickRev design aesthetics:
 * Inter-style typography, high-contrast CTA, interactive quantity steppers,
 * responsive mobile layout, and zero UI collisions.
 */

/* --- Product Cards in Drawer --- */
.xoo-wsc-products {
	padding: 8px 0;
}

.xoo-wsc-product.qrv2-sc-card {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 14px !important;
	padding: 14px !important;
	margin: 0 0 12px 0 !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
	transition: all 0.2s ease !important;
	position: relative !important;
}

.xoo-wsc-product.qrv2-sc-card:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
}

.xoo-wsc-product.qrv2-sc-updating {
	opacity: 0.55 !important;
	pointer-events: none !important;
}

.xoo-wsc-product.qrv2-sc-removing {
	opacity: 0 !important;
	transform: translateX(30px) !important;
	transition: all 0.3s ease !important;
}

/* Product Image */
.qrv2-sc-img-wrap {
	width: 76px !important;
	height: 76px !important;
	min-width: 76px !important;
	background: #f8fafc !important;
	border: 1px solid #f1f5f9 !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	padding: 4px !important;
}

.qrv2-sc-img-wrap img {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Product Content Summary */
.qrv2-sc-sum-wrap {
	flex: 1 !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

/* Top bar: title + delete button */
.qrv2-sc-top-bar {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	gap: 10px !important;
}

.qrv2-sc-title {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin: 0 !important;
}

.qrv2-sc-title a {
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

.qrv2-sc-title a:hover {
	color: #e8001d !important;
}

.qrv2-sc-remove-btn {
	background: transparent !important;
	border: none !important;
	padding: 5px !important;
	cursor: pointer !important;
	color: #94a3b8 !important;
	border-radius: 6px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	transition: all 0.15s ease !important;
}

.qrv2-sc-remove-btn:hover {
	color: #e8001d !important;
	background: #fee2e2 !important;
}

/* Pricing Row */
.qrv2-sc-pricing-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: baseline !important;
	margin-top: 2px !important;
}

.qrv2-sc-unit-price {
	font-size: 12.5px !important;
	color: #64748b !important;
	font-weight: 500 !important;
}

.qrv2-sc-ea {
	font-size: 11px !important;
	color: #94a3b8 !important;
}

.qrv2-sc-subtotal-price {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

/* Actions Row: Stepper + Text Remove */
.qrv2-sc-actions-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: 6px !important;
	padding-top: 4px !important;
}

.qrv2-sc-stepper {
	display: inline-flex !important;
	align-items: center !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background: #f8fafc !important;
	height: 30px !important;
	overflow: hidden !important;
}

.qrv2-sc-step {
	width: 28px !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	line-height: 1 !important;
	transition: background 0.15s ease, color 0.15s ease !important;
	user-select: none !important;
}

.qrv2-sc-step:hover:not(:disabled) {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}

.qrv2-sc-step:disabled {
	opacity: 0.35 !important;
	cursor: not-allowed !important;
}

.qrv2-sc-qty-display {
	min-width: 28px !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	padding: 0 4px !important;
	user-select: none !important;
}

.qrv2-sc-remove-text {
	background: none !important;
	border: none !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	color: #94a3b8 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	padding: 2px 4px !important;
	transition: color 0.15s ease !important;
}

.qrv2-sc-remove-text:hover {
	color: #e8001d !important;
}

/* --- Floating Drawer Global Styles --- */
.xoo-wsc-modal {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.xoo-wsc-header {
	border-bottom: 1.5px solid #f1f5f9 !important;
	padding: 16px 20px !important;
	background: #ffffff !important;
}

.xoo-wsch-text {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	letter-spacing: -0.2px !important;
}

.xoo-wsch-close {
	font-size: 20px !important;
	color: #64748b !important;
	transition: color 0.15s ease, transform 0.15s ease !important;
}

.xoo-wsch-close:hover {
	color: #e8001d !important;
	transform: scale(1.1) !important;
}

/* Drawer Footer & Buttons */
.xoo-wsc-footer {
	border-top: 1.5px solid #f1f5f9 !important;
	box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05) !important;
	padding: 18px 20px !important;
	background: #ffffff !important;
}

.xoo-wsc-ft-amt-subtotal {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

.xoo-wsc-ft-buttons-cont {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	margin-top: 14px !important;
}

/* Primary Checkout Button */
.xoo-wsc-ft-btn-checkout {
	order: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 48px !important;
	background: #e8001d !important;
	color: #ffffff !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 14px rgba(232, 0, 29, 0.28) !important;
	letter-spacing: 0.3px !important;
	transition: all 0.2s ease !important;
	border: none !important;
}

.xoo-wsc-ft-btn-checkout:hover {
	background: #d0001a !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(232, 0, 29, 0.35) !important;
}

/* Secondary Action Row: Continue Shopping & View Cart */
.xoo-wsc-ft-btn-continue {
	order: 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 40px !important;
	background: #f1f5f9 !important;
	color: #334155 !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	transition: all 0.15s ease !important;
}

.xoo-wsc-ft-btn-continue:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}

.xoo-wsc-ft-btn-cart {
	order: 3 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 36px !important;
	background: transparent !important;
	color: #64748b !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-decoration: underline !important;
	border: none !important;
}

.xoo-wsc-ft-btn-cart:hover {
	color: #0f172a !important;
}

/* --- Floating Launcher Basket --- */
.xoo-wsc-basket {
	background: #e8001d !important;
	color: #ffffff !important;
	border-radius: 50% !important;
	box-shadow: 0 6px 20px rgba(232, 0, 29, 0.38) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	z-index: 999999 !important;
}

.xoo-wsc-basket:hover {
	transform: scale(1.08) !important;
	box-shadow: 0 8px 26px rgba(232, 0, 29, 0.48) !important;
}

.xoo-wsc-bki {
	color: #ffffff !important;
}

.xoo-wsc-sc-count {
	background: #0f172a !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	border: 2px solid #ffffff !important;
	border-radius: 12px !important;
	min-width: 22px !important;
	height: 22px !important;
	line-height: 18px !important;
}

/* Hide basket launcher when drawer is open or mobile menu is open to prevent overlapping UI */
body.xoo-wsc-cart-active .xoo-wsc-basket,
.xoo-wsc-cart-active .xoo-wsc-basket,
.xoo-wsc-modal.xoo-wsc-cart-active ~ .xoo-wsc-basket,
#mobileMenu.open ~ .xoo-wsc-basket,
body:has(#mobileMenu.open) .xoo-wsc-basket,
.xoo-wsc-basket.qrv2-basket-hidden {
	opacity: 0 !important;
	pointer-events: none !important;
	visibility: hidden !important;
	transform: scale(0.8) !important;
}

/* Mobile responsive safe zone */
@media (max-width: 767px) {
	.xoo-wsc-basket {
		bottom: 80px !important;
		right: 18px !important;
	}
	.xoo-wsc-modal {
		max-width: 100vw !important;
	}
}
