/*
 * JustPlugIt webshopschil.
 *
 * Geeft shop, categorie, product, winkelmand, afrekenen en account de
 * uitstraling van de nieuwe JustPlugIt-site. Alleen geladen op die routes
 * (CommerceShell::enqueueAssets) en volledig gescopet op `body.jp-commerce`:
 * geen enkele regel raakt een andere WordPress-pagina.
 *
 * Tokens: gelijk aan `frontend/src/styles/tokens.css`. Er komt geen nieuwe
 * huisstijl bij. Alleen CSS op de bestaande WooCommerce-markup; geen
 * functionele wijziging.
 */

body.jp-commerce {
	--jp-white: #fff;
	--jp-graphite: #45494d;
	--jp-gold: #b6a463;
	--jp-gold-deep: #90865c;
	--jp-warm: #6b6754;
	--jp-warm-050: #f6f4ee;
	--jp-warm-100: #eaeae7;
	--jp-warm-200: #d3d1cc;
	--jp-warm-400: #908d7f;
	--jp-gold-100: #f2efe3;
	--jp-danger: #8c3a2f;
	--jp-success: #3f6b4a;
	--jp-text: var(--jp-graphite);
	--jp-muted: var(--jp-warm);
	--jp-border: var(--jp-warm-200);
	--jp-border-strong: var(--jp-warm-400);
	--jp-surface: var(--jp-warm-050);
	--jp-radius-sm: 6px;
	--jp-radius-md: 10px;
	--jp-radius-lg: 16px;
	--jp-space-1: 4px;
	--jp-space-2: 8px;
	--jp-space-3: 12px;
	--jp-space-4: 16px;
	--jp-space-5: 24px;
	--jp-space-6: 32px;
	--jp-space-7: 48px;
	--jp-space-8: 64px;
	--jp-text-xs: 0.75rem;
	--jp-text-sm: 0.875rem;
	--jp-text-md: 1.125rem;
	--jp-text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem);
	--jp-text-xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.75rem);
	--jp-text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
	--jp-container: 75rem;
	--jp-gutter: 24px;
	--jp-focus: 2px solid var(--jp-graphite);

	margin: 0;
	background: #fff;
	color: var(--jp-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.jp-commerce *,
body.jp-commerce *::before,
body.jp-commerce *::after {
	box-sizing: border-box;
}

body.jp-commerce a {
	color: var(--jp-text);
	text-decoration-color: var(--jp-gold-deep);
	text-underline-offset: 0.2em;
}

body.jp-commerce a:hover {
	color: var(--jp-text);
}

body.jp-commerce :focus-visible {
	outline: var(--jp-focus);
	outline-offset: 2px;
}

body.jp-commerce h1,
body.jp-commerce h2,
body.jp-commerce h3 {
	margin: 0 0 var(--jp-space-4);
	color: var(--jp-text);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

body.jp-commerce img {
	max-width: 100%;
	height: auto;
}

.jp-commerce-container {
	width: 100%;
	max-width: calc(var(--jp-container) + 2 * var(--jp-gutter));
	margin-inline: auto;
	padding-inline: var(--jp-gutter);
}

.jp-commerce-skip {
	position: absolute;
	top: -100px;
	left: var(--jp-space-4);
	z-index: 100;
	padding: var(--jp-space-2) var(--jp-space-4);
	background: #fff;
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
}

.jp-commerce-skip:focus {
	top: var(--jp-space-2);
}

.jp-commerce-main {
	padding-block: var(--jp-space-6) var(--jp-space-8);
}

.jp-commerce-main:focus {
	outline: none;
}

/* --- Knoppen: de knopfamilie van de nieuwe site --------------------------- */
body.jp-commerce .jp-commerce-button,
body.jp-commerce .woocommerce a.button,
body.jp-commerce .woocommerce button.button,
body.jp-commerce .woocommerce input.button,
body.jp-commerce .woocommerce #respond input#submit,
body.jp-commerce .woocommerce-page a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--jp-space-2);
	min-height: 44px;
	padding: var(--jp-space-3) var(--jp-space-5);
	background: #fff;
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
	box-shadow: none;
	color: var(--jp-text);
	font: inherit;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

body.jp-commerce .woocommerce a.button:hover,
body.jp-commerce .woocommerce button.button:hover,
body.jp-commerce .woocommerce input.button:hover {
	background: var(--jp-surface);
	border-color: var(--jp-text);
	color: var(--jp-text);
}

/* Primair: antraciet met de gouden onderrand. */
body.jp-commerce .jp-commerce-button,
body.jp-commerce .woocommerce a.button.alt,
body.jp-commerce .woocommerce button.button.alt,
body.jp-commerce .woocommerce input.button.alt,
body.jp-commerce .woocommerce button.single_add_to_cart_button,
body.jp-commerce .woocommerce a.checkout-button,
body.jp-commerce .woocommerce #payment #place_order,
body.jp-commerce .woocommerce .return-to-shop a.button {
	background: var(--jp-graphite);
	border-color: var(--jp-graphite);
	box-shadow: inset 0 -3px 0 0 var(--jp-gold);
	color: #fff;
}

body.jp-commerce .jp-commerce-button:hover,
body.jp-commerce .woocommerce a.button.alt:hover,
body.jp-commerce .woocommerce button.button.alt:hover,
body.jp-commerce .woocommerce button.single_add_to_cart_button:hover,
body.jp-commerce .woocommerce a.checkout-button:hover,
body.jp-commerce .woocommerce #payment #place_order:hover,
body.jp-commerce .woocommerce .return-to-shop a.button:hover {
	background: var(--jp-warm);
	border-color: var(--jp-warm);
	color: #fff;
}

body.jp-commerce .woocommerce button.button:disabled,
body.jp-commerce .woocommerce button.button:disabled[disabled],
body.jp-commerce .woocommerce button.button.disabled {
	padding: var(--jp-space-3) var(--jp-space-5);
	opacity: 0.55;
	cursor: not-allowed;
}

/* --- Previewbalk (alleen beheerders) --------------------------------------- */
.jp-commerce-preview {
	background: var(--jp-gold-100);
	border-bottom: 1px solid var(--jp-gold);
	font-size: var(--jp-text-sm);
}

.jp-commerce-preview__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--jp-space-2) var(--jp-space-4);
	padding-block: var(--jp-space-2);
}

body.jp-commerce .jp-commerce-preview a {
	font-weight: 500;
}

/* WooCommerce-omhulsels (#primary, #main) zonder eigen opmaak. */
body.jp-commerce #primary.content-area,
body.jp-commerce #main.site-main {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* --- Header ---------------------------------------------------------------- */
.jp-commerce-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--jp-border);
}

.jp-commerce-header__bar {
	display: flex;
	align-items: center;
	gap: var(--jp-space-4);
	min-height: 72px;
	padding-block: var(--jp-space-3);
}

.jp-commerce-header__logo {
	display: inline-flex;
	margin-right: auto;
}

body.jp-commerce .jp-commerce-header__logo img {
	width: auto;
	height: 32px;
}

.jp-commerce-nav {
	display: none;
}

.jp-commerce-nav ul,
.jp-commerce-menu__panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-commerce-nav ul {
	display: flex;
	gap: var(--jp-space-6);
}

body.jp-commerce .jp-commerce-nav a {
	display: inline-block;
	padding-block: var(--jp-space-2);
	border-bottom: 2px solid transparent;
	color: var(--jp-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

body.jp-commerce .jp-commerce-nav a:hover,
body.jp-commerce .jp-commerce-nav a.is-active {
	border-bottom-color: var(--jp-gold);
}

.jp-commerce-header__actions {
	display: flex;
	align-items: center;
	gap: var(--jp-space-3);
}

body.jp-commerce .jp-commerce-cart {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-sm);
	color: var(--jp-text);
}

.jp-commerce-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	background: var(--jp-gold);
	border-radius: 999px;
	color: var(--jp-graphite);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
}

