.wpm-cart-drawer {
	--wpm-drawer-width: 430px;
	--wpm-drawer-bg: #ffffff;
	--wpm-drawer-text: #1c1c1c;
	--wpm-drawer-muted: #6b6b6b;
	--wpm-drawer-border: #e6e6e6;
	--wpm-drawer-accent: #3a7d34;
	--wpm-drawer-sale: #d0021b;
	--wpm-drawer-button-bg: #2b2b2b;
	--wpm-drawer-button-hover: #000000;
	--wpm-drawer-button-text: #ffffff;
	--wpm-drawer-radius: 0.3rem;

	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: var(--wpm-drawer-width);
	max-width: 92%;
	background: var(--wpm-drawer-bg);
	color: var(--wpm-drawer-text);
	transform: translateX(100%);
	visibility: hidden;
	/* Slide on open/close; keep the panel visible during the slide-out, then hide it. */
	transition: transform 0.3s ease, visibility 0s linear 0.3s;
	z-index: 100000;
	box-shadow: -2px 0 18px rgba(0, 0, 0, 0.15);
	font-size: 15px;
	line-height: 1.4;
}

.wpm-cart-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform 0.3s ease, visibility 0s;
}

.wpm-cart-drawer__overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	z-index: 99999;
}

.wpm-cart-drawer__overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s;
}

.wpm-cart-drawer__content {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wpm-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25em 1.5em;
	border-bottom: 1px solid var(--wpm-drawer-border);
	flex: 0 0 auto;
}

.wpm-cart-drawer__title {
	font-size: 1.35em;
	font-weight: 700;
	margin: 0;
	color: inherit;
	font-family: inherit;
}

.wpm-cart-drawer__banner {
	flex: 0 0 auto;
	display: block;
}

.wpm-cart-drawer__banner img {
	width: 100%;
	height: auto;
	display: block;
}

.wpm-cart-drawer__count {
	font-weight: 700;
}

.wpm-cart-drawer__close {
	background: none;
	border: 0;
	font-size: 2.6em;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.1em;
	margin: 0;
	color: var(--wpm-drawer-text);
}

.wpm-cart-drawer__close:hover,
.wpm-cart-drawer__close:focus {
	background: none;
	color: var(--wpm-drawer-text);
	box-shadow: none;
	outline: none;
	opacity: 1;
}

.wpm-cart-drawer__shipping {
	padding: 1em 1.5em;
	border-bottom: 1px solid var(--wpm-drawer-border);
	flex: 0 0 auto;
}

.wpm-cart-drawer__shipping-text {
	font-size: 0.9em;
	margin-bottom: 0.5em;
	text-align: center;
}

.wpm-cart-drawer__shipping-track {
	height: 6px;
	background: var(--wpm-drawer-border);
	border-radius: 999px;
	overflow: hidden;
}

.wpm-cart-drawer__shipping-fill {
	height: 100%;
	background: var(--wpm-drawer-accent);
	transition: width 0.4s ease;
}

.wpm-cart-drawer__scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 1.5em;
}

.wpm-cart-item {
	display: flex;
	gap: 1em;
	padding: 1.25em 0;
	border-bottom: 1px solid var(--wpm-drawer-border);
}

.wpm-cart-item__image {
	flex: 0 0 96px;
	width: 96px;
}

.wpm-cart-item__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--wpm-drawer-radius);
}

.wpm-cart-item__details {
	flex: 1 1 auto;
	min-width: 0;
}

.wpm-cart-item__title {
	font-weight: 700;
	margin-bottom: 0.15em;
}

.wpm-cart-item__title a {
	color: inherit;
	text-decoration: none;
}

.wpm-cart-item__price {
	font-weight: 700;
	margin-bottom: 0.35em;
}

.wpm-cart-item__price del {
	color: var(--wpm-drawer-muted);
	font-weight: 400;
	text-decoration: line-through;
	margin-right: 0.4em;
}

.wpm-cart-item__price ins {
	color: var(--wpm-drawer-sale);
	text-decoration: none;
}

.wpm-cart-item__variant,
.wpm-cart-item__sku {
	color: var(--wpm-drawer-muted);
	font-size: 0.9em;
	margin-bottom: 0.15em;
}

.wpm-cart-item__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.75em;
}

.wpm-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wpm-drawer-border);
	border-radius: var(--wpm-drawer-radius);
	overflow: hidden;
}

.wpm-qty__btn {
	background: none;
	border: 0;
	width: 34px;
	height: 34px;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
	color: var(--wpm-drawer-text);
}

.wpm-qty__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

button.wpm-qty__btn:hover,
button.wpm-qty__btn:focus { /* added manually */
	color: initial;
  	background-color: initial;
}

.wpm-qty__value {
	min-width: 32px;
	text-align: center;
}

.wpm-cart-item__remove {
	color: var(--wpm-drawer-muted);
	font-size: 0.9em;
	text-decoration: underline;
}

.wpm-cart-drawer__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wpm-drawer-muted);
	padding: 3em 1.5em;
	text-align: center;
}

.wpm-cart-drawer__upsells {
	padding: 1.25em 0;
	border-top: 1px solid var(--wpm-drawer-border);
}

.wpm-cart-drawer__upsells-title {
	margin: 0 0 0.85em;
}

.wpm-cart-drawer__upsells-track {
	display: flex;
	gap: 0.85em;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5em;
}

.wpm-upsell-card {
	flex: 0 0 132px;
	width: 132px;
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
}

.wpm-upsell-card__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--wpm-drawer-radius);
	margin-bottom: 0.4em;
}

.wpm-upsell-card__title {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.2em;
}

.wpm-upsell-card__price {
	display: block;
	font-size: 0.85em;
	color: var(--wpm-drawer-muted);
}

.wpm-cart-drawer__footer {
	flex: 0 0 auto;
	padding: 1.25em 1.5em;
	border-top: 1px solid var(--wpm-drawer-border);
}

.wpm-cart-drawer__row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5em;
}

.wpm-cart-drawer__row--muted {
	color: var(--wpm-drawer-muted);
}

.wpm-cart-drawer__row--total {
	font-weight: 700;
	font-size: 1.1em;
	margin-bottom: 1em;
}

.wpm-cart-drawer__checkout {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--wpm-drawer-button-bg);
	color: var(--wpm-drawer-button-text);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	padding: 1.1em 1em;
	border-radius: var(--wpm-drawer-radius);
	text-decoration: none;
	transition: background 0.2s ease;
}

.wpm-cart-drawer__checkout:hover {
	background: var(--wpm-drawer-button-hover);
	color: var(--wpm-drawer-button-text);
}

.wpm-cart-drawer.is-loading .wpm-cart-drawer__content {
	opacity: 0.55;
	pointer-events: none;
}

html.wpm-cart-drawer-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.wpm-cart-drawer {
		--wpm-drawer-width: 100%;
		max-width: 100%;
	}
}
