/*
Theme Name: Meat Proxy
Theme URI: https://github.com/meatproxy-shop/theme-child
Description: GeneratePress child theme for meatproxy.shop: the dark brand, the WooCommerce restyle and the pages site-tweaks renders. CSS and templates only; PHP behaviour lives in meatproxy-shop/site-tweaks.
Author: Meat Proxy LLC
Author URI: https://meatproxy.shop
Template: generatepress
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meatproxy
*/

/* GeneratePress enqueues this sheet after its own stylesheet and its inline Customizer CSS (generate-child, after
   generate-style; inc/general.php at 3.6.1), so a rule here beats a GeneratePress rule of the same specificity.
   WooCommerce's stylesheets come before GeneratePress's (measured on the live cart page, 2026-11-03). */

/* --------------------------------------------------------------
   1. Tokens
   The five brand colours of the README, the coming-soon page's derived ones (site/coming-soon/home.html in webdev),
   and GeneratePress's seven global colours redefined to them. GeneratePress prints its global colours into :root from
   the Customizer (the live site holds none, so the 3.6.1 defaults) and every surface it styles reads them: body,
   header, navigation, containers, forms, footer, and the editor presets (--wp--preset--color--contrast is
   var(--contrast)). Redefining them here is the dark theme; to change the palette, change it here, not in the
   Customizer, whose values this sheet overrides.
   -------------------------------------------------------------- */
:root {
	--mp-bg: #0b0b0c;
	--mp-fg: #f2f2f0;
	--mp-muted: #9a9a96;
	--mp-red: #b3261e;
	--mp-cream: #efe4cc;

	--mp-tee: #141415;            /* the shirt in the chart; raised surfaces: cards, the popup, the prompt box */
	--mp-line: #f2f2f0;           /* lines and lettering on the tee (the tee SVGs read var(--mp-line)) */
	--mp-text: #d8d8d4;           /* body copy */
	--mp-border: #3a3a3c;         /* hairlines, card borders */
	--mp-border-strong: #4a4a4c;  /* input borders */
	--mp-placeholder: #7c7c78;
	--mp-error: #ff8a80;          /* error text; the brand red is too dark on black for small type */
	--mp-hover: #2a2a2c;          /* hovered close buttons and rows */

	--mp-font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--mp-mono: ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;

	--contrast: var(--mp-fg);
	--contrast-2: var(--mp-muted);
	--contrast-3: #5c5c5a;
	--base: #1c1c1e;
	--base-2: var(--mp-bg);
	--base-3: var(--mp-bg);
	--accent: var(--mp-fg);
}

/* --------------------------------------------------------------
   2. Base: GeneratePress surfaces the global colours do not reach
   -------------------------------------------------------------- */
body {
	background-color: var(--mp-bg);
	color: var(--mp-fg);
	font-family: var(--mp-font);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--mp-red);
	color: var(--mp-fg);
}

a {
	color: var(--mp-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus,
a:active {
	color: #ffffff;
}

:focus-visible {
	outline: 2px solid var(--mp-fg);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.01em;
}

/* Lines GeneratePress draws in black at low alpha, invisible on black. */
hr {
	background-color: var(--mp-border);
}

blockquote {
	border-left-color: var(--mp-border);
	color: var(--mp-text);
}

pre {
	background: var(--mp-tee);
}

code, kbd, tt, var {
	font-family: var(--mp-mono);
	font-size: 0.9em;
}

th, td {
	border-color: var(--mp-border);
}

.site-header {
	border-bottom: 1px solid var(--mp-border);
}

.site-footer,
.site-info {
	color: var(--mp-muted);
}

.site-info {
	border-top: 1px solid var(--mp-border);
}

.main-navigation ul ul {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
	border: 1px solid var(--mp-border);
}

/* Buttons: GeneratePress prints literal #55555e/#fff for these (no variable), so the same selector list, after it. */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background) {
	color: var(--mp-bg);
	background-color: var(--mp-fg);
	border: 0;
	border-radius: 999px;
	padding: 0.7em 1.4em;
	font: inherit;
	letter-spacing: 0.04em;
	cursor: pointer;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):active,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):hover {
	color: var(--mp-bg);
	background-color: #ffffff;
}

