/* [MARIO] v1.0 | 2026-07-11 | Client: Le Webexy | File: lw-side-cart.css */

.lw-side-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 2147483647 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.lw-side-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 400px;
	max-width: 92vw;
	background: #fff;
	z-index: 2147483647 !important;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.lw-side-cart-drawer a,
.lw-side-cart-drawer button {
	position: relative;
	z-index: 2147483647 !important;
	pointer-events: auto !important;
}

body.lw-side-cart-open .lw-side-cart-float-icon,
body.lw-side-cart-open [class*="whatsapp"],
body.lw-side-cart-open [class*="wa-float"],
body.lw-side-cart-open [id*="whatsapp"] {
	pointer-events: none !important;
}

body.lw-side-cart-open .lw-side-cart-overlay {
	opacity: 1;
	visibility: visible;
}

body.lw-side-cart-open .lw-side-cart-drawer {
	transform: translateX(0);
}

.lw-side-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
}

.lw-side-cart-header h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	margin: 0;
}

.lw-side-cart-bag-icon {
	position: relative;
	display: inline-flex;
}

.lw-side-cart-header-count {
	position: absolute;
	top: -8px;
	right: -10px;
	background: #eb4962;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	border-radius: 50%;
	padding: 3px 5px;
}

.lw-side-cart-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.lw-side-cart-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 20px;
}

.lw-side-cart-empty {
	text-align: center;
	padding: 40px 0;
	color: #59667d;
}

.lw-side-cart-progress {
	background: #f9fafb;
	border-radius: 8px;
	padding: 14px 12px 8px;
	margin-bottom: 16px;
}

.lw-side-cart-progress-msg {
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: #023a51;
	margin: 0 0 14px;
}

.lw-side-cart-progress-complete {
	color: #15d16c;
}

.lw-side-cart-progress-track {
	position: relative;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
	margin: 0 10px 8px;
}

.lw-side-cart-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: #15d16c;
	border-radius: 2px;
	transition: width 0.3s ease;
}

.lw-side-cart-progress-dot {
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	background: #fff;
	border: 2px solid #ccc;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.lw-side-cart-progress-dot.lw-unlocked {
	border-color: #15d16c;
	background: #15d16c;
}

.lw-side-cart-progress-labels {
	display: flex;
	justify-content: space-between;
	gap: 4px;
}

.lw-side-cart-progress-label {
	flex: 1;
	text-align: center;
	font-size: 9px;
	line-height: 1.4;
	color: #999;
}

.lw-side-cart-progress-label.lw-unlocked {
	color: #023a51;
	font-weight: 600;
}

.lw-side-cart-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
}

.lw-side-cart-item-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
}

.lw-side-cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lw-side-cart-item-name {
	font-weight: 600;
	font-size: 14px;
	color: #023a51;
}

.lw-side-cart-item-price-row {
	font-size: 13px;
	color: #444;
}

.lw-side-cart-item-price-row del {
	color: #999;
	margin-right: 4px;
}

.lw-side-cart-item-qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: fit-content;
}

