.wdvmc-trigger {
	align-items: center;
	background: var(--wdvmc-accent, #2ea3f2);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 8px;
	line-height: 1;
	min-height: 42px;
	padding: 10px 14px;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease;
}

.wdvmc-trigger:hover,
.wdvmc-trigger:focus {
	color: #fff;
	filter: brightness(0.94);
	outline: 0;
	transform: translateY(-1px);
}

.wdvmc-trigger:focus-visible {
	box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.28);
}

.wdvmc-icon {
	display: inline-flex;
	height: 20px;
	width: 20px;
}

.wdvmc-icon svg {
	fill: currentColor;
	height: 100%;
	width: 100%;
}

.wdvmc-count {
	align-items: center;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	justify-content: center;
	min-height: 22px;
	min-width: 22px;
	padding: 0 7px;
}

.wdvmc-subtotal {
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	margin-left: 2px;
	padding-left: 10px;
	white-space: nowrap;
}

.wdvmc-floating {
	bottom: 24px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	position: fixed;
	z-index: 99990;
}

.wdvmc-floating-right {
	right: 24px;
}

.wdvmc-floating-left {
	left: 24px;
}

.wdvmc-overlay {
	background: rgba(17, 24, 39, 0.52);
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 180ms ease;
	z-index: 99991;
}

.wdvmc-drawer {
	background: #fff;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.2);
	color: #222;
	display: flex;
	flex-direction: column;
	height: 100vh;
	max-width: min(420px, calc(100vw - 28px));
	position: fixed;
	top: 0;
	transition: transform 220ms ease;
	width: 420px;
	z-index: 99992;
}

.wdvmc-drawer-right {
	right: 0;
	transform: translateX(105%);
}

.wdvmc-drawer-left {
	left: 0;
	transform: translateX(-105%);
}

.wdvmc-drawer-header {
	align-items: center;
	border-bottom: 1px solid #ededed;
	display: flex;
	justify-content: space-between;
	min-height: 68px;
	padding: 18px 22px;
}

.wdvmc-drawer-header h2 {
	color: #222;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

.wdvmc-close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #222;
	cursor: pointer;
	display: inline-flex;
	font-size: 30px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 42px;
}

.wdvmc-close:hover,
.wdvmc-close:focus {
	background: #f4f4f4;
	color: #222;
	outline: 0;
}

.wdvmc-close:focus-visible {
	box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.24);
}

.wdvmc-drawer-content {
	flex: 1;
	overflow-y: auto;
	padding: 18px 22px 24px;
}

.wdvmc-drawer-content .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wdvmc-drawer-content .woocommerce-mini-cart-item {
	border-bottom: 1px solid #eee;
	display: grid;
	gap: 4px 12px;
	grid-template-columns: 64px 1fr;
	min-height: 82px;
	padding: 14px 0;
	position: relative;
}

.wdvmc-drawer-content .woocommerce-mini-cart-item img {
	border-radius: 6px;
	grid-row: 1 / 3;
	height: 64px;
	object-fit: cover;
	width: 64px;
}

.wdvmc-drawer-content .woocommerce-mini-cart-item a:not(.remove) {
	color: #222;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.wdvmc-drawer-content .woocommerce-mini-cart-item .quantity {
	color: #666;
	font-size: 14px;
}

.wdvmc-drawer-content .remove {
	align-items: center;
	background: #f2f2f2;
	border-radius: 999px;
	color: #555 !important;
	display: inline-flex;
	font-size: 18px;
	height: 24px;
	justify-content: center;
	position: absolute;
	right: 0;
	text-decoration: none;
	top: 14px;
	width: 24px;
}

.wdvmc-drawer-content .woocommerce-mini-cart__total {
	align-items: center;
	border-top: 0;
	display: flex;
	font-size: 18px;
	justify-content: space-between;
	margin: 18px 0;
	padding: 0;
}

.wdvmc-drawer-content .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 10px;
	margin: 0;
}

.wdvmc-drawer-content .button,
.wdvmc-empty .button {
	align-items: center;
	background: var(--wdvmc-accent, #2ea3f2);
	border: 0;
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 12px 18px;
	text-decoration: none;
}

.wdvmc-drawer-content .button.checkout {
	background: #1f2937;
}

.wdvmc-empty {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 12px 0;
}

.wdvmc-empty p {
	font-size: 16px;
	margin: 0;
}

body.wdvmc-open {
	overflow: hidden;
}

body.wdvmc-open .wdvmc-overlay {
	opacity: 1;
}

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

@media (max-width: 600px) {
	.wdvmc-floating {
		bottom: 16px;
	}

	.wdvmc-floating-right {
		right: 16px;
	}

	.wdvmc-floating-left {
		left: 16px;
	}

	.wdvmc-label,
	.wdvmc-subtotal {
		display: none;
	}

	.wdvmc-drawer {
		max-width: 100vw;
		width: 100vw;
	}
}
