.pmc-cart {
	display: inline-block;
}

.pmc-cart-trigger,
.pmc-drawer__close {
	color: inherit;
	text-decoration: none;
	display: flex;
	align-items: center;
	background: 0 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	font-size: 1rem;
}
.pmc-cart-trigger,
.pmc-cart-trigger:hover,
.pmc-cart-trigger:focus,
.pmc-drawer__close,
.pmc-drawer__close:hover,
.pmc-drawer__close:focus {
	background: var(--global-palette9);
	color: var(--global-palette9);
}
.pmc-cart-trigger svg,
.pmc-cart-trigger:hover svg,
.pmc-drawer__close svg,
.pmc-drawer__close:hover svg {
	fill: var(--global-palette-btn-bg-hover);
}
.pmc-cart-icon {
	font-size: 1.25em;
}
.pmc-cart-count {
	background: var(--global-palette7);
	border-radius: 50%;
	color: var(--global-palette4);
	font-size: 0.65em;
	display: grid;
	place-items: center;
	width: 2.1em;
	height: 2.1em;
}

/* ==== Drawer outer structure ==== */
.pmc-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none; /* hidden by default */
}
body.admin-bar .pmc-drawer {
	top: 46px;
}
@media screen and (min-width: 783px) {
	body.admin-bar .pmc-drawer {
		top: 32px;
	}
}

.pmc-drawer[aria-hidden='true'] {
	display: none;
}

/* overlay */
.pmc-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

/* panel (the actual cart drawer) */
.pmc-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100vh;
	max-height: 100vh;
	width: min(90vw, var(--pmc-drawer-width, 400px));
	background: #fff;
	color: inherit;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* when open */
.pmc-drawer.is-open {
	pointer-events: auto;
}
.pmc-drawer.is-open .pmc-drawer__overlay {
	opacity: 1;
}
.pmc-drawer.is-open .pmc-drawer__panel {
	transform: translateX(0);
}
body.pmc-no-scroll {
	overflow: hidden;
}

/* ==== Header ==== */
.pmc-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
}
.pmc-drawer__title {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
}
.pmc-drawer__close {
	background: none;
	border: 0;
	line-height: 1;
	cursor: pointer;
	font-size: 1.25rem;
}

/* ==== Body / Scroll ==== */
.pmc-drawer__body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.pmc-drawer__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	padding: 1rem;
}

/* free shipping */
.pmc-free-ship {
	margin: 0.5rem 0 2rem;
}
.pmc-free-ship__text {
	font-size: 0.8em;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.1em;
}
.pmc-free-ship--bar .pmc-free-ship__bar {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 1rem;
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 0.5rem;
}
.pmc-free-ship--bar .pmc-free-ship__progress {
	display: block;
	height: 100%;
	width: 0%;
	background: currentColor;
	opacity: 0.8;
	transition: width 0.25s ease;
}
.pmc-free-ship__track {
	position: absolute;
	inset: 0;
}
.pmc-free-ship__dot,
.pmc-free-ship__van {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	background: var(--global-palette1);
	border-radius: 1.25rem;
	width: 0.875rem;
	height: 0.875rem;
}
.pmc-free-ship__van {
	background: green;
	width: 1.5rem;
	height: 1.5rem;
	display: grid;
	place-items: center;
}
.pmc-free-ship__van svg {
	display: block;
	width: 1rem;
}

/* cart lines */
.pmc-cart-lines {
	list-style: none;
	margin: 0 0 auto;
	padding: 0;
	display: grid;
	row-gap: 1rem;
}
.pmc-cart-line {
	display: grid;
	grid-template-columns: auto 1fr auto;
	column-gap: 0.75rem;
	align-items: start;
}
.pmc-cart-line__thumb {
	grid-area: 1 / 1 / 3 / 2;
}
.pmc-cart-line__thumb img {
	display: block;
	max-width: 64px;
	height: auto;
}

/* +/- qty controls inside line */
.pmc-qty {
	border: 1px solid var(--global-gray-400, #cbd5e0);
	width: fit-content;
}
.pmc-qty__input[type='number'] {
	-moz-appearance: textfield !important;
	-webkit-appearance: textfield !important;
	appearance: textfield !important;
	border: 0;
	font-size: 0.875rem;
	padding: 0;
	text-align: center;
	width: 1.5em;
	height: 2rem;
}
.pmc-qty__input[type='number']::-webkit-outer-spin-button,
.pmc-qty__input[type='number']::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pmc-qty__btn,
.pmc-qty__btn:hover,
.pmc-qty__btn:focus {
	all: unset;
	cursor: pointer;
	text-align: center;
	height: 1.875rem;
	width: 1.5rem;
}
.pmc-qty__minus,
.pmc-qty__minus:hover,
.pmc-qty__minus:focus {
	border-width: 0;
}
.pmc-qty__plus,
.pmc-qty__plus:hover,
.pmc-qty__plus:focus {
	border-width: 0;
}

.pmc-line-price {
	float: right;
}

/* remove link */
.pmc-cart-line a.remove_from_cart_button {
	background: var(--global-gray-400, #cbd5e0);
	text-decoration: none;
}
.pmc-cart-line a.remove_from_cart_button:hover {
	background-color: red;
}

.pmc-totals-block__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.pmc-remove-coupon {
	border: 1px dashed var(--global-palette1);
	border-radius: 1rem;
	font-size: 75%;
	line-height: 1;
	margin-inline: 1ch auto;
	padding: 0.2em 0.5em 0.2em 0.8em;
	text-decoration: none;
}
.pmc-remove-coupon__icon {
	margin-inline-start: 0.2em;
}
.pmc-remove-coupon:hover .pmc-remove-coupon__icon {
	color: red;
}

.pmc-buttons-block .wc-forward.checkout {
	text-align: center;
	width: 100%;
}

.pmc-card-icons__wrap {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
}
.pmc-card-icons__wrap img {
	height: 1.5rem;
}
