/* =========================================================================
   PEIKA shop and customer zone: adjustments to the peika.pl stylesheet (/assets/css/style.css).
   Colours and spacing from peika.pl (--green, --border etc. variables from style.css).
   ========================================================================= */

/* ---------- WordPress page layout ---------- */
.wp-site-blocks > * {
	margin-block-start: 0;
}
.wp-site-blocks {
	padding: 0;
}
.peika-content {
	display: flow-root;
}
/* WooCommerce templates (product list, product page, cart, checkout, order received): <main> with
   the constrained layout and no side gutter, so on a phone text and photos touched the screen edge.
   The same box as the peika.pl .container: 16px gutter, content aligned with the header logo. The
   gutter also takes in the -8px side margins of the product grid in the empty cart (no sideways scroll).
   Not a direct child selector: on the product page WooCommerce wraps <main> in div.product. */
.wp-site-blocks main.is-layout-constrained {
	box-sizing: border-box;
	width: 100%;
	max-width: 1202px;
	margin-inline: auto;
	padding-inline: 16px;
}
.page-header .wp-block-post-title {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 4.5vw, 48px);
}
.page-header--shop {
	background-image: url(/assets/img/gallery/promar-zlotki.webp);
}
.main-card__inner > .wp-block-post-content > *:first-child {
	margin-top: 0;
}
.main-card__inner > .wp-block-post-content > *:last-child {
	margin-bottom: 0;
}
.main-card__inner h2 {
	margin-top: 0;
}
/* Text pages with headings straight in the content (the shop terms): the peika.pl text rhythm
   (style.css: .text, p, h2, h3, lists) instead of the WordPress block gap, which puts the gap above
   an element and so, with the h2 rule above, glues a heading to the text before it. */
.main-card__inner > .wp-block-post-content:has(> h2) {
	max-width: 800px;
}
.main-card__inner > .wp-block-post-content:has(> h2) > * {
	margin-block: 0 16px;
}
.main-card__inner > .wp-block-post-content:has(> h2) > h3 {
	margin-bottom: 8px;
}
.main-card__inner > .wp-block-post-content:has(> h2) > :is(ul, ol) {
	margin-block: 1em;
}
.main-card__inner > .wp-block-post-content:has(> h2) > :last-child {
	margin-bottom: 0;
}
.main-card .buttons {
	margin-top: 8px;
}

/* peika.pl buttons must win over WordPress global link styles. */
a.btn {
	text-decoration: none;
}
a.btn--green,
a.btn--green:hover {
	color: var(--on-green);
}
a.btn--outline,
a.btn--outline:hover {
	color: var(--green-text);
}

/* ---------- WooCommerce forms like the peika.pl contact form ---------- */
.woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
}
.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}
.woocommerce form .form-row .required {
	color: #a12a2a;
	text-decoration: none;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfd6c9;
	border-radius: 4px;
	background: #fff;
	color: var(--text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--green);
	outline: 2px solid rgba(104, 202, 26, 0.35);
	outline-offset: 0;
}
.woocommerce form .password-input {
	display: flex;
	width: 100%;
}
.woocommerce form .show-password-input {
	top: 50%;
	transform: translateY(-50%);
}
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	max-width: 460px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
.woocommerce form .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 16px;
	font-size: 15px;
	font-weight: 400;
}
.woocommerce form .woocommerce-form-login__rememberme input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--green-text);
}
.woocommerce-LostPassword {
	margin: 12px 0 0;
	font-size: 15px;
}

/* ALTCHA "Nie jestem robotem" in the registration and lost password forms (peika-shop, altcha.php). */
.peika-altcha {
	margin: 4px 0 16px;
}
.peika-altcha altcha-widget {
	--altcha-max-width: 100%;
	--altcha-border-color: #cfd6c9;
	--altcha-border-radius: 4px;
	--altcha-color-base: #fff;
	--altcha-color-base-content: var(--text);
	--altcha-color-primary: var(--green-text);
	--altcha-color-success: var(--green-text);
	--altcha-checkbox-border-color: #9aa595;
	--altcha-checkbox-outline-color: var(--green-text);
	color-scheme: light;
}
.peika-altcha altcha-widget label {
	margin: 0;
	font-weight: 400;
}

