/**
 * LPM Basket Sidebar – slide-in panel from the right
 */
.lpm-basket-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lpm-basket-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.lpm-basket-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	z-index: 99999;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.lpm-basket-sidebar.is-open {
	transform: translateX(0);
}

.lpm-basket-sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.lpm-basket-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e6e9ec;
	flex-shrink: 0;
	background: #f8fafc;
}

.lpm-basket-sidebar-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a2b3c;
}

.lpm-basket-sidebar-close {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #58616b;
	cursor: pointer;
	padding: 4px 8px;
	margin: -4px -8px;
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease;
}

.lpm-basket-sidebar-close:hover {
	color: #1a2b3c;
	background: rgba(0, 0, 0, 0.06);
}

.lpm-basket-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	min-height: 120px;
}

.lpm-basket-sidebar-loading {
	color: #58616b;
	font-size: 0.9rem;
}

.lpm-basket-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lpm-basket-sidebar-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f5;
}

.lpm-basket-sidebar-item:last-child {
	border-bottom: none;
}

.lpm-basket-sidebar-item-image-wrap {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f4f7;
}

.lpm-basket-sidebar-item-image {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	background: #f0f4f7;
}

.lpm-basket-sidebar-item-image[src=""] {
	display: none;
}

.lpm-basket-sidebar-item-details {
	flex: 1;
	min-width: 0;
}

.lpm-basket-sidebar-item-name {
	display: block;
	font-weight: 600;
	color: #1a2b3c;
	text-decoration: none;
	font-size: 0.95rem;
	margin-bottom: 4px;
	line-height: 1.3;
}

.lpm-basket-sidebar-item-name:hover {
	color: #0b63a3;
}

.lpm-basket-sidebar-item-meta {
	font-size: 0.85rem;
	color: #58616b;
}

.lpm-basket-sidebar-item-total {
	font-weight: 700;
	color: #1a2b3c;
	font-size: 0.95rem;
}

.lpm-basket-sidebar-item-remove {
	align-self: flex-start;
	background: none;
	border: none;
	color: #8a1f2c;
	cursor: pointer;
	padding: 4px;
	font-size: 0.85rem;
	text-decoration: underline;
	transition: color 0.15s ease;
}

.lpm-basket-sidebar-item-remove:hover {
	color: #b42318;
}

.lpm-basket-sidebar-empty {
	text-align: center;
	padding: 24px 0;
	color: #58616b;
}

.lpm-basket-sidebar-empty p {
	margin: 0 0 16px 0;
}

.lpm-basket-sidebar-footer {
	padding: 16px 20px;
	border-top: 1px solid #e6e9ec;
	background: #f8fafc;
	flex-shrink: 0;
}

.lpm-basket-sidebar-total {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a2b3c;
	margin-bottom: 12px;
}

.lpm-basket-sidebar-checkout {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	background: #0b63a3;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lpm-basket-sidebar-checkout:hover {
	background: #0a5b8f;
	color: #fff;
}

@media (max-width: 480px) {
	.lpm-basket-sidebar {
		max-width: 100%;
	}
}
