/**
 * MX Checkout Pro — Cart Drawer Styles
 *
 * @package MXCheckoutPro
 * @since   1.0.0
 */

/* ═══════════════════════════════════════════
   Overlay
   ═══════════════════════════════════════════ */
.mxcart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mxcart-overlay--visible {
	opacity: 1;
	visibility: visible;
}

.mxcart-body-lock {
	overflow: hidden;
}

/* ═══════════════════════════════════════════
   Drawer Shell
   ═══════════════════════════════════════════ */
.mxcart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 90vw;
	height: 100vh;
	height: 100dvh;
	background: #fff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.mxcart-drawer--open {
	transform: translateX(0);
}

.mxcart-drawer--updating {
	pointer-events: none;
	opacity: 0.7;
}

/* ═══════════════════════════════════════════
   Header
   ═══════════════════════════════════════════ */
.mxcart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.mxcart-drawer__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #111;
}

.mxcart-drawer__count {
	font-weight: 400;
	color: #6b7280;
}

.mxcart-drawer__close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.mxcart-drawer__close:hover {
	color: #111;
	background: #f3f4f6;
}

/* ═══════════════════════════════════════════
   Free Shipping Bar
   ═══════════════════════════════════════════ */
.mxcart-drawer__shipping-bar {
	padding: 12px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.mxcart-shipping__text {
	font-size: 13px;
	color: #374151;
	margin-bottom: 8px;
	text-align: center;
}

.mxcart-shipping__text strong {
	color: #111;
}

.mxcart-shipping__track {
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
}

.mxcart-shipping__progress {
	height: 100%;
	background: linear-gradient(90deg, #16a34a, #22c55e);
	border-radius: 3px;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	min-width: 0;
}

.mxcart-shipping--complete .mxcart-shipping__text {
	color: #16a34a;
}

/* ═══════════════════════════════════════════
   Cart Items
   ═══════════════════════════════════════════ */
.mxcart-drawer__items {
	flex: 1;
	overflow-y: auto;
	padding: 0;
	-webkit-overflow-scrolling: touch;
}

.mxcart-item {
	display: flex;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #f3f4f6;
	transition: opacity 0.2s, transform 0.2s;
}

.mxcart-item--removing {
	opacity: 0.3;
	transform: translateX(20px);
}

.mxcart-item__image {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f9fafb;
}

.mxcart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxcart-item__details {
	flex: 1;
	min-width: 0;
}

.mxcart-item__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.mxcart-item__name {
	font-size: 14px;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mxcart-item__name:hover {
	color: #374151;
}

.mxcart-item__remove {
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 2px;
	flex-shrink: 0;
	transition: color 0.15s;
}

.mxcart-item__remove:hover {
	color: #dc2626;
}

.mxcart-item__variation {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}

.mxcart-item__price {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #111;
	margin-top: 4px;
}

/* Qty controls */
.mxcart-item__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-top: 8px;
	overflow: hidden;
}

.mxcart-item__qty-btn {
	background: none;
	border: none;
	cursor: pointer;
	width: 32px;
	height: 32px;
	font-size: 16px;
	color: #374151;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.mxcart-item__qty-btn:hover {
	background: #f3f4f6;
}

.mxcart-item__qty-value {
	width: 36px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #111;
	border-left: 1px solid #d1d5db;
	border-right: 1px solid #d1d5db;
	line-height: 32px;
}

/* ═══════════════════════════════════════════
   Cross-sells
   ═══════════════════════════════════════════ */
.mxcart-drawer__crosssells {
	border-top: 1px solid #e5e7eb;
	padding: 16px 20px;
	flex-shrink: 0;
}

.mxcart-crosssells__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #111;
	margin: 0 0 12px;
}

.mxcart-crosssells__slider {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.mxcart-crosssells__slider::-webkit-scrollbar {
	display: none;
}

.mxcart-crosssell {
	flex: 0 0 140px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
}

.mxcart-crosssell__image {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 6px;
	overflow: hidden;
	background: #f9fafb;
	display: block;
}

.mxcart-crosssell__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mxcart-crosssell__info {
	padding-top: 8px;
}

.mxcart-crosssell__name {
	font-size: 12px;
	font-weight: 500;
	color: #111;
	text-decoration: none;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mxcart-crosssell__rating {
	font-size: 11px;
	color: #6b7280;
	margin-top: 2px;
}

.mxcart-crosssell__stars {
	color: #f59e0b;
}

.mxcart-crosssell__reviews {
	color: #9ca3af;
}

.mxcart-crosssell__price {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #111;
	margin-top: 2px;
}

.mxcart-crosssell__add {
	display: inline-block;
	margin-top: 6px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: #111;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background 0.15s;
}

.mxcart-crosssell__add:hover {
	background: #374151;
	color: #fff;
}

.mxcart-crosssell__add--loading {
	opacity: 0.6;
	cursor: wait;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.mxcart-drawer__footer {
	border-top: 1px solid #e5e7eb;
	padding: 16px 20px 20px;
	flex-shrink: 0;
	background: #fff;
}

.mxcart-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.mxcart-subtotal__label {
	font-size: 14px;
	color: #374151;
}

.mxcart-subtotal__value {
	font-size: 18px;
	font-weight: 700;
	color: #111;
}

.mxcart-drawer__checkout-btn {
	display: block;
	width: 100%;
	padding: 14px;
	background: #111;
	color: #fff;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.15s;
}

.mxcart-drawer__checkout-btn:hover {
	background: #374151;
	color: #fff;
}

.mxcart-drawer__continue {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: #6b7280;
	text-decoration: underline;
	text-align: center;
	transition: color 0.15s;
}

.mxcart-drawer__continue:hover {
	color: #111;
}

/* Payment Icons */
.mxcart-drawer__payment-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.mxcart-pay-icon {
	width: 50px;
	height: 32px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	box-sizing: border-box;
	overflow: hidden;
	flex-shrink: 0;
}

.mxcart-pay-icon img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media ( max-width: 480px ) {
	.mxcart-pay-icon {
		width: 44px;
		height: 28px;
		padding: 3px;
	}
}

/* ═══════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════ */
.mxcart-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	text-align: center;
}

.mxcart-empty__icon {
	color: #d1d5db;
	margin-bottom: 16px;
}

.mxcart-empty__text {
	font-size: 15px;
	color: #6b7280;
	margin: 0 0 20px;
}

/* ═══════════════════════════════════════════
   Cart Count Badge (for themes)
   ═══════════════════════════════════════════ */
.mxcart-cart-count-badge {
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	border-radius: 9px;
	padding: 0 4px;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media ( max-width: 480px ) {
	.mxcart-drawer {
		width: 100vw;
		max-width: 100vw;
	}

	.mxcart-crosssell {
		flex: 0 0 120px;
	}

	.mxcart-item__image {
		width: 60px;
		height: 60px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME ISOLATION — Cart Drawer
   Prevents Astra, Divi, Flatsome, etc. from breaking drawer styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset all elements inside the drawer */
.mxcart-drawer,
.mxcart-drawer *,
.mxcart-drawer *::before,
.mxcart-drawer *::after {
	box-sizing: border-box !important;
	-webkit-font-smoothing: antialiased !important;
}

.mxcart-drawer {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #111 !important;
}

/* Images — force contained sizing */
.mxcart-item__image {
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
}

.mxcart-item__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Cross-sell cards — force compact sizing */
.mxcart-crosssell {
	flex: 0 0 140px !important;
	max-width: 140px !important;
}

.mxcart-crosssell__image {
	width: 100% !important;
	aspect-ratio: 1 !important;
	max-height: 140px !important;
	overflow: hidden !important;
}

.mxcart-crosssell__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.mxcart-crosssell__name {
	font-size: 12px !important;
	line-height: 1.3 !important;
}

.mxcart-crosssell__price {
	font-size: 13px !important;
}

.mxcart-crosssell__add {
	font-size: 12px !important;
	padding: 4px 12px !important;
	line-height: 1.4 !important;
	display: inline-block !important;
}

/* Item names */
.mxcart-item__name {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

/* Prices */
.mxcart-item__price {
	font-size: 14px !important;
	font-weight: 600 !important;
}

/* Quantity controls */
.mxcart-item__qty {
	height: 32px !important;
}

.mxcart-item__qty button {
	width: 32px !important;
	height: 32px !important;
	font-size: 16px !important;
	padding: 0 !important;
	line-height: 32px !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	cursor: pointer !important;
}

.mxcart-item__qty input {
	width: 40px !important;
	height: 32px !important;
	font-size: 14px !important;
	text-align: center !important;
	border: 1px solid #d1d5db !important;
	padding: 0 !important;
	-webkit-appearance: none !important;
	-moz-appearance: textfield !important;
}

/* Section titles */
.mxcart-crosssells__title,
.mxcart-drawer__title {
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
}

/* Footer buttons */
.mxcart-drawer__checkout-btn {
	width: 100% !important;
	padding: 14px 24px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
}

.mxcart-drawer__continue {
	font-size: 13px !important;
	text-align: center !important;
}

/* Shipping bar */
.mxcart-drawer__shipping-bar {
	font-size: 13px !important;
}

/* Override Astra specifically */
.ast-theme-transparent-header .mxcart-drawer,
body.flavor-flavor .mxcart-drawer,
body.flavor-flavor .mxcart-overlay {
	z-index: 999999 !important;
}

/* Override Astra's WC global image styling */
.mxcart-drawer .woocommerce-product-gallery__image,
.mxcart-drawer .attachment-woocommerce_thumbnail,
.mxcart-drawer .wp-post-image {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE SCALING — Cart Drawer
   ═══════════════════════════════════════════ */

/* Cross-sells: relative sizing */
.mxcart-crosssell {
	flex: 0 0 calc(33.33% - 8px) !important;
	max-width: calc(33.33% - 8px) !important;
	min-width: 100px !important;
}

.mxcart-crosssell__image {
	aspect-ratio: 1 !important;
	max-height: none !important;
	height: auto !important;
}

/* Cart items: scale image with drawer */
.mxcart-item__image {
	width: clamp(56px, 15vw, 72px) !important;
	height: clamp(56px, 15vw, 72px) !important;
	min-width: 56px !important;
}

/* Small screens: 2 cross-sells visible */
@media (max-width: 420px) {
	.mxcart-drawer {
		width: 100vw !important;
		max-width: 100vw !important;
	}

	.mxcart-crosssell {
		flex: 0 0 calc(40% - 6px) !important;
		max-width: calc(40% - 6px) !important;
	}

	.mxcart-crosssell__add {
		padding: 3px 8px !important;
		font-size: 11px !important;
	}

	.mxcart-item {
		padding: 12px 16px !important;
		gap: 10px !important;
	}

	.mxcart-item__name {
		font-size: 13px !important;
	}

	.mxcart-item__price {
		font-size: 13px !important;
	}

	.mxcart-drawer__footer {
		padding: 12px 16px !important;
	}
}

/* Medium screens */
@media (min-width: 421px) and (max-width: 768px) {
	.mxcart-crosssell {
		flex: 0 0 calc(33.33% - 8px) !important;
		max-width: calc(33.33% - 8px) !important;
	}
}

/* Large screens: show 3 comfortably */
@media (min-width: 769px) {
	.mxcart-crosssell {
		flex: 0 0 calc(33.33% - 8px) !important;
		max-width: calc(33.33% - 8px) !important;
	}
}

/* Drawer width scales on tablets */
@media (min-width: 421px) and (max-width: 768px) {
	.mxcart-drawer {
		width: 380px !important;
		max-width: 90vw !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE DRAWER — Single Scrollable Body
   Items + Cross-sells in one scroll container.
   Cross-sells push down naturally as cart fills up.
   ═══════════════════════════════════════════════════════════════════════════ */

/* New scrollable body wrapper */
.mxcart-drawer__body {
	flex: 1 !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	min-height: 0 !important; /* Allows flex item to shrink below content */
}

/* Items no longer individually scrollable */
.mxcart-drawer__items {
	flex: none !important;
	overflow: visible !important;
}

/* Cross-sells flow naturally in the scroll */
.mxcart-drawer__crosssells {
	flex-shrink: 0 !important;
	position: relative !important;
	border-top: 1px solid #e5e7eb !important;
	padding: 16px 20px !important;
}

/* Smooth scroll indicator: subtle fade at bottom of body */
.mxcart-drawer__body::after {
	content: '';
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	background: linear-gradient(transparent, rgba(255,255,255,0.9));
	pointer-events: none;
	display: block;
	margin-top: -24px;
	z-index: 1;
}

/* Cross-sells grid: responsive, wraps instead of horizontal scroll */
.mxcart-crosssells__slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 12px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	padding-bottom: 4px !important;
}

.mxcart-crosssells__slider::-webkit-scrollbar {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOPIFY-STYLE DRAWER — Single Scrollable Body
   Items + Cross-sells in one scroll container.
   Cross-sells push down naturally as cart fills up.
   ═══════════════════════════════════════════════════════════════════════════ */

/* New scrollable body wrapper */
.mxcart-drawer__body {
	flex: 1 !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	min-height: 0 !important; /* Allows flex item to shrink below content */
}

/* Items no longer individually scrollable */
.mxcart-drawer__items {
	flex: none !important;
	overflow: visible !important;
}

/* Cross-sells flow naturally in the scroll */
.mxcart-drawer__crosssells {
	flex-shrink: 0 !important;
	position: relative !important;
	border-top: 1px solid #e5e7eb !important;
	padding: 16px 20px !important;
}

/* Smooth scroll indicator: subtle fade at bottom of body */
.mxcart-drawer__body::after {
	content: '';
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	background: linear-gradient(transparent, rgba(255,255,255,0.9));
	pointer-events: none;
	display: block;
	margin-top: -24px;
	z-index: 1;
}

/* Cross-sells grid: responsive, wraps instead of horizontal scroll */
.mxcart-crosssells__slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 12px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	padding-bottom: 4px !important;
}

.mxcart-crosssells__slider::-webkit-scrollbar {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CROSS-SELLS: Single-item carousel (Shopify-style)
   Shows 1 product at a time with prev/next arrows.
   Lives inside the scrollable __body alongside cart items.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container */
.mxcart-drawer__crosssells {
	border-top: 1px solid #e5e7eb !important;
	padding: 20px 20px 16px !important;
	position: relative !important;
}

.mxcart-crosssells__title {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	color: #111 !important;
	margin: 0 0 16px !important;
	text-align: center !important;
}

/* Slider: single item visible, horizontal snap */
.mxcart-crosssells__slider {
	display: flex !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	gap: 0 !important;
	scroll-behavior: smooth !important;
}

.mxcart-crosssells__slider::-webkit-scrollbar {
	display: none !important;
}

/* Each cross-sell card: full width of slider */
.mxcart-crosssell {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	scroll-snap-align: start !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 16px !important;
	padding: 0 8px !important;
}

/* Image: left side, square */
.mxcart-crosssell__image {
	width: 80px !important;
	height: 80px !important;
	min-width: 80px !important;
	aspect-ratio: 1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #f5f5f5 !important;
	flex-shrink: 0 !important;
}

.mxcart-crosssell__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Info: right side */
.mxcart-crosssell__info {
	flex: 1 !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.mxcart-crosssell__name {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #111 !important;
	line-height: 1.3 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin: 0 0 4px !important;
	text-decoration: none !important;
}

.mxcart-crosssell__rating {
	font-size: 12px !important;
	margin: 0 0 4px !important;
}

.mxcart-crosssell__price {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 0 8px !important;
	display: block !important;
}

.mxcart-crosssell__add {
	display: inline-block !important;
	padding: 8px 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	background: #111 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
	text-decoration: none !important;
}

.mxcart-crosssell__add:hover {
	background: #333 !important;
}

/* Navigation arrows */
.mxcart-crosssells__nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 12px;
}

.mxcart-crosssells__arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	padding: 0;
	color: #111;
	font-size: 16px;
	line-height: 1;
}

.mxcart-crosssells__arrow:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.mxcart-crosssells__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Dots indicator */
.mxcart-crosssells__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.mxcart-crosssells__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d1d5db;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s;
}

.mxcart-crosssells__dot--active {
	background: #111;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CROSS-SELLS: Single-item carousel (Shopify-style)
   Shows 1 product at a time with prev/next arrows.
   Lives inside the scrollable __body alongside cart items.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container */
.mxcart-drawer__crosssells {
	border-top: 1px solid #e5e7eb !important;
	padding: 20px 20px 16px !important;
	position: relative !important;
}

.mxcart-crosssells__title {
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	color: #111 !important;
	margin: 0 0 16px !important;
	text-align: center !important;
}

/* Slider: single item visible, horizontal snap */
.mxcart-crosssells__slider {
	display: flex !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	gap: 0 !important;
	scroll-behavior: smooth !important;
}

.mxcart-crosssells__slider::-webkit-scrollbar {
	display: none !important;
}

/* Each cross-sell card: full width of slider */
.mxcart-crosssell {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	scroll-snap-align: start !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 16px !important;
	padding: 0 8px !important;
}

/* Image: left side, square */
.mxcart-crosssell__image {
	width: 80px !important;
	height: 80px !important;
	min-width: 80px !important;
	aspect-ratio: 1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #f5f5f5 !important;
	flex-shrink: 0 !important;
}

.mxcart-crosssell__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Info: right side */
.mxcart-crosssell__info {
	flex: 1 !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.mxcart-crosssell__name {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #111 !important;
	line-height: 1.3 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin: 0 0 4px !important;
	text-decoration: none !important;
}

.mxcart-crosssell__rating {
	font-size: 12px !important;
	margin: 0 0 4px !important;
}

.mxcart-crosssell__price {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 0 8px !important;
	display: block !important;
}

.mxcart-crosssell__add {
	display: inline-block !important;
	padding: 8px 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	background: #111 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
	text-decoration: none !important;
}

.mxcart-crosssell__add:hover {
	background: #333 !important;
}

/* Navigation arrows */
.mxcart-crosssells__nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 12px;
}

.mxcart-crosssells__arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	padding: 0;
	color: #111;
	font-size: 16px;
	line-height: 1;
}

.mxcart-crosssells__arrow:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.mxcart-crosssells__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/* Dots indicator */
.mxcart-crosssells__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.mxcart-crosssells__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d1d5db;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s;
}

.mxcart-crosssells__dot--active {
	background: #111;
}