body.jp-commerce .jp-commerce-header__cta {
	display: none;
}

.jp-commerce-menu {
	position: static;
}

.jp-commerce-menu summary {
	display: inline-flex;
	align-items: center;
	gap: var(--jp-space-2);
	min-height: 44px;
	padding: 0 var(--jp-space-3);
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
	font-size: 0.9375rem;
	cursor: pointer;
	list-style: none;
}

.jp-commerce-menu summary::-webkit-details-marker {
	display: none;
}

.jp-commerce-menu__panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	padding: var(--jp-space-4) var(--jp-gutter) var(--jp-space-5);
	background: #fff;
	border-bottom: 1px solid var(--jp-border);
	box-shadow: 0 8px 16px rgb(69 73 77 / 8%);
}

.jp-commerce-menu__panel ul {
	display: grid;
	gap: var(--jp-space-1);
}

body.jp-commerce .jp-commerce-menu__panel a:not(.jp-commerce-button) {
	display: block;
	padding: var(--jp-space-3) 0;
	border-bottom: 1px solid var(--jp-warm-100);
	font-size: var(--jp-text-md);
	text-decoration: none;
}

body.jp-commerce .jp-commerce-menu__panel a.is-active {
	font-weight: 600;
}

.jp-commerce-menu__panel .jp-commerce-button {
	width: 100%;
	margin-top: var(--jp-space-4);
}

@media (min-width: 600px) {
	body.jp-commerce .jp-commerce-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 1024px) {
	.jp-commerce-header__logo {
		margin-right: var(--jp-space-6);
	}

	body.jp-commerce .jp-commerce-header__logo img {
		height: 36px;
	}

	.jp-commerce-nav {
		display: block;
		margin-inline: auto;
	}

	.jp-commerce-menu {
		display: none;
	}
}

/* Vijf hoofditems (sinds Kennis & Nieuws): tussen 1024 en 1280px compacter. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.jp-commerce-header__logo {
		margin-right: var(--jp-space-4);
	}

	.jp-commerce-nav ul {
		gap: var(--jp-space-4);
	}
}

/* --- Footer ---------------------------------------------------------------- */
.jp-commerce-footer {
	padding-block: var(--jp-space-8) var(--jp-space-6);
	background: var(--jp-surface);
	border-top: 1px solid var(--jp-border);
	font-size: var(--jp-text-sm);
}

.jp-commerce-footer__grid {
	display: grid;
	gap: var(--jp-space-7);
}

body.jp-commerce .jp-commerce-footer__brand img {
	width: auto;
	height: 32px;
}

.jp-commerce-footer__trade-name {
	max-width: 28ch;
	margin: var(--jp-space-4) 0 0;
	color: var(--jp-muted);
}

.jp-commerce-footer address {
	margin-top: var(--jp-space-3);
	color: var(--jp-muted);
	font-style: normal;
}

.jp-commerce-footer ul {
	display: grid;
	gap: var(--jp-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-commerce-footer__contact {
	margin-top: var(--jp-space-3) !important;
}

body.jp-commerce .jp-commerce-footer__column h2 {
	margin-bottom: var(--jp-space-3);
	color: var(--jp-muted);
	font-size: var(--jp-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.jp-commerce .jp-commerce-footer a {
	color: var(--jp-text);
	text-decoration: none;
}

body.jp-commerce .jp-commerce-footer a:hover {
	text-decoration: underline;
}

.jp-commerce-footer__baseline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jp-space-2) var(--jp-space-5);
	margin-top: var(--jp-space-7);
	padding-top: var(--jp-space-5);
	border-top: 1px solid var(--jp-border);
	color: var(--jp-muted);
}

.jp-commerce-footer__baseline p {
	margin: 0;
}

@media (min-width: 700px) {
	.jp-commerce-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.jp-commerce-footer__grid {
		grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	}
}

/* --- Kop, kruimelpad, meldingen --------------------------------------------- */
body.jp-commerce .woocommerce-breadcrumb {
	margin: 0 0 var(--jp-space-5);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce-breadcrumb a {
	color: var(--jp-muted);
	text-decoration: none;
}

body.jp-commerce .woocommerce-breadcrumb a:hover {
	color: var(--jp-text);
	text-decoration: underline;
}

body.jp-commerce .woocommerce-products-header__title,
body.jp-commerce .jp-commerce-title {
	margin: 0 0 var(--jp-space-6);
	font-size: var(--jp-text-2xl);
}

body.jp-commerce .jp-commerce-title::before,
body.jp-commerce .woocommerce-products-header__title::before {
	content: "";
	display: block;
	width: 2rem;
	height: 2px;
	margin-bottom: var(--jp-space-4);
	background: var(--jp-gold);
}

/* Shopstartpagina: de intro vervangt de kruimel "Home / <shoppagina>" (JSON-LD blijft). */
body.jp-commerce.jp-commerce--shop:not(.search) .woocommerce-breadcrumb {
	display: none;
}

/* Compacte shopintro: eyebrow, titel, één zin, adviesknop. */
body.jp-commerce .jp-commerce-intro {
	max-width: 44rem;
	margin: 0 0 var(--jp-space-6);
}

body.jp-commerce .jp-commerce-intro__eyebrow {
	margin: 0 0 var(--jp-space-2);
	color: var(--jp-gold-deep);
	font-size: var(--jp-text-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.jp-commerce .jp-commerce-intro__title {
	margin: 0 0 var(--jp-space-3);
	color: var(--jp-text);
	font-size: var(--jp-text-2xl);
	line-height: 1.2;
}

body.jp-commerce .jp-commerce-intro__text {
	margin: 0 0 var(--jp-space-2);
	color: var(--jp-muted);
}

body.jp-commerce .jp-commerce-intro__advice {
	margin: 0;
	font-size: var(--jp-text-sm);
}

body.jp-commerce .jp-commerce-intro__advice a {
	color: var(--jp-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--jp-gold);
	text-underline-offset: 3px;
}

@media (max-width: 599px) {
	body.jp-commerce .jp-commerce-intro {
		margin-bottom: var(--jp-space-5);
	}
}

body.jp-commerce .term-description,
body.jp-commerce .page-description {
	max-width: 68ch;
	margin-bottom: var(--jp-space-5);
	color: var(--jp-muted);
}

body.jp-commerce .woocommerce-message,
body.jp-commerce .woocommerce-info,
body.jp-commerce .woocommerce-error,
body.jp-commerce .woocommerce-notices-wrapper ul.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--jp-space-3);
	margin: 0 0 var(--jp-space-5);
	padding: var(--jp-space-4) var(--jp-space-5);
	background: var(--jp-surface);
	border: 1px solid var(--jp-border);
	border-left: 4px solid var(--jp-gold);
	border-radius: var(--jp-radius-md);
	color: var(--jp-text);
	font-size: 0.9375rem;
	list-style: none;
}

body.jp-commerce .woocommerce-message {
	border-left-color: var(--jp-success);
}

body.jp-commerce .woocommerce-error,
body.jp-commerce .woocommerce-notices-wrapper ul.woocommerce-error,
body.jp-commerce .woocommerce .woocommerce-error {
	display: block;
	background: #fbf3f1;
	border-color: #e8cbc5;
	border-left-color: var(--jp-danger);
}

body.jp-commerce .woocommerce-error li {
	margin: 0;
}

body.jp-commerce .woocommerce-error li + li {
	margin-top: var(--jp-space-2);
}

body.jp-commerce .woocommerce-message::before,
body.jp-commerce .woocommerce-info::before,
body.jp-commerce .woocommerce-error::before {
	content: none;
}

body.jp-commerce .woocommerce-message .button,
body.jp-commerce .woocommerce-info .button {
	order: 2;
	float: none;
	min-height: 40px;
	margin: 0;
}

body.jp-commerce .woocommerce-message a:not(.button),
body.jp-commerce .woocommerce-info a:not(.button),
body.jp-commerce .woocommerce-error a:not(.button) {
	font-weight: 500;
}

/* --- Shop: resultaat en sortering ---------------------------------------- */
body.jp-commerce .woocommerce-result-count {
	margin: 0 0 var(--jp-space-5);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	line-height: 44px;
}

body.jp-commerce .woocommerce-ordering {
	margin: 0 0 var(--jp-space-5);
}

body.jp-commerce .woocommerce-ordering select,
body.jp-commerce .woocommerce select,
body.jp-commerce .woocommerce .input-text,
body.jp-commerce .woocommerce input[type="text"],
body.jp-commerce .woocommerce input[type="email"],
body.jp-commerce .woocommerce input[type="tel"],
body.jp-commerce .woocommerce input[type="password"],
body.jp-commerce .woocommerce input[type="number"],
body.jp-commerce .woocommerce textarea {
	min-height: 44px;
	padding: var(--jp-space-2) var(--jp-space-3);
	background-color: #fff;
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
	color: var(--jp-text);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

body.jp-commerce .woocommerce textarea {
	min-height: 6rem;
}

body.jp-commerce .woocommerce-ordering select {
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce .input-text:focus,
body.jp-commerce .woocommerce select:focus,
body.jp-commerce .woocommerce textarea:focus {
	border-color: var(--jp-graphite);
	outline: var(--jp-focus);
	outline-offset: 1px;
}

/* --- Productkaarten -------------------------------------------------------- */
body.jp-commerce .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
	gap: var(--jp-space-5);
	margin: 0 0 var(--jp-space-6);
	padding: 0;
	list-style: none;
}

body.jp-commerce .woocommerce ul.products::before,
body.jp-commerce .woocommerce ul.products::after {
	content: none;
	display: none;
}

body.jp-commerce .woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: var(--jp-space-4) var(--jp-space-4) var(--jp-space-5);
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

body.jp-commerce .woocommerce ul.products li.product:hover {
	border-color: var(--jp-border-strong);
	box-shadow: 0 4px 12px rgb(69 73 77 / 8%);
}

body.jp-commerce .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--jp-text);
	text-decoration: none;
}

/* Vast beeldvlak: licht vlak, vaste hoogte, product gecentreerd en heel. */
.jp-commerce-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 13.5rem;
	margin: 0 0 var(--jp-space-4);
	padding: var(--jp-space-4);
	background: var(--jp-surface);
	border-radius: var(--jp-radius-md);
}

body.jp-commerce .woocommerce ul.products li.product .jp-commerce-card__media img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	box-shadow: none;
}