/* ---------- WooCommerce and Newsletter (/sklep/newsletter/) buttons like .btn--green ---------- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce .woocommerce-Button,
.woocommerce .wp-element-button,
.main-card form .tnp-submit,
.main-card .tnp-button-form button.tnp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 26px;
	border: 2px solid var(--green);
	border-radius: 30px;
	background: var(--green);
	color: var(--on-green);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce .wp-element-button:hover,
.main-card form .tnp-submit:hover {
	border-color: var(--green);
	background: var(--green);
	color: var(--on-green);
	opacity: 0.88;
}

/* ---------- Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid var(--green);
	border-radius: 4px;
	background: var(--green-bg);
	color: var(--text-dark);
	font-size: 16px;
	list-style: none;
}
.woocommerce-error {
	border-left-color: #b42318;
	background: #fbebeb;
	color: #7a1f1f;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}
.woocommerce-error li {
	margin: 0;
}
/* WooCommerce 11 notices (wc-block-components-notice-banner): success, info, error. */
.wc-block-components-notice-banner {
	gap: 10px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 0;
	border-left: 4px solid var(--green);
	border-radius: 4px;
	background: var(--green-bg);
	color: var(--text-dark);
	font-size: 16px;
}
.wc-block-components-notice-banner.is-success {
	border-left-color: var(--green);
	background: var(--green-bg);
}
.wc-block-components-notice-banner > svg,
.wc-block-components-notice-banner.is-success > svg {
	background-color: var(--green-icon);
}
/* WooCommerce focuses the notice for screen readers; the outline is not needed here. */
.wc-block-components-notice-banner:focus,
.wc-block-components-notice-banner:focus-visible {
	outline: none;
}
.wc-block-components-notice-banner.is-error {
	border-left-color: #b42318;
	background: #fbebeb;
	color: #7a1f1f;
}
.wc-block-components-notice-banner.is-error > svg {
	background-color: #b42318;
}
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
	border-left-color: var(--sand);
	background: var(--sand-bg);
	color: #3e3518;
}
.wc-block-components-notice-banner.is-info > svg,
.wc-block-components-notice-banner.is-warning > svg {
	background-color: #8a6d1c;
}

/* ---------- My account (customer zone) ---------- */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	gap: 32px 48px;
	align-items: start;
}
/* WooCommerce clearfix pseudo-elements would become grid items. */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	display: none;
}
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woocommerce > * {
	grid-column: 1 / -1;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	list-style: none;
	overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--border-light);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
	border-bottom: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 12px 16px;
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--bg);
	color: var(--green-text);
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	box-shadow: inset 4px 0 0 var(--green);
	background: var(--green-bg);
	color: var(--green-text);
	text-decoration: none;
}
.woocommerce form fieldset {
	margin: 8px 0 18px;
	padding: 16px 20px 4px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.woocommerce form fieldset legend {
	padding: 0 6px;
	color: var(--text-dark);
	font-size: 15px;
	font-weight: 700;
}
.woocommerce form .form-row em,
.woocommerce form .form-row span em {
	display: block;
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 14px;
	font-style: normal;
	line-height: 1.45;
}
.woocommerce-EditAccountForm {
	max-width: 560px;
}
.woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	margin-top: 0;
}

@media (max-width: 767px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* ---------- Tables (orders) ---------- */
.woocommerce table.shop_table {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	border-collapse: separate;
	font-size: 15px;
}
.woocommerce table.shop_table th {
	background: var(--bg);
	font-weight: 700;
}

/* ---------- Order received (templates/order-confirmation.html) ----------
   The page layout of the customer zone: status ("Zamówienie otrzymane", thanks) in the page header
   band, the rest in the white card: summary, bank transfer details, order details, addresses.
   The WooCommerce block margins (48px here, 24px there) replaced by one rhythm. */
.page-header .wc-block-order-confirmation-status {
	display: grid;
	justify-items: center;
	gap: 14px;
	margin: 0;
}
.page-header .wc-block-order-confirmation-status a {
	color: #fff;
}
.peika-order-received {
	--wc-separator-color: var(--border);
}
.peika-order-received .main-card__inner > * {
	margin-block: 0;
}
.peika-order-received .main-card__inner > * + * {
	margin-top: 40px;
}
.peika-order-received .main-card__inner h2 {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.6vw, 30px);
}
/* Summary: one box, label above the value. */
.peika-order-received .wc-block-order-confirmation-summary ul {
	gap: 0;
	justify-content: flex-start;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}