.lw-qty-btn {
	background: #f9fafb;
	border: none;
	width: 26px;
	height: 26px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.lw-qty-value {
	min-width: 28px;
	text-align: center;
	font-size: 13px;
}

.lw-side-cart-item-save-badge {
	display: inline-block;
	width: fit-content;
	background: #e9f9f0;
	color: #15d16c;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}

.lw-side-cart-item-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	align-self: flex-start;
}

.lw-side-cart-item-remove:hover {
	color: #eb4962;
}

.lw-side-cart-upsell {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #f0f0f0;
}

.lw-side-cart-upsell-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.lw-side-cart-upsell-heading {
	font-size: 14px;
	margin: 0;
	color: #023a51;
}

.lw-side-cart-upsell-nav {
	display: flex;
	gap: 6px;
}

.lw-side-cart-upsell-grid {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.lw-side-cart-upsell-grid.lw-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.lw-side-cart-upsell-grid::-webkit-scrollbar {
	display: none;
}

.lw-side-cart-upsell-prev,
.lw-side-cart-upsell-next {
	width: 28px;
	height: 28px;
	border: 1px solid #023a51;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	font-size: 16px;
	font-weight: 700;
	color: #023a51;
	box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.lw-side-cart-upsell-prev:hover,
.lw-side-cart-upsell-next:hover {
	background: #023a51;
	color: #fff;
}

.lw-side-cart-upsell-card {
	flex: 0 0 130px;
	scroll-snap-align: start;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	padding: 8px;
	text-align: center;
}

.lw-side-cart-upsell-image img {
	width: 100%;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
}

.lw-side-cart-upsell-name {
	display: block;
	font-size: 11px;
	color: #023a51;
	text-decoration: none;
	margin: 6px 0 2px;
	line-height: 1.3;
	max-height: 28px;
	overflow: hidden;
}

.lw-side-cart-upsell-price {
	font-size: 12px;
	font-weight: 700;
	color: #023a51;
	margin-bottom: 6px;
}

.lw-side-cart-upsell-price del {
	font-weight: 400;
	color: #999;
	margin-right: 3px;
	font-size: 10px;
}

.lw-side-cart-upsell-add {
	display: block;
	width: 100%;
	background: #f9fafb;
	border: 1px solid #023a51;
	color: #023a51;
	border-radius: 4px;
	padding: 5px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.lw-side-cart-upsell-add:hover {
	background: #023a51;
	color: #fff;
}

.lw-side-cart-item-meta,
.lw-side-cart-item-variation-inline {
	font-size: 11px;
	color: #888;
	line-height: 1.4;
}

.lw-layout-separate {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lw-side-cart-item-total {
	font-weight: 600;
	color: #023a51;
}

.lw-side-cart-footer {
	border-top: 1px solid #eee;
	padding: 16px 20px 20px;
}

.lw-side-cart-trust-row {
	margin-bottom: 14px;
}

.lw-side-cart-trust-row.lw-default-icons {
	display: flex;
	justify-content: space-between;
}

.lw-side-cart-trust-row.lw-default-icons span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #59667d;
	text-align: center;
	width: 33%;
}

.lw-side-cart-trust-row.lw-custom-content {
	text-align: center;
	font-size: 12px;
	color: #59667d;
}

.lw-side-cart-trust-row.lw-custom-content p {
	margin: 0;
}

.lw-side-cart-trust-row.lw-custom-content img {
	max-height: 26px;
	width: auto;
	vertical-align: middle;
	margin: 0 6px;
}

.lw-side-cart-savings-line {
	display: flex;
	justify-content: space-between;
	background: #e9f9f0;
	color: #15d16c;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.lw-side-cart-subtotal-line {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 700;
	color: #023a51;
	margin-bottom: 14px;
}

.lw-side-cart-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #023a51;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	padding: 14px;
	border-radius: 6px;
	width: 100%;
}

.lw-side-cart-checkout-btn:hover {
	background: #012a3b;
	color: #fff;
}

.lw-side-cart-btn-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.lw-side-cart-secondary-btn {
	flex: 1;
	text-align: center;
	padding: 10px;
	border: 1px solid #023a51;
	color: #023a51;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.lw-side-cart-secondary-btn:hover {
	background: #f0f4f6;
	color: #023a51;
}

.lw-side-cart-checkout-secondary-btn {
	background: #023a51;
	color: #fff;
	border-color: #023a51;
}

.lw-side-cart-checkout-secondary-btn:hover {
	background: #012a3b;
	color: #fff;
}

.lw-side-cart-footer-note {
	text-align: center;
	font-size: 12px;
	color: #888;
	margin: 10px 0 0;
}

.lw-side-cart-shop-btn {
	display: inline-block;
	margin-top: 14px;
	padding: 10px 22px;
	background: #023a51;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
}

.lw-side-cart-shop-btn:hover {
	background: #012a3b;
	color: #fff;
}

.lw-side-cart-float-icon {
	position: fixed;
	bottom: 24px;
	z-index: 99997;
	background: #023a51;
	color: #fff;
	border: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lw-side-cart-float-icon.lw-pos-right {
	right: 24px;
}

.lw-side-cart-float-icon.lw-pos-left {
	left: 24px;
}

.lw-side-cart-menu-icon .lw-side-cart-menu-subtotal {
	font-size: 12px;
	margin-left: 4px;
	font-weight: 600;
}

.lw-side-cart-menu-item {
	list-style: none;
	display: inline-block;
}

.lw-side-cart-menu-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	padding: 0 8px;
	vertical-align: middle;
}

.lw-side-cart-menu-icon .lw-side-cart-count {
	position: absolute;
	top: 12px;
	right: 2px;
	background: #eb4962;
	color: #fff;
	font-size: 10px;
	border-radius: 50%;
	padding: 2px 5px;
	line-height: 1;
}

.lw-side-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #eb4962;
	color: #fff;
	font-size: 11px;
	border-radius: 50%;
	padding: 3px 6px;
	line-height: 1;
}

@media (max-width: 480px) {
	.lw-side-cart-drawer {
		width: 100%;
		max-width: 100%;
	}
}
