/*
 * Pahl's Market — side cart, share cart and the cart page.
 *
 * 3.12.0: the side cart is our own markup (.pm-sc__*), not WooCommerce's mini
 * cart, so it can have steppers, a pinned Checkout button and touch targets
 * that are actually 44px. Greens match the theme's primary (#004b2a) and the
 * department nav (#2f6b3a); corners follow the theme's radius scale.
 */

.pm-shelf {
	--pm-ink: #1f2a22;
	--pm-muted: #5b6b5f;
	--pm-green: var(--wp--preset--color--primary, #004b2a);
	--pm-green-2: #2f6b3a;
	--pm-line: #e3e8e3;
	--pm-tint: #f5f9f5;
	--pm-r: var(--wp--custom--border-radius--md, 10px);

	position: fixed;
	inset: 0;
	z-index: 100000;
	color: var(--pm-ink);
	font-size: 15px;
	line-height: 1.4;
}

.pm-shelf[hidden] { display: none; }

.pm-shelf *,
.pm-shelf *::before,
.pm-shelf *::after { box-sizing: border-box; }

.pm-shelf__scrim {
	position: absolute;
	inset: 0;
	background: rgba(16, 32, 20, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.pm-shelf__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: #fff;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	outline: 0;
}

.pm-shelf.is-open .pm-shelf__scrim { opacity: 1; }
.pm-shelf.is-open .pm-shelf__panel { transform: none; }

@media (prefers-reduced-motion: reduce) {
	.pm-shelf__scrim,
	.pm-shelf__panel { transition: none; }
}

html.pm-shelf-lock { overflow: hidden; }

/* ---------------------------------------------------------------- head */

.pm-shelf__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 8px 10px 8px 20px;
	border-bottom: 1px solid var(--pm-line);
}

.pm-shelf__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.pm-shelf__tick {
	display: none;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pm-green-2);
	color: #fff;
}

.pm-shelf.is-added .pm-shelf__tick { display: inline-grid; }

.pm-shelf__x {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #4a5a4e;
	cursor: pointer;
}