/* Fields: the popup's input on the coming-soon page. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	color: var(--mp-fg);
	background-color: var(--mp-bg);
	border: 1px solid var(--mp-border-strong);
	border-radius: 10px;
	padding: 0.7em 0.85em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	color: var(--mp-fg);
	background-color: var(--mp-bg);
	border-color: var(--mp-fg);
}

::placeholder {
	color: var(--mp-placeholder);
	opacity: 1;
}

/* --------------------------------------------------------------
   3. Components carried from the coming-soon page
   The declarations are the page's own, so where its inline CSS (scoped under .mp-soon) and these overlap, the page
   renders as it did; the classes are usable on any page without that inline CSS.
   -------------------------------------------------------------- */
.mp-soon {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mp-bg);
	color: var(--mp-fg);
	text-align: center;
	padding: 48px 16px;
	box-sizing: border-box;
}

.mp-in {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.mp-kicker {
	text-transform: uppercase;
	letter-spacing: 0.3em;
	font-size: 0.78rem;
	color: var(--mp-muted);
	margin: 0 0 1.5rem;
}

.mp-tee {
	width: min(78vw, 340px);
	color: var(--mp-tee);
}

.mp-tee svg,
.mp-mark svg {
	display: block;
	width: 100%;
	height: auto;
}

.mp-mark {
	width: min(78vw, 340px);
	color: var(--mp-fg);
	margin: 0.75rem 0 1.75rem;
}

.mp-soon p {
	font-size: 1.1rem;
	line-height: 1.55;
	margin: 0 0 1em;
	color: var(--mp-text);
	max-width: 34em;
}

.mp-small {
	font-size: 0.9rem;
	color: var(--mp-muted);
	margin-top: 1.5em;
}

.mp-links a {
	margin: 0 0.5em;
}

.mp-cta {
	display: inline-block;
	margin: 0.5rem 0 0;
	font: inherit;
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--mp-bg);
	background: var(--mp-fg);
	border: 0;
	border-radius: 999px;
	padding: 0.7em 1.4em;
	cursor: pointer;
	text-decoration: none;
}

.mp-cta:hover,
.mp-cta:focus {
	color: var(--mp-bg);
	background: #ffffff;
}

.mp-cta:focus-visible {
	outline: 2px solid var(--mp-fg);
	outline-offset: 3px;
}

/* The signup popup (Mautic form). */
.mp-pop {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 9999;
	width: min(340px, calc(100vw - 32px));
	box-sizing: border-box;
	background: var(--mp-tee);
	color: var(--mp-fg);
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 22px 20px 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	text-align: left;
	font-family: inherit;
}

.mp-pop[hidden] {
	display: none;
}

.mp-pop h2 {
	margin: 0 0 0.35em;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #ffffff;
}

.mp-pop p {
	margin: 0 0 0.9em;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--mp-text);
}

.mp-pop .mp-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mp-muted);
	font-size: 22px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.mp-pop .mp-x:hover {
	color: #ffffff;
	background: var(--mp-hover);
}

.mp-pop .mp-fine {
	margin: 0.8em 0 0;
	font-size: 0.78rem;
	color: var(--mp-muted);
}

.mp-pop .mp-fine a {
	color: var(--mp-text);
}

.mp-pop .mp-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.mp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.mp-pop .mp-input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--mp-fg);
	background: var(--mp-bg);
	border: 1px solid var(--mp-border-strong);
	border-radius: 10px;
	padding: 0.7em 0.85em;
}

.mp-pop .mp-input::placeholder {
	color: var(--mp-placeholder);
}

.mp-pop .mp-send {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--mp-bg);
	background: var(--mp-fg);
	border: 0;
	border-radius: 10px;
	padding: 0.75em 1em;
	cursor: pointer;
}

.mp-pop .mp-send:hover {
	background: #ffffff;
}

.mp-pop .mp-send[disabled] {
	opacity: 0.6;
	cursor: default;
}

.mp-pop .mp-status {
	margin: 0;
	min-height: 1.2em;
	font-size: 0.9rem;
	color: var(--mp-text);
}