.peika-order-received .wc-block-order-confirmation-summary ul li {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 20px;
	border-left: 1px solid var(--border);
}
.peika-order-received .wc-block-order-confirmation-summary ul li:first-child {
	border-left: 0;
}
.peika-order-received .wc-block-order-confirmation-summary li > .wc-block-order-confirmation-summary-list-item__key {
	display: block;
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 400;
}
.peika-order-received .wc-block-order-confirmation-summary li > .wc-block-order-confirmation-summary-list-item__value {
	display: block;
	margin-top: 2px;
	color: var(--text-dark);
	font-weight: 700;
	overflow-wrap: anywhere;
}
/* Order details: totals bigger. */
.peika-order-received .wc-block-order-confirmation-totals {
	margin-top: 0;
}
.peika-order-received .wc-block-order-confirmation-totals table {
	border-radius: var(--radius);
	background: #fff;
	font-size: 16px;
}
.peika-order-received .wc-block-order-confirmation-totals table thead th {
	background: var(--bg);
}
.peika-order-received .wc-block-order-confirmation-totals table tfoot tr:last-child :is(th, td) {
	color: var(--text-dark);
	font-size: 18px;
	font-weight: 700;
}
.peika-order-received .wc-block-order-confirmation-totals table tfoot .includes_tax {
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 400;
}
.peika-order-received .wc-block-order-confirmation-address-wrapper {
	gap: 24px 32px;
}
.peika-order-received :is(.wc-block-order-confirmation-shipping-address, .wc-block-order-confirmation-billing-address) {
	border-radius: var(--radius);
}