.jp-commerce-card__meta {
	display: block;
	margin-bottom: var(--jp-space-1);
	color: var(--jp-muted);
	font-size: var(--jp-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.jp-commerce .woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 var(--jp-space-2);
	padding: 0;
	color: var(--jp-text);
	font-size: var(--jp-text-md);
	font-weight: 600;
	line-height: 1.35;
}

.jp-commerce-card__short {
	margin: 0 0 var(--jp-space-3);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	line-height: 1.5;
}

body.jp-commerce .woocommerce ul.products li.product .price {
	display: block;
	margin: auto 0 var(--jp-space-4);
	padding-top: var(--jp-space-3);
	color: var(--jp-text);
	font-size: var(--jp-text-lg);
	font-weight: 600;
	line-height: 1.3;
}

body.jp-commerce .woocommerce ul.products li.product .jp-commerce-card__cta {
	width: 100%;
	margin: 0;
}

body.jp-commerce .jp-commerce-vat {
	color: var(--jp-muted);
	font-size: var(--jp-text-xs);
	font-weight: 400;
	white-space: nowrap;
}

body.jp-commerce .woocommerce .price del {
	color: var(--jp-muted);
	font-size: 0.85em;
	font-weight: 400;
	opacity: 1;
}

body.jp-commerce .woocommerce .price ins {
	text-decoration: none;
}

body.jp-commerce .woocommerce span.onsale {
	top: var(--jp-space-5);
	left: var(--jp-space-5);
	right: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: var(--jp-space-1) var(--jp-space-3);
	background: var(--jp-gold);
	border-radius: 999px;
	color: var(--jp-graphite);
	font-size: var(--jp-text-xs);
	font-weight: 600;
	line-height: 1.5;
}

body.jp-commerce .woocommerce nav.woocommerce-pagination ul {
	border: 0;
}

body.jp-commerce .woocommerce nav.woocommerce-pagination ul li {
	margin: 0 var(--jp-space-1);
	border: 0;
}

body.jp-commerce .woocommerce nav.woocommerce-pagination ul li a,
body.jp-commerce .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px;
	padding: var(--jp-space-3);
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-sm);
}

/* --- Productpagina ------------------------------------------------------- */
body.jp-commerce.jp-commerce--product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--jp-space-6);
	align-items: start;
}

body.jp-commerce.jp-commerce--product div.product > * {
	grid-column: 1 / -1;
}

body.jp-commerce.jp-commerce--product div.product .woocommerce-product-gallery,
body.jp-commerce.jp-commerce--product div.product .summary {
	float: none;
	width: auto;
	margin: 0;
}

body.jp-commerce div.product .woocommerce-product-gallery {
	position: relative;
	padding: var(--jp-space-5);
	background: var(--jp-surface);
	border-radius: var(--jp-radius-lg);
}

body.jp-commerce div.product .woocommerce-product-gallery__image img,
body.jp-commerce div.product .woocommerce-product-gallery__image a img {
	width: 100%;
	height: min(26rem, 70vw);
	object-fit: contain;
}

body.jp-commerce div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: var(--jp-space-2);
	margin: var(--jp-space-4) 0 0;
	padding: 0;
}

body.jp-commerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
}

body.jp-commerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	aspect-ratio: 1;
	padding: var(--jp-space-1);
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-sm);
	object-fit: contain;
	opacity: 0.75;
}

body.jp-commerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
body.jp-commerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
	border-color: var(--jp-graphite);
	opacity: 1;
}

body.jp-commerce div.product .woocommerce-product-gallery__trigger {
	top: var(--jp-space-4);
	right: var(--jp-space-4);
	background: #fff;
	border: 1px solid var(--jp-border);
}

body.jp-commerce div.product .summary {
	display: flex;
	flex-direction: column;
	gap: var(--jp-space-4);
}

body.jp-commerce div.product .summary > * {
	margin: 0;
}

body.jp-commerce div.product .product_title {
	font-size: var(--jp-text-2xl);
	line-height: 1.15;
}

body.jp-commerce div.product .woocommerce-product-details__short-description {
	color: var(--jp-muted);
}

body.jp-commerce div.product .woocommerce-product-details__short-description p {
	margin: 0;
}

body.jp-commerce div.product p.price,
body.jp-commerce div.product span.price {
	color: var(--jp-text);
	font-size: var(--jp-text-xl);
	font-weight: 600;
}

body.jp-commerce div.product .stock {
	margin: 0;
	color: var(--jp-success);
	font-size: var(--jp-text-sm);
	font-weight: 500;
}

body.jp-commerce div.product .stock.out-of-stock {
	color: var(--jp-danger);
}

/* Koopactie direct onder prijs en keuze: aantal + knop op één regel. */
body.jp-commerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--jp-space-3);
	margin: 0;
	padding: var(--jp-space-5);
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
}

body.jp-commerce div.product form.cart::before,
body.jp-commerce div.product form.cart::after {
	content: none;
}

