/**
 * Personalisation on the product page: numbered step cards, live preview card, font picker,
 * purchase bar. Reads the child theme's tokens (--lpz-*) with fallbacks; the 3D PrintXpress
 * gold comes from the theme re-defining those tokens on its pages (luksplayz-child pxp.css).
 */

/* ---------------------------------------------------------------- steps */

.lpz-pz-product form.cart {
	counter-reset: lpz-step;
}

.lpz-pz {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.lpz-pz__step,
.lpz-pz-product form.cart table.variations {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 1.125rem 1.25rem 1.25rem;
	border: 1px solid var(--lpz-border, #2a2f3c);
	border-radius: var(--lpz-radius-lg, 16px);
	background: var(--lpz-surface, #171a23);
	counter-increment: lpz-step;
}

/* A fieldset's legend sits inside the padded card when it floats. */
fieldset.lpz-pz__step > legend {
	float: left;
	width: 100%;
	padding: 0;
}

fieldset.lpz-pz__step > legend ~ * {
	clear: both;
}

.lpz-pz__step-title,
.lpz-pz-product table.variations th.label label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 0.875rem;
	color: var(--lpz-text, #f5f5f7);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.lpz-pz__step-title::before,
.lpz-pz-product table.variations th.label label::before {
	content: counter(lpz-step);
	content: counter(lpz-step) / ""; /* The number is decoration; screen readers read the title. */
	display: grid;
	flex: none;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--lpz-accent-line, rgb(139 92 246 / 0.4));
	border-radius: 50%;
	color: var(--lpz-accent, #8b5cf6);
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lpz-pz__step-value {
	position: absolute;
	top: 1.3rem;
	right: 1.25rem;
	max-width: 40%;
	overflow: hidden;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.875rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Step 1 = WooCommerce's own variation table (Boja topera, swatches), shown as a card. */
.lpz-pz-product.woocommerce div.product form.cart table.variations {
	display: block;
	margin: 0 0 0.75rem;
}

.lpz-pz-product.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation {
	margin: 0;
}

.lpz-pz-product form.cart table.variations tbody,
.lpz-pz-product form.cart table.variations tr {
	display: block;
	margin: 0;
}

.lpz-pz-product form.cart table.variations tr + tr {
	margin-top: 1.25rem;
	counter-increment: lpz-step;
}

.lpz-pz-product.woocommerce div.product form.cart table.variations th,
.lpz-pz-product.woocommerce div.product form.cart table.variations td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	line-height: inherit;
}

/* Header row: number + attribute name, the chosen value (Variation Swatches) on the right. */
.lpz-pz-product.woocommerce div.product form.cart table.variations th.label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.875rem;
}

.lpz-pz-product form.cart table.variations th.label label {
	margin: 0;
}

/* Variation Swatches prints ": Zlatna" here; personalization.js shows the plain name instead. */
.lpz-pz-product form.cart table.variations .woo-selected-variation-item-name {
	display: none;
}

.lpz-pz-product form.cart table.variations .lpz-pz__step-value {
	position: static;
	max-width: 50%;
	margin-left: auto;
}

.lpz-pz-product.woocommerce div.product form.cart table.variations .reset_variations {
	position: absolute;
	right: 1.25rem;
	bottom: 1rem;
	margin: 0;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.8125rem;
	text-transform: none;
}

/* Swatches: larger, named (names added by personalization.js), selected ring in the accent. */
.lpz-pz-product .variable-items-wrapper {
	--wvs-single-product-item-width: 44px;
	--wvs-single-product-item-height: 44px;
	--wvs-item-box-shadow: 0 0 0 1px var(--lpz-border-strong, #3a4050);
	--wvs-hover-item-box-shadow: 0 0 0 2px var(--lpz-accent-hover, #a78bfa);
	--wvs-selected-item-box-shadow: 0 0 0 2px var(--lpz-surface, #171a23), 0 0 0 4px var(--lpz-accent, #8b5cf6);
	gap: 0.5rem 0.875rem;
}

/* Named swatches on a grid of equal columns, each wide enough for its name (up to two lines), so long
   names ("Zlatni sprej") never run into the next swatch. */
.lpz-pz-product .variable-items-wrapper.lpz-pz-swatches .variable-item:not(.radio-variable-item) {
	margin: 4px 4px 2.5rem;
}

.lpz-pz-product .variable-items-wrapper.lpz-pz-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, 4.75rem);
	justify-items: center;
	gap: 0;
	margin-bottom: -1.25rem;
	padding-right: 3.5rem; /* Keeps the swatches clear of "Obriši". */
}

.lpz-pz-product .variable-items-wrapper .variable-item:focus-visible {
	outline: 2px solid var(--lpz-accent-hover, #a78bfa);
	outline-offset: 5px;
}

.lpz-pz__swatch-name {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 50%;
	color: var(--lpz-text-muted, #9ca3af);
	width: 4.5rem;
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: break-word;
	transform: translateX(-50%);
	pointer-events: none;
}

.lpz-pz-product .variable-item.selected .lpz-pz__swatch-name {
	color: var(--lpz-text, #f5f5f7);
	font-weight: 600;
}

/* ---------------------------------------------------------------- fields */

.lpz-pz__field {
	display: grid;
	gap: 0.375rem;
	min-width: 0;
	margin: 0;
}

.lpz-pz__label {
	color: var(--lpz-text, #f5f5f7);
	font-size: 0.875rem;
	font-weight: 600;
}

.lpz-pz__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 34%);
	gap: 0.875rem;
	align-items: start;
}

.lpz-pz__req {
	color: var(--lpz-accent-hover, #a78bfa);
}

.lpz-pz__step-title .lpz-pz__req {
	margin-left: -0.375rem; /* Sits next to the title, not one flex gap away. */
}

.lpz-pz__opt {
	color: var(--lpz-text-muted, #9ca3af);
	font-weight: 400;
}

.lpz-pz input[type="text"],
.lpz-pz textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--lpz-border-strong, #3a4050);
	border-radius: var(--lpz-radius, 12px);
	background: var(--lpz-bg, #0b0d12);
	color: var(--lpz-text, #f5f5f7);
	font: inherit;
	line-height: 1.4;
}

.lpz-pz input[type="text"]:focus,
.lpz-pz textarea:focus {
	border-color: var(--lpz-accent, #8b5cf6);
	outline: 0;
	box-shadow: 0 0 0 3px var(--lpz-accent-soft, rgb(139 92 246 / 0.16));
}

.lpz-pz textarea {
	min-height: 5.5rem;
	resize: vertical;
}

.lpz-pz__range {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Themes style every input with a box; the slider keeps only its own track. */
.lpz-pz .lpz-pz__range input[type="range"] {
	flex: 1;
	min-width: 0;
	min-height: var(--lpz-touch, 44px);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	accent-color: var(--lpz-accent, #8b5cf6);
}

.lpz-pz__value {
	min-width: 4.5rem;
	color: var(--lpz-text, #f5f5f7);
	font-size: 1.375rem;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.lpz-pz__hint,
.lpz-pz__count {
	margin: 0;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Width pricing: which size range the chosen width falls into (the price itself is above). */
.lpz-pz__tier {
	margin: 0 0 0.25rem;
	color: var(--lpz-accent, #8b5cf6);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

.lpz-pz__count {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lpz-pz__error {
	margin: 0;
	color: var(--lpz-danger, #f87171);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.lpz-pz [aria-invalid="true"] {
	border-color: var(--lpz-danger, #f87171);
}

/* ---------------------------------------------------------------- note (folded) */

.lpz-pz__step--note > summary {
	justify-content: space-between;
	min-height: 2.75rem; /* 44px touch target. */
	margin: -0.5rem 0;
	cursor: pointer;
	list-style: none;
}

.lpz-pz__step--note > summary::-webkit-details-marker {
	display: none;
}

.lpz-pz__summary-text {
	flex: 1;
	min-width: 0;
}

/* The "+" turns into "−" when open. */
.lpz-pz__step--note > summary::after {
	content: "+";
	content: "+" / "";
	color: var(--lpz-accent, #8b5cf6);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
}

.lpz-pz__step--note[open] > summary::after {
	content: "−";
	content: "−" / "";
}

.lpz-pz__step--note[open] > summary {
	margin-bottom: 0.375rem;
}

.lpz-pz__step--note > summary:focus-visible {
	outline: 2px solid var(--lpz-accent-hover, #a78bfa);
	outline-offset: 4px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- preview card */

.lpz-pz__preview {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--lpz-accent-line, var(--lpz-border, #2a2f3c));
	border-radius: var(--lpz-radius-lg, 16px);
	background: var(--lpz-surface, #171a23);
}

.lpz-pz__preview-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.125rem 0.25rem 0.75rem;
}

.lpz-pz__preview-title {
	color: var(--lpz-text, #f5f5f7);
	font-family: var(--lpz-font-display, inherit);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.lpz-pz__preview-live {
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.8125rem;
}

/* Light, neutral stage: every filament colour (also white and black) stays visible. */
.lpz-pz__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--lpz-radius, 12px);
	background:
		radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, transparent 60%),
		var(--lpz-pz-stage, #efe9df);
}

.lpz-pz__svg {
	display: block;
	width: 100%;
	height: auto;
}

.lpz-pz__svg-text.is-placeholder {
	opacity: 0.35;
}

.lpz-pz__svg-missing {
	fill: #d63638;
	font-family: system-ui, sans-serif;
}

.lpz-pz__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	color: #50575e;
	font-size: 0.9375rem;
}

.lpz-pz__loading[hidden] {
	display: none;
}

/* Width ruler under the text: label only, the drawing is not to scale. */
.lpz-pz__ruler {
	position: relative;
	margin: -0.5rem 12% 0.75rem;
	padding-top: 0.25rem;
	border-top: 1px solid rgb(80 87 94 / 0.55);
	color: #50575e;
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.lpz-pz__ruler::before,
.lpz-pz__ruler::after {
	content: "";
	position: absolute;
	top: -5px;
	width: 1px;
	height: 9px;
	background: rgb(80 87 94 / 0.55);
}

.lpz-pz__ruler::before {
	left: 0;
}

.lpz-pz__ruler::after {
	right: 0;
}

.lpz-pz__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.lpz-pz__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0.3125rem 0.75rem;
	border-radius: var(--lpz-radius-pill, 999px);
	background: var(--lpz-surface-raised, #1e2230);
	color: var(--lpz-text, #f5f5f7);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
}

.lpz-pz__chip.is-empty {
	color: var(--lpz-text-muted, #9ca3af);
}

.lpz-pz__chip-label:not(.screen-reader-text) {
	color: var(--lpz-text-muted, #9ca3af);
}

.lpz-pz__dot {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.lpz-pz__chip.is-empty .lpz-pz__dot {
	display: none;
}

.lpz-pz__disclaimer {
	margin: 0.625rem 0.25rem 0;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Note under the font cards (same muted hint style). */
.lpz-pz__font-note {
	clear: both;
	margin-top: 0.75rem;
}

/* ---------------------------------------------------------------- placement (L14.2) */

.lpz-pz__place-info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0;
}

.lpz-pz__place-info .lpz-pz__step-title {
	margin: 0;
}

.lpz-pz__place-fixed {
	color: var(--lpz-text, #f5f5f7);
	font-weight: 600;
}

.lpz-pz__place-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.625rem;
}

@media (min-width: 600px) {
	.lpz-pz__place-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}

.lpz-pz__place {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0.75rem 2.25rem 0.75rem 0.875rem;
	border: 1px solid var(--lpz-border-strong, #3a4050);
	border-radius: var(--lpz-radius, 12px);
	background: var(--lpz-bg, #0b0d12);
	color: var(--lpz-text, #f5f5f7);
	cursor: pointer;
	line-height: 1.35;
	transition: border-color var(--lpz-duration, 200ms) ease, background-color var(--lpz-duration, 200ms) ease;
}

/* Same pattern as the font cards: the radio stays in the keyboard order, the card is its label. */
.lpz-pz__place-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.lpz-pz__place-name {
	font-size: 0.9375rem;
	font-weight: 500;
}

.lpz-pz__place:hover {
	border-color: var(--lpz-accent-hover, #a78bfa);
}

.lpz-pz__place.is-checked,
.lpz-pz__place:has(.lpz-pz__place-input:checked) {
	border-color: var(--lpz-accent, #8b5cf6);
	background: var(--lpz-accent-soft, rgb(139 92 246 / 0.16));
}

.lpz-pz__place.is-checked::after,
.lpz-pz__place:has(.lpz-pz__place-input:checked)::after {
	content: "✓";
	content: "✓" / "";
	position: absolute;
	top: 50%;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: -0.625rem;
	border-radius: 50%;
	background: var(--lpz-accent, #8b5cf6);
	color: var(--lpz-on-accent, #0b0d12);
	font-size: 0.75rem;
	font-weight: 800;
}

.lpz-pz__place:focus-within {
	outline: 2px solid var(--lpz-accent-hover, #a78bfa);
	outline-offset: 2px;
}

.lpz-pz__step--place .lpz-pz__error {
	margin-top: 0.5rem;
}

/* ---------------------------------------------------------------- font picker */

.lpz-pz__font-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.625rem;
}

.lpz-pz__font {
	position: relative;
	display: grid;
	align-content: start;
	gap: 0.125rem;
	min-height: 72px;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--lpz-border-strong, #3a4050);
	border-radius: var(--lpz-radius, 12px);
	background: var(--lpz-bg, #0b0d12);
	cursor: pointer;
	transition: border-color var(--lpz-duration, 200ms) ease, background-color var(--lpz-duration, 200ms) ease;
}

/* The radio stays in the accessibility tree and keyboard order; the whole card is its label. */
.lpz-pz__font-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.lpz-pz__font-sample {
	overflow: hidden;
	padding-right: 1.25rem; /* Room for the check mark. */
	color: var(--lpz-text, #f5f5f7);
	font-size: 1.75rem;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lpz-pz__font-name,
.lpz-pz__font-status {
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.lpz-pz__font-status:empty {
	display: none;
}

.lpz-pz__font:hover {
	border-color: var(--lpz-accent-hover, #a78bfa);
}

.lpz-pz__font.is-checked {
	border-color: var(--lpz-accent, #8b5cf6);
	background: var(--lpz-accent-soft, rgb(139 92 246 / 0.16));
}

.lpz-pz__font.is-checked::after {
	content: "✓";
	content: "✓" / "";
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--lpz-accent, #8b5cf6);
	color: var(--lpz-on-accent, #0b0d12);
	font-size: 0.75rem;
	font-weight: 800;
}

.lpz-pz__font:focus-within {
	outline: 2px solid var(--lpz-accent-hover, #a78bfa);
	outline-offset: 2px;
}

.lpz-pz__font.is-loading .lpz-pz__font-sample {
	visibility: hidden; /* Never show the sample in a fallback font. */
}

.lpz-pz__font.is-unsupported {
	cursor: not-allowed;
	opacity: 0.6;
}

.lpz-pz__font.is-unsupported .lpz-pz__font-status {
	color: var(--lpz-danger, #f87171);
	font-weight: 600;
}

.lpz-pz__font.is-unsupported.is-checked {
	opacity: 1;
	border-color: var(--lpz-danger, #f87171);
	box-shadow: inset 0 0 0 1px var(--lpz-danger, #f87171);
}

.lpz-pz__font.is-unsupported.is-checked::after {
	background: var(--lpz-danger, #f87171);
}

/* ---------------------------------------------------------------- around the form */

.lpz-pz-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 0.5rem;
	color: var(--lpz-accent, #8b5cf6);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}

.lpz-pz-eyebrow::before {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1px;
	background: currentcolor;
}

/* Editable synced patterns (patterns.php): no extra spacing of their own. */
.lpz-pz-pattern > :first-child {
	margin-top: 0;
}

.lpz-pz-pattern--info {
	margin-top: 1rem;
}

/* Under the add-to-cart button (pattern "3D PrintXpress – info ispod gumba"): quiet, one wrapping
   row, a small accent icon per item chosen by its CSS class (lpz-icon-made / -parcel / -card),
   otherwise a dot. The icons are decorative (CSS only), the text says it all. */
.lpz-pz-pattern ul.lpz-pz-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.875rem;
	line-height: 1.4;
}

.lpz-pz-pattern ul.lpz-pz-facts > li {
	display: flex;
	align-items: center;
	gap: 0.4375rem;
	margin: 0;
	padding: 0;
}

.lpz-pz-pattern ul.lpz-pz-facts > li::before {
	content: "";
	flex: none;
	width: 0.375rem;
	height: 0.375rem;
	margin: 0 0.3125rem;
	border-radius: 50%;
	background-color: var(--lpz-accent, #8b5cf6);
}

.lpz-pz-pattern ul.lpz-pz-facts > li[class*="lpz-icon-"]::before {
	width: 1rem;
	height: 1rem;
	margin: 0;
	border-radius: 0;
	-webkit-mask: var(--lpz-pz-icon) center / contain no-repeat;
	mask: var(--lpz-pz-icon) center / contain no-repeat;
}

/* Layers being built up (made to order, 3D print). */
.lpz-pz-pattern ul.lpz-pz-facts > li.lpz-icon-made {
	--lpz-pz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 7.5l9 4.5 9-4.5L12 3Z'/%3E%3Cpath d='m3 12 9 4.5 9-4.5'/%3E%3Cpath d='m3 16.5 9 4.5 9-4.5'/%3E%3C/svg%3E");
}

/* Parcel. */
.lpz-pz-pattern ul.lpz-pz-facts > li.lpz-icon-parcel {
	--lpz-pz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8Z'/%3E%3Cpath d='m3 8 9 5 9-5'/%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='m7.5 5.5 9 5'/%3E%3C/svg%3E");
}

/* Payment card. */
.lpz-pz-pattern ul.lpz-pz-facts > li.lpz-icon-card {
	--lpz-pz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 10h19'/%3E%3Cpath d='M6.5 15h4'/%3E%3C/svg%3E");
}

/* Total for more than one piece: its own row under quantity + button. */
.lpz-pz-sum {
	flex: 1 1 100%;
	margin: 0;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.lpz-pz-sum[hidden] {
	display: none;
}

.lpz-pz-inquiry {
	margin: 1rem 0 0;
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.9375rem;
}

.lpz-pz-inquiry a {
	color: var(--lpz-accent, #8b5cf6);
	font-weight: 600;
	text-decoration: none;
}

.lpz-pz-inquiry a:hover,
.lpz-pz-inquiry a:focus-visible {
	color: var(--lpz-accent-hover, #a78bfa);
	text-decoration: underline;
}

/* ---------------------------------------------------------------- purchase bar (phones) */

.lpz-pz-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--lpz-accent-line, var(--lpz-border, #2a2f3c));
	background: rgb(18 21 28 / 0.97);
}

.lpz-pz-bar[hidden] {
	display: none;
}

.lpz-pz-bar__total {
	display: grid;
	margin: 0;
	color: var(--lpz-text, #f5f5f7);
	line-height: 1.2;
}

.lpz-pz-bar__label {
	color: var(--lpz-text-muted, #9ca3af);
	font-size: 0.75rem;
}

.lpz-pz-bar__total strong,
.lpz-pz-bar__total .woocommerce-Price-amount {
	color: var(--lpz-text, #f5f5f7);
	font-size: 1.125rem;
	font-weight: 700;
	white-space: nowrap;
}

.lpz-pz-bar .lpz-pz-bar__button {
	flex: 1;
	min-height: 48px;
	margin: 0;
}

body.lpz-pz-bar-on {
	padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* Astra's "back to top" button moves above the bar. */
body.lpz-pz-bar-on #ast-scroll-top {
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 1023px) {
	.lpz-pz__font-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 479px) {
	.lpz-pz__step,
	.lpz-pz-product form.cart table.variations {
		padding: 1rem;
	}

	.lpz-pz__step-value {
		top: 1.15rem;
		right: 1rem;
	}

	.lpz-pz__pair {
		grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 36%);
		gap: 0.625rem;
	}
}

@media (max-width: 359px) {
	.lpz-pz__font-grid,
	.lpz-pz__pair {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lpz-pz__font {
		transition: none;
	}
}