.mp-pop .mp-status.err {
	color: var(--mp-error);
}

.mp-pop button:focus-visible,
.mp-pop input:focus-visible {
	outline: 2px solid var(--mp-fg);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.mp-pop:not([hidden]) {
		animation: mp-up 0.35s ease-out;
	}

	@keyframes mp-up {
		from {
			opacity: 0;
			transform: translateY(16px);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}
}

/* --------------------------------------------------------------
   4. The prompt page (site-tweaks includes/modules/prompt-page.php: <main class="mp-prompt-page"> through the theme,
   .mp-prompt with .mp-state, .mp-form, textarea, .mp-left, the Turnstile widget, a submit button, .mp-message) and
   page-prompt.php, which puts the same class on <main>.
   -------------------------------------------------------------- */
.mp-prompt-page {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.mp-prompt {
	background: var(--mp-tee);
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 22px 20px;
}

.mp-prompt .mp-state {
	margin: 0 0 0.9em;
	font-size: 1.05rem;
	color: var(--mp-text);
}

.mp-prompt .mp-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.mp-prompt .mp-form[hidden] {
	display: none;
}

.mp-prompt label {
	font-size: 0.95rem;
	color: var(--mp-text);
}

.mp-prompt textarea {
	box-sizing: border-box;
	min-height: 6em;
	resize: vertical;
	font: inherit;
	font-size: 1rem;
}

.mp-prompt .mp-left {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mp-muted);
}

.mp-prompt button[type="submit"] {
	width: 100%;
	font-weight: 600;
	border-radius: 10px;
	padding: 0.75em 1em;
}

.mp-prompt .mp-message {
	margin: 0.9em 0 0;
	min-height: 1.2em;
	font-size: 0.95rem;
	color: var(--mp-text);
}

/* The thank-you page's "Now the prompt" section and the account page's prompt button (order-flow.php). */
.mp-thanks {
	background: var(--mp-tee);
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 22px 20px;
	margin: 0 0 1.5em;
}

.mp-thanks h2 {
	margin-top: 0;
}

.mp-account-prompt {
	margin: 1em 0;
}

/* --------------------------------------------------------------
   5. The ledger (Pages/LedgerTable.php), the counters (Pages/Counters.php: the status tiles), the robot status
   (Pages/Status.php), the changelog list (Pages/ChangelogList.php), the certificate (Pages/Certificate.php, which
   carries its own layout and print rule) and the unavailable notice (mp_pages_unavailable).
   -------------------------------------------------------------- */
.mp-ledger {
	overflow-x: auto;
	margin: 0 0 1.5em;
}

.mp-ledger-table {
	width: 100%;
	min-width: 56rem;
	border: 0;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 0 0 1em;
}

.mp-ledger-table th,
.mp-ledger-table td {
	border: 0;
	border-bottom: 1px solid var(--mp-border);
	padding: 0.6em 0.7em;
	text-align: left;
	vertical-align: top;
}

.mp-ledger-table th,
.mp-status-queue caption {
	color: var(--mp-muted);
	font-weight: 600;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mp-hash {
	font-family: var(--mp-mono);
	font-size: 0.8em;
	color: var(--mp-text);
	word-break: break-all;
}

.mp-ledger-empty,
.mp-changelog-empty,
.mp-pages-unavailable {
	color: var(--mp-muted);
}

.mp-ledger-nav {
	display: flex;
	align-items: center;
	gap: 1em;
	margin: 1em 0;
}

.mp-ledger-page {
	color: var(--mp-muted);
}

/* The counters as tiles: the number above its label (the label is first in the markup for screen readers). */
.mp-counters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 12px;
	margin: 0 0 1em;
}

.mp-counter {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.25em;
	margin: 0;
	background: var(--mp-tee);
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 18px 20px;
}

.mp-counter dt {
	font-size: 0.85rem;
	line-height: 1.35;
	color: var(--mp-muted);
}

.mp-counter dd {
	margin: 0;
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

/* The zero (people at Meat Proxy who saw a design) in the fat cream. */
.mp-counter-humans-who-saw-a-design dd {
	color: var(--mp-cream);
}

.mp-counters-note {
	font-size: 0.9rem;
	color: var(--mp-muted);
}

.mp-status {
	background: var(--mp-tee);
	border: 1px solid var(--mp-border);
	border-radius: 14px;
	padding: 20px;
	margin: 0 0 1.5em;
}

/* The robot line, with a dot: cream while the robot is awake, red while it is being spoken to (.mp-status-paused,
   set by Status::html from the kill switch). */
.mp-status-robot {
	position: relative;
	margin: 0 0 0.75em;
	padding-left: 1em;
	font-size: 1.35rem;
	font-weight: 700;
}

.mp-status-robot::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--mp-cream);
}