body.jp-commerce div.product form.cart > .jp-addon {
	flex: 1 1 100%;
	margin: 0 0 var(--jp-space-2);
}

body.jp-commerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

body.jp-commerce div.product form.cart .button.single_add_to_cart_button {
	flex: 1 1 14rem;
	float: none;
	min-height: 52px;
	font-size: var(--jp-text-md);
}

body.jp-commerce .woocommerce .quantity .qty {
	width: 5rem;
	height: 100%;
	min-height: 52px;
	text-align: center;
}

body.jp-commerce div.product .product_meta {
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
}

body.jp-commerce div.product .product_meta > span {
	display: block;
}

body.jp-commerce div.product .product_meta a {
	color: var(--jp-muted);
}

/* Retourzin onder de koopknop: zelfde compacte stijl als de productinformatie, secundair. */
body.jp-commerce div.product .jp-commerce-return {
	margin: var(--jp-space-3) 0 var(--jp-space-4);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	line-height: 1.55;
}

body.jp-commerce div.product .jp-commerce-return strong {
	color: var(--jp-text);
	font-weight: 600;
}

body.jp-commerce div.product .jp-commerce-return a {
	color: var(--jp-text);
	text-decoration: underline;
	text-decoration-color: var(--jp-gold);
	text-underline-offset: 3px;
}

/* Tabs: rustige onderlijn in plaats van tabbladen. */
body.jp-commerce div.product .woocommerce-tabs {
	padding-top: var(--jp-space-4);
}

body.jp-commerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jp-space-5);
	margin: 0 0 var(--jp-space-5);
	padding: 0;
	border-bottom: 1px solid var(--jp-border);
	overflow: visible;
}

body.jp-commerce div.product .woocommerce-tabs ul.tabs::before,
body.jp-commerce div.product .woocommerce-tabs ul.tabs li::before,
body.jp-commerce div.product .woocommerce-tabs ul.tabs li::after {
	content: none;
	display: none;
}

body.jp-commerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

body.jp-commerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--jp-space-3) 0;
	border-bottom: 2px solid transparent;
	color: var(--jp-muted);
	font-weight: 500;
	text-decoration: none;
}

body.jp-commerce div.product .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--jp-gold);
	color: var(--jp-text);
}

body.jp-commerce div.product .woocommerce-tabs .panel {
	max-width: 68ch;
	margin: 0;
}

body.jp-commerce div.product .woocommerce-tabs .panel > h2:first-child {
	font-size: var(--jp-text-lg);
}

body.jp-commerce .related > h2,
body.jp-commerce .upsells > h2 {
	font-size: var(--jp-text-xl);
}

@media (min-width: 900px) {
	body.jp-commerce.jp-commerce--product div.product {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		column-gap: var(--jp-space-7);
	}

	body.jp-commerce.jp-commerce--product div.product .woocommerce-product-gallery {
		grid-column: 1;
		position: sticky;
		top: var(--jp-space-5);
	}

	body.jp-commerce.jp-commerce--product div.product .summary {
		grid-column: 2;
	}

	body.jp-commerce div.product .woocommerce-product-gallery__image img,
	body.jp-commerce div.product .woocommerce-product-gallery__image a img {
		height: 28rem;
	}
}

/* --- Winkelmand ------------------------------------------------------------ */
body.jp-commerce .woocommerce table.shop_table {
	margin: 0 0 var(--jp-space-6);
	border: 1px solid var(--jp-border);
	border-collapse: separate;
	border-radius: var(--jp-radius-lg);
	overflow: hidden;
}

body.jp-commerce .woocommerce table.shop_table th {
	padding: var(--jp-space-3) var(--jp-space-4);
	background: var(--jp-surface);
	color: var(--jp-muted);
	font-size: var(--jp-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.jp-commerce .woocommerce table.shop_table th,
body.jp-commerce .woocommerce table.shop_table td {
	border-width: 0;
	border-style: solid;
	border-color: var(--jp-border);
}

body.jp-commerce .woocommerce table.shop_table td {
	padding: var(--jp-space-4);
	background: #fff;
	border-top-width: 1px;
	vertical-align: middle;
}

body.jp-commerce .woocommerce table.shop_table tfoot th,
body.jp-commerce .woocommerce table.shop_table tfoot td,
body.jp-commerce .woocommerce .cart_totals table.shop_table th,
body.jp-commerce .woocommerce .cart_totals table.shop_table td {
	border-top: 1px solid var(--jp-border);
	background: #fff;
	color: var(--jp-text);
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
}

body.jp-commerce .woocommerce table.shop_table tr:first-child th,
body.jp-commerce .woocommerce table.shop_table tr:first-child td {
	border-top: 0;
}

body.jp-commerce .woocommerce table.shop_table thead + tbody tr:first-child td {
	border-top: 1px solid var(--jp-border);
}

body.jp-commerce .woocommerce table.cart .product-thumbnail {
	width: 6rem;
}

body.jp-commerce .woocommerce table.cart .product-thumbnail img,
body.jp-commerce .woocommerce table.cart img {
	width: 4.5rem;
	height: 4.5rem;
	padding: var(--jp-space-1);
	background: var(--jp-surface);
	border-radius: var(--jp-radius-sm);
	object-fit: contain;
}

body.jp-commerce .woocommerce table.cart .product-name a {
	font-weight: 600;
	text-decoration: none;
}

body.jp-commerce .woocommerce table.cart .product-name dl.variation {
	margin: var(--jp-space-1) 0 0;
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce table.cart .product-name dl.variation dt,
body.jp-commerce .woocommerce table.cart .product-name dl.variation dd {
	display: inline;
	margin: 0;
	padding: 0;
	font-weight: 400;
}

body.jp-commerce .woocommerce table.cart .product-name dl.variation dd {
	margin-left: 0.25em;
}

body.jp-commerce .woocommerce table.cart .product-name dl.variation dd p {
	display: inline;
	margin: 0;
}

body.jp-commerce .woocommerce a.remove {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--jp-border);
	border-radius: 999px;
	color: var(--jp-muted) !important;
	font-size: 1.25rem;
	line-height: 1;
}

body.jp-commerce .woocommerce a.remove:hover {
	background: #fbf3f1;
	border-color: var(--jp-danger);
	color: var(--jp-danger) !important;
}

body.jp-commerce .woocommerce table.cart .quantity .qty {
	min-height: 44px;
}

body.jp-commerce .woocommerce table.cart td.actions {
	padding: var(--jp-space-4);
	background: var(--jp-surface);
}

body.jp-commerce .woocommerce table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--jp-space-2);
}

body.jp-commerce .woocommerce table.cart td.actions .coupon .input-text {
	width: 12rem;
	margin: 0;
}

body.jp-commerce .woocommerce table.cart td.actions .button {
	margin: 0;
}

body.jp-commerce .woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	max-width: 28rem;
	margin-left: auto;
	padding: var(--jp-space-5);
	background: var(--jp-surface);
	border-radius: var(--jp-radius-lg);
}

body.jp-commerce .woocommerce .cart-collaterals .cart_totals h2 {
	font-size: var(--jp-text-lg);
}

body.jp-commerce .woocommerce .cart_totals table.shop_table {
	margin-bottom: var(--jp-space-4);
	background: #fff;
}

body.jp-commerce .woocommerce .cart_totals .order-total strong,
body.jp-commerce .woocommerce .woocommerce-checkout-review-order-table .order-total strong {
	font-size: var(--jp-text-lg);
}

body.jp-commerce .woocommerce .includes_tax,
body.jp-commerce .woocommerce .woocommerce-shipping-destination,
body.jp-commerce .woocommerce .woocommerce-shipping-contents {
	color: var(--jp-muted);
	font-size: var(--jp-text-xs);
}

body.jp-commerce .woocommerce ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.jp-commerce .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