/* Bank transfer details: on the order received page and in the customer zone (unpaid order, peika-shop
   orders.php). A card: heading first, the instructions, then label/value rows; the account name line is
   hidden, the same name opens the "Odbiorca" row. */
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) {
	display: flex;
	flex-direction: column;
	margin-bottom: 32px;
	padding: 20px 24px;
	border: 1px solid var(--border);
	border-left: 4px solid var(--green);
	border-radius: var(--radius);
	background: var(--green-bg);
}
.peika-order-received .main-card__inner > .wc-block-order-confirmation-additional-information {
	margin-bottom: 0;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) > p {
	margin: 0 0 12px;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) .woocommerce-bacs-bank-details {
	display: contents;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) .wc-bacs-bank-details-heading {
	order: -1;
	margin: 0 0 8px;
	font-size: clamp(22px, 2.4vw, 26px);
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) .wc-bacs-bank-details-account-name {
	display: none;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) ul.wc-bacs-bank-details {
	margin: 0;
	padding: 0;
	list-style: none;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) ul.wc-bacs-bank-details li {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 2px 16px;
	float: none;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-top: 1px solid rgba(31, 61, 16, 0.12);
	color: var(--text-muted);
	font-size: 16px;
	line-height: 1.5;
	text-transform: none;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) ul.wc-bacs-bank-details li strong {
	display: block;
	color: var(--text-dark);
	font-size: inherit;
	line-height: inherit;
	overflow-wrap: anywhere;
}
:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) ul.wc-bacs-bank-details li:is(.account_number, .peika_amount) strong {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

@media (max-width: 767px) {
	.peika-order-received .wc-block-order-confirmation-summary ul {
		flex-direction: column;
	}
	.peika-order-received .wc-block-order-confirmation-summary ul li {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		padding: 10px 16px;
		border-top: 1px solid var(--border);
		border-left: 0;
	}
	.peika-order-received .wc-block-order-confirmation-summary ul li:first-child {
		border-top: 0;
	}
	.peika-order-received .wc-block-order-confirmation-summary li > .wc-block-order-confirmation-summary-list-item__key {
		flex: none;
		white-space: nowrap;
	}
	.peika-order-received .wc-block-order-confirmation-summary li > .wc-block-order-confirmation-summary-list-item__value {
		margin-top: 0;
		text-align: right;
	}
	:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) {
		padding: 16px;
	}
	:is(.peika-order-received .wc-block-order-confirmation-additional-information, .peika-order-payment) ul.wc-bacs-bank-details li {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Customer zone: downloadable files (peika-shop plugin) ---------- */
.peika-welcome {
	margin: 0 0 8px;
}
.peika-welcome a {
	margin-left: 6px;
}
.woocommerce-MyAccount-content h2 {
	font-size: clamp(24px, 2.6vw, 30px);
}
.peika-files {
	display: grid;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.peika-file {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}
.peika-file__icon {
	display: flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	height: 52px;
	border-radius: var(--radius);
	background: var(--green-bg);
	color: var(--green-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.peika-file__icon--pdf {
	background: var(--sand-bg);
	color: #6b5413;
}
.peika-file__icon--page {
	background: var(--green-dark);
	color: #fff;
}
.peika-file__description {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 15px;
	line-height: 1.45;
}
.peika-file__title {
	color: var(--text-dark);
	font-size: 17px;
}
.peika-file__meta {
	color: var(--text-muted);
	font-size: 14px;
}
.woocommerce .peika-file__download {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 0 22px;
	font-size: 13px;
}
.peika-no-access p {
	margin: 0 0 6px;
}
.peika-no-access p:last-child {
	margin-bottom: 0;
}
.peika-contact {
	margin-top: 24px;
}
@media (max-width: 560px) {
	.peika-file {
		flex-wrap: wrap;
	}
	.peika-file__description {
		flex-basis: calc(100% - 68px);
	}
	.woocommerce .peika-file__download {
		width: 100%;
	}
}

/* ---------- Customer zone: login ---------- */
.peika-login-intro {
	max-width: 760px;
	margin-bottom: 8px;
}
.peika-login-intro p:first-child {
	font-size: 18px;
}
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.woocommerce form.login .form-row > input[type="hidden"],
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit)::before,
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit)::after {
	display: none;
}
.woocommerce form.login .form-row .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	order: 2;
	margin: 0;
}
.woocommerce form.login .woocommerce-form-login__submit {
	order: 1;
	margin: 0;
}

/* ---------- Customer zone: installation notes and changelog (peika-shop plugin) ---------- */
.peika-notes {
	margin: 0 0 20px;
	padding: 16px 20px;
	border: 1px solid var(--sand-border);
	border-left: 4px solid var(--sand);
	border-radius: var(--radius);
	background: var(--sand-bg);
	color: #3e3518;
	font-size: 15px;
	line-height: 1.5;
}
.peika-notes .peika-notes__title {
	margin: 0 0 6px;
	color: #2b2410;
}
.peika-notes ul {
	margin: 0;
	padding-left: 20px;
}
.peika-notes li + li {
	margin-top: 6px;
}
.peika-notes > :last-child {
	margin-bottom: 0;
}
/* Bold text in the notes = important: shown in red (the owner marks it with the B button in the editor). */
.peika-notes li strong,
.peika-notes p:not(.peika-notes__title) strong {
	color: #b42318;
}
.peika-changelog {
	max-width: 760px;
	font-size: 16px;
	line-height: 1.55;
}
.peika-changelog h3 {
	margin: 32px 0 8px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-family: var(--font-headings);
	font-size: 22px;
}
.peika-changelog h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.peika-changelog h4 {
	margin: 14px 0 6px;
	color: var(--text-grey);
	font-size: 15px;
}
.peika-changelog ul {
	margin: 0 0 10px;
	padding-left: 20px;
}
.peika-changelog li {
	margin-bottom: 6px;
}
.peika-changelog p {
	margin: 10px 0 4px;
}
.peika-changelog p strong {
	color: var(--green-text);
}
.peika-changelog li strong {
	color: #7a1f1f;
}

/* ---------- Catalog until sales start: prices and how to order (peika-shop, catalog.php) ---------- */
.peika-order-box {
	margin: 8px 0 24px;
	padding: 20px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--green-bg);
}
.peika-order-box__prices {
	width: 100%;
	margin: 0 0 14px;
	border-collapse: collapse;
}
.peika-order-box__prices caption {
	margin-bottom: 6px;
	color: var(--text-muted);
	font-size: 14px;
	text-align: left;
}
.peika-order-box__prices th,
.peika-order-box__prices td {
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: 17px;
	text-align: left;
}
.peika-order-box__prices th {
	font-weight: 400;
}
.peika-order-box__prices td {
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}
.peika-order-box__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 14px 0 0;
}