.mp-status-paused .mp-status-robot::before {
	background: var(--mp-red);
}

.mp-status-queue {
	width: auto;
	border: 0;
	border-collapse: collapse;
	margin: 0 0 1em;
}

.mp-status-queue caption {
	text-align: left;
	padding: 0 0 0.4em;
}

.mp-status-queue th,
.mp-status-queue td {
	border: 0;
	border-bottom: 1px solid var(--mp-border);
	padding: 0.35em 1.2em 0.35em 0;
	text-align: left;
	font-weight: 400;
}

.mp-status-queue td {
	text-align: right;
	padding-right: 0;
	font-variant-numeric: tabular-nums;
}

.mp-status-median,
.mp-status-last {
	margin: 0 0 0.5em;
}

.mp-status-measured {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mp-muted);
}

.mp-changelog-list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.mp-changelog-entry {
	padding: 0.75em 0;
	border-bottom: 1px solid var(--mp-border);
}

.mp-changelog-entry time {
	font-family: var(--mp-mono);
	font-size: 0.8rem;
	color: var(--mp-muted);
	margin-right: 0.75em;
}

.mp-changelog-excerpt {
	margin: 0.35em 0 0;
	color: var(--mp-text);
}

.mp-certificate-page {
	max-width: 44rem;
	margin-left: auto;
	margin-right: auto;
}

.mp-cert-title {
	font-weight: 800;
}

/* A QR code needs a light quiet zone around it to scan; the page is black. */
.mp-cert-qr svg {
	background: #ffffff;
	padding: 8px;
	border-radius: 8px;
}

/* The certificate's colours are for the screen only: on paper it is black on white (Certificate::style() sets that
   on the article for print), and a colour set here on one of its parts would outrank what the part inherits, since
   `.mp-cert-row dt` is more specific than any reset on `.mp-certificate *` (Codex rounds 1 and 3 on PR #2).
   tests/check-css.py fails on a colour for an .mp-cert* selector outside @media screen. */
@media screen {
	.mp-cert-issuer {
		color: var(--mp-muted);
	}

	.mp-cert-id {
		color: var(--mp-cream);
	}

	.mp-cert-row dt {
		color: var(--mp-text);
	}

	.mp-cert-foot {
		color: var(--mp-muted);
	}
}

/* On paper, what the certificate's parts would still take from the sheet's other rules (.mp-hash, a, code) is reset
   too; after those rules, so it wins the ties at one class. */
@media print {
	.mp-certificate,
	.mp-certificate * {
		color: #000000;
	}

	.mp-cert-qr svg {
		padding: 0;
	}
}

/* --------------------------------------------------------------
   6. The 404 page (404.php). WordPress loads no 429 template; a 429 page served by the plugin through the theme
   would carry the same class.
   -------------------------------------------------------------- */
.mp-error {
	text-align: center;
}

.mp-error-mark {
	width: min(60vw, 240px);
	margin: 0 auto 1.5rem;
	color: var(--mp-cream);
}

.mp-error-mark svg {
	display: block;
	width: 100%;
	height: auto;
}

.mp-error-title {
	margin: 0 0 0.5em;
	font-size: 2rem;
}