body.jp-commerce .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0;
	font-size: var(--jp-text-md);
}

/* Lege winkelmand. */
body.jp-commerce .woocommerce .cart-empty.woocommerce-info {
	justify-content: flex-start;
	padding: var(--jp-space-6);
	border-left-color: var(--jp-gold);
	font-size: var(--jp-text-md);
}

body.jp-commerce .woocommerce .return-to-shop {
	margin: 0;
}

/* --- Winkelmand mobiel: regels als kaarten --------------------------------- */
@media (max-width: 768px) {
	body.jp-commerce .woocommerce table.shop_table_responsive {
		border: 0;
		border-radius: 0;
		overflow: visible;
	}

	body.jp-commerce .woocommerce table.shop_table_responsive thead {
		display: none;
	}

	body.jp-commerce .woocommerce table.shop_table_responsive tbody tr.cart_item,
	body.jp-commerce .woocommerce table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item {
		display: grid;
		grid-template-columns: 4.5rem minmax(0, 1fr) auto;
		gap: var(--jp-space-1) var(--jp-space-3);
		margin-bottom: var(--jp-space-3);
		padding: var(--jp-space-4);
		border: 1px solid var(--jp-border);
		border-radius: var(--jp-radius-lg);
	}

	body.jp-commerce .woocommerce table.shop_table_responsive tr.cart_item td {
		display: block;
		padding: 0;
		border: 0 !important;
		background: none;
		text-align: left !important;
	}

	body.jp-commerce .woocommerce table.shop_table_responsive tr.cart_item td::before {
		content: none;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-thumbnail {
		display: block;
		grid-row: 1 / span 3;
		grid-column: 1;
		width: auto;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-name {
		grid-column: 2;
		grid-row: 1;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-remove {
		grid-column: 3;
		grid-row: 1;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-price {
		grid-column: 2 / -1;
		color: var(--jp-muted);
		font-size: var(--jp-text-sm);
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-quantity {
		grid-column: 2;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-subtotal {
		grid-column: 3;
		align-self: center;
		font-weight: 600;
	}

	body.jp-commerce .woocommerce table.shop_table_responsive tr:not(.cart_item) td {
		display: block;
		border: 0;
		text-align: left !important;
	}

	body.jp-commerce .woocommerce table.shop_table_responsive tr:not(.cart_item) td::before {
		content: none;
	}

	body.jp-commerce .woocommerce table.cart td.actions {
		border-radius: var(--jp-radius-lg);
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon {
		float: none;
		margin-bottom: var(--jp-space-3);
		padding-bottom: 0;
		border: 0;
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon .input-text,
	body.jp-commerce .woocommerce table.cart td.actions .coupon .button {
		flex: 1 1 100%;
		width: 100% !important;
	}

	body.jp-commerce .woocommerce table.cart td.actions > .button {
		width: 100%;
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr {
		display: flex;
		justify-content: space-between;
		gap: var(--jp-space-3);
		border-top: 1px solid var(--jp-border);
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr:first-child {
		border-top: 0;
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr th {
		display: block;
		border: 0;
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr td {
		border: 0;
		text-align: right !important;
	}
}

/* --- Afrekenen --------------------------------------------------------------- */
body.jp-commerce .woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--jp-space-5);
}

body.jp-commerce .woocommerce form.checkout > * {
	min-width: 0;
}

body.jp-commerce .woocommerce form.checkout .col2-set {
	display: grid;
	margin-bottom: var(--jp-space-5) !important;
	gap: var(--jp-space-5);
	width: 100%;
	margin: 0;
}

body.jp-commerce .woocommerce form.checkout .col2-set::before,
body.jp-commerce .woocommerce form.checkout .col2-set::after {
	content: none;
}

body.jp-commerce .woocommerce form.checkout .col2-set .col-1,
body.jp-commerce .woocommerce form.checkout .col2-set .col-2 {
	float: none;
	width: 100%;
	padding: var(--jp-space-5);
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
}

body.jp-commerce .woocommerce form.checkout h3,
body.jp-commerce .woocommerce #order_review_heading {
	margin: 0 0 var(--jp-space-4);
	font-size: var(--jp-text-lg);
}

body.jp-commerce .woocommerce form .form-row {
	margin: 0 0 var(--jp-space-4);
	padding: 0;
}

body.jp-commerce .woocommerce form .form-row label {
	display: block;
	margin-bottom: var(--jp-space-1);
	font-size: var(--jp-text-sm);
	font-weight: 500;
	line-height: 1.4;
}

body.jp-commerce .woocommerce form .form-row label.checkbox,
body.jp-commerce .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--jp-space-2);
	font-weight: 400;
}

body.jp-commerce .woocommerce form .form-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--jp-graphite);
}

body.jp-commerce .woocommerce form .form-row .required {
	color: var(--jp-danger);
	text-decoration: none;
}

body.jp-commerce .woocommerce form .form-row .input-text,
body.jp-commerce .woocommerce form .form-row select {
	width: 100%;
}

body.jp-commerce .woocommerce form .form-row.woocommerce-invalid .input-text,
body.jp-commerce .woocommerce form .form-row.woocommerce-invalid select {
	border-color: var(--jp-danger);
}

body.jp-commerce .select2-container .select2-selection--single {
	height: 44px;
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
}

body.jp-commerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: var(--jp-space-3);
	line-height: 42px;
}

body.jp-commerce .select2-container .select2-selection--single .select2-selection__arrow {
	height: 42px;
}

body.jp-commerce .woocommerce #order_review {
	padding: var(--jp-space-5);
	background: var(--jp-surface);
	border-radius: var(--jp-radius-lg);
}

body.jp-commerce .woocommerce #order_review table.shop_table {
	background: #fff;
}

body.jp-commerce .woocommerce #order_review table.shop_table td,
body.jp-commerce .woocommerce #order_review table.shop_table th {
	padding: var(--jp-space-3) var(--jp-space-4);
}

body.jp-commerce .woocommerce #payment {
	background: transparent;
	border-radius: 0;
}

body.jp-commerce .woocommerce #payment ul.payment_methods {
	margin: 0 0 var(--jp-space-4);
	padding: 0;
	border: 0;
}

body.jp-commerce .woocommerce #payment ul.payment_methods li {
	margin: 0 0 var(--jp-space-2);
	padding: var(--jp-space-3) var(--jp-space-4);
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-md);
	list-style: none;
}

body.jp-commerce .woocommerce #payment div.payment_box {
	margin: var(--jp-space-3) 0 0;
	background: var(--jp-surface);
	border-radius: var(--jp-radius-sm);
	color: var(--jp-text);
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce #payment div.payment_box::before {
	border-bottom-color: var(--jp-surface);
}

body.jp-commerce .woocommerce #payment div.form-row {
	margin: 0;
	padding: 0;
}

body.jp-commerce .woocommerce .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: var(--jp-space-4);
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce .woocommerce-privacy-policy-text p {
	margin: 0 0 var(--jp-space-3);
	color: var(--jp-muted);
}

body.jp-commerce .woocommerce #payment #place_order {
	float: none;
	width: 100%;
	min-height: 56px;
	font-size: var(--jp-text-md);
}

body.jp-commerce .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,
body.jp-commerce .woocommerce .woocommerce-form-login-toggle .woocommerce-info {
	justify-content: flex-start;
	border-left-color: var(--jp-gold);
}

body.jp-commerce .woocommerce form.checkout_coupon,
body.jp-commerce .woocommerce form.login,
body.jp-commerce .woocommerce form.register {
	margin: 0 0 var(--jp-space-5);
	padding: var(--jp-space-5);
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
}

/* --- Winkelmand en afrekenen: verfijning ---------------------------------------
 * Alleen presentatie op de bestaande WooCommerce-markup. Regels, aantallen,
 * totalen, coupons, verzending en betaalmethoden blijven native.
 */

