/**
 * PID Label Coster.
 *
 * Scoped to .pidlc so it sits inside any theme without leaking. Colours come
 * from CSS variables set per site, so the same build brands for both domains.
 */

.pidlc {
	/* One type scale for the whole form, in six steps. The typeface is the
	   theme's; these are only the sizes. There were 21, several no one could
	   tell apart, and together they made pages that should match not quite.
	   Each use carries its own fallback, so pages outside the form - the
	   approval page - get the same sizes. */
	--pidlc-fs-xs: 0.8rem;      /* small print: keys, captions */
	--pidlc-fs-sm: 0.875rem;    /* help text, notes, secondary labels */
	--pidlc-fs-md: 1rem;        /* body, fields, buttons */
	--pidlc-fs-lg: 1.125rem;    /* subheadings: a block's legend, a review */
	--pidlc-fs-xl: 1.5rem;      /* a step's title */
	--pidlc-fs-price: 2.4rem;   /* the price */
	--pidlc-accent: #29ABE2;
	--pidlc-ink: #123047;
	--pidlc-alert: #FB3449;
	--pidlc-line: #d7dee4;
	--pidlc-muted: #62788a;
	--pidlc-wash: #f4f7f9;
	--pidlc-paper: #ffffff;

	color: var(--pidlc-ink);
	line-height: 1.5;
}

/* The enlarged view is moved to <body>, outside .pidlc, so it carries the
   neutral colours itself. Without them every border in it drew as none:
   the Close button and the arrows were flat on the page. */
.pidlc-lightbox {
	--pidlc-line: #d7dee4;
	--pidlc-muted: #62788a;
	--pidlc-wash: #f4f7f9;
	--pidlc-paper: #ffffff;
}

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

.pidlc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
	gap: 32px;
	align-items: start;
}