.mp-error .entry-content p {
	max-width: 34em;
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------
   7. WooCommerce
   Cart and Checkout are blocks on the live site (wp:woocommerce/cart, wp:woocommerce/checkout); My account is the
   [woocommerce_my_account] shortcode (measured 2026-11-03). The block components read a few custom properties and
   otherwise print light literals (#fff backgrounds, #2b2d2f text); each literal is overridden below with a selector
   of higher specificity, scoped to the block root (.wc-block-components-sidebar-layout is on both blocks).
   -------------------------------------------------------------- */

/* The properties WooCommerce's stylesheets read. On body rather than :root: a value set on body wins over one set
   on :root for everything inside body whatever the stylesheet order, by inheritance. */
body {
	--woocommerce: var(--mp-fg);
	--wc-primary: var(--mp-fg);
	--wc-primary-text: var(--mp-bg);
	--wc-secondary: var(--mp-tee);
	--wc-secondary-text: var(--mp-fg);
	--wc-highlight: var(--mp-cream);
	--wc-highligh-text: var(--mp-bg);
	--wc-content-bg: var(--mp-bg);
	--wc-subtext: var(--mp-muted);
	--wc-form-color-background: var(--mp-bg);
	--wc-form-color-text: var(--mp-fg);
	--wc-form-border-color: var(--mp-border-strong);
	--wc-form-border-radius: 10px;
	--wc-form-border-width: 1px;
	--wc-separator-color: var(--mp-border);
	--wc-destructive: var(--mp-error);
	--wc-red: var(--mp-error);
	--wc-green: #7fc98f;            /* validated-field borders; the brand has no green, this one reads on black */
	--wc-card-border-radius: 14px;
}

/* 7a. Classic (shortcode and template) markup: My account, order received, notices, the shop. */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	background-color: var(--mp-tee);
	color: var(--mp-fg);
	border-radius: 0 0 10px 10px;
}

/* The top rule and the icon carry the kind: cream for a message, muted for information, red for an error. */
.woocommerce-message {
	border-top-color: var(--mp-cream);
}

.woocommerce-message::before {
	color: var(--mp-cream);
}

.woocommerce-info {
	border-top-color: var(--mp-muted);
}

.woocommerce-info::before {
	color: var(--mp-muted);
}

.woocommerce-error {
	border-top-color: var(--mp-red);
}

.woocommerce-error::before {
	color: var(--mp-error);
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--mp-border);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.6em 0;
	color: var(--mp-text);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
	color: var(--mp-fg);
}

.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 600;
}

.woocommerce .woocommerce-customer-details address {
	border-color: var(--mp-border);
	border-radius: 10px;
}

.woocommerce-store-notice,
p.demo_store {
	background-color: var(--mp-tee);
	color: var(--mp-fg);
	border-bottom: 1px solid var(--mp-border);
}

.woocommerce span.onsale {
	background-color: var(--mp-red);
	color: var(--mp-fg);
}

.woocommerce nav.woocommerce-pagination ul {
	border-color: var(--mp-border);
}

.woocommerce nav.woocommerce-pagination ul li {
	border-right-color: var(--mp-border);
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--mp-tee);
	color: var(--mp-fg);
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
	color: var(--mp-muted);
}

/* WooCommerce draws the select's chevron in black; the same chevron in the foreground colour. */
.woocommerce form .form-row select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* 7b. The Cart and Checkout blocks. */
.wc-block-components-sidebar-layout .wc-block-components-text-input input[type],
.wc-block-components-sidebar-layout .wc-block-components-form .wc-block-components-text-input input[type],
.wc-block-components-sidebar-layout .wc-block-components-text-input input[type]:focus-within,
.wc-block-components-sidebar-layout .wc-block-components-form .wc-block-components-text-input input[type]:focus-within {
	background-color: var(--mp-bg);
	color: var(--mp-fg);
	border-color: var(--mp-border-strong);
	border-radius: 10px;
}

.wc-block-components-sidebar-layout .wc-block-components-text-input input[type]:focus-within,
.wc-block-components-sidebar-layout .wc-block-components-form .wc-block-components-text-input input[type]:focus-within {
	border-color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-components-text-input label {
	color: var(--mp-muted);
}

.wc-block-components-sidebar-layout .wc-blocks-components-select .wc-blocks-components-select__container {
	background: var(--mp-bg);
	border-radius: 10px;
}

.wc-block-components-sidebar-layout .wc-blocks-components-select .wc-blocks-components-select__select {
	color: var(--mp-fg);
	background: var(--mp-bg);
	border-color: var(--mp-border-strong);
	border-radius: 10px;
}

.wc-block-components-sidebar-layout .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--mp-muted);
}

