/**
 * Enagai SaaS Checkout — slide-out mini-cart drawer.
 * Clean, utility-style CSS scoped under #enagai-* / .enagai-* selectors
 * so it stays out of the way of theme and page-builder styles.
 */

.enagai-mini-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	z-index: 100000;
}

.enagai-mini-cart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.enagai-mini-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(400px, 92vw);
	background: #fff;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 100001;
	display: flex;
	flex-direction: column;
}

.enagai-mini-cart-drawer.is-open {
	transform: translateX(0);
}

.enagai-mini-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	font-size: 1rem;
}

.enagai-mini-cart-close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0.25rem;
}

.enagai-mini-cart-close:hover {
	color: #111;
}

.enagai-mini-cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.5rem 1.5rem;
}

.enagai-mini-cart-toggle {
	position: fixed;
	top: 1.25rem;
	right: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	z-index: 99999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enagai-mini-cart-toggle:hover {
	opacity: 0.9;
}

.enagai-mini-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 0.75rem;
	font-weight: 700;
}

@media (max-width: 480px) {
	.enagai-mini-cart-toggle {
		top: auto;
		bottom: 1.25rem;
		right: 1.25rem;
	}
}