/* Meldingen: succes rustig groen, informatie neutraal, fout duidelijk rood. */
body.jp-commerce .woocommerce-message {
	background: #f1f6f2;
	border-color: #cfe0d3;
	border-left-color: var(--jp-success);
}

body.jp-commerce .woocommerce-info {
	border-left-color: var(--jp-border-strong);
}

body.jp-commerce .woocommerce-error,
body.jp-commerce .woocommerce-notices-wrapper ul.woocommerce-error,
body.jp-commerce .woocommerce .woocommerce-error {
	color: #6e2c23;
}

/* Winkelmandregels. */
body.jp-commerce .woocommerce table.cart .product-thumbnail {
	width: 6.5rem;
}

body.jp-commerce .woocommerce table.cart .product-thumbnail img,
body.jp-commerce .woocommerce table.cart img {
	width: 5rem;
	height: 5rem;
	padding: var(--jp-space-2);
	border-radius: var(--jp-radius-md);
}

body.jp-commerce .woocommerce table.cart td.product-name,
body.jp-commerce .woocommerce table.cart td.product-name a {
	color: var(--jp-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

body.jp-commerce .woocommerce table.cart td.product-price {
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	white-space: nowrap;
}

body.jp-commerce .woocommerce table.cart td.product-subtotal {
	font-weight: 600;
	white-space: nowrap;
}

/* Relatie van een uitbreiding ("Uitbreiding bij: SolarFlow 2400 AC+"): leesbaar, niet dominant. */
body.jp-commerce .woocommerce table.shop_table dl.variation {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 0.3em;
	margin: var(--jp-space-2) 0 0;
	padding: 2px var(--jp-space-2);
	background: var(--jp-gold-100);
	border-radius: var(--jp-radius-sm);
	color: var(--jp-warm);
	font-size: var(--jp-text-sm);
	font-weight: 400;
	line-height: 1.5;
}

body.jp-commerce .woocommerce table.shop_table dl.variation dt,
body.jp-commerce .woocommerce table.shop_table dl.variation dd,
body.jp-commerce .woocommerce table.shop_table dl.variation dd p {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
	font-weight: 400;
}

body.jp-commerce .woocommerce table.shop_table dl.variation dd {
	color: var(--jp-text);
	font-weight: 500;
}

body.jp-commerce .woocommerce table.cart tr.cart_item:has(dl.variation) td.product-thumbnail img {
	width: 4rem;
	height: 4rem;
	margin-left: 1rem;
}

/* Verwijderen: duidelijk, niet dominant. */
body.jp-commerce .woocommerce table.cart a.remove {
	width: 28px;
	height: 28px;
	border-color: transparent;
	background: var(--jp-surface);
	font-size: 1.125rem;
}

/* Aantal: groot genoeg om te tikken, uitgelijnd. */
body.jp-commerce .woocommerce table.cart .quantity .qty,
body.jp-commerce .woocommerce .quantity .qty {
	width: 4.5rem;
	min-height: 44px;
	padding: 0 var(--jp-space-2);
	border-radius: var(--jp-radius-sm);
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
}

/* Kortingscode en bijwerken: secundair, compact. */
body.jp-commerce .woocommerce table.cart td.actions {
	padding: var(--jp-space-3) var(--jp-space-4);
}

body.jp-commerce .woocommerce table.cart td.actions .coupon {
	flex-wrap: nowrap;
	align-items: center;
}

body.jp-commerce .woocommerce table.cart td.actions .coupon .input-text {
	width: 11rem;
	min-height: 40px;
	font-size: var(--jp-text-sm);
}

body.jp-commerce .woocommerce table.cart td.actions .button {
	min-height: 40px;
	padding: var(--jp-space-2) var(--jp-space-4);
	font-size: var(--jp-text-sm);
}

/* Totalen: een duidelijke samenvattingskaart. */
body.jp-commerce .woocommerce .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid var(--jp-border);
}

body.jp-commerce .woocommerce .cart-collaterals .cart_totals h2 {
	margin: 0 0 var(--jp-space-4);
}

body.jp-commerce .woocommerce .cart_totals table.shop_table {
	border: 0;
	border-radius: 0;
}

body.jp-commerce .woocommerce .cart_totals table.shop_table th,
body.jp-commerce .woocommerce .cart_totals table.shop_table td {
	padding: var(--jp-space-3) 0;
	vertical-align: top;
}

body.jp-commerce .woocommerce .cart_totals table.shop_table th {
	width: 40%;
	color: var(--jp-muted);
	font-weight: 500;
}

body.jp-commerce .woocommerce .cart_totals table.shop_table td {
	text-align: right;
}

body.jp-commerce .woocommerce .cart_totals tr.order-total th,
body.jp-commerce .woocommerce .cart_totals tr.order-total td {
	padding-top: var(--jp-space-4);
	border-top: 1px solid var(--jp-border-strong);
	color: var(--jp-text);
	font-weight: 600;
}

body.jp-commerce .woocommerce .cart_totals .order-total strong {
	font-size: var(--jp-text-xl);
}

body.jp-commerce .woocommerce .cart_totals .includes_tax {
	display: block;
	margin-top: 2px;
}

body.jp-commerce .woocommerce .cart_totals .woocommerce-shipping-destination,
body.jp-commerce .woocommerce .cart_totals .shipping-calculator-button {
	font-size: var(--jp-text-xs);
}

body.jp-commerce .woocommerce .cart_totals .woocommerce-shipping-destination {
	margin: var(--jp-space-1) 0 0;
}

body.jp-commerce .woocommerce .cart_totals .shipping-calculator-button {
	color: var(--jp-muted);
}

body.jp-commerce .woocommerce .cart_totals .shipping-calculator-button::after {
	content: none;
}

body.jp-commerce .woocommerce .wc-proceed-to-checkout {
	display: grid;
	gap: var(--jp-space-3);
	justify-items: center;
}

body.jp-commerce .jp-commerce-continue {
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	text-decoration: underline;
	text-decoration-color: var(--jp-border-strong);
	text-underline-offset: 3px;
}

body.jp-commerce .jp-commerce-continue:hover {
	color: var(--jp-text);
}

/* Desktop: regels links, totalen rechts ernaast. */
@media (min-width: 1100px) {
	body.jp-commerce--cart .woocommerce:has(> .woocommerce-cart-form) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 24rem;
		gap: 0 var(--jp-space-6);
		align-items: start;
	}

	body.jp-commerce--cart .woocommerce:has(> .woocommerce-cart-form) > * {
		grid-column: 1 / -1;
		min-width: 0;
	}

	body.jp-commerce--cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form {
		grid-column: 1;
	}

	body.jp-commerce--cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals {
		grid-column: 2;
		position: sticky;
		top: var(--jp-space-5);
	}

	body.jp-commerce--cart .woocommerce .cart-collaterals .cart_totals {
		max-width: none;
	}
}

/* Lege winkelmand: één rustige kaart met titel, uitleg en knop. */
body.jp-commerce--cart .woocommerce:has(> .wc-empty-cart-message) {
	max-width: 36rem;
	margin: 0 auto;
	padding: var(--jp-space-7) var(--jp-space-6);
	background: var(--jp-surface);
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
	text-align: center;
}

body.jp-commerce .woocommerce .wc-empty-cart-message .cart-empty.woocommerce-info {
	display: block;
	margin: 0 0 var(--jp-space-2);
	padding: 0;
	background: none;
	border: 0;
	color: var(--jp-text);
	font-size: var(--jp-text-xl);
	font-weight: 600;
	line-height: 1.3;
}

body.jp-commerce .jp-commerce-empty__text {
	margin: 0 0 var(--jp-space-5);
	color: var(--jp-muted);
}

