:root {
	--wced-accent: #1b1b1b;
}

.wced-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 99998;
}

body.wced-drawer-open .wced-drawer-overlay {
	opacity: 1;
	pointer-events: auto;
}

.wced-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(420px, 100vw);
	background: #fff;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}

.wced-drawer--right {
	right: 0;
	transform: translateX(100%);
}

.wced-drawer--left {
	left: 0;
	transform: translateX(-100%);
}

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

.wced-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.wced-drawer__title {
	font-size: 16px;
	font-weight: 600;
}

.wced-drawer-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	padding: 0;
}

.wced-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.wced-drawer__body .woocommerce-mini-cart__empty-message {
	text-align: center;
	margin-top: 40px;
}

.wced-drawer__body .woocommerce-mini-cart__buttons a {
	display: block;
	text-align: center;
	margin-bottom: 10px !important;
}

.wced-drawer__body .woocommerce-mini-cart__buttons a.checkout {
	background: var(--wced-accent) !important;
	border-color: var(--wced-accent) !important;
	color: #fff !important;
}

.wced-cart-toggle {
	position: fixed;
	bottom: 24px;
	background: var(--wced-accent);
	color: #fff;
	border: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	z-index: 99997;
}

.wced-cart-toggle--right {
	right: 24px;
}

.wced-cart-toggle--left {
	left: 24px;
}

.wced-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #e63946;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

@media (max-width: 480px) {
	.wced-drawer {
		width: 100vw;
	}
}