.wc-block-components-sidebar-layout .wc-block-components-textarea,
.wc-block-components-sidebar-layout .wc-block-components-textarea:focus,
.wc-block-components-sidebar-layout .wc-block-components-textarea:not(:placeholder-shown) {
	background-color: var(--mp-bg);
	color: var(--mp-fg);
	border-color: var(--mp-border-strong);
	border-radius: 10px;
}

.wc-block-components-sidebar-layout .wc-block-components-textarea:focus {
	border-color: var(--mp-fg);
	box-shadow: none;
}

.wc-block-components-sidebar-layout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	background-color: var(--mp-bg);
	border-color: var(--mp-border-strong);
}

.wc-block-components-sidebar-layout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--mp-fg);
	border-color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--mp-bg);
}

.wc-block-components-sidebar-layout .wc-block-components-radio-control .wc-block-components-radio-control__input {
	background: var(--mp-bg);
	border-color: var(--mp-border-strong);
}

.wc-block-components-sidebar-layout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-checkout__shipping-method-option.wc-block-checkout__shipping-method-option--selected {
	background: var(--mp-tee);
	border-color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-components-address-autocomplete-suggestions {
	background: var(--mp-tee);
	border-color: var(--mp-border);
}

.wc-block-components-sidebar-layout .wc-block-gateway-container .wc-block-gateway-input,
.wc-block-components-sidebar-layout .wc-block-gateway-container .wc-block-gateway-input:focus,
.wc-block-components-sidebar-layout .wc-block-gateway-container:focus {
	background-color: var(--mp-bg);
	color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-gateway-container label {
	color: var(--mp-muted);
}

/* The quantity badge on order-summary items is drawn in currentColor with its number in the theme's base preset
   (#fff with no theme.json), which on a light badge is unreadable. */
.wc-block-components-sidebar-layout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
	color: var(--mp-bg);
}

.wc-block-components-sidebar-layout .wc-block-components-product-sale-badge {
	background: var(--mp-tee);
	border-color: var(--mp-border);
	color: var(--mp-fg);
}

.wc-block-components-sidebar-layout .wc-block-components-skeleton__element {
	background: var(--mp-tee);
}

@media (max-width: 782px) {
	body .wc-block-cart .wc-block-cart__submit-container--sticky {
		background: var(--mp-bg);
		border-top: 1px solid var(--mp-border);
	}
}

/* Block notices (also printed outside the blocks, in the notices wrapper). WooCommerce marks the close button's and
   the "continue" link's colour !important, so the same mark is the only way to change them. */
body .wc-block-components-notice-banner {
	background-color: var(--mp-tee);
	border-color: var(--mp-border);
	color: var(--mp-fg);
	border-radius: 10px;
}

body .wc-block-components-notice-banner > svg {
	fill: var(--mp-bg);
	background-color: var(--mp-fg);
}

body .wc-block-components-notice-banner.is-error {
	background-color: var(--mp-tee);
	border-color: var(--mp-red);
}

body .wc-block-components-notice-banner.is-error > svg {
	background-color: var(--mp-red);
	fill: var(--mp-fg);
}

body .wc-block-components-notice-banner.is-warning {
	background-color: var(--mp-tee);
	border-color: var(--mp-cream);
}

body .wc-block-components-notice-banner.is-warning > svg {
	background-color: var(--mp-cream);
}

body .wc-block-components-notice-banner.is-info,
body .wc-block-components-notice-banner.is-success {
	background-color: var(--mp-tee);
	border-color: var(--mp-muted);
}

body .wc-block-components-notice-banner.is-info > svg,
body .wc-block-components-notice-banner.is-success > svg {
	background-color: var(--mp-muted);
}

body .wc-block-components-notice-banner > .wc-block-components-button,
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	color: var(--mp-fg) !important;
}