/* ---------- Product list: photos in boxes of the same height, the whole photo visible ---------- */
.wc-block-product .wc-block-components-product-image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
}
.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain !important; /* the block sets object-fit: cover inline */
}
/* Phone: two columns about 160px wide; with the 26px button padding "Wybierz opcje" broke into two lines. */
@media (max-width: 600px) {
	.wc-block-product .wp-block-button__link {
		padding-inline: 12px;
		text-wrap: balance;
	}
}

/* Product page, enlarged photo (PhotoSwipe): the photos have a transparent background with dark products
   and dark lettering, invisible on the black background of the viewer. */
.pswp__img {
	background-color: #fff;
}

/* Product page: SKU and category under the price say nothing to customers. */
.wp-block-woocommerce-product-meta {
	display: none;
}

/* ---------- Product list: category navigation (functions.php) ---------- */
.peika-categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.peika-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border: 2px solid var(--green);
	border-radius: 30px;
	color: var(--green-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}
.peika-categories a:hover,
.peika-categories a[aria-current="page"] {
	background: var(--green);
	color: var(--on-green);
}
/* Subcategories: a second, smaller row. */
.peika-categories--sub ul {
	margin-top: -8px;
}
.peika-categories--sub a {
	min-height: 34px;
	padding: 0 14px;
	border-width: 1px;
	font-size: 13px;
}