@media (max-width: 782px) {
	.pidlc-grid {
		/* minmax(0, 1fr), not 1fr: a bare 1fr will not shrink below its
		   content, so one wide child (the material table) pushed the whole
		   form past the screen and the theme clipped it. */
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* ------------------------------------------------------------------ Fields. */

.pidlc-field {
	border: 0;
	border-top: 1px solid var(--pidlc-line);
	margin: 0;
	padding: 20px 0 0;
	/* Browsers give a fieldset min-width: min-content, so it grows to fit
	   its widest child instead of letting that child scroll. On a phone that
	   took the material table to 437px on a 375px screen and the theme
	   clipped the rest: the Freezer column could not be reached at all. */
	min-width: 0;
}

.pidlc-inputs {
	min-width: 0;
}

.pidlc-inputs > .pidlc-field:first-child {
	border-top: 0;
	padding-top: 0;
}

.pidlc-field + .pidlc-field {
	margin-top: 20px;
}

.pidlc-field legend {
	font-weight: 600;
	font-size: var(--pidlc-fs-lg, 1.125rem);
	padding: 0;
	margin-bottom: 10px;
}

.pidlc-help {
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	margin: 8px 0 0;
}

.pidlc-centre {
	text-align: center;
}

.pidlc-dims {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pidlc-dims label > span:first-child {
	display: block;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-bottom: 4px;
}

.pidlc-input-unit {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-paper);
	overflow: hidden;
}

.pidlc-input-unit input {
	border: 0;
	padding: 10px 12px;
	width: 100%;
	/* Without min-width:0 the input refuses to shrink below its intrinsic
	   size and squeezes the unit instead. */
	min-width: 0;
	font-size: var(--pidlc-fs-md, 1rem);
	background: transparent;
	color: inherit;
	-moz-appearance: textfield;
}

.pidlc-input-unit > span {
	display: flex;
	align-items: center;
	justify-content: center;
	/* flex:none stops the unit being compressed until "mm" wraps to two
	   lines; min-width keeps the two columns aligned with each other. */
	flex: none;
	min-width: 3.25em;
	padding: 0 10px;
	background: var(--pidlc-wash);
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	white-space: nowrap;
	border-left: 1px solid var(--pidlc-line);
}

.pidlc-input-unit:focus-within {
	border-color: var(--pidlc-accent);
	box-shadow: 0 0 0 2px rgba(41, 171, 226, 0.25);
}

/* ------------------------------------------------------------------ Choices. */

.pidlc-choices {
	display: grid;
	gap: 8px;
}

.pidlc-choices--inline {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.pidlc-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 13px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	cursor: pointer;
	background: var(--pidlc-paper);
}

.pidlc-choice input {
	margin: 2px 0 0;
	accent-color: var(--pidlc-accent);
	flex: none;
}

.pidlc-choice span {
	display: block;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-choice em {
	display: block;
	font-style: normal;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-top: 2px;
}

.pidlc-choice:has(input:checked) {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc-choice:focus-within {
	outline: 2px solid var(--pidlc-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Quantity. */

.pidlc-qty {
	display: flex;
	max-width: 220px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	overflow: hidden;
	background: var(--pidlc-paper);
}

.pidlc-qty input {
	border: 0;
	text-align: center;
	width: 100%;
	font-size: var(--pidlc-fs-md, 1rem);
	padding: 10px 4px;
	background: transparent;
	color: inherit;
	-moz-appearance: textfield;
}

.pidlc-step {
	border: 0;
	background: var(--pidlc-wash);
	color: var(--pidlc-ink);
	width: 44px;
	font-size: var(--pidlc-fs-lg, 1.125rem);
	cursor: pointer;
}

.pidlc-step:hover {
	background: var(--pidlc-accent);
	color: #fff;
}

/* -------------------------------------------------------------- Print tabs. */

.pidlc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	border-bottom: 1px solid var(--pidlc-line);
}

.pidlc-tab {
	position: relative;
	cursor: pointer;
}

.pidlc-tab input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pidlc-tab span {
	display: block;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	white-space: nowrap;
}

.pidlc-tab:hover span {
	color: var(--pidlc-accent);
}

.pidlc-tab:has(input:checked) span {
	background: var(--pidlc-paper);
	border-color: var(--pidlc-line);
	color: var(--pidlc-ink);
	font-weight: 600;
	box-shadow: inset 0 3px 0 var(--pidlc-accent);
	margin-bottom: -1px;
}

.pidlc-tab:focus-within span {
	outline: 2px solid var(--pidlc-accent);
	outline-offset: -2px;
}

.pidlc-panel-body {
	padding: 16px 2px 2px;
}

.pidlc-lanes {
	margin: 10px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-lanes:not(:empty)::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--pidlc-accent);
	vertical-align: 1px;
}

.pidlc-perroll select:focus {
	border-color: var(--pidlc-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(41, 171, 226, 0.25);
}

#pidlc-roll-note:not(:empty) {
	border-left: 3px solid var(--pidlc-accent);
	padding-left: 10px;
	margin-top: 10px;
}

/* ------------------------------------------------------------------ Upload. */

.pidlc-subfield {
	margin-top: 12px;
}

.pidlc-upload {
	display: block;
	border: 1px dashed var(--pidlc-line);
	border-radius: 3px;
	padding: 16px;
	text-align: center;
	cursor: pointer;
	background: var(--pidlc-wash);
}

.pidlc-upload:hover {
	border-color: var(--pidlc-accent);
}

.pidlc-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pidlc-upload-text {
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 600;
}

.pidlc-upload-text em {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-top: 3px;
}

.pidlc-colour {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-colour input {
	width: 52px;
	height: 34px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	padding: 2px;
	background: none;
}

/* ------------------------------------------------------- Preview and price. */

.pidlc-panel {
	position: sticky;
	top: 24px;
	border: 1px solid var(--pidlc-line);
	border-top: 3px solid var(--pidlc-accent);
	border-radius: 3px;
	padding: 20px;
	background: var(--pidlc-paper);
}

@media (max-width: 782px) {
	.pidlc-panel {
		position: static;
	}
}

.pidlc-preview svg {
	display: block;
	width: 100%;
	height: auto;
}

.pidlc-price {
	margin-top: 18px;
}

.pidlc-price-value {
	display: block;
	font-size: var(--pidlc-fs-price, 2.4rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.pidlc-price-note {
	display: block;
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	margin-top: 4px;
}

.pidlc-price-meta {
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--pidlc-line);
	display: grid;
	gap: 6px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-price-meta > div {
	display: flex;
	justify-content: space-between;
}

.pidlc-price-meta dt {
	color: var(--pidlc-muted);
	margin: 0;
}

.pidlc-price-meta dd {
	margin: 0;
	font-weight: 600;
}

/* --------------------------------------------------------- Actions, errors. */

.pidlc-actions {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.pidlc-actions .pidlc-cta {
	flex: 1 1 0;
	min-width: 0;
	margin-top: 0;
	padding-left: 10px;
	padding-right: 10px;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-cta {
	display: block;
	width: 100%;
	margin-top: 18px;
	padding: 14px 20px;
	border: 0;
	border-radius: 3px;
	/* --pidlc-action is the Branding "Action button colour", set only when
	   chosen; without it, the accent as before. */
	background: var(--pidlc-action, var(--pidlc-accent));
	color: #fff;
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.pidlc-cta:hover {
	filter: brightness(0.93);
	color: #fff;
}

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

.pidlc-cta[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* The quieter of two buttons. After the base rule, which sets the same
   properties with the same weight: placed before it, as it was, the base
   rule won and "Save this quote" looked exactly like "Order now". */
.pidlc-cta--secondary {
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	box-shadow: inset 0 0 0 1px var(--pidlc-line);
}

.pidlc-cta--secondary:hover {
	filter: none;
	color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc-errors {
	margin-top: 14px;
	padding: 12px 14px;
	border-left: 3px solid var(--pidlc-alert);
	background: rgba(251, 52, 73, 0.06);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-errors p {
	margin: 0 0 6px;
}

.pidlc-errors p:last-child {
	margin-bottom: 0;
}

/* ----------------------------------------------------------- Contact block. */

.pidlc-details,
.pidlc-done {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--pidlc-line);
	max-width: 640px;
}

.pidlc-details h3,
.pidlc-done h3 {
	margin: 0 0 14px;
	font-size: var(--pidlc-fs-lg, 1.125rem);
}

.pidlc-details-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 600px) {
	.pidlc-details-grid {
		grid-template-columns: 1fr;
	}
}

.pidlc-details label {
	display: block;
}

.pidlc-details label > span {
	display: block;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-bottom: 4px;
}

.pidlc-details label em {
	font-style: normal;
	opacity: 0.7;
}

.pidlc-details input,
.pidlc-details textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	font-size: var(--pidlc-fs-md, 1rem);
	font-family: inherit;
	background: var(--pidlc-paper);
	color: inherit;
}

.pidlc-details input:focus,
.pidlc-details textarea:focus {
	border-color: var(--pidlc-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(41, 171, 226, 0.25);
}

.pidlc-full {
	display: block;
	margin-top: 12px;
}

/* ------------------------------------------------------------ Saved quotes. */

.pidlc-saved {
	max-width: 620px;
	margin: 0 auto;
	border: 1px solid var(--pidlc-line);
	border-top: 3px solid var(--pidlc-accent);
	border-radius: 3px;
	padding: 28px;
	background: var(--pidlc-paper);
}

.pidlc-ref {
	margin: 0 0 4px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	letter-spacing: 0.04em;
}

.pidlc-saved-head h2 {
	margin: 0 0 20px;
	font-size: var(--pidlc-fs-lg, 1.125rem);
	line-height: 1.35;
}

.pidlc-expired {
	margin-top: 18px;
	padding: 12px 14px;
	border-left: 3px solid var(--pidlc-alert);
	background: rgba(251, 52, 73, 0.06);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-next {
	margin: 24px 0 0;
	padding: 18px 0 0 20px;
	border-top: 1px solid var(--pidlc-line);
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-notice {
	max-width: 560px;
	padding: 24px;
	border-left: 3px solid var(--pidlc-alert);
	background: var(--pidlc-wash);
}

.pidlc-key {
	display: flex;
	align-items: baseline;
	gap: 7px;
	margin: 8px 0 0;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	line-height: 1.4;
}

.pidlc-preview-note {
	border-left: 3px solid var(--pidlc-accent);
	padding-left: 10px;
	margin-top: 10px;
}

.pidlc-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid var(--pidlc-line);
	border-radius: 2px;
	vertical-align: -2px;
	margin-right: 6px;
}

.pidlc-placement {
	margin: 0 0 18px;
	padding: 10px 12px;
	background: var(--pidlc-wash);
	border-radius: 3px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-choice--compact {
	justify-content: center;
	padding: 9px 12px;
}

.pidlc-choice--compact span {
	text-align: center;
}

/* ------------------------------------------------------- Unwind direction. */

.pidlc-orientations {
	display: grid;
	/* A magnified tile has to be allowed out of the grid box. */
	overflow: visible;
	/* Four across, two rows. The reel drawings carry real detail — which way
	   the web leaves the roll, which way the print faces — and at a smaller
	   size none of it is legible. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

@media (max-width: 640px) {
	.pidlc-orientations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pidlc-orient-zoom {
	margin-top: 10px;
	border: 1px solid var(--pidlc-line);
	background: var(--pidlc-paper);
	border-radius: 3px;
	padding: 7px 14px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-ink);
	cursor: pointer;
}

.pidlc-orient-zoom:hover {
	border-color: var(--pidlc-accent);
	color: var(--pidlc-accent);
}

.pidlc-orient input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pidlc-orient-icon {
	display: block;
	width: 100%;
}

.pidlc-orient-icon svg {
	display: block;
	width: 100%;
	height: auto;
}

.pidlc-orient-num {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 600;
	color: var(--pidlc-muted);
	text-align: center;
	line-height: 1.2;
}

.pidlc-orient-note {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	font-variant-numeric: tabular-nums;
	min-height: 1em;
	text-align: center;
}

.pidlc-orient-note.is-dearer {
	color: var(--pidlc-alert);
}

.pidlc-orient.is-unavailable {
	opacity: 0.4;
	cursor: not-allowed;
	background: var(--pidlc-wash);
}

.pidlc-orient.is-unavailable:hover {
	border-color: var(--pidlc-line);
}

/* Magnify on hover and on keyboard focus. The reel drawings carry detail —
   which way the web leaves the roll, which edge leads, how the labels sit on
   the liner — that a thumbnail cannot show, and a customer matching an old
   supplier's reel needs to see it. */
.pidlc-orient {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 6px 6px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	position: relative;
	z-index: 0;
	transform-origin: center center;
	transition: transform 120ms ease, box-shadow 120ms ease;
}

/* Hover, or reaching it from the keyboard. Not focus from a click: a
   clicked tile keeps focus, so it stayed enlarged over its neighbours until
   the customer clicked somewhere else. */
.pidlc-orient:hover,
.pidlc-orient:has(input:focus-visible) {
	/* Half as large again, not double: at twice its size a tile covered
	   the choices beside it, which is the opposite of helping choose. */
	transform: scale(1.5);
	z-index: 4;
	background: var(--pidlc-paper);
	border-color: var(--pidlc-accent);
	box-shadow: 0 6px 20px rgba(9, 22, 33, 0.18);
}

/* Grow inwards from whichever edge the tile sits on, or half the drawing
   ends up outside the panel. Eight tiles in four columns and two rows, so the
   origins are written out rather than computed. */
.pidlc-orientations .pidlc-orient:nth-child(1) { transform-origin: left top; }
.pidlc-orientations .pidlc-orient:nth-child(2),
.pidlc-orientations .pidlc-orient:nth-child(3) { transform-origin: center top; }
.pidlc-orientations .pidlc-orient:nth-child(4) { transform-origin: right top; }
.pidlc-orientations .pidlc-orient:nth-child(5) { transform-origin: left bottom; }
.pidlc-orientations .pidlc-orient:nth-child(6),
.pidlc-orientations .pidlc-orient:nth-child(7) { transform-origin: center bottom; }
.pidlc-orientations .pidlc-orient:nth-child(8) { transform-origin: right bottom; }

/* Two columns on a narrow screen, so the edge tiles are different ones. */
@media (max-width: 640px) {
	.pidlc-orientations .pidlc-orient:nth-child(odd) { transform-origin: left center; }
	.pidlc-orientations .pidlc-orient:nth-child(even) { transform-origin: right center; }
}

.pidlc-orient.is-unavailable:hover,
.pidlc-orient.is-unavailable:has(input:focus-visible) {
	transform: none;
	box-shadow: none;
	border-color: var(--pidlc-line);
}

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

.pidlc-orient:has(input:checked) {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
	background: rgba(41, 171, 226, 0.06);
}

.pidlc-orient:has(input:checked) .pidlc-orient-num {
	color: var(--pidlc-accent);
}

.pidlc-orient:has(input:focus-visible) {
	outline: 2px solid var(--pidlc-ink);
	outline-offset: 2px;
}

/* Chosen: settled, not enlarged - and ticked, a white tick reversed out of
   green, as the chosen quantity is. */
.pidlc-orient:has(input:checked):hover,
.pidlc-orient:has(input:checked):has(input:focus-visible) {
	transform: none;
	z-index: 1;
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc-orient:has(input:checked)::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1e8e3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
	pointer-events: none;
}

/* -------------------------------------------- Material/adhesive grid. */

.pidlc-vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pidlc-matrix-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pidlc-matrix {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-matrix th,
.pidlc-matrix td {
	border: 1px solid var(--pidlc-line);
	padding: 9px 10px;
	text-align: left;
	vertical-align: middle;
}

.pidlc-matrix thead th {
	background: var(--pidlc-wash);
	font-weight: 600;
	white-space: nowrap;
}

.pidlc-matrix th em,
.pidlc-matrix tbody th em {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	white-space: normal;
	max-width: 20ch;
	margin-top: 2px;
}

.pidlc-matrix tbody th {
	font-weight: 600;
	min-width: 11rem;
}

.pidlc-matrix td {
	text-align: center;
	padding: 0;
}

/* The radio itself is hidden but focusable; the label is the hit area, so a
   whole cell is clickable rather than a small dot in the middle of it. */
.pidlc-matrix td input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pidlc-matrix td label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	cursor: pointer;
}

.pidlc-matrix-mark {
	width: 17px;
	height: 17px;
	border: 1px solid var(--pidlc-line);
	border-radius: 50%;
	background: #fff;
}

.pidlc-matrix td label:hover .pidlc-matrix-mark {
	border-color: var(--pidlc-accent);
}

.pidlc-matrix td input:checked + label {
	background: rgba(41, 171, 226, 0.1);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

.pidlc-matrix td input:checked + label .pidlc-matrix-mark {
	border-color: var(--pidlc-accent);
	background: var(--pidlc-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

.pidlc-matrix td input:focus-visible + label {
	outline: 2px solid var(--pidlc-ink);
	outline-offset: -2px;
}

.pidlc-cta.is-working {
	position: relative;
	opacity: 0.85;
	cursor: progress;
}

.pidlc-cta.is-working::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 9px;
	vertical-align: -1px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pidlc-spin 0.7s linear infinite;
}

@media ( prefers-reduced-motion: reduce ) {
	.pidlc-cta.is-working::after { animation: none; }
}

/* A pairing we do not supply. The class was already on the cell and nothing
   styled it, so the circle looked exactly like an offered one and simply did
   not respond - which reads as a broken page rather than an answer.

   A small cross where the circle would be, rather than lines across the whole
   cell: a full-cell diagonal reads as damage to the table and, on a grid of
   adjacent crossed cells, the lines run into each other until it is hard to
   see which cell is which. A mark in the middle sits exactly where the eye is
   already looking for an answer. */
.pidlc-matrix td.is-unavailable {
	background: rgba(0, 0, 0, 0.015);
}

.pidlc-matrix td.is-unavailable label {
	cursor: not-allowed;
}

.pidlc-matrix td.is-unavailable .pidlc-matrix-mark {
	border: 0;
	background: none;
	position: relative;
	width: 18px;
	height: 18px;
}

.pidlc-matrix td.is-unavailable .pidlc-matrix-mark::before,
.pidlc-matrix td.is-unavailable .pidlc-matrix-mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 17px;
	height: 3px;
	border-radius: 2px;
	background: #d63638;
}

.pidlc-matrix td.is-unavailable .pidlc-matrix-mark::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.pidlc-matrix td.is-unavailable .pidlc-matrix-mark::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Nothing should suggest it can be chosen. */
.pidlc-matrix td.is-unavailable label:hover .pidlc-matrix-mark::before,
.pidlc-matrix td.is-unavailable label:hover .pidlc-matrix-mark::after {
	background: #d63638;
}

/* Phones get the grid as two drop-downs (see class-form.php); the grid, and
   the "Which adhesive?" link that stands in for its column notes, are the
   desktop's and the phone's respectively. */
.pidlc-matrix-about,
.pidlc-picks {
	display: none;
}

.pidlc-info-list {
	margin: 0 0 12px;
	padding-left: 1.1em;
}

.pidlc-info-list li + li {
	margin-top: 6px;
}

@media (max-width: 640px) {
	.pidlc-matrix-about {
		display: block;
		margin: -4px 0 12px;
	}

	.pidlc-matrix-scroll {
		display: none;
	}

	.pidlc-picks {
		display: block;
	}

	.pidlc-pick {
		display: block;
		margin: 0 0 6px;
		font-weight: 600;
	}

	.pidlc-picks select {
		display: block;
		width: 100%;
		min-height: 48px;
		/* 16px or more, or iOS zooms the page when the list is opened. */
		font-size: 16px;
	}

	.pidlc-picks select + .pidlc-pick,
	.pidlc-pick-note + .pidlc-pick {
		margin-top: 18px;
	}

	.pidlc-pick-note {
		margin: 6px 0 0;
		color: var(--pidlc-muted);
		font-size: var(--pidlc-fs-sm, 0.875rem);
	}

	.pidlc-pick-note:empty {
		display: none;
	}
}

/* --------------------------------------------------------- Special shape. */

.pidlc-special {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--pidlc-line);
	border-left: 3px solid var(--pidlc-accent);
	border-radius: 3px;
	background: var(--pidlc-wash);
}

.pidlc-special > .pidlc-help:first-child {
	margin: 0 0 12px;
	color: var(--pidlc-ink);
}

.pidlc-shape-upload {
	margin-top: 12px;
}

.pidlc-shape-upload .pidlc-upload {
	background: #fff;
}

/* ------------------------------------------------------------ Designs. */

.pidlc-designs {
	margin-top: 14px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	overflow: hidden;
}



.pidlc-design:first-child {
	border-top: 0;
}

.pidlc-design.is-active {
	background: rgba(41, 171, 226, 0.06);
	box-shadow: inset 3px 0 0 var(--pidlc-accent);
}

/* ------------------------------------------------- Scale and position. */

.pidlc-adjust {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
}

.pidlc-adjust-caption {
	flex: none;
}

.pidlc-nudge:hover {
	border-color: var(--pidlc-accent);
	color: var(--pidlc-accent);
}

.pidlc-adjust-range {
	width: 96px;
	accent-color: var(--pidlc-accent);
}

.pidlc-adjust-pct {
	margin-left: -2px;
}

.pidlc-adjust-centre {
	border: 0;
	background: none;
	padding: 4px 0 4px 4px;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-accent);
	cursor: pointer;
	text-decoration: underline;
}

.pidlc-adjust--compact {
	color: var(--pidlc-ink);
}

.pidlc-adjust--compact .pidlc-adjust-range {
	width: 130px;
}

/* ------------------------------------------------------------ Enlarge. */

.pidlc-preview svg,
.pidlc-lightbox-stage.is-grid {
	align-items: flex-start;
	justify-content: flex-start;
	overflow: auto;
}

@media (max-width: 900px) {
	.pidlc-orient-zoomgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pidlc-preview.is-dragging,
.pidlc-lightbox-stage.is-dragging {
	cursor: grabbing;
}

.pidlc-preview {
	background: linear-gradient(var(--pidlc-wash) 1px, transparent 1px) 0 0 / 100% 20px,
		linear-gradient(90deg, var(--pidlc-wash) 1px, transparent 1px) 0 0 / 20px 100%;
	border: 1px solid var(--pidlc-line);
	border-radius: 2px;
	padding: 8px;
	position: relative;
}

.pidlc-expand {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pidlc-ink);
	cursor: pointer;
}

.pidlc-expand:hover {
	border-color: var(--pidlc-accent);
	color: var(--pidlc-accent);
}

.pidlc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5vmin;
	background: rgba(9, 22, 33, 0.82);
}

.pidlc-lightbox[hidden] {
	display: none;
}

.pidlc-lightbox-inner {
	display: flex;
	flex-direction: column;
	width: 90vw;
	height: 90vh;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.pidlc-lightbox-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--pidlc-line);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-ink);
}

.pidlc-lightbox-name {
	font-weight: 600;
	max-width: 30ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pidlc-lightbox-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.pidlc-lightbox-pos {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	font-variant-numeric: tabular-nums;
}

.pidlc-lightbox-note {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
}

.pidlc-lightbox-hint {
	margin: 0;
	padding: 9px 16px;
	border-top: 1px solid var(--pidlc-line);
	background: var(--pidlc-wash);
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
}

.pidlc-lightbox-close {
	margin-left: auto;
	border: 1px solid var(--pidlc-line);
	background: none;
	border-radius: 3px;
	padding: 6px 14px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-ink);
	cursor: pointer;
}

.pidlc-lightbox-close:hover {
	border-color: var(--pidlc-accent);
	color: var(--pidlc-accent);
}

.pidlc-lightbox-stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background:
		linear-gradient(var(--pidlc-wash) 1px, transparent 1px) 0 0 / 100% 20px,
		linear-gradient(90deg, var(--pidlc-wash) 1px, transparent 1px) 0 0 / 20px 100%;
}

.pidlc-lightbox-stage.is-grid {
	align-items: flex-start;
	justify-content: flex-start;
	overflow: auto;
}

.pidlc-orient-zoomgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

@media (max-width: 900px) {
	.pidlc-orient-zoomgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pidlc-orient-zoomcell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
}

.pidlc-orient-zoomcell svg {
	width: 100%;
	height: auto;
}

.pidlc-orient-zoomcell:hover {
	border-color: var(--pidlc-accent);
}

.pidlc-orient-zoomcell.is-active {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

.pidlc-orient-zoomcell.is-unavailable {
	opacity: 0.4;
	cursor: not-allowed;
	background: var(--pidlc-wash);
}

.pidlc-orient-zoomnum {
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 700;
	color: var(--pidlc-ink);
}

.pidlc-orient-zoomnote {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
}

.pidlc-lightbox-stage svg {
	touch-action: none;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: 100%;
}

body.pidlc-locked {
	overflow: hidden;
}

/* ------------------------------------------------------- Design approval. */

/* Room to work: the proof, the adjuster and the decision. At 720px the
   proof was a thumbnail and the adjuster a postage stamp. A theme's own
   content width still applies; this only stops us narrowing it further. */
.pidlc-approval {
	max-width: 1100px;
	margin: 0 auto;
	border: 1px solid var(--pidlc-line);
	border-top: 3px solid var(--pidlc-accent);
	border-radius: 3px;
	padding: 28px;
	background: var(--pidlc-paper);
}

.pidlc-approval-item {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--pidlc-line);
}

.pidlc-approval-item h3 {
	margin: 0 0 14px;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-approval-design {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 12px 0;
}

.pidlc-approval-proof {
	flex: none;
	width: 320px;
	max-width: 42%;
	height: auto;
	border: 1px solid var(--pidlc-line);
	border-radius: 2px;
	background: #fff;
}

.pidlc-approval-detail {
	flex: 1;
	min-width: 0;
}

/* On a phone the proof goes above the details rather than beside them.
   Side by side, the proof took 40% and squeezed four buttons into columns
   two words wide. A bigger proof is also the better one to check. */
@media (max-width: 560px) {
	.pidlc-approval-design {
		flex-direction: column;
		align-items: stretch;
	}

	.pidlc-approval-design > .pidlc-proof-open {
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
	}
}

.pidlc-approval-name {
	margin: 0 0 4px;
	font-weight: 600;
}

.pidlc-approval-name span {
	font-weight: 400;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-left: 6px;
}

.pidlc-approval-note {
	margin: 8px 0 0;
	padding: 8px 10px;
	background: var(--pidlc-wash);
	border-left: 3px solid var(--pidlc-accent);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-approval-actions {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--pidlc-line);
}

.pidlc-approval-name-field {
	display: block;
	max-width: 320px;
	margin-bottom: 14px;
}

.pidlc-approval-name-field span {
	display: block;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
	margin-bottom: 4px;
}

.pidlc-approval-name-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-approved-note,
.pidlc-changes-note {
	margin: 0 0 6px;
	padding: 12px 14px;
	border-radius: 3px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.55;
}

.pidlc-approved-note {
	background: rgba(0, 132, 74, 0.08);
	border-left: 3px solid #00844a;
}

.pidlc-changes-note {
	background: rgba(41, 171, 226, 0.08);
	border-left: 3px solid var(--pidlc-accent);
}

.pidlc-proof-open {
	flex: none;
	width: 320px;
	max-width: 42%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	display: block;
	position: relative;
}

.pidlc-proof-open .pidlc-approval-proof {
	width: 100%;
	max-width: none;
	display: block;
}

.pidlc-proof-hint {
	display: block;
	margin-top: 4px;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	text-align: center;
}

.pidlc-proof-open:hover .pidlc-approval-proof {
	border-color: var(--pidlc-accent);
}

.pidlc-proof-open:hover .pidlc-proof-hint {
	color: var(--pidlc-accent);
}

.pidlc-approval-links {
	margin: 8px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-proof-viewer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	background: rgba(9, 22, 33, 0.9);
	padding: 2vmin;
}

.pidlc-proof-viewer[hidden] {
	display: none;
}

.pidlc-proof-viewer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	color: #fff;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
}

.pidlc-proof-viewer-bar button {
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: none;
	color: #fff;
	border-radius: 3px;
	padding: 7px 16px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	cursor: pointer;
}

.pidlc-proof-viewer-bar button:hover {
	background: rgba(255, 255, 255, 0.12);
}

.pidlc-proof-viewer-stage {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	background: #fff;
	border-radius: 3px;
}

.pidlc-proof-viewer-stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
}

.pidlc-proof-viewer-hint {
	margin: 8px 0 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--pidlc-fs-xs, 0.8rem);
}

.pidlc-version-history {
	margin: 6px 0 0;
	padding: 10px 0 0;
	border-top: 1px dashed var(--pidlc-line);
}

.pidlc-version-history summary {
	cursor: pointer;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-accent);
}

.pidlc-version-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.pidlc-version-card {
	padding: 10px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-wash);
}

.pidlc-version-card.is-current {
	border-color: var(--pidlc-accent);
	background: rgba(41, 171, 226, 0.06);
}

.pidlc-version-card .pidlc-proof-open {
	width: 100%;
	max-width: none;
}

.pidlc-version-label {
	margin: 8px 0 0;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	line-height: 1.4;
}

.pidlc-version-label span {
	display: block;
	color: var(--pidlc-muted);
}

.pidlc-approval-noproof {
	flex: none;
	width: 180px;
	max-width: 40%;
	padding: 12px;
	border: 1px dashed var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-wash);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-approval-noproof p {
	margin: 0 0 6px;
}

.pidlc-working {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 0 12px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-working[hidden] {
	display: none;
}

.pidlc-spinner {
	flex: none;
	width: 15px;
	height: 15px;
	border: 2px solid var(--pidlc-line);
	border-top-color: var(--pidlc-accent);
	border-radius: 50%;
	animation: pidlc-spin 700ms linear infinite;
}

@keyframes pidlc-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.pidlc-spinner {
		animation-duration: 2s;
	}
}

.pidlc-fit {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 3px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.5;
}

.pidlc-fit[hidden] {
	display: none;
}

.pidlc-fit.is-good {
	background: rgba(0, 166, 90, 0.09);
	border-left: 3px solid #00A65A;
}

.pidlc-fit.is-good strong::before {
	content: '\2713\00a0';
	color: #00A65A;
	font-weight: 700;
}

.pidlc-fit.is-short {
	background: rgba(236, 0, 140, 0.07);
	border-left: 3px solid #EC008C;
}

.pidlc-lightbox-fit {
	flex: 1 1 100%;
	padding: 8px 11px;
	border-radius: 3px;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	line-height: 1.5;
	font-weight: 400;
}

.pidlc-lightbox-fit.is-good {
	background: rgba(0, 166, 90, 0.1);
	border-left: 3px solid #00A65A;
}

.pidlc-lightbox-fit.is-short {
	background: rgba(236, 0, 140, 0.08);
	border-left: 3px solid #EC008C;
}

.pidlc-order-proof img {
	display: block;
	max-width: 110px;
	height: auto;
	border: 1px solid #e3e8ec;
	border-radius: 2px;
}

/* --------------------------------------------- Order received guidance. */

.pidlc-next-steps {
	margin: 22px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--pidlc-line, #d7dee4);
	border-left: 3px solid var(--pidlc-accent, #29ABE2);
	border-radius: 3px;
	background: var(--pidlc-wash, #f4f7f9);
}

.pidlc-next-steps-head {
	margin: 0 0 10px;
	font-weight: 600;
	font-size: var(--pidlc-fs-md, 1rem);
	color: var(--pidlc-ink, #123047);
}

.pidlc-next-steps ol {
	margin: 0;
	padding-left: 20px;
}

.pidlc-next-steps li {
	margin-bottom: 7px;
	line-height: 1.55;
}

.pidlc-next-steps li:last-child {
	margin-bottom: 0;
}

.pidlc-next-steps-note {
	margin: 12px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted, #62788a);
}

.pidlc-approval-logo {
	display: block;
	max-height: 52px;
	max-width: 260px;
	width: auto;
	margin: 0 0 18px;
}

.pidlc-basket {
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid var(--pidlc-line);
	border-left: 3px solid var(--pidlc-accent);
	border-radius: 3px;
	background: var(--pidlc-wash);
}

.pidlc-basket[hidden] {
	display: none;
}

.pidlc-basket-head {
	margin: 0 0 8px;
	font-weight: 600;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-basket-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pidlc-basket-list li:first-child {
	border-top: 0;
}

.pidlc-basket-price {
	font-weight: 600;
	white-space: nowrap;
}

.pidlc-basket-edit,
.pidlc-basket-remove {
	grid-column: 1 / -1;
	justify-self: start;
	border: 0;
	background: none;
	padding: 0;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	text-decoration: underline;
	cursor: pointer;
}

.pidlc-basket-remove:hover {
	color: var(--pidlc-alert);
}

.pidlc-basket-edit {
	border: 0;
	background: none;
	padding: 0;
	margin-right: 12px;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-accent);
	text-decoration: underline;
	cursor: pointer;
}

.pidlc-basket-list li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 10px;
	padding: 8px 0;
	border-top: 1px solid var(--pidlc-line);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.45;
	position: relative;
}

.pidlc-basket-edit,
.pidlc-basket-remove {
	display: inline-block;
	grid-column: auto;
}

.pidlc-basket-total {
	margin: 10px 0 0;
	padding-top: 9px;
	border-top: 1px solid var(--pidlc-line);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-cta--add {
	margin-top: 18px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc-cta--add:hover {
	filter: none;
	background: var(--pidlc-accent);
	color: #fff;
}

.pidlc-order-total {
	margin: 10px 0 0;
	padding: 9px 11px;
	border-radius: 3px;
	background: rgba(41, 171, 226, 0.09);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.5;
}

.pidlc-order-total[hidden] {
	display: none;
}

.pidlc-order-total span {
	color: var(--pidlc-muted);
}

.pidlc-decide {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 10px 0 0;
}

.pidlc-decide button {
	border: 0;
	border-radius: 3px;
	padding: 9px 16px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
	cursor: pointer;
	color: #fff;
}

.pidlc-decide-yes {
	background: #00844a;
}

.pidlc-decide-yes:hover {
	filter: brightness(1.1);
}

/* One row of actions on the confirmation page. Approve is the only filled
   button; asking for a change, adjusting and uploading are the alternatives
   to it and look alike, so none of them reads as a footnote. Asking for a
   change turns amber once chosen, as the decision it then is. */
.pidlc-decide .pidlc-decide-no,
.pidlc-decide .pidlc-tool {
	background: var(--pidlc-paper, #fff);
	color: var(--pidlc-ink);
	box-shadow: inset 0 0 0 1px var(--pidlc-line);
}

.pidlc-decide .pidlc-decide-no:hover,
.pidlc-decide .pidlc-tool:hover,
.pidlc-decide .pidlc-tool.is-open {
	filter: none;
	color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc-decide .pidlc-tool.is-open {
	background: rgba(41, 171, 226, 0.08);
}

.pidlc-decide.is-change .pidlc-decide-no {
	background: #C77700;
	color: #fff;
	box-shadow: none;
}

.pidlc-decide button:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Two by two: the decision on the first row, the alternatives on the
   second, every button the same width. Left to wrap, three fitted and the
   fourth sat alone underneath, which looked like an afterthought. */
.pidlc-approval .pidlc-decide {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 220px));
}

.pidlc-approval .pidlc-decide button {
	width: 100%;
}

.pidlc-approval .pidlc-decide-state {
	grid-column: 1 / -1;
}

.pidlc-approval .pidlc-decide-state:empty {
	display: none;
}

@media (max-width: 560px) {
	.pidlc-approval .pidlc-decide {
		grid-template-columns: 1fr 1fr;
	}
}

/* The panels open from the row above; their own headings would be a second
   way to the same thing. The studio's order screen keeps its headings. */
.pidlc-approval .pidlc-tool-panel > summary {
	display: none;
}

.pidlc-approval details.pidlc-tool-panel {
	margin: 0;
}

.pidlc-approval details.pidlc-tool-panel[open] {
	margin: 12px 0 0;
}

.pidlc-approval details.pidlc-tool-panel[open] {
	padding: 14px;
	border: 1px solid var(--pidlc-line);
	border-radius: 4px;
}

.pidlc-replace-editor {
	margin: 12px 0;
}

/* .pidlc-adjust-body sets display:block, which beats the hidden attribute:
   the new-file editor showed, empty and with controls that did nothing,
   before a file was chosen and for a file that cannot be drawn. */
.pidlc-adjust-body[hidden] {
	display: none;
}

.pidlc-decide-state {
	flex: 1 1 100%;
	margin: 2px 0 0;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 600;
}

.pidlc-decide.is-approved .pidlc-decide-state {
	color: #00844a;
}

.pidlc-decide.is-change .pidlc-decide-state {
	color: #C77700;
}

.pidlc-decide.is-approved .pidlc-decide-yes,
.pidlc-decide.is-change .pidlc-decide-no {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.pidlc-cta--approve {
	background: #00844a;
}

.pidlc-cta--amend {
	background: #C77700;
}

.pidlc-cta:disabled {
	background: var(--pidlc-line);
	color: var(--pidlc-muted);
	cursor: not-allowed;
	filter: none;
}

.pidlc-amend {
	border: 0;
	border-radius: 4px;
	padding: 22px;
	max-width: 480px;
	width: 90vw;
	box-shadow: 0 20px 60px rgba(9, 22, 33, 0.3);
}

.pidlc-amend::backdrop {
	background: rgba(9, 22, 33, 0.55);
}

.pidlc-amend h3 {
	margin: 0 0 8px;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-amend textarea {
	width: 100%;
	margin-top: 8px;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	font-family: inherit;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-amend-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
}

.pidlc-amend-actions button {
	border-radius: 3px;
	padding: 10px 18px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	cursor: pointer;
}

#pidlc-amend-cancel {
	border: 1px solid var(--pidlc-line);
	background: #fff;
}

.pidlc-shape-note {
	margin: 8px 0 0;
	padding: 9px 11px;
	border-left: 3px solid #00A65A;
	background: rgba(0, 166, 90, 0.08);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.5;
}

.pidlc-shape-note[hidden] {
	display: none;
}

.pidlc-approve-all-wrap {
	margin: 22px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-wash);
	text-align: center;
}

.pidlc-approve-all-wrap[hidden] {
	display: none;
}

.pidlc-approve-all-wrap .pidlc-cta {
	margin: 0 0 8px;
	display: inline-block;
	width: auto;
	padding-left: 28px;
	padding-right: 28px;
}

.pidlc-approve-all-wrap .pidlc-help {
	display: block;
	margin: 0;
}

.pidlc-adjust-track .pidlc-adjust-range {
	width: 100%;
	margin: 0;
	display: block;
}

.pidlc-adjust-track .pidlc-adjust-num {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 4.4em;
	padding: 1px 2px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-paper);
	font-size: var(--pidlc-fs-xs, 0.8rem);
	text-align: center;
	-moz-appearance: textfield;
}

.pidlc-adjust-track .pidlc-adjust-num::-webkit-outer-spin-button,
.pidlc-adjust-track .pidlc-adjust-num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pidlc-panel-size[hidden] {
	display: none;
}

.pidlc-colour-note {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--pidlc-line);
	border-left: 3px solid var(--pidlc-alert);
	border-radius: 3px;
	background: var(--pidlc-wash);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.5;
}

.pidlc-colour-note-head {
	margin: 0 0 6px;
	font-weight: 600;
}

.pidlc-colour-note ul {
	margin: 0 0 8px;
	padding-left: 18px;
}

.pidlc-colour-note li {
	margin-bottom: 5px;
}

.pidlc-colour-note p:last-child {
	margin: 0;
}

.pidlc-key-safe {
	display: inline-block;
	width: 22px;
	height: 0;
	margin-right: 6px;
	vertical-align: middle;
	border-top: 1px dashed var(--pidlc-accent);
}

/* details.pidlc-adjust, not .pidlc-adjust. The ordering form's size control
   has carried that class since long before this editor existed, and these
   rules were landing on it: display:block overrode its flex row, so its
   slider, steppers and readout stacked one above another and the enlarged
   view looked broken. The editor is a <details>; the size control is a
   <div>. Naming the element is enough to keep them apart. */
details.pidlc-adjust {
	/* Its own block, below whatever came before it. The proof above sits
	   inline, so without this the heading wrapped alongside the image and the
	   drawing appeared to the right of its own title. */
	display: block;
	clear: both;
	margin: 16px 0 14px;
}

details.pidlc-adjust > summary {
	display: list-item;
	width: 100%;
}

/* Not the stage. It is sized to the room available already, and clamping it
   again caps the drawing at the width at which the artwork covers the bleed -
   the same fault as the theme's img rule, from our own stylesheet. */
.pidlc-adjust-body > *:not(.pidlc-adjust-stage) {
	max-width: 100%;
}
details.pidlc-adjust summary { cursor: pointer; font-weight: 600; color: var(--pidlc-accent); }
/* Full width, starting below the heading. The proof above is floated, so
   without clearing it the heading wrapped into the gap beside the image and
   the drawing appeared to the right of its own title, indented to the float's
   edge rather than to the panel's. */
.pidlc-adjust-body {
	display: block;
	clear: both;
	width: 100%;
	margin-left: 0;
	padding-left: 0;
	padding: 12px 0 0;
}
.pidlc-adjust-stage {
	position: relative;
	/* No max-width. It shrank the stage below the size the drawing had been
	   built for, and everything inside was then placed against a width that
	   no longer existed. The stage sizes itself to the room available
	   instead, which is what the pixels-per-millimetre sum is for. */
	/* Flush left, with its heading and its controls. Centred, it lined up with
	   nothing else on the panel and read as though it belonged to something
	   different. */
	margin: 0 0 8px;
	background: #fff;
	border: 1px solid var(--pidlc-line);
	touch-action: none;
	cursor: grab;
	overflow: hidden;
}
.pidlc-adjust-stage:active { cursor: grabbing; }
.pidlc-adjust-art {
	position: absolute;
	user-select: none;
	pointer-events: none;

	/* Themes set img { max-width: 100% } almost universally, and this is an
	   img inside a box the size of the label. So the artwork stopped growing
	   at exactly the stage width - which is the size at which it covers the
	   bleed. Every larger figure changed the number and the millimetres and
	   not the picture, and it read as "the size control stops working once it
	   is right", because that is exactly where it stopped. */
	max-width: none;
	max-height: none;
	min-width: 0;
	/* Belt and braces. The box is computed from the artwork's own shape, but
	   if that arithmetic is ever wrong the artwork should letterbox rather than
	   distort - a customer judging a circular label needs it to be round. */
	object-fit: contain;
}
.pidlc-adjust-guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pidlc-adjust-superseded {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-left: 3px solid #C77700;
	background: rgba(199, 119, 0, 0.07);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-adjust-note {
	margin-top: 4px;
}

.pidlc-adjust-guides-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 8px 0 2px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-adjust-guides-toggle label {
	display: flex;
	align-items: center;
	gap: 5px;
	padding-bottom: 2px;
	cursor: pointer;
}

.pidlc-adjust-controls {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0;
}
.pidlc-adjust-controls label { font-size: var(--pidlc-fs-sm, 0.875rem); display: flex; align-items: center; gap: 6px; }
.pidlc-adjust-controls input[type="number"] { width: 5.5em; }

.pidlc-adjust-size-said {
	display: block;
	margin-top: 4px;
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-adjust-typed {
	width: 5.5em;
	text-align: right;
}
.pidlc-adjust-verdict { font-size: var(--pidlc-fs-sm, 0.875rem); margin: 0 0 6px; }
.pidlc-adjust-verdict.is-good { color: #00844a; }
.pidlc-adjust-verdict.is-short { color: #C77700; }
.pidlc-adjust-state { font-size: var(--pidlc-fs-sm, 0.875rem); margin: 6px 0 0; }
.pidlc-waiting {
	margin: 0 0 4px;
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-price:has(.pidlc-waiting:not([hidden])) .pidlc-price-main,
.pidlc-price:has(.pidlc-waiting:not([hidden])) .pidlc-price-meta {
	display: none;
}

.pidlc-fit-cover {
	display: inline-block; margin-top: 8px; padding: 6px 12px; font-size: var(--pidlc-fs-sm, 0.875rem); cursor: pointer;
	border: 1px solid currentColor; background: #fff; color: inherit; border-radius: 3px;
}

.pidlc-adjust-cover {
	margin: 0 0 8px; padding: 6px 12px; font-size: var(--pidlc-fs-sm, 0.875rem); cursor: pointer;
	border: 1px solid var(--pidlc-accent); background: #fff; color: var(--pidlc-accent); border-radius: 3px;
}

/* Honeypot. Off-screen rather than display:none so naive bots still fill it. */
.pidlc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.pidlc * {
		scroll-behavior: auto !important;
	}
}

/* The white ink box: a plain checkbox and its label, sitting with the help
   text above and below it rather than looking like a field of its own. */
.pidlc .pidlc-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 4px;
	cursor: pointer;
	font-weight: 600;
}
.pidlc .pidlc-check input {
	margin: 3px 0 0;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--pidlc-accent, #123047);
}
.pidlc .pidlc-check em {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	opacity: 0.75;
}
.pidlc .pidlc-white-found {
	color: #8a4b0f;
	font-weight: 600;
}

/* ------------------------------------------------------------------ Steps.
   A layer over the form, switched on by assets/steps.js. Everything here is
   scoped to .pidlc-stepped: without that class, the one-page form is drawn
   exactly as before. */

.pidlc-stepped .pidlc-step-off {
	display: none !important;
}

.pidlc-stepnav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 4px;
	margin: 0 0 26px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--pidlc-line);
}

/* Across the top of the form and the drawing: one line on a wide screen,
   each step joined to the next by a rule that turns solid once passed. */
@media (min-width: 900px) {
	.pidlc-stepnav {
		flex-wrap: nowrap;
		gap: 0;
	}

	.pidlc-stepnav-item {
		flex: 1 1 auto;
		padding-right: 0;
	}

	.pidlc-stepnav-item:last-child {
		flex: 0 0 auto;
		padding-right: 10px;
	}

	.pidlc-stepnav-item:not(:last-child)::after {
		content: "";
		flex: 1 1 auto;
		min-width: 16px;
		height: 2px;
		margin: 0 10px 0 4px;
		background: var(--pidlc-line);
	}

	.pidlc-stepnav-item.is-done::after {
		background: var(--pidlc-ink);
	}

	.pidlc-stepnav-name {
		white-space: nowrap;
	}
}

.pidlc-stepnav-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 4px 10px 4px 4px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--pidlc-muted);
	font: inherit;
	font-size: var(--pidlc-fs-md, 1rem);
	cursor: pointer;
}

.pidlc-stepnav-item:hover .pidlc-stepnav-name {
	text-decoration: underline;
}

.pidlc-stepnav-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e6eaee;
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 700;
}

.pidlc-stepnav-item.is-done {
	color: var(--pidlc-ink);
	font-weight: 600;
}

.pidlc-stepnav-item.is-done .pidlc-stepnav-dot {
	background: var(--pidlc-ink);
	color: #ffffff;
}

.pidlc-stepnav-item.is-current {
	color: var(--pidlc-ink);
	font-weight: 700;
}

.pidlc-stepnav-item.is-current .pidlc-stepnav-dot {
	background: #ffffff;
	box-shadow: inset 0 0 0 3px var(--pidlc-accent);
	color: var(--pidlc-ink);
}

.pidlc-stepnav-mobile {
	display: none;
	margin: 0 0 14px;
	font-weight: 700;
	color: var(--pidlc-ink);
}

.pidlc-step-title {
	margin: 0 0 4px;
	font-size: var(--pidlc-fs-xl, 1.5rem);
	color: var(--pidlc-ink);
}

.pidlc-start-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.pidlc-start-choice {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 150px;
	padding: 20px;
	border: 1px solid var(--pidlc-line);
	border-radius: 14px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.pidlc-start-choice:hover,
.pidlc-start-choice[aria-pressed="true"] {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

.pidlc-start-tag {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eaf5fb;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 700;
}

.pidlc-start-name {
	font-size: var(--pidlc-fs-lg, 1.125rem);
	font-weight: 700;
}

.pidlc-start-text {
	color: var(--pidlc-muted);
	line-height: 1.45;
}

.pidlc-review-title {
	margin: 0 0 8px;
	font-size: var(--pidlc-fs-lg, 1.125rem);
	color: var(--pidlc-ink);
}

.pidlc-review-list {
	margin: 0 0 8px;
}

.pidlc-review-list > div {
	display: grid;
	grid-template-columns: 9em minmax(0, 1fr) auto;
	gap: 12px;
	align-items: baseline;
	padding: 10px 0;
	border-top: 1px solid var(--pidlc-line);
}

.pidlc-review-list dt {
	color: var(--pidlc-muted);
}

.pidlc-review-list dd {
	margin: 0;
	font-weight: 600;
}

.pidlc-review-change {
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: #1a6e93;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.pidlc-stepfoot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--pidlc-line);
}

/* On a desktop the steps and Back / Next stay at the top of the window as
   the page scrolls, and Back / Next at the foot of the form stay at the
   bottom: moving on never means scrolling to find the button. The panel
   beside the form sits below the bar. assets/steps.js measures whatever the
   theme keeps fixed at the top of the window - its header, the admin bar -
   and sets --pidlc-stick-top, so the bar stops under the site's header
   rather than riding over it. It also sets --pidlc-bar-bg to the page's own
   background, so the bar and foot match the site instead of a white strip.
   (Phones have their own arrangement, below.) */
.pidlc {
	--pidlc-stick-top: 0px;
	/* Moving to a step scrolls the form's top into view: below the header,
	   not under it. */
	scroll-margin-top: var(--pidlc-stick-top);
}

@media (min-width: 721px) {
	.pidlc-stepped .pidlc-stepbar {
		position: sticky;
		top: var(--pidlc-stick-top);
		/* Above the foot (5), so at the end of the form the foot passes under
		   it - but below the site's header. Kadence puts the whole header,
		   drop-down menus and all, at 11; at 31 the bar covered the menus.
		   Everything the form stacks stays under 10 for the same reason. */
		z-index: 6;
		margin: 0 0 22px;
		padding: 12px 0 0;
		background: var(--pidlc-bar-bg, var(--pidlc-paper, #ffffff));
		border-bottom: 1px solid var(--pidlc-line);
		box-shadow: 0 6px 14px -12px rgba(18, 48, 71, 0.35);
	}

	/* Until the script has measured (or if it cannot), allow for the
	   admin bar; once measured, --pidlc-stick-top already includes it. */
	body.admin-bar .pidlc-stepped:not(.pidlc-stick-measured) .pidlc-stepbar {
		top: calc(var(--pidlc-stick-top) + 32px);
	}

	.pidlc-stepped .pidlc-stepbar .pidlc-stepnav {
		margin: 0 0 12px;
		padding: 0;
		border-bottom: 0;
	}

	.pidlc-stepped .pidlc-stepbar .pidlc-stephead {
		margin: 0 0 12px;
	}

	.pidlc-stepped .pidlc-stepfoot {
		position: sticky;
		bottom: 0;
		z-index: 5;
		padding: 14px 0;
		background: var(--pidlc-bar-bg, var(--pidlc-paper, #ffffff));
		box-shadow: 0 -6px 14px -12px rgba(18, 48, 71, 0.35);
	}

	.pidlc-stepped .pidlc-panel {
		top: calc(var(--pidlc-stick-top) + var(--pidlc-bar-h, 0px) + 24px);
	}

	body.admin-bar .pidlc-stepped:not(.pidlc-stick-measured) .pidlc-panel {
		top: calc(var(--pidlc-stick-top) + var(--pidlc-bar-h, 0px) + 56px);
	}
}

.pidlc-qty-row[hidden],
.pidlc-help[hidden] {
	display: none !important;
}

/* The same pair at the top, under the step bar and across both columns. */
.pidlc-stephead {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 22px;
}

.pidlc-step-back,
.pidlc-step-next {
	min-height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pidlc-step-back {
	border: 1px solid var(--pidlc-line);
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
}

.pidlc-step-next {
	margin-left: auto;
	border: 0;
	background: var(--pidlc-action, var(--pidlc-ink));
	color: #ffffff;
}

.pidlc-price-later {
	margin: 14px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #eaf5fb;
	color: var(--pidlc-ink);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.45;
}

/* The price, and everything that acts on it, waits for the last step - and
   then stays. */
.pidlc-stepped:not(.pidlc-price-earned) #pidlc-price,
.pidlc-stepped:not(.pidlc-price-earned) .pidlc-actions,
.pidlc-stepped:not(.pidlc-price-earned) .pidlc-actions + .pidlc-help,
.pidlc-stepped:not(.pidlc-price-earned) #pidlc-add-design,
.pidlc-stepped:not(.pidlc-price-earned) #pidlc-add-design-help,
.pidlc-stepped:not(.pidlc-price-earned) #pidlc-add-another,
.pidlc-stepped:not(.pidlc-price-earned) #pidlc-add-another + .pidlc-help {
	display: none !important;
}

.pidlc-key-cut {
	flex: none;
	width: 16px;
	height: 0;
	border-top: 1px dashed #EC008C;
	transform: translateY(-3px);
}

.pidlc-key-bleed {
	flex: none;
	width: 16px;
	height: 0;
	border-top: 1px dashed #EC008C;
	transform: translateY(-3px);
	border-top-color: #9aa7b1;
}

/* On a phone the step bar becomes one line, and Back and Next stay within
   reach at the foot of the screen. */
@media (max-width: 720px) {
	.pidlc-stepped .pidlc-stepnav {
		display: none;
	}

	.pidlc-stepped .pidlc-stepnav-mobile {
		display: block;
	}

	.pidlc-stepped .pidlc-stepfoot {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 22px -16px 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: var(--pidlc-paper);
		box-shadow: 0 -4px 16px rgba(18, 48, 71, 0.08);
	}

	.pidlc-review-list > div {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.pidlc-review-list dt {
		grid-column: 1 / -1;
	}
}

/* The corner radius, under the shape choices. Rectangles only. */
.pidlc-radius {
	margin-top: 14px;
}

.pidlc-radius-field {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.pidlc-radius-input {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pidlc-radius-input input {
	width: 6em;
	min-height: 44px;
}

.pidlc-radius-input em {
	font-style: normal;
	color: var(--pidlc-muted);
}

/* The artwork's size, read from the file, and the quarter turn. */
.pidlc-size-found {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #eaf5fb;
}

.pidlc-size-found-text {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--pidlc-ink);
}

.pidlc-size-found-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pidlc-size-use,
.pidlc-size-alt,
.pidlc-turn {
	min-height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pidlc-size-use {
	border: 0;
	background: var(--pidlc-ink);
	color: #ffffff;
}

.pidlc-turn,
.pidlc-size-alt {
	border: 1px solid var(--pidlc-line);
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
}

.pidlc-size-found .pidlc-help {
	margin: 10px 0 0;
}

/* Whole-roll quantities, each with what it costs. */
.pidlc-ladder-note {
	margin: 12px 0 8px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-ladder-rungs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 10px;
}

.pidlc-rung strong {
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-rung span {
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-rung .pidlc-rung-total {
	font-weight: 700;
	color: var(--pidlc-ink);
}

.pidlc-rung:hover,
.pidlc-rung.is-current {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

/* Dragging a file over an upload box. */
.pidlc-upload.is-dragging {
	border-style: solid;
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
	background: #eaf5fb;
}

.pidlc-drop-note {
	margin: 8px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: #8a4b0f;
}

/* Pointed to by "Add another design": the box to put it in. */
.pidlc-upload.is-pointed {
	border-style: solid;
	border-color: var(--pidlc-accent);
	box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.25);
	transition: box-shadow 0.3s;
}

.pidlc-add-design {
	margin-bottom: 4px;
}

/* The quantity taken: a white tick reversed out of green. */
.pidlc-rung {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 10px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	position: relative;
}

.pidlc-rung.is-current::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1e8e3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* ----------------------------------------------- Holding our own against
   the theme. Its rules for page content reach into the form: a paragraph
   margin that opened wide gaps between the drawing's key lines, and input
   styling that put the size slider in a tall white box. These are just
   specific enough to win, and no more. */

.pidlc button,
.pidlc input,
.pidlc select,
.pidlc textarea {
	font-family: inherit;
}

.pidlc p.pidlc-key {
	margin: 2px 0 0;
}

.pidlc p.pidlc-key:first-of-type {
	margin-top: 8px;
}

.pidlc input[type="range"] {
	-webkit-appearance: auto;
	appearance: auto;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* The artwork size control, on one line: < slider > 105 % Centre. */
.pidlc .pidlc-adjust {
	gap: 6px;
}

.pidlc .pidlc-adjust-track {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 80px;
	padding-top: 0;
}

.pidlc .pidlc-adjust-num {
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-variant-numeric: tabular-nums;
	background: #fff;
	color: var(--pidlc-ink);
	position: static;
	transform: none;
	width: 3.4em;
	height: 28px;
	min-height: 0;
	padding: 2px 4px;
	line-height: 1.2;
	text-align: center;
	-moz-appearance: textfield;
}

.pidlc .pidlc-adjust-num::-webkit-outer-spin-button,
.pidlc .pidlc-adjust-num::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pidlc .pidlc-nudge {
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: #fff;
	color: var(--pidlc-ink);
	cursor: pointer;
	flex: none;
	width: 28px;
	min-width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	line-height: 1;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc .pidlc-panel-size {
	margin: 12px 0 0;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	background: var(--pidlc-wash);
	padding: 8px 10px;
}

.pidlc .pidlc-panel-size-name {
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin: 0 0 4px;
}

/* ------------------------------------------- Designs, as picture cards. */

.pidlc .pidlc-designs-head {
	justify-content: space-between;
	padding: 9px 12px;
	background: var(--pidlc-wash);
	border-bottom: 1px solid var(--pidlc-line);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pidlc .pidlc-fit-all {
	margin-left: auto;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--pidlc-accent);
	border-radius: 8px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
	cursor: pointer;
}

.pidlc .pidlc-fit-all:hover {
	background: #eaf5fb;
}

.pidlc .pidlc-design-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 14px;
	list-style: none;
}

.pidlc .pidlc-design {
	border-top: 1px solid var(--pidlc-line);
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--pidlc-line);
	border-radius: 10px;
	background: var(--pidlc-paper);
}

.pidlc .pidlc-design.is-active {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 1px var(--pidlc-accent);
}

.pidlc .pidlc-design-kind {
	font-size: var(--pidlc-fs-lg, 1.125rem);
	font-weight: 700;
	color: var(--pidlc-muted);
}

.pidlc .pidlc-design-name {
	font-weight: 600;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-muted);
}

.pidlc .pidlc-design-warn {
	color: var(--pidlc-muted);
	margin: 0;
	font-size: var(--pidlc-fs-xs, 0.8rem);
}

.pidlc .pidlc-design-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}



.pidlc .pidlc-design-remove {
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pidlc-alert);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	text-decoration: underline;
	cursor: pointer;
}

/* Labels per roll, after the quantity and the designs: the choices depend
   on the quantity. Tiles like the quantities above them; the list behind
   them is the field the order sends, and shows only without the script. */
.pidlc .pidlc-perroll {
	display: block;
	margin: 20px 0 4px;
}

.pidlc .pidlc-perroll-head,
.pidlc .pidlc-qtys-head {
	margin: 0 0 8px;
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 600;
	color: var(--pidlc-ink);
}

.pidlc .pidlc-perroll select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 10px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc .pidlc-js-hidden,
.pidlc .pidlc-perroll select.pidlc-js-hidden {
	display: none;
}

.pidlc-roll-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.pidlc-roll-tiles:empty {
	display: none;
}

/* The same tile as a suggested quantity: one family of choices. */
.pidlc-roll-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 10px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	position: relative;
}

.pidlc-roll-tile strong {
	font-size: var(--pidlc-fs-md, 1rem);
	padding-right: 26px;
}

.pidlc-roll-tile span {
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc-roll-tile .pidlc-roll-more {
	color: #8a4b0f;
}

.pidlc-roll-tile:hover,
.pidlc-roll-tile.is-current {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

.pidlc-roll-tile.is-current::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1e8e3e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* The order's quantity, with a word to say what the number is. Read-only
   when it is the sum of several designs: it says so by looking it. */
.pidlc-qty-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pidlc-qty-row .pidlc-qty {
	flex: 0 1 220px;
	min-width: 0;
}

.pidlc-qty-unit {
	flex: none;
	white-space: nowrap;
	color: var(--pidlc-muted);
}

.pidlc .pidlc-qty input.is-sum {
	background: var(--pidlc-wash, #f4f7f9);
	color: var(--pidlc-ink);
	font-weight: 700;
}

/* Each design's quantity on the last step. */
.pidlc-qtys {
	margin: 20px 0 0;
}

.pidlc-qtys-rows {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--pidlc-line);
	border-radius: 10px;
}

.pidlc-qtys-row {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 120px auto;
	grid-template-areas: "pic name qty unit" "pic said said said";
	align-items: center;
	gap: 2px 12px;
	padding: 10px 12px;
	border-top: 1px solid var(--pidlc-line);
}

.pidlc-qtys-row:first-child {
	border-top: 0;
}

.pidlc-qtys-pic {
	grid-area: pic;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 40px;
	border-radius: 4px;
	background: var(--pidlc-wash, #f4f7f9);
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 700;
	color: var(--pidlc-muted);
	overflow: hidden;
}

.pidlc .pidlc-qtys-pic img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.pidlc-qtys-name {
	grid-area: name;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--pidlc-ink);
	font-weight: 600;
}

.pidlc .pidlc-qtys-row input {
	grid-area: qty;
	width: 100%;
	min-height: 40px;
	padding: 6px 10px;
	border: 1px solid var(--pidlc-line);
	border-radius: 8px;
	background: var(--pidlc-paper);
	font-size: var(--pidlc-fs-md, 1rem);
	text-align: right;
}

.pidlc-qtys-unit {
	grid-area: unit;
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
}

.pidlc-qtys-said {
	grid-area: said;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	color: var(--pidlc-alert);
}

.pidlc-qtys-sum {
	margin: 8px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-alert);
}

.pidlc-qtys-sum:empty {
	display: none;
}

.pidlc-qtys-said:empty {
	display: none;
}

.pidlc-qtys-row.is-off input {
	border-color: var(--pidlc-alert);
}

@media (max-width: 560px) {
	.pidlc-qtys-row {
		grid-template-columns: 44px minmax(0, 1fr) 96px;
		grid-template-areas: "pic name name" "pic qty unit" "pic said said";
	}

	.pidlc-qtys-pic {
		width: 44px;
	}
}

.pidlc-roll-more-sizes {
	min-height: 44px;
	padding: 0 14px;
	border: 1px dashed var(--pidlc-line);
	border-radius: 10px;
	background: transparent;
	color: var(--pidlc-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pidlc .pidlc-roll-tile[hidden] {
	display: none;
}

/* Room between the last of the quantity step and the review of the label:
   "Your label" sat on the line above it. */
.pidlc-review {
	margin-top: 28px;
}

/* The last step's forward button is the order, with its price. */
.pidlc-step-next.is-order {
	background: var(--pidlc-action, var(--pidlc-accent));
}

/* Save this quote just left of it. The step bar carries both, so the panel's
   own pair, and the panel's size control, are not repeated on the last step -
   one place to finish, and the artwork's size is set at Artwork. */
.pidlc-step-save {
	min-height: 48px;
	margin-left: auto;
	padding: 0 22px;
	border: 1px solid var(--pidlc-ink);
	border-radius: 10px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pidlc-step-save:not([hidden]) + .pidlc-step-next {
	margin-left: 0;
}

.pidlc-stepped .pidlc-actions,
.pidlc-stepped .pidlc-actions + .pidlc-help,
.pidlc-stepped[data-step-now="6"] #pidlc-panel-size {
	display: none !important;
}

@media (max-width: 720px) {
	.pidlc-step-save,
	.pidlc-stepped .pidlc-stepfoot .pidlc-step-back,
	.pidlc-stepped .pidlc-stepfoot .pidlc-step-next {
		padding: 0 12px;
	}

	.pidlc-step-save .pidlc-wide {
		display: none;
	}
}

.pidlc #pidlc-roll-note {
	margin: 0 0 16px;
}

/* A new file, on the confirmation page: set out as "Adjust" beside it. Its
   own name - not pidlc-adjust, which two different things already share. */
details.pidlc-replace {
	display: block;
	clear: both;
	margin: 0 0 14px;
}

details.pidlc-replace > summary {
	display: list-item;
	cursor: pointer;
	font-weight: 600;
	color: var(--pidlc-accent);
}

.pidlc-replace-body {
	padding: 12px 0 0;
}

.pidlc-replace-said {
	margin: 10px 0 0;
	font-weight: 600;
	color: var(--pidlc-ink);
}

.pidlc-replace-said:empty,
.pidlc-replace-state:empty {
	display: none;
}

.pidlc-replace-send,
.pidlc-approval .pidlc-adjust-save {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 3px;
	background: var(--pidlc-ink);
	color: #ffffff;
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 700;
	cursor: pointer;
}

.pidlc-replace-send:disabled,
.pidlc-approval .pidlc-adjust-save:disabled {
	opacity: 0.45;
	cursor: default;
}

.pidlc-replace-state {
	margin: 8px 0 0;
}

/* Designs, larger: two to a row, each picture the card's full width and as
   tall as the label's own proportions make it - a 60 x 120 label tall, a
   145 x 65 one wide. One to a row on a narrow screen. */
.pidlc .pidlc-design-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 560px) {
	.pidlc .pidlc-design-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

.pidlc .pidlc-design {
	padding: 12px;
	gap: 10px;
}

.pidlc .pidlc-design-name {
	font-size: var(--pidlc-fs-sm, 0.875rem);
}




/* Every heading that opens a panel on the confirmation page at one size:
   adjust it, upload a new file, compare with earlier versions, ask for a
   change. "Upload a new file" had no size and took the body's; "Adjust" had
   none either and took small print by accident, from the order form's size
   control, which shares its class name. */
.pidlc-approval details > summary {
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
	color: var(--pidlc-accent);
}

/* The label's note, on the last step. */
.pidlc-notes label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.pidlc-notes label em {
	font-style: normal;
	font-weight: 400;
	color: var(--pidlc-muted);
}

.pidlc .pidlc-notes textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--pidlc-line);
	border-radius: 3px;
	font-size: var(--pidlc-fs-md, 1rem);
	background: var(--pidlc-paper);
	color: inherit;
	resize: vertical;
}

.pidlc .pidlc-notes textarea:focus {
	border-color: var(--pidlc-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(41, 171, 226, 0.25);
}

.pidlc-notes {
	margin-top: 28px;
}

/* ------------------------------------------------ The Artwork step, 1.123.5. */

/* The upload: a drop zone that looks like one. */
.pidlc .pidlc-upload--art {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 20px;
	border: 2px dashed #b8d9ea;
	border-radius: 14px;
	background: linear-gradient(180deg, #f5fbfe 0%, #eaf5fb 100%);
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pidlc .pidlc-upload--art:hover,
.pidlc .pidlc-upload--art:focus-within {
	border-color: var(--pidlc-accent);
	background: #eaf5fb;
}

.pidlc .pidlc-upload--art.is-dragging {
	border-color: var(--pidlc-accent);
	background: #dff0f9;
	transform: scale(1.01);
}

.pidlc .pidlc-upload-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--pidlc-accent);
	box-shadow: 0 2px 10px rgba(18, 48, 71, 0.08);
}

.pidlc .pidlc-upload--art .pidlc-upload-text {
	font-weight: 400;
	color: var(--pidlc-ink);
}

.pidlc .pidlc-upload--art .pidlc-upload-text strong {
	font-weight: 700;
}

.pidlc .pidlc-upload-link {
	color: var(--pidlc-accent);
	font-weight: 700;
	text-decoration: underline;
}

/* Small links to the guide, beside what they explain. */
.pidlc .pidlc-guides {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 10px 0 0;
}

.pidlc .pidlc-info-link {
	display: inline-flex;
	align-items: center;
	/* The space is the icon's own margin, not a gap: Kadence makes every
	   link in the content display: inline !important, where a gap does
	   nothing, and Artwork guidelines (a link, not a button) lost it. */
	gap: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--pidlc-ink);
	font: inherit;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	text-decoration: underline;
	text-decoration-color: rgba(18, 48, 71, 0.35);
	text-underline-offset: 3px;
	cursor: pointer;
}

.pidlc .pidlc-info-link::before {
	content: "i";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pidlc-accent);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, serif;
	text-decoration: none;
	margin-right: 6px;
	/* Only matters where the link is forced inline: centred on the words. */
	vertical-align: text-bottom;
}

.pidlc .pidlc-info-link:hover {
	text-decoration-color: currentColor;
}

/* The designs: big cards, the label itself as the picture. */
.pidlc .pidlc-designs {
	margin-top: 18px;
	border: 0;
	overflow: visible;
}

.pidlc .pidlc-designs-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding: 0 0 10px;
	background: none;
	border: 0;
}

.pidlc .pidlc-designs-head > span {
	font-weight: 700;
}

.pidlc .pidlc-designs-hint {
	display: block;
	font-style: normal;
	font-weight: 400;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	color: var(--pidlc-muted);
}

.pidlc .pidlc-design-list {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	padding: 0;
}

.pidlc .pidlc-design {
	position: relative;
	gap: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--pidlc-line);
	border-radius: 14px;
	background: var(--pidlc-paper);
	box-shadow: 0 1px 3px rgba(18, 48, 71, 0.06);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pidlc .pidlc-design:hover {
	border-color: #9ccfe8;
	box-shadow: 0 4px 14px rgba(18, 48, 71, 0.1);
}

.pidlc .pidlc-design.is-active {
	border-color: var(--pidlc-accent);
	box-shadow: 0 0 0 2px var(--pidlc-accent), 0 4px 14px rgba(41, 171, 226, 0.18);
	background: var(--pidlc-paper);
}

.pidlc .pidlc-design-pic {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 200px;
	padding: 16px;
	border: 0;
	border-bottom: 1px solid var(--pidlc-line);
	background-color: #f4f7f9;
	background-image: linear-gradient(45deg, #edf1f4 25%, transparent 25%, transparent 75%, #edf1f4 75%), linear-gradient(45deg, #edf1f4 25%, transparent 25%, transparent 75%, #edf1f4 75%);
	background-size: 16px 16px;
	background-position: 0 0, 8px 8px;
	cursor: zoom-in;
}

.pidlc .pidlc-design-pic svg {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 2px 4px rgba(18, 48, 71, 0.18));
}

.pidlc .pidlc-design-open {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(18, 48, 71, 0.82);
	color: #ffffff;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 600;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.15s, transform 0.15s;
}

.pidlc .pidlc-design-pic:hover .pidlc-design-open,
.pidlc .pidlc-design-pic:focus-visible .pidlc-design-open {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.pidlc .pidlc-design-open {
		opacity: 1;
		transform: none;
	}
}

.pidlc .pidlc-design-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px 12px;
}

.pidlc .pidlc-design-head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.pidlc .pidlc-design-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 700;
	color: var(--pidlc-ink);
}

.pidlc .pidlc-design-shown {
	display: none;
	flex: none;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eaf5fb;
	color: #0b6f99;
	font-size: var(--pidlc-fs-xs, 0.8rem);
	font-weight: 700;
}

.pidlc .pidlc-design.is-active .pidlc-design-shown {
	display: inline-block;
}

.pidlc .pidlc-design-fit {
	margin: 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
}

.pidlc .pidlc-design-fit::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	vertical-align: 1px;
}

.pidlc .pidlc-design-fit.is-ok { color: #1e7e34; }
.pidlc .pidlc-design-fit.is-ok::before { background: #1e8e3e; }
.pidlc .pidlc-design-fit.is-short { color: #a3122f; }
.pidlc .pidlc-design-fit.is-short::before { background: #d62d4b; }

.pidlc .pidlc-design-note-label {
	margin: 2px 0 0;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
}

.pidlc .pidlc-design-note-label em {
	font-style: normal;
	font-weight: 400;
	color: var(--pidlc-muted);
}

.pidlc .pidlc-design-note {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 56px;
	padding: 8px 10px;
	border: 1px solid var(--pidlc-line);
	border-radius: 8px;
	font: inherit;
	font-size: var(--pidlc-fs-sm, 0.875rem);
	background: var(--pidlc-paper);
	color: inherit;
	resize: vertical;
	cursor: text;
}

.pidlc .pidlc-design-note:focus {
	border-color: var(--pidlc-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(41, 171, 226, 0.25);
}

.pidlc .pidlc-design-foot {
	justify-content: flex-end;
}

/* White ink: the box and its link on one line. */
.pidlc .pidlc-white-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 18px;
}

.pidlc .pidlc-white-row .pidlc-white {
	margin: 0;
}

/* The guide itself. */
.pidlc-info {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: var(--pidlc-paper, #ffffff);
	color: var(--pidlc-ink, #123047);
	box-shadow: 0 24px 60px rgba(18, 48, 71, 0.3);
}

.pidlc-info::backdrop {
	background: rgba(18, 48, 71, 0.45);
}

.pidlc-info-inner {
	position: relative;
	padding: 26px 28px 22px;
}

.pidlc-info-title {
	margin: 0 32px 14px 0;
	font-size: 1.25rem;
}

.pidlc-info p {
	margin: 0 0 12px;
	line-height: 1.55;
}

.pidlc-info .pidlc-info-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pidlc-wash, #f4f7f9);
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.pidlc-info .pidlc-info-close:hover {
	background: #e3ebf0;
}

.pidlc-info-picture {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 0 0 16px;
	padding: 14px;
	border-radius: 12px;
	background: var(--pidlc-wash, #f4f7f9);
}

.pidlc-info-picture svg {
	flex: none;
	max-width: 100%;
	height: auto;
}

.pidlc-info-key {
	flex: 1 1 180px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.pidlc-info-key li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 6px;
}

.pidlc-info-key .pidlc-key-safe {
	flex: none;
	width: 16px;
	height: 0;
	border-top: 1px dashed #29ABE2;
	transform: translateY(-3px);
}

@media (max-width: 560px) {
	.pidlc-info-inner {
		padding: 22px 18px 16px;
	}

	.pidlc .pidlc-design-pic {
		height: 180px;
	}
}

/* ------------------------------------------------- Flexible rolls offer. */

.pidlc-flex {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 14px 0 4px;
	padding: 14px 16px;
	border: 1px solid #b7e0c4;
	border-radius: 10px;
	background: #effaf2;
	cursor: pointer;
}

.pidlc-flex[hidden] {
	display: none;
}

.pidlc-flex input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	flex: none;
	accent-color: #1e8a3e;
}

.pidlc-flex-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pidlc-flex-head {
	color: #14632c;
	font-size: var(--pidlc-fs-md, 1rem);
}

.pidlc-flex-text {
	color: var(--pidlc-ink);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.45;
}

.pidlc-flex:has(input:checked) {
	border-color: #1e8a3e;
	box-shadow: inset 0 0 0 1px #1e8a3e;
}

/* ------------------------------------- What goes on the labels: the first step. */

.pidlc-stepped .pidlc-print-title {
	display: block;
}

.pidlc-print-title {
	display: none;
	margin: 0 0 4px;
	font-size: var(--pidlc-fs-xl, 1.5rem);
	color: var(--pidlc-ink);
}

.pidlc-stepped .pidlc-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin: 14px 0 6px;
	border-bottom: 0;
}

.pidlc-stepped .pidlc-tab {
	display: block;
}

.pidlc-stepped .pidlc-tab > span {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 16px 14px;
	border: 1px solid var(--pidlc-line);
	border-radius: 12px;
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	font-size: var(--pidlc-fs-md, 1rem);
	font-weight: 700;
	white-space: normal;
	box-shadow: none;
	margin: 0;
}

.pidlc-stepped .pidlc-tab > span::before {
	content: "";
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 4px;
	border-radius: 8px;
	background: var(--pidlc-wash);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
}

.pidlc-stepped .pidlc-tab-artwork > span::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123047' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.pidlc-stepped .pidlc-tab-flood > span::before {
	background-color: var(--pidlc-accent);
}

.pidlc-stepped .pidlc-tab-plain > span::before {
	background: #fff;
	border: 1px dashed var(--pidlc-muted);
	box-sizing: border-box;
}

.pidlc-stepped .pidlc-tab-text {
	color: var(--pidlc-muted);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 400;
	line-height: 1.4;
}

.pidlc-stepped .pidlc-tab:hover > span {
	border-color: var(--pidlc-accent);
}

.pidlc-stepped .pidlc-tab:has(input:checked) > span {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
}

.pidlc-stepped .pidlc-tab:focus-within > span {
	outline: 2px solid var(--pidlc-accent);
	outline-offset: 2px;
}

.pidlc-tab-text {
	display: none;
}

.pidlc-stepped .pidlc-tab-text {
	display: block;
}

/* The step's own title says it; the legend stays for the one-page form and
   for screen readers. */
.pidlc-stepped .pidlc-print-legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}


/* Which design the drawing shows: under the preview on every step, and in
   the enlarged view. Every colour has its fallback: the enlarged view is
   moved to <body>, outside the .pidlc box the colours are set on. */
.pidlc .pidlc-switch,
.pidlc-switch {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 4px;
}
.pidlc-switch[hidden] {
	display: none;
}
.pidlc-switch-pick {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	padding: 5px 8px;
	border: 1px solid var(--pidlc-line, #d7dee4);
	border-radius: 3px;
	background: var(--pidlc-paper, #ffffff);
	color: var(--pidlc-ink, #123047);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	text-overflow: ellipsis;
}
.pidlc-switch-step,
.pidlc-lightbox-turn {
	flex: none;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--pidlc-line, #d7dee4);
	border-radius: 3px;
	background: var(--pidlc-paper, #ffffff);
	color: var(--pidlc-ink, #123047);
	font-size: var(--pidlc-fs-md, 1rem);
	line-height: 1;
	cursor: pointer;
}
.pidlc-switch-step {
	font-size: 1.3rem;
}
.pidlc-switch-step:hover,
.pidlc-lightbox-turn:hover {
	border-color: var(--pidlc-accent, #29ABE2);
	color: var(--pidlc-accent, #29ABE2);
}
.pidlc-lightbox-switch {
	margin: 0;
	min-width: 16rem;
	max-width: 26rem;
}
.pidlc-lightbox-turns {
	display: inline-flex;
	gap: 6px;
}
.pidlc-lightbox-turn span {
	font-size: 1.15rem;
	vertical-align: -1px;
}
.pidlc-lightbox .pidlc-switch-step,
.pidlc-lightbox .pidlc-lightbox-turn {
	background: var(--pidlc-wash, #f4f7f9);
	border-color: var(--pidlc-line, #d7dee4);
	font-weight: 600;
}


/* The Your artwork card is the upload, 1.130.0: the separate drop box is
   not shown on the stepped form, and the card takes drops itself. */
.pidlc-stepped .pidlc-upload--art {
	display: none;
}
.pidlc-stepped .pidlc-tab-artwork > span::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329ABE2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 17H6a4 4 0 0 1-.5-8A5.5 5.5 0 0 1 16.2 7 4.5 4.5 0 0 1 18 15.6'/%3E%3Cpath d='M12 20v-9m-3.5 3.5L12 11l3.5 3.5'/%3E%3C/svg%3E");
}
.pidlc-stepped .pidlc-tab-artwork {
	cursor: pointer;
}
.pidlc-stepped .pidlc-tab-artwork > span {
	border-style: dashed;
	border-width: 2px;
}
.pidlc-stepped .pidlc-tab-artwork.is-dragging > span {
	border-color: var(--pidlc-accent);
	background: #eaf5fb;
	transform: scale(1.02);
}
.pidlc-stepped .pidlc-tab-artwork > span {
	transition: transform 0.15s, background 0.15s;
}
.pidlc .pidlc-more-art {
	display: none;
}
.pidlc-stepped .pidlc-more-art {
	display: inline-block;
	margin-left: auto;
	padding: 6px 12px;
	border: 1px solid var(--pidlc-accent, #29ABE2);
	border-radius: 6px;
	background: var(--pidlc-paper, #fff);
	color: var(--pidlc-accent, #29ABE2);
	font-size: var(--pidlc-fs-sm, 0.875rem);
	font-weight: 600;
	cursor: pointer;
}


/* Order these labels again: what has been filled in, and what is still needed. */
.pidlc .pidlc-reorder-note {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid var(--pidlc-accent, #29ABE2);
	border-radius: 6px;
	background: #eaf5fb;
	color: var(--pidlc-ink, #123047);
}
.pidlc .pidlc-reorder-note p {
	margin: 0;
	/* The same size as the help under the buttons beside it; left to the
	   theme it came out at body size, larger than everything around it. */
	font-size: var(--pidlc-fs-sm, 0.875rem);
	line-height: 1.45;
}
.pidlc .pidlc-reorder-note p + p {
	margin-top: 6px;
	color: #9a3412;
	font-weight: 600;
}


/* Loading a past order: the form waits under a curtain until it is filled. */
.pidlc-is-loading {
	position: relative;
	min-height: 360px;
}
.pidlc-loading {
	position: absolute;
	inset: 0;
	/* Over the form and its bar while it loads; under the site's header. */
	z-index: 7;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 120px;
	gap: 10px;
	background: rgba(255, 255, 255, 0.96);
	color: var(--pidlc-ink, #123047);
	text-align: center;
}
.pidlc-loading-spin {
	width: 46px;
	height: 46px;
	border: 4px solid #d7dee4;
	border-top-color: var(--pidlc-accent, #29ABE2);
	border-radius: 50%;
	animation: pidlc-loading-spin 0.8s linear infinite;
}
.pidlc-loading-text {
	font-size: 1.25rem;
	font-weight: 700;
}
.pidlc-loading-sub {
	color: var(--pidlc-muted, #62788a);
	font-size: 0.9rem;
}
@keyframes pidlc-loading-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.pidlc-loading-spin { animation-duration: 2.4s; }
}

/* Order now: the page held while the order goes to checkout. Fixed over the
   whole window, the form blurred beneath and not clickable (inert). */
.pidlc-curtain {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	background: rgba(255, 255, 255, 0.72);
	color: #123047;
	text-align: center;
	cursor: progress;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.pidlc-held body {
	overflow: hidden;
}
.pidlc-held #pidlc-app {
	filter: blur(3px);
	pointer-events: none;
	user-select: none;
}
@media (prefers-reduced-motion: reduce) {
	.pidlc-held #pidlc-app { filter: none; }
}

/* Links in the help cards, in the house colour rather than the browser's. */
.pidlc-info-inner a {
	color: var(--pidlc-accent, #1f8fc4);
	font-weight: 600;
	text-underline-offset: 2px;
}
.pidlc-info-inner a:hover {
	color: var(--pidlc-ink, #123047);
}
.pidlc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ------------------------------------------------ Themes that paint buttons.
   Kadence (pid-labelling) fills every <button> on the page with its hover
   colour on :hover, :focus and :active - hot pink, with pale text. The form's
   small print stayed grey on it and could not be read, a clicked tile kept
   focus and so stayed pink after it was chosen, and the step names turned
   into pink blocks. Each kind of button here says what it is in those states,
   so the theme's rule never decides. (tests/screens/check-theme-buttons.js) */

/* The quantity and roll tiles: hovered, or reached from the keyboard, they
   fill with the action colour (Branding; the text colour without one) and
   every line in them goes white. Clicked, they go back to white, chosen and
   ticked. */
.pidlc .pidlc-rung:is(:hover, :focus-visible, :active),
.pidlc .pidlc-roll-tile:is(:hover, :focus-visible, :active) {
	border-color: var(--pidlc-action, var(--pidlc-ink));
	background: var(--pidlc-action, var(--pidlc-ink));
	box-shadow: none;
	color: #ffffff;
}

.pidlc .pidlc-rung:is(:hover, :focus-visible, :active) *,
.pidlc .pidlc-roll-tile:is(:hover, :focus-visible, :active) * {
	color: #ffffff;
}

.pidlc .pidlc-rung:focus:not(:focus-visible):not(:hover),
.pidlc .pidlc-roll-tile:focus:not(:focus-visible):not(:hover) {
	background: var(--pidlc-paper);
	color: var(--pidlc-ink);
	box-shadow: none;
}

.pidlc .pidlc-rung.is-current:focus:not(:focus-visible):not(:hover),
.pidlc .pidlc-roll-tile.is-current:focus:not(:focus-visible):not(:hover) {
	border-color: var(--pidlc-accent);
	box-shadow: inset 0 0 0 2px var(--pidlc-accent);
}

/* The step names: underlined on hover, never filled. */
.pidlc .pidlc-stepnav-item:is(:hover, :focus, :active) {
	background: none;
	box-shadow: none;
	color: var(--pidlc-muted);
}

.pidlc .pidlc-stepnav-item:is(.is-done, .is-current):is(:hover, :focus, :active) {
	color: var(--pidlc-ink);
}

.pidlc .pidlc-stepnav-item:focus-visible {
	outline: 3px solid var(--pidlc-accent);
	outline-offset: 2px;
}

/* See these larger: an outlined button, its border and words in the accent
   on hover - on white, not on the theme's pink. */
.pidlc .pidlc-orient-zoom:is(:hover, :focus, :active) {
	background: var(--pidlc-paper);
	box-shadow: none;
	color: var(--pidlc-ink);
}

.pidlc .pidlc-orient-zoom:hover {
	border-color: var(--pidlc-accent);
}