body.jp-commerce .woocommerce .return-to-shop a.button {
	min-height: 48px;
	padding-inline: var(--jp-space-6);
}

/* Afrekenen: formulier. */
body.jp-commerce .woocommerce form .form-row .input-text,
body.jp-commerce .woocommerce form .form-row select {
	min-height: 44px;
	background: #fff;
}

body.jp-commerce .woocommerce form .form-row textarea.input-text {
	min-height: 6rem;
}

body.jp-commerce .woocommerce form .form-row .input-text:focus,
body.jp-commerce .woocommerce form .form-row select:focus {
	border-color: var(--jp-graphite);
	box-shadow: 0 0 0 3px rgba(182, 164, 99, 0.25);
	outline: none;
}

body.jp-commerce .woocommerce form.checkout #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: var(--jp-space-2);
	font-size: var(--jp-text-md);
	font-weight: 600;
}

/* Afrekenen: "Je bestelling" als duidelijke kaart. */
body.jp-commerce .woocommerce #order_review {
	background: #fff;
	border: 1px solid var(--jp-border);
}

body.jp-commerce .woocommerce #order_review table.shop_table {
	margin-bottom: 0;
	border: 0;
	border-radius: 0;
}

body.jp-commerce .woocommerce #order_review table.shop_table thead th {
	padding: 0 0 var(--jp-space-2);
	background: none;
}

body.jp-commerce .woocommerce #order_review table.shop_table td,
body.jp-commerce .woocommerce #order_review table.shop_table th {
	padding: var(--jp-space-3) 0;
	vertical-align: top;
}

body.jp-commerce .woocommerce #order_review table.shop_table td.product-name {
	padding-right: var(--jp-space-3);
	font-weight: 500;
}

body.jp-commerce .woocommerce #order_review table.shop_table .product-total,
body.jp-commerce .woocommerce #order_review table.shop_table tfoot td {
	text-align: right;
	white-space: nowrap;
}

body.jp-commerce .woocommerce #order_review table.shop_table tfoot th {
	color: var(--jp-muted);
	font-weight: 500;
}

body.jp-commerce .woocommerce #order_review table.shop_table tr.order-total th,
body.jp-commerce .woocommerce #order_review table.shop_table tr.order-total td {
	padding-top: var(--jp-space-4);
	border-top: 1px solid var(--jp-border-strong);
	color: var(--jp-text);
	font-weight: 600;
}

body.jp-commerce .woocommerce #order_review .order-total .includes_tax {
	display: block;
	margin-top: 2px;
	white-space: normal;
}

body.jp-commerce .woocommerce #order_review .product-quantity {
	color: var(--jp-muted);
	font-weight: 500;
}

/* Betaling: native Mollie-keuzes in een rustige container. */
body.jp-commerce .woocommerce #payment {
	margin-top: var(--jp-space-5);
	padding-top: var(--jp-space-5);
	border-top: 1px solid var(--jp-border);
}

body.jp-commerce .woocommerce #payment ul.payment_methods li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	padding: var(--jp-space-4);
	transition: border-color 120ms ease;
}

body.jp-commerce .woocommerce #payment ul.payment_methods li::before,
body.jp-commerce .woocommerce #payment ul.payment_methods li::after {
	content: none;
}

body.jp-commerce .woocommerce #payment ul.payment_methods li > div.payment_box,
body.jp-commerce .woocommerce #payment ul.payment_methods li > :not(input):not(label) {
	grid-column: 1 / -1;
}

body.jp-commerce .woocommerce #payment ul.payment_methods li:has(> input:checked) {
	border-color: var(--jp-graphite);
	box-shadow: inset 3px 0 0 var(--jp-gold);
}

body.jp-commerce .woocommerce #payment ul.payment_methods li > input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0 var(--jp-space-2) 0 0;
	vertical-align: -3px;
	accent-color: var(--jp-graphite);
}

body.jp-commerce .woocommerce #payment ul.payment_methods li > label {
	display: block;
	margin: 0;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

body.jp-commerce .woocommerce #payment ul.payment_methods li img {
	max-height: 24px;
	margin-left: var(--jp-space-2);
	vertical-align: middle;
}

body.jp-commerce .woocommerce #payment div.payment_box {
	margin-top: var(--jp-space-3);
	padding: var(--jp-space-3) var(--jp-space-4);
}

body.jp-commerce .woocommerce #payment div.payment_box::before {
	content: none;
}

/* Juridische tekst: volledig, rustige typografie. */
body.jp-commerce .woocommerce .woocommerce-privacy-policy-text p,
body.jp-commerce .woocommerce .woocommerce-terms-and-conditions-checkbox-text {
	font-size: var(--jp-text-sm);
	line-height: 1.55;
}

body.jp-commerce .woocommerce .woocommerce-terms-and-conditions-wrapper a,
body.jp-commerce .woocommerce .woocommerce-privacy-policy-text a {
	color: var(--jp-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.jp-commerce .woocommerce #payment .place-order {
	margin-top: var(--jp-space-4);
}

/*
 * Tablet en desktop: gegevens links, bestelling rechts. Floats zoals WooCommerce-thema's
 * dat doen: foutmeldingen die WooCommerce bovenaan het formulier invoegt, blijven dan
 * gewoon bovenaan.
 */
@media (min-width: 880px) {
	body.jp-commerce .woocommerce form.checkout {
		display: block;
	}

	body.jp-commerce .woocommerce form.checkout::after {
		content: "";
		display: table;
		clear: both;
	}

	body.jp-commerce .woocommerce form.checkout #customer_details {
		float: left;
		width: 56%;
	}

	body.jp-commerce .woocommerce form.checkout #order_review_heading,
	body.jp-commerce .woocommerce form.checkout #order_review {
		float: right;
		clear: right;
		width: 41%;
	}
}

@media (min-width: 1200px) {
	body.jp-commerce .woocommerce form.checkout #customer_details {
		width: 57%;
	}

	body.jp-commerce .woocommerce form.checkout #order_review_heading,
	body.jp-commerce .woocommerce form.checkout #order_review {
		width: 39%;
	}
}

/* Mobiel: regels als kaarten, totalen en knoppen volle breedte. */
@media (max-width: 768px) {
	body.jp-commerce .woocommerce table.shop_table_responsive tbody tr.cart_item,
	body.jp-commerce .woocommerce table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 5rem minmax(0, 1fr) auto;
		background: #fff;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item:has(dl.variation) td.product-thumbnail img {
		width: 4rem;
		height: 4rem;
		margin-left: 0.5rem;
	}

	body.jp-commerce .woocommerce table.cart tr.cart_item td.product-quantity {
		align-self: center;
	}

	body.jp-commerce .woocommerce table.cart td.actions {
		display: grid;
		gap: var(--jp-space-3);
		padding: var(--jp-space-4) !important;
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon {
		gap: var(--jp-space-2);
		padding: 0;
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon {
		display: flex;
		flex-wrap: nowrap;
		margin: 0;
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon .input-text {
		margin: 0;
		flex: 1 1 0;
		width: 1px !important;
		min-width: 0;
	}

	body.jp-commerce .woocommerce table.cart td.actions .coupon .button {
		flex: 0 0 auto;
		width: auto !important;
	}

	body.jp-commerce .woocommerce .cart-collaterals .cart_totals {
		max-width: none;
		padding: var(--jp-space-4);
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr {
		border-top: 0;
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr th,
	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr td {
		padding: var(--jp-space-3) 0;
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr.order-total {
		border-top: 1px solid var(--jp-border-strong);
	}

	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr.order-total th,
	body.jp-commerce .woocommerce .cart_totals table.shop_table_responsive tr.order-total td {
		border-top: 0;
	}

	body.jp-commerce--cart .woocommerce:has(> .wc-empty-cart-message) {
		padding: var(--jp-space-6) var(--jp-space-4);
	}

	body.jp-commerce .woocommerce .return-to-shop a.button {
		width: 100%;
	}

	body.jp-commerce .woocommerce #order_review {
		padding: var(--jp-space-4);
	}
}

/* --- Account ------------------------------------------------------------------- */
body.jp-commerce .woocommerce .u-columns.col2-set {
	display: grid;
	gap: var(--jp-space-5);
}

body.jp-commerce .woocommerce .u-columns.col2-set::before,
body.jp-commerce .woocommerce .u-columns.col2-set::after {
	content: none;
}

body.jp-commerce .woocommerce .u-columns.col2-set .u-column1,
body.jp-commerce .woocommerce .u-columns.col2-set .u-column2 {
	float: none;
	width: 100%;
}

body.jp-commerce .woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--jp-border);
	border-radius: var(--jp-radius-lg);
	overflow: hidden;
}

body.jp-commerce .woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: var(--jp-space-3) var(--jp-space-4);
	border-top: 1px solid var(--jp-border);
	text-decoration: none;
}

body.jp-commerce .woocommerce-account .woocommerce-MyAccount-navigation li:first-child a {
	border-top: 0;
}

body.jp-commerce .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--jp-surface);
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--jp-gold);
}