.pm-shelf__x:hover,
.pm-shelf__x:focus-visible { background: #f0f5f0; color: var(--pm-ink); }

/* ---------------------------------------------------------------- body */

.pm-shelf__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.pm-shelf__loading {
	display: none;
	margin: 0;
	padding: 20px;
	color: var(--pm-muted);
	font-size: 14px;
}

/* Only when there is nothing to show yet; over existing content it would jump. */
.pm-shelf__body.is-loading .pm-sc__content:empty + .pm-shelf__loading { display: block; }
.pm-shelf__body.is-loading .pm-sc__items { opacity: 0.5; pointer-events: none; }
.pm-shelf__body.is-loading .pm-sc__btn--primary { opacity: 0.6; pointer-events: none; }

.pm-sc__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.pm-sc__content:empty { flex: 0 0 auto; }

.pm-sc__notice {
	flex: 0 0 auto;
	margin: 12px 20px 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdf3d7;
	color: #6b4e00;
	font-size: 14px;
}

/* --------------------------------------------------------------- items */

.pm-sc__items {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 0 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	transition: opacity 0.15s ease;
	-webkit-overflow-scrolling: touch;
}

.pm-sc__item {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid #eef2ee;
	transition: opacity 0.15s ease;
}

.pm-sc__item:last-child { border-bottom: 0; }
.pm-sc__item.is-removing { opacity: 0.35; }

.pm-sc__img {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: var(--pm-r);
	background: var(--pm-tint);
}

.pm-sc__img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.pm-sc__info { min-width: 0; }

.pm-sc__name {
	display: block;
	padding-right: 40px; /* Clear of the remove button. */
	color: var(--pm-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

a.pm-sc__name:hover { color: var(--pm-green); text-decoration: underline; }

.pm-sc__meta,
.pm-sc__each {
	margin: 2px 0 0;
	color: var(--pm-muted);
	font-size: 13px;
	line-height: 1.4;
}

.pm-sc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.pm-sc__qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	overflow: hidden;
	border: 1px solid #c9d6cb;
	border-radius: var(--pm-r);
	background: #fff;
}

.pm-sc__step {
	width: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pm-ink);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.pm-sc__step:hover:not(:disabled),
.pm-sc__step:focus-visible { background: #f0f5f0; }
.pm-sc__step:disabled { color: #b4bfb6; cursor: default; }

.pm-shelf .pm-sc__num {
	width: 44px;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline: 1px solid #e3e8e3;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--pm-ink);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus. */
	font-weight: 600;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.pm-sc__num::-webkit-outer-spin-button,
.pm-sc__num::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

.pm-sc__solo { color: var(--pm-muted); font-size: 14px; }

.pm-sc__line {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.pm-sc__remove {
	position: absolute;
	top: 6px;
	right: -10px;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #8a968d;
	cursor: pointer;
}

.pm-sc__remove:hover,
.pm-sc__remove:focus-visible { background: #fbeaea; color: #a12d2d; }

/* ------------------------------------------------------------- summary */

.pm-sc__summary {
	flex: 0 0 auto;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--pm-line);
	background: #fff;
	box-shadow: 0 -6px 16px rgba(16, 32, 20, 0.05);
}

.pm-sc__subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 17px;
}

.pm-sc__subtotal strong { font-size: 20px; font-weight: 700; }

.pm-sc__note {
	margin: 4px 0 14px;
	color: var(--pm-muted);
	font-size: 13px;
}

.pm-sc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 1.5px solid var(--pm-green);
	border-radius: var(--pm-r);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.pm-sc__btn--primary,
.pm-sc__btn--primary:visited { background: var(--pm-green); color: #fff; }

.pm-sc__btn--primary:hover,
.pm-sc__btn--primary:focus-visible { border-color: var(--pm-green-2); background: var(--pm-green-2); color: #fff; }

.pm-sc__more {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
}

.pm-sc__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 2px;
	border: 0;
	background: none;
	color: var(--pm-green-2);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.pm-sc__link:hover { color: var(--pm-green); }

/* --------------------------------------------------------------- empty */

.pm-sc__empty {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 28px;
	color: var(--pm-muted);
	text-align: center;
}

.pm-sc__empty svg { color: #9bb3a0; }

.pm-sc__empty-t {
	margin: 12px 0 4px;
	color: var(--pm-ink);
	font-size: 18px;
	font-weight: 600;
}

.pm-sc__empty-d { margin: 0 0 20px; font-size: 14px; }
.pm-sc__empty .pm-sc__btn { max-width: 260px; }

/* The product page's button while its form posts in the background. */
form.cart .single_add_to_cart_button.loading {
	opacity: 0.7;
	cursor: progress;
}

/* ---------------------------------------------------------------- share */

.pm-share {
	clear: both;
	max-width: 640px;
	margin: 24px 0;
	padding: 16px 18px;
	border: 1px solid #dbe5dc;
	border-radius: 12px;
	background: #f7faf7;
}

.pm-share[hidden] { display: none; }

.pm-share__t {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	color: #1f2a22;
}

.pm-share__d {
	margin: 0 0 12px;
	color: #4a5a4e;
	font-size: 14px;
}

.pm-share__row {
	display: flex;
	gap: 8px;
}

.pm-share__url {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #c9d6cb;
	border-radius: 8px;
	background: #fff;
	color: #4a5a4e;
	font-size: 16px; /* 16px stops iOS zooming on focus. */
}

.pm-share__btn,
.pm-share__native {
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 1.5px solid #2f6b3a;
	border-radius: var(--wp--custom--border-radius--md, 10px);
	background: #2f6b3a;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pm-share__btn:hover { background: #24522c; border-color: #24522c; }

.pm-share__native {
	background: #fff;
	color: #2f6b3a;
	margin-left: 12px;
	padding: 6px 14px;
}

.pm-share__alt {
	margin: 10px 0 0;
	font-size: 14px;
}

.pm-share__alt a { color: #2f6b3a; font-weight: 600; }

.pm-share__msg {
	min-height: 1.2em;
	margin: 8px 0 0;
	color: #2f6b3a;
	font-size: 14px;
}

@media (max-width: 520px) {
	.pm-share__row { flex-direction: column; }
	.pm-share__btn { width: 100%; min-height: 48px; }
}

/* ==================================================================== */
/* Cart page                                                             */
/* ==================================================================== */
/*
 * The Cart block as the theme leaves it has its emphasis upside down: the
 * product name is the smallest text in the row, the unit price the largest,
 * and a clipped sentence of description pads every row to twice the height.
 * This puts the name and the line total in charge, drops the description,
 * and turns the totals into a card with one unmistakable button.
 *
 * Scoped to body.pm-cart-polish, which is only added when the setting is on.
 *
 * About the :is(#pm, .pm-cart-polish) prefix. The theme styles this block
 * with chains like
 *   .wp-block-woocommerce-cart .wp-block-woocommerce-filled-cart-block
 *   .wp-block-woocommerce-cart-items-block table tbody tr td.… .… .…
 * which no sensible selector outweighs. :is() takes the weight of its
 * heaviest argument, so naming an ID inside it — one that does not need to
 * exist — lifts every rule here above the theme's without !important. The
 * three !important flags that remain answer !important in the theme.
 */

.pm-cart-polish {
	--pm-green: var(--wp--preset--color--primary, #004b2a);
	--pm-green-2: #2f6b3a;
	--pm-ink: #1f2a22;
	--pm-muted: #5b6b5f;
	--pm-line: #dfe5df;
	--pm-tint: #f5f9f5;
	--pm-radius: var(--wp--custom--border-radius--md, 10px);
}

.pm-cart-polish .pm-cart-title {
	margin: 0 0 24px;
}

/* --- Items ---------------------------------------------------------- */

:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items {
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--pm-line);
}

/* The rule between rows is painted on the row. WooCommerce makes the total
   cell a flex box, which is not the height of the row, so a border on the
   cells comes out as a broken line. */
:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	background: linear-gradient(var(--pm-line), var(--pm-line)) left top / 100% 1px no-repeat;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-items .wc-block-cart-items__header th {
	padding: 0 0 10px;
	border: 0;
	color: var(--pm-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items td {
	padding-top: 20px;
	padding-bottom: 20px;
	border: 0;
	vertical-align: top;
}

:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items td.wc-block-cart-item__image {
	width: 88px;
	padding-left: 0;
	padding-right: 16px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__image img {
	display: block;
	width: 88px;
	max-width: none;
	height: 88px;
	border-radius: 10px;
	object-fit: cover;
}

:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items td.wc-block-cart-item__product {
	padding-left: 0;
	padding-right: 16px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__wrap > * {
	margin-bottom: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-product-name {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 4px;
	color: var(--pm-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-product-name:hover {
	color: var(--pm-green);
	text-decoration: underline;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__prices,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price {
	color: var(--pm-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price__value::after {
	content: " each";
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__prices del .wc-block-components-product-price__value::after,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price__regular::after {
	content: none;
}

/* A clipped sentence of the product description, repeated on every row. */
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-product-metadata__description {
	display: none;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-product-metadata {
	margin: 4px 0 0;
	color: var(--pm-muted);
	font-size: 14px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-product-metadata:empty {
	display: none;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	padding: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-quantity-selector {
	box-sizing: border-box;
	width: 124px;
	height: 44px;
	margin: 0;
	border: 1px solid #c5cfc7;
	border-radius: var(--pm-radius);
	background: #fff;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-quantity-selector::after {
	border: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	color: var(--pm-ink);
	font-size: 16px;
	font-weight: 600;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 40px;
	min-height: 40px;
	margin: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--pm-ink);
	font-size: 18px;
	opacity: 1;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	color: #a9b3ab;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	color: var(--pm-muted) !important; /* the theme sets red with !important. */
}

/* The theme adds its own bin icon in front of WooCommerce's: two bins. */
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__remove-link::before {
	content: none;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__remove-link:hover {
	color: #b3261e !important;
	opacity: 1;
}

:is(#pm, .pm-cart-polish) .wc-block-cart table.wc-block-cart-items td.wc-block-cart-item__total {
	padding-left: 0;
	padding-right: 0;
	color: var(--pm-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	white-space: nowrap;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: inherit;
	font-weight: inherit;
}

/* --- Totals card ---------------------------------------------------- */

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__sidebar {
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 32, 20, 0.04);
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__totals-title {
	margin: 0;
	padding: 0 0 12px;
	color: var(--pm-ink);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: left;
	text-transform: none;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-wrapper {
	padding-top: 14px;
	padding-bottom: 14px;
	border-color: var(--pm-line);
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-item,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-panel__button {
	color: var(--pm-ink);
	font-size: 15px;
	line-height: 1.45;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-item__label {
	color: var(--pm-muted);
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-item__description,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-shipping__via {
	color: var(--pm-muted);
	font-size: 13px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--pm-ink);
	font-size: 20px;
	font-weight: 700;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit {
	margin: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-container {
	padding-top: 6px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-button {
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--pm-radius);
	background: var(--pm-green);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.15s ease;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-button:hover,
:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-button:focus-visible {
	background: var(--pm-green-2);
	color: #fff;
}

:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-button:focus-visible {
	outline: 3px solid rgba(0, 75, 42, 0.3);
	outline-offset: 2px;
}

/* --- Phones --------------------------------------------------------- */

/* WooCommerce switches each row from a table row to a grid when the block is
   narrow (it measures the block, not the screen, hence classes rather than a
   media query). Its grid gives the line total a 45px column, which clips
   anything over $99.99 at a readable size. */
:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 72px minmax(0, 1fr) auto;
	column-gap: 12px;
	margin: 0;
	padding: 16px 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items td,
:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items td.wc-block-cart-item__product,
:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items td.wc-block-cart-item__total {
	padding: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items td.wc-block-cart-item__image {
	width: 72px;
	padding: 0;
}

:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) .wc-block-cart-item__image img {
	width: 72px;
	height: 72px;
}

:is(#pm, .pm-cart-polish) .wc-block-cart:is(.is-mobile, .is-small, .is-medium) table.wc-block-cart-items td.wc-block-cart-item__total {
	justify-content: flex-end;
}

@media (max-width: 781px) {
	:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__sidebar {
		margin-top: 24px;
		padding: 18px 16px;
	}

	/* WooCommerce pins its Checkout button to the bottom of the screen on a
	   phone. Give it a hairline and a solid ground so rows do not show
	   through, and keep the page's last content clear of it. */
	:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-container--sticky {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--pm-line);
		background: #fff;
		box-shadow: 0 -4px 16px rgba(16, 32, 20, 0.08);
	}

	:is(#pm, .pm-cart-polish) .wc-block-cart .wc-block-cart__submit-container--sticky::before {
		content: none;
	}

	/* The theme's back-to-top arrow lands on top of that button. On a page
	   whose only job is to get to the checkout, it can go. */
	.pm-cart-polish [class*="scroll-to-top"] {
		display: none !important; /* the theme toggles it with inline styles. */
	}
}

/* --- Empty cart ------------------------------------------------------ */

.pm-cart-polish .wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:only-child {
	display: inline-block;
	min-height: 0;
	padding: 14px 28px;
	border-radius: var(--pm-radius);
	background: var(--pm-green);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.pm-cart-polish .wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:only-child:hover,
.pm-cart-polish .wp-block-woocommerce-empty-cart-block > p.has-text-align-center > a:only-child:focus-visible {
	background: var(--pm-green-2);
	color: #fff;
}
