.acm-cart-icon-wrap {
	position: relative;
	display: inline-block;
}

.acm-cart-icon-trigger {
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.4rem;
	line-height: 1;
}

.acm-cart-icon {
	font-size: 1.4rem;
}

.acm-cart-icon-badge {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--e-global-color-primary, #2455ac);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.acm-cart-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999998;
}

.acm-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 360px;
	max-width: 90vw;
	background: #fff;
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

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

.acm-cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.acm-cart-drawer-header h3 {
	margin: 0;
}

.acm-cart-drawer-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.acm-cart-drawer-contents {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
}

.acm-cart-drawer-empty {
	opacity: 0.6;
	text-align: center;
	margin-top: 2rem;
}

.acm-cart-drawer-items {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.acm-cart-drawer-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.acm-cart-drawer-item-details {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.acm-cart-drawer-item-name {
	font-weight: 600;
}

.acm-cart-drawer-item-meta {
	font-size: 0.85rem;
	opacity: 0.7;
}

.acm-cart-drawer-item-remove {
	font-size: 1.2rem;
	line-height: 1;
	opacity: 0.5;
	text-decoration: none;
	color: inherit;
}

.acm-cart-drawer-item-remove:hover {
	opacity: 1;
	color: #7a1e1e;
}

.acm-cart-drawer-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.acm-cart-drawer-checkout {
	display: block;
	text-align: center;
	background: var(--e-global-color-primary, #2455ac);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 0.75rem;
	border-radius: 6px;
	margin-top: 1rem;
}

.acm-cart-drawer-checkout:hover {
	opacity: 0.85;
	color: #fff;
}

.acm-cart-drawer-view-cart {
	display: block;
	text-align: center;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}