/* ---------- Product page: controller serial number for functions (peika-shop, serial-number.php) ---------- */
.peika-serial {
	flex-basis: 100%;
	margin: 0 0 16px;
}
.peika-serial label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}
.peika-serial__optional {
	color: var(--text-muted);
	font-weight: 400;
}
.peika-serial input {
	width: 100%;
	max-width: 360px;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	font: inherit;
}
.peika-serial__hint {
	margin: 6px 0 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Registration: trap field for bots (peika-shop, accounts.php), hidden from people. */
.peika-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Header: WooCommerce mini cart (functions.php) ---------- */
.header__inner .menu {
	margin-left: auto;
}
.header__cart {
	display: flex;
	align-items: center;
}
.header__cart .wc-block-mini-cart__button {
	padding: 8px;
}
.header__cart .wc-block-mini-cart__icon {
	width: 28px;
	height: 28px;
}
@media (max-width: 1100px) {
	/* Logo | cart | Menu; the open menu below, full width. */
	.header__cart {
		order: 1;
		margin-left: auto;
	}
	.header__inner .menu-toggle {
		order: 2;
	}
	.header__inner .menu {
		order: 3;
		margin-left: 0;
	}
}

/* ---------- Customer zone: manual page (peika-shop, content.php) ---------- */
.peika-manual {
	-webkit-user-select: none;
	user-select: none;
	background-repeat: repeat;
}
.peika-manual img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}
.peika-manual h2 {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	scroll-margin-top: 16px;
}
.peika-manual h3 {
	margin-top: 24px;
}
.peika-manual__toc {
	margin: 0 0 8px;
	padding: 18px 22px;
	border-radius: var(--radius);
	background: var(--green-bg);
}
.peika-manual__toc ol {
	margin: 8px 0 0;
	padding-left: 22px;
	columns: 2;
	column-gap: 32px;
}
.peika-manual__toc li {
	break-inside: avoid;
	margin-bottom: 4px;
}
.peika-manual figure {
	margin: 20px 0;
	text-align: center;
}
.peika-manual figure img {
	max-height: 360px;
	width: auto;
}
.peika-manual figcaption {
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 14px;
}
.peika-manual table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	font-size: 15px;
}
.peika-manual th,
.peika-manual td {
	padding: 8px 10px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.peika-manual th {
	background: var(--bg);
}
.peika-manual blockquote {
	margin: 16px 0;
	padding: 14px 18px;
	border-left: 4px solid #c0392b;
	border-radius: var(--radius);
	background: #fbeeee;
}
.peika-manual blockquote p {
	margin: 0;
}

/* Manual from the manual repository (Asciidoctor HTML, peika-shop manual.php): standard Asciidoctor classes. */
.peika-manual #toc {
	margin: 0 0 8px;
	padding: 18px 22px;
	border-radius: var(--radius);
	background: var(--green-bg);
}
.peika-manual #toctitle {
	margin-bottom: 8px;
	color: var(--text-dark);
	font-family: var(--font-headings);
	font-size: 19px;
	font-weight: 700;
}
.peika-manual #toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.peika-manual #toc ul ul {
	margin: 4px 0 8px;
	padding-left: 18px;
	columns: 2;
	column-gap: 32px;
}
.peika-manual #toc li {
	break-inside: avoid;
	margin-bottom: 4px;
}
.peika-manual h4 {
	margin: 24px 0 8px;
	font-size: 18px;
}
.peika-manual h5 {
	margin: 20px 0 6px;
	font-size: 16px;
}
.peika-manual h2,
.peika-manual h3,
.peika-manual h4,
.peika-manual h5 {
	scroll-margin-top: 16px;
}
.peika-manual .paragraph p,
.peika-manual .ulist,
.peika-manual .olist {
	margin: 0 0 12px;
}
.peika-manual table.tableblock {
	font-size: 15px;
}
.peika-manual table.tableblock caption {
	padding-bottom: 6px;
	caption-side: top;
	color: var(--text-dark);
	font-weight: 700;
	text-align: left;
}
.peika-manual td.tableblock p.tableblock,
.peika-manual th.tableblock p.tableblock {
	margin: 0 0 6px;
}
.peika-manual td.tableblock p.tableblock:last-child {
	margin-bottom: 0;
}
.peika-manual th.halign-center,
.peika-manual td.halign-center {
	text-align: center;
}
.peika-manual th.valign-middle,
.peika-manual td.valign-middle {
	vertical-align: middle;
}
.peika-manual span.image img {
	border-radius: 0;
	vertical-align: middle;
}
.peika-manual .imageblock {
	margin: 20px 0;
}
.peika-manual .imageblock.text-center {
	text-align: center;
}
.peika-manual .imageblock .title {
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 14px;
}
.peika-manual .admonitionblock > table {
	display: table;
	margin: 16px 0;
	border: 0;
	border-left: 4px solid var(--green);
	border-collapse: separate;
	border-radius: var(--radius);
	background: var(--green-bg);
}
.peika-manual .admonitionblock td {
	padding: 12px 14px;
	border: 0;
}
.peika-manual .admonitionblock td.icon {
	width: 1%;
	padding-right: 0;
	white-space: nowrap;
}
.peika-manual .admonitionblock td.icon .title {
	color: var(--text-dark);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
}
.peika-manual .admonitionblock.important > table {
	border-left-color: #c08a00;
	background: var(--sand-bg);
}
.peika-manual .admonitionblock.warning > table,
.peika-manual .admonitionblock.caution > table {
	border-left-color: #c0392b;
	background: #fbeeee;
}
.peika-manual .admonitionblock.warning td.icon .title,
.peika-manual .admonitionblock.caution td.icon .title {
	color: #a12d22;
}
.peika-manual .menuseq b {
	font-weight: 600;
}
.peika-manual .menuseq .caret {
	color: var(--text-muted);
}
.peika-manual .dlist dt,
.peika-manual .hdlist1 {
	color: var(--text-dark);
	font-weight: 700;
}
.peika-manual .dlist dd {
	margin: 0 0 12px;
}
.peika-manual code {
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--bg);
	font-size: 0.92em;
}
.peika-manual__mock {
	margin: 0 0 20px;
	padding: 10px 14px;
	border: 1px dashed #c08a00;
	border-radius: var(--radius);
	background: var(--sand-bg);
	font-size: 14px;
}
@media (max-width: 640px) {
	.peika-manual__toc ol {
		columns: 1;
	}
	.peika-manual table {
		display: block;
		overflow-x: auto;
	}
	.peika-manual #toc ul ul {
		columns: 1;
	}
	.peika-manual .admonitionblock > table,
	.peika-manual .admonitionblock tbody,
	.peika-manual .admonitionblock tr,
	.peika-manual .admonitionblock td {
		display: block;
	}
	.peika-manual .admonitionblock td.icon {
		width: auto;
		padding-bottom: 0;
	}
}
.peika-manual__print-note {
	display: none;
}
@media print {
	.peika-manual {
		display: none !important;
	}
	.peika-manual__print-note {
		display: block !important;
	}
}
