.wc-block-mini-cart__quantity-badge {
	align-items: center;
	display: flex;
	position: relative;
}

.wc-block-mini-cart__quantity-badge:empty {
	display: none;
}

.wc-block-mini-cart__badge {
	align-items: center;
	border-radius: 1em;
	box-sizing: border-box;
	display: flex;
	font-size: .875em;
	font-weight: 600;
	height: 1.4285714286em;
	justify-content: center;
	left: 100%;
	margin-left: -44%;
	min-width: 1.4285714286em;
	padding: 0 .25em;
	position: absolute;
	transform: translateY(-50%);
	white-space: nowrap;
	z-index: 1;
}

:where(.wc-block-mini-cart__badge) {
	background-color: transparent;
	color: transparent;
}

.wc-block-mini-cart__badge:empty {
	opacity: 0;
}

.wc-block-mini-cart__icon {
	display: block;
	height: 2em;
	margin: -.25em;
	width: 2em;
}

html[dir=rtl] .wc-block-mini-cart__icon {
	transform: scaleX(-1);
}

.wc-block-mini-cart {
	display: inline-block;
}

.wc-block-mini-cart__template-part, .wp-block-woocommerce-mini-cart-contents {
	height: 100%;
}

@media screen and (max-height:500px) {
	.wp-block-woocommerce-mini-cart-contents {
		height: auto;
	}
	
	.wc-block-mini-cart__drawer {
		overflow-y: auto;
	}
}

.wc-block-mini-cart__button {
	align-items: center;
	background-color: transparent;
	border: none;
	color: inherit;
	display: flex;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	gap: .5em;
	line-height: 1;
	padding: .5em;
	white-space: nowrap;
}

.wc-block-mini-cart__button:hover:not([disabled]) {
	cursor: pointer;
}

.wc-block-mini-cart__button .wc-block-mini-cart__icon {
	height: 1.5em;
	margin: 0;
	width: 1.5em;
}

.wc-block-mini-cart__drawer {
	font-size: 1rem;
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
	box-sizing: border-box;
	justify-content: center;
	padding: 0;
	position: relative;
}

:where(.wp-block-woocommerce-mini-cart-contents) {
	background: #fff;
}

.wp-block-woocommerce-empty-mini-cart-contents-block, .wp-block-woocommerce-filled-mini-cart-contents-block {
	background: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: fill-available;
}

.wp-block-woocommerce-empty-mini-cart-contents-block {
	justify-content: center;
}

.wp-block-woocommerce-filled-mini-cart-contents-block {
	justify-content: space-between;
}

:root {
	--drawer-width: 480px;
	--neg-drawer-width: calc(var(--drawer-width) * -1);
}

@keyframes fadein {
	0% {
		opacity: 0;
	}
	
	to {
		opacity: 1;
	}
}

@keyframes slidein {
	0% {
		transform: translateX(0);
	}
	
	to {
		transform: translateX(max(-100%, var(--neg-drawer-width)));
	}
}

@keyframes rtlslidein {
	0% {
		transform: translateX(0);
	}
	
	to {
		transform: translateX(min(100%, var(--drawer-width)));
	}
}

.wc-block-components-drawer__screen-overlay {
	background-color: rgba(95, 95, 95, .35);
	bottom: 0;
	left: 0;
	opacity: 1;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity .3s;
	z-index: 9999;
}

.wc-block-components-drawer__screen-overlay--is-hidden {
	opacity: 0;
	pointer-events: none;
}

.wc-block-components-drawer {
	background: #fff;
	display: block;
	height: 100%;
	left: 100%;
	max-width: 100%;
	position: relative;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateX(max(-100%, var(--neg-drawer-width)));
	width: var(--drawer-width);
}

.wc-block-components-drawer:after {
	border-style: solid;
	border-width: 0 0 0 1px;
	bottom: 0;
	content: "";
	display: block;
	left: 0;
	opacity: .3;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
}

.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-components-drawer {
	transform: translateX(0);
}

@media screen and (prefers-reduced-motion:reduce) {
	.wc-block-components-drawer, .wc-block-components-drawer__screen-overlay {
		animation-name: none !important;
		transition: none !important;
	}
}

.wc-block-components-button.wc-block-components-drawer__close svg {
	fill: currentColor;
	display: block;
}

.wc-block-components-drawer__content {
	height: 100dvh;
	position: relative;
}