@media (min-width: 900px) {
	body.jp-commerce .woocommerce .u-columns.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- Mobiel: ruimte en aanraakdoelen ------------------------------------------- */
@media (max-width: 599px) {
	body.jp-commerce {
		--jp-gutter: 16px;
	}

	.jp-commerce-main {
		padding-block: var(--jp-space-5) var(--jp-space-7);
	}

	body.jp-commerce .woocommerce ul.products {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--jp-space-4);
	}

	.jp-commerce-card__media {
		height: 12rem;
	}

	body.jp-commerce .woocommerce-ordering,
	body.jp-commerce .woocommerce-result-count {
		float: none;
	}

	body.jp-commerce .woocommerce-ordering select {
		width: 100%;
	}

	body.jp-commerce div.product .woocommerce-product-gallery {
		padding: var(--jp-space-4);
	}

	body.jp-commerce div.product form.cart {
		padding: var(--jp-space-4);
	}

	body.jp-commerce .woocommerce form.checkout .col2-set .col-1,
	body.jp-commerce .woocommerce form.checkout .col2-set .col-2,
	body.jp-commerce .woocommerce #order_review {
		padding: var(--jp-space-4);
	}

	body.jp-commerce .woocommerce form .form-row-first,
	body.jp-commerce .woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}
}

/* ------------------------------------------------ Startservice-actie */

/*
 * "Gratis Startservice t.w.v. € 149": een rustige melding, geen verkoopblok.
 * Goud alleen als dunne lijn; geen rood, geen badge, geen beweging behalve
 * het verschijnen. De popup is alleen in de schil; de blokken in winkelmand
 * en afrekenen erven hier hun stijl.
 */
body.jp-commerce .jp-startservice-promo {
	margin: 0 0 var(--jp-space-5);
	padding: var(--jp-space-4) var(--jp-space-5);
	border: 1px solid var(--jp-border);
	border-top: 2px solid var(--jp-gold);
	border-radius: var(--jp-radius-md);
	background: var(--jp-warm-050);
}

body.jp-commerce .jp-startservice-promo p {
	margin: 0;
}

body.jp-commerce .jp-startservice-promo__title {
	font-weight: 600;
	font-size: var(--jp-text-md);
}

body.jp-commerce .jp-startservice-promo__text {
	margin-top: var(--jp-space-1);
}

body.jp-commerce .jp-startservice-promo__note,
body.jp-commerce .jp-startservice-promo-row__note {
	display: block;
	margin-top: var(--jp-space-2);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	line-height: 1.5;
}

body.jp-commerce .jp-startservice-promo__note a,
body.jp-commerce .jp-startservice-promo-row__note a {
	color: var(--jp-text);
}

/* Eén cel over de volle breedte: de totaalkolom zelf breekt niet af (nowrap). */
body.jp-commerce .woocommerce #order_review table.shop_table tr.jp-startservice-promo-row td {
	border-top: 2px solid var(--jp-gold);
	color: var(--jp-text);
	font-weight: 400;
	text-align: left;
	white-space: normal;
}

body.jp-commerce .jp-startservice-promo-order {
	margin: var(--jp-space-5) 0;
	padding: var(--jp-space-4) var(--jp-space-5);
	border-left: 2px solid var(--jp-gold);
	background: var(--jp-warm-050);
}

body.jp-commerce.jp-promo-open {
	overflow: hidden;
}

body.jp-commerce .jp-promo {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--jp-space-4);
}

body.jp-commerce .jp-promo[hidden],
body.jp-commerce .jp-promo [hidden] {
	display: none;
}

body.jp-commerce .jp-promo__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(69 73 77 / 55%);
}

body.jp-commerce .jp-promo__dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 30rem;
	max-height: calc(100vh - 2 * var(--jp-space-4));
	overflow-y: auto;
	padding: var(--jp-space-6) var(--jp-space-5) var(--jp-space-5);
	border-top: 3px solid var(--jp-gold);
	border-radius: var(--jp-radius-lg);
	background: #fff;
	box-shadow: 0 16px 48px rgb(69 73 77 / 22%);
	color: var(--jp-text);
}

body.jp-commerce .jp-promo__dialog:focus {
	outline: none;
}

body.jp-commerce .jp-promo__dialog:focus-visible,
body.jp-commerce .jp-promo a:focus-visible,
body.jp-commerce .jp-promo button:focus-visible {
	outline: var(--jp-focus);
	outline-offset: 2px;
}

body.jp-commerce .jp-promo__close {
	position: absolute;
	top: var(--jp-space-2);
	right: var(--jp-space-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--jp-radius-sm);
	background: transparent;
	color: var(--jp-text);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

body.jp-commerce .jp-promo__close:hover {
	background: var(--jp-warm-050);
}

body.jp-commerce .jp-promo__eyebrow {
	margin: 0 0 var(--jp-space-1);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.jp-commerce .jp-promo__title {
	margin: 0 var(--jp-space-6) var(--jp-space-3) 0;
	font-size: var(--jp-text-lg);
	line-height: 1.3;
}

body.jp-commerce .jp-promo__text {
	margin: 0 0 var(--jp-space-3);
}

body.jp-commerce .jp-promo__note {
	margin: 0 0 var(--jp-space-5);
	color: var(--jp-muted);
	font-size: var(--jp-text-sm);
	line-height: 1.5;
}

body.jp-commerce .jp-promo__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--jp-space-3);
}

body.jp-commerce .jp-promo__secondary {
	min-height: 44px;
	padding: var(--jp-space-3) var(--jp-space-4);
	border: 1px solid var(--jp-border-strong);
	border-radius: var(--jp-radius-sm);
	background: #fff;
	color: var(--jp-text);
	font: inherit;
	cursor: pointer;
}

body.jp-commerce .jp-promo__secondary:hover {
	border-color: var(--jp-text);
	background: var(--jp-warm-050);
}

body.jp-commerce .jp-promo__terms {
	margin: var(--jp-space-4) 0 0;
	font-size: var(--jp-text-sm);
}

body.jp-commerce .jp-promo__terms a {
	color: var(--jp-text);
}

@media (max-width: 599px) {
	body.jp-commerce .jp-promo__dialog {
		padding: var(--jp-space-6) var(--jp-space-4) var(--jp-space-4);
	}

	body.jp-commerce .jp-promo__actions .jp-promo__cta,
	body.jp-commerce .jp-promo__actions .jp-promo__secondary {
		flex: 1 1 100%;
	}
}
