/* The Print Button — inherits the theme's fonts; colour comes from --psb-accent. */
.psb {
	--psb-ink: #2e2a68;
	--psb-muted: #6b6b76;
	--psb-line: #e4e4ea;
	--psb-card: #fff;
	max-width: var(--wp--style--global--wide-size, none) !important; /* as wide as the header, centred */
	width: 100%;
	margin: 0 auto;
	padding: 8px 0 48px;
	color: var(--psb-ink);
}
.psb-head { margin: 0 0 24px; }
.psb-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.psb-sub { margin: 8px 0 0; color: var(--psb-muted); font-size: 1.05rem; }
.psb-back {
	display: inline-flex; align-items: center; gap: 6px;
	margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
	background: #f2f2f5; color: var(--psb-ink); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.psb-back:hover { background: #e8e8ee; }

.psb-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.psb-grid--top { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.psb-btn {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
	min-height: 120px; padding: 20px 22px; border: 1.5px solid var(--psb-line); border-radius: 16px;
	background: var(--b-bg, var(--psb-btn-bg, var(--psb-card))); color: var(--b-fg, var(--psb-btn-fg, var(--psb-ink))); text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.psb-btn::after {
	content: var(--psb-btn-arrow, "→"); position: absolute; top: 18px; right: 20px; font-size: 1.2rem;
	color: var(--b-fg, var(--psb-btn-fg, var(--psb-accent))); transition: transform .15s ease;
}
.psb-btn:hover, .psb-btn:focus-visible {
	transform: translateY(-2px); border-color: var(--psb-accent);
	box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); outline: none;
}
.psb-btn:hover::after { transform: translateX(3px); }
.psb-btn-name { font-size: var(--psb-btn-title, 1.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; padding-right: 24px; }
.psb-btn-desc { color: inherit; opacity: .72; font-size: var(--psb-btn-desc, .92rem); line-height: 1.35; }
.psb-btn-price { color: var(--psb-muted); font-size: .92rem; }
.psb-btn-price .amount { color: var(--psb-ink); font-weight: 700; }

/* Top level: big coloured tiles */
.psb-grid--top .psb-btn {
	min-height: 220px; padding: 28px; border: 0;
	background: var(--b-bg, var(--psb-top-bg, var(--psb-accent))); color: var(--b-fg, var(--psb-top-fg, #fff));
}
.psb-grid--top .psb-btn::after { content: var(--psb-top-arrow, "→"); color: inherit; top: 26px; right: 26px; font-size: 1.5rem; }
.psb-grid--top .psb-btn-name { font-size: var(--psb-top-title, clamp(1.8rem, 3.5vw, 2.4rem)); }
.psb-grid--top .psb-btn-desc { color: inherit; opacity: .85; font-size: var(--psb-top-desc, 1rem); }
.psb-icon { width: 46px; height: 46px; margin-bottom: auto; flex: none; }
.psb-grid:not(.psb-grid--top) .psb-icon { width: 32px; height: 32px; }
.psb-icon--img { object-fit: contain; }

.psb-btn--product .psb-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.psb-empty { padding: 24px; border: 1.5px dashed var(--psb-line); border-radius: 16px; color: var(--psb-muted); }

/* Product page extras */
.psb-from { color: #6b6b76; font-size: .8em; font-weight: 400; }
.psb-poa { font-weight: 600; }
.psb-job { margin: 0 0 16px; padding: 16px; border: 1px solid #e4e4ea; border-radius: 12px; }
.psb-field { margin: 0 0 12px; }
.psb-field:last-child { margin-bottom: 0; }
.psb-field label { display: block; margin-bottom: 4px; }
.psb-field input[type="checkbox"] { margin-right: 6px; }
.psb-field textarea, .psb-field input[type="file"] { width: 100%; }
.psb-hint { color: #6b6b76; font-weight: 400; font-size: .85em; }
.psb-quote-wrap { margin: 12px 0; }

@media (max-width: 600px) {
	.psb-grid, .psb-grid--top { grid-template-columns: 1fr; gap: 12px; }
	.psb-grid--top .psb-btn { min-height: 150px; }
}

/* Quote button + form */
.psb-quote { display: inline-block; text-decoration: none !important; border-radius: 999px !important; padding: 10px 22px !important; background: var(--psb-accent, #e4002b) !important; color: #fff !important; border: 0 !important; font-weight: 600; }
.psb-quote--alt { background: transparent !important; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.psb-quote-form { max-width: 720px; }
.psb-quote-layout .psb-quote-form { max-width: none; }
.psb-quote-form input:not([type="checkbox"]):not([type="file"]), .psb-quote-form select, .psb-quote-form textarea {
	width: 100%; padding: 10px 12px; border: 1.5px solid #d6d6de; border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box;
}
.psb-quote-form input:focus, .psb-quote-form select:focus, .psb-quote-form textarea:focus { outline: 2px solid var(--psb-accent, #e4002b); outline-offset: 1px; border-color: transparent; }
.psb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.psb-submit { background: var(--psb-accent, #e4002b) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 12px 26px !important; font-weight: 700; cursor: pointer; }
.psb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.psb-notice { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; }
.psb-notice--ok { background: #e9f7ef; color: #11592c; }
.psb-notice--err { background: #fdecee; color: #8a1020; }
@media (max-width: 600px) { .psb-row { grid-template-columns: 1fr; } }

/* Option pickers (v1.1) */
.psb-opts { margin: 0 0 16px; }
.psb-opt { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.psb-opt legend { padding: 0; margin: 0 0 6px; font-weight: 700; }
.psb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.psb-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.psb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.psb-chip span {
	display: inline-flex; align-items: baseline; gap: 6px;
	padding: 8px 14px; border: 1.5px solid #d6d6de; border-radius: 10px;
	background: #fff; color: #2e2a68; font-size: .95rem; line-height: 1.25;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.psb-chip:hover span { border-color: #9a9aa6; }
.psb-chip input:checked + span { border-color: var(--psb-accent, #e4002b); box-shadow: inset 0 0 0 1px var(--psb-accent, #e4002b); font-weight: 600; }
.psb-chip input:focus-visible + span { outline: 2px solid var(--psb-accent, #e4002b); outline-offset: 2px; }
.psb-chip-note { color: #6b6b76; font-size: .78rem; font-weight: 400; }
.psb-fixed { margin: 0; }
.psb-extra { margin-top: 8px; }
.psb-extra[hidden] { display: none; }
.psb-size { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.psb-size label { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: #6b6b76; }
.psb-x { padding-bottom: 10px; color: #6b6b76; }
.psb-opts input[type="number"], .psb-opts input[type="text"], .psb-opts input[type="datetime-local"] {
	padding: 9px 12px; border: 1.5px solid #d6d6de; border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box;
}
.psb-size input { width: 130px; }
.psb-extra input[type="text"] { width: 100%; max-width: 420px; }
.psb-live { margin: 4px 0 12px; font-size: 1.1rem; }
.psb-live strong { font-size: 1.3rem; }
.psb-live[hidden], .psb-quote-note[hidden] { display: none; }
.psb-quote-note { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: #f6f6f8; }
.psb-quote-note p { margin: 0 0 10px; }
.psb-pick { margin: 12px 0; }

/* Quick-access panel (v1.1): picked button on the left, the others below it, products on the right. */
.psb-panel[hidden], .psb-panel-none[hidden], .psb-panel li[hidden], .psb-panel-group[hidden] { display: none; }
.psb-split.is-open { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.psb-split.is-open .psb-grid { grid-template-columns: 1fr; gap: 10px; }
.psb-split:not(.is-open) > .psb-grid--top[style*="--psb-cols"] { grid-template-columns: repeat(var(--psb-cols), minmax(0, 1fr)); }
/* Large folding phones opened out (and small tablets): 3 across, or fewer if fewer are set. */
@media (min-width: 601px) and (max-width: 900px) {
	.psb-split:not(.is-open) > .psb-grid--top, .psb-split:not(.is-open) > .psb-grid--top[style*="--psb-cols"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.psb-split:not(.is-open) > .psb-grid--top[style*="--psb-cols:2;"], .psb-split:not(.is-open) > .psb-grid--top[style$="--psb-cols:2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psb-split:not(.is-open) > .psb-grid--top[style*="--psb-cols:1;"], .psb-split:not(.is-open) > .psb-grid--top[style$="--psb-cols:1"] { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: one button per row, the full width of the header. */
@media (max-width: 600px) {
	.psb { max-width: none !important; }
	.psb-split:not(.is-open) > .psb-grid--top, .psb-split:not(.is-open) > .psb-grid--top[style*="--psb-cols"] { grid-template-columns: minmax(0, 1fr); }
}
.psb-split.is-open .psb-btn { min-height: 0; padding: 14px 48px 14px 18px; }
.psb-split.is-open .psb-btn.is-selected { order: -1; }
.psb-split.is-open .psb-btn:not(.is-selected) { opacity: .75; }
.psb-split.is-open .psb-btn:not(.is-selected):hover { opacity: 1; }
.psb-btn:hover, .psb-btn:focus-visible { border-color: var(--psb-sel, var(--psb-accent)); }
.psb-split.is-open .psb-btn.is-selected { border-color: var(--psb-sel, var(--psb-accent)); box-shadow: inset 0 0 0 1px var(--psb-sel, var(--psb-accent)); }
.psb-split.is-open .psb-icon { display: none; }
.psb-split.is-open .psb-btn::after { top: 50%; transform: translateY(-50%); }
.psb-split.is-open .psb-btn.is-selected::after, .psb-split.is-open .psb-grid--top .psb-btn.is-selected::after { content: "×"; }
.psb-split.is-open .psb-grid--top .psb-btn { min-height: 0; padding: 16px 48px 16px 20px; }
.psb-split.is-open .psb-grid--top .psb-btn-name { font-size: min(var(--psb-top-title, 1.35rem), 1.35rem); }
.psb-split.is-open .psb-grid--top .psb-btn-desc { font-size: min(var(--psb-top-desc, .88rem), .88rem); }
.psb-split.is-open .psb-grid--top .psb-icon { display: none; }
.psb-split.is-open .psb-grid--top .psb-btn::after { top: 50%; right: 20px; font-size: 1.4rem; }
.psb-split.is-open .psb-grid--top .psb-btn.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--psb-sel, var(--psb-accent)); }

.psb-panel {
	min-width: 0; padding: 24px; border: 1.5px solid var(--psb-panel-line, var(--psb-line)); border-radius: 16px; background: var(--psb-panel-bg, var(--psb-card));
	animation: psb-in .22s ease-out;
}
@keyframes psb-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .psb-panel { animation: none; } }
.psb-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.psb-browse {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
	background: var(--psb-accent); color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.psb-browse:hover { filter: brightness(1.08); }
.psb-panel-close {
	width: 36px; height: 36px; flex: none; border: 0; border-radius: 999px; background: #f2f2f5; color: var(--psb-ink);
	font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.psb-panel-close:hover { background: #e8e8ee; }
.psb-panel-search { margin: 0 0 18px; }
.psb-panel-search input {
	width: 100%; padding: 11px 14px; border: 1.5px solid #d6d6de; border-radius: 10px; font: inherit; background: #fff; box-sizing: border-box;
}
.psb-panel-search input:focus { outline: 2px solid var(--psb-accent); outline-offset: 1px; border-color: transparent; }
.psb-panel-none { margin: 0 0 8px; color: var(--psb-muted); }
.psb-panel-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 28px; }
.psb-panel-group h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.psb-panel-group h3 a { color: var(--psb-panel-head, var(--psb-ink)); text-decoration: none; }
.psb-panel-group h3 a:hover { color: var(--psb-panel-hover, var(--psb-accent)); }
.psb-panel-list { margin: 0; padding: 0; list-style: none; }
.psb-panel-list li { margin: 0; }
.psb-panel-list a { display: block; padding: 5px 0; color: var(--psb-panel-link, var(--psb-muted)); text-decoration: none; line-height: 1.35; }
.psb-panel-list a:hover, .psb-panel-list a:focus-visible { color: var(--psb-panel-hover, var(--psb-accent)); text-decoration: underline; }
.psb-panel > .psb-panel-list { columns: 2 200px; column-gap: 28px; }

@media (max-width: 760px) {
	.psb-split.is-open { grid-template-columns: 1fr; gap: 16px; }
	.psb-split.is-open .psb-grid--top .psb-btn-desc { display: none; }
	.psb-panel { padding: 18px; }
}
@media (max-width: 760px) {
	/* Phone: picked button, then its panel, then the other buttons. */
	.psb-split.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
	.psb-split.is-open .psb-grid { display: contents; }
	.psb-split.is-open .psb-btn.is-selected { order: -2; }
	.psb-split.is-open .psb-panel { order: -1; margin-bottom: 6px; }
}
.psb-panel-results[hidden] { display: none; }
.psb-panel > .psb-panel-results { columns: auto; }
.psb-panel-results a { padding: 8px 0; border-bottom: 1px solid var(--psb-panel-line, var(--psb-line)); }
.psb-panel-results li:last-child a { border-bottom: 0; }
.psb-result-name { display: block; color: var(--psb-panel-head, var(--psb-ink)); font-weight: 600; }
.psb-result-snippet { display: block; margin-top: 2px; font-size: .88rem; }
.psb-panel.is-searching .psb-panel-search input { background-image: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent); background-size: 200% 100%; animation: psb-wait 1s linear infinite; }
@keyframes psb-wait { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Quote form: drag-and-drop file box. The real file input covers the zone, so dropping and clicking both work without JS. */
.psb-drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 20px; border: 2px dashed #c9c9d2; border-radius: 12px; text-align: center; transition: border-color .15s, background-color .15s; }
.psb-drop-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.psb-drop-zone:focus-within { outline: 2px solid var(--psb-accent, #e4002b); outline-offset: 2px; }
.psb-drop--over .psb-drop-zone, .psb-drop-zone:hover { border-color: var(--psb-accent, #e4002b); background: rgba(228, 0, 43, .04); }
.psb-drop-text { font-weight: 600; }
.psb-drop-list { list-style: none; margin: 8px 0 0; padding: 0; }
.psb-drop-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ececf0; }
.psb-drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psb-drop-rm { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f1f1f4; cursor: pointer; font-size: 18px; line-height: 1; }
.psb-drop-rm:hover { background: #e4e4ea; }
.psb-drop-err { margin: 8px 0 0; color: #b00020; }

/* ------------------------------------------------------------------
 * Chrome rim look (Print Shop → Settings → Button style → Look).
 * A silver face inside a metallic edge whose highlights and rainbow
 * flecks travel round the button. Colours set in Settings or on a
 * category still win over the silver face.
 * ------------------------------------------------------------------ */
@property --psb-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes psb-spin { to { --psb-spin: 360deg; } }

.psb-look-chrome .psb-btn,
.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
	--psb-face: #e3e3e7;
	--psb-rim: conic-gradient(from var(--psb-spin),
		#1d1e2c 0deg, #8d8fa0 25deg, #f4f4f6 50deg, #c3c4cc 75deg, #1d1e2c 100deg, #24253a 118deg,
		#ff2d6f 126deg, #ffcf33 134deg, #28c8ff 142deg, #5b4dff 149deg, #2a2b3a 158deg,
		#c5c2e8 200deg, #fff 225deg, #9fa0ad 250deg, #1d1e2c 282deg,
		#ffe14d 298deg, #2f7dff 305deg, #dfe0e6 322deg, #1d1e2c 360deg);
	border: 3px solid transparent !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, .07)) padding-box,
		linear-gradient(var(--psb-face), var(--psb-face)) padding-box,
		var(--psb-rim) border-box !important;
	box-shadow:
		0 0 0 6px rgba(0, 0, 0, .04),
		0 0 0 7px rgba(255, 255, 255, .75),
		0 16px 30px -18px rgba(0, 0, 0, .5),
		inset 0 1px 0 rgba(255, 255, 255, .7);
	animation: psb-spin 6s linear infinite;
}
.psb-look-chrome .psb-btn { --psb-face: var(--b-bg, var(--psb-btn-bg, #e3e3e7)); color: var(--b-fg, var(--b-auto-fg, var(--psb-btn-fg, var(--psb-btn-auto-fg, #2e2a68)))); border-radius: 22px; }
.psb-look-chrome .psb-grid--top .psb-btn { --psb-face: var(--b-bg, var(--psb-top-bg, #e3e3e7)); color: var(--b-fg, var(--b-auto-fg, var(--psb-top-fg, var(--psb-top-auto-fg, #2e2a68)))); border: 3px solid transparent !important; border-radius: 28px; }
.psb-look-chrome .psb-btn::after { color: inherit; }
.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
	--psb-face: #e3e3e7; color: #2e2a68 !important; border-radius: 999px !important;
	padding: 12px 26px !important; font-weight: 600; text-decoration: none !important;
}
/* The rim stands still until hovered, unless "Animate the rim: all the time" is chosen. */
.psb-look-chrome .psb-btn,
.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { animation-play-state: paused; }
.psb-rim-always .psb-btn,
.psb-rim-always.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { animation-play-state: running; }

/* Hover: the face turns black (or the hover colour from Settings), with readable text. */
.psb-look-chrome .psb-btn:hover, .psb-look-chrome .psb-btn:focus-visible,
.psb-look-chrome .psb-grid--top .psb-btn:hover, .psb-look-chrome .psb-grid--top .psb-btn:focus-visible,
.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):is(:hover, :focus-visible) {
	--psb-face: var(--psb-hover-bg, #0b0b0f);
	color: var(--psb-hover-fg, #fff) !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 52%) padding-box,
		linear-gradient(var(--psb-face), var(--psb-face)) padding-box,
		var(--psb-rim) border-box !important;
	animation-play-state: running;
	animation-duration: 2.4s;
	box-shadow:
		0 0 0 6px rgba(0, 0, 0, .05),
		0 0 0 7px rgba(255, 255, 255, .85),
		0 20px 34px -18px rgba(0, 0, 0, .55),
		inset 0 1px 0 rgba(255, 255, 255, .8);
}
.psb-look-chrome .psb-btn:focus-visible { outline: 2px solid var(--psb-sel, var(--psb-accent)); outline-offset: 9px; }
.psb-look-chrome .psb-split.is-open .psb-btn.is-selected,
.psb-look-chrome .psb-split.is-open .psb-grid--top .psb-btn.is-selected {
	animation-duration: 3s;
	box-shadow:
		0 0 0 6px color-mix(in srgb, var(--psb-sel, var(--psb-accent)) 30%, transparent),
		0 0 0 7px rgba(255, 255, 255, .8),
		0 16px 30px -18px rgba(0, 0, 0, .5),
		inset 0 1px 0 rgba(255, 255, 255, .7);
}
.psb-look-chrome .psb-grid { gap: 22px; padding: 8px; }
@media (prefers-reduced-motion: reduce) {
	.psb-look-chrome .psb-btn,
	.psb-look-chrome-all :is(.single_add_to_cart_button, .psb-quote, .psb-submit, .checkout-button, .add_to_cart_button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { animation: none; --psb-spin: 30deg; }
}

/* Quote form layout (v1.4): calm white cards, with a side column on wide screens. */
.psb-quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; max-width: 1100px; }
.psb-quote-layout .psb-quote-form { display: flex; flex-direction: column; gap: 16px; }
.psb-card { margin: 0; padding: 22px 24px; min-width: 0; border: 1.5px solid #e4e4ea; border-radius: 16px; background: #fff; }
fieldset.psb-card > legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 1.1rem; font-weight: 700; }
fieldset.psb-card > legend + * { clear: both; }
.psb-quote-aside { display: flex; flex-direction: column; gap: 16px; }
.psb-quote-aside .psb-card { padding: 20px 22px; }
.psb-quote-aside p { margin: 0; }
.psb-aside-big { margin-top: 4px !important; font-size: 1.1rem; font-weight: 700; }
.psb-aside-big a { color: inherit; text-decoration: none; }
.psb-aside-head { margin-bottom: 8px !important; font-weight: 700; }
.psb-quote-aside .psb-hint { display: block; margin-top: 6px; line-height: 1.5; }
.psb-quote-aside .psb-card > .psb-hint:first-child { margin-top: 0; }
.psb-next { margin: 0; padding-left: 20px; color: #44464f; font-size: .95rem; line-height: 1.7; }
@media (max-width: 860px) { .psb-quote-layout { grid-template-columns: 1fr; } }

/* Quote items (v1.6): one card per thing to quote. */
.psb-items { display: flex; flex-direction: column; gap: 16px; }
.psb-item { position: relative; }
.psb-item-rm { position: absolute; top: 18px; right: 20px; padding: 4px 12px; border: 1.5px solid #e4e4ea; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.psb-item-rm:hover, .psb-item-rm:focus-visible { border-color: currentColor; }
.psb-item-rm[hidden] { display: none; }
.psb-item-bar { position: absolute; top: 14px; right: 20px; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 140px); }
.psb-item-bar .psb-item-rm { position: static; }
.psb-item-toggle { display: inline-flex; gap: 10px; align-items: center; min-width: 0; max-width: 100%; padding: 4px 12px; border: 1.5px solid #e4e4ea; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.psb-item-toggle:hover, .psb-item-toggle:focus-visible { border-color: currentColor; }
.psb-item-toggle[hidden] { display: none; }
@media (max-width: 600px) { .psb-item-bar { position: static; max-width: none; margin: 0 0 12px; } }
.psb-items-add-row { margin: 0; }
.psb-item-add { width: 100%; padding: 14px 18px; border: 2px dashed #c9c9d2; border-radius: 16px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.psb-item-add:hover, .psb-item-add:focus-visible { border-color: currentColor; }
.psb-item-add[hidden] { display: none; }
.psb-item-opts[aria-busy="true"] { opacity: .5; }
.psb-quote-intro { max-width: 760px; margin: 0 0 20px; }

/* ------------------------------------------------ Staff pages: Jobs List, Production, Tracking (1.8) */
.psb-staff { max-width: var(--wp--style--global--wide-size, 1340px); margin: 0 auto; padding: 8px 0 48px; color: var(--psb-off, #2e2a68); font-family: var(--psb-f-body, inherit); }
/* Staff pages sit in the middle, as wide as the menu (like Get a quote). */
body.psb-staff-page main .is-layout-constrained > :not(.alignfull),
body.psb-staff-page :is(.wp-block-post-content, .entry-content, .psb-staff) { max-width: var(--wp--style--global--wide-size, 1340px) !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
body.psb-staff-page .psb-staff { width: 100%; }
.psb-staff-page .wp-block-post-title { display: none; }
.psb-staff-head { margin: 0 0 22px; }
.psb-staff-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.psb-staff-nav a, .psb-jl-filters a { padding: 8px 16px; border: 2px solid #5d57a3; border-radius: 999px; color: var(--psb-off, inherit) !important; font-family: var(--psb-f-mono, monospace); font-size: .85rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.psb-staff-nav a.is-here, .psb-jl-filters a.is-on { border-color: var(--psb-ye); background: var(--psb-ye); color: var(--psb-ground) !important; }
.psb-staff-title { margin: 0; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: .95; letter-spacing: -0.03em; }
.psb-staff-title::after { content: " ✱"; color: var(--psb-or); font-family: var(--psb-f-body, inherit); }
.psb-jl-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.psb-jl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.psb-jl-search input { min-width: 240px; }
.psb-jl-new { margin: 0 0 22px; padding: 18px 22px; border-top: 4px solid var(--psb-mi); border-radius: 22px; background: var(--psb-card2, #f6f6f8); }
.psb-jl-new summary, .psb-jv-edit summary { cursor: pointer; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; }
.psb-jl { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.psb-jcard > a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; box-sizing: border-box; border-top: 5px solid var(--psb-or); border-radius: 24px; background: var(--psb-card2, #f6f6f8); color: var(--psb-off, inherit) !important; text-decoration: none !important; transition: transform .15s ease; }
.psb-jcard > a:is(:hover, :focus-visible) { transform: translateY(-3px); }
.psb-jcard--artwork > a { border-top-color: var(--psb-bl); }
.psb-jcard--production > a { border-top-color: var(--psb-ye); }
.psb-jcard--ready > a { border-top-color: var(--psb-mi); }
.psb-jcard--dispatched > a, .psb-jcard--delivered > a { border-top-color: #5d57a3; }
.psb-jcard-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.psb-jcard-title { font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15; }
.psb-jcard-meta, .psb-jcard-items, .psb-jcard-who { font-family: var(--psb-f-mono, monospace); font-size: .82rem; color: #c5c2e8; }
.psb-jcard-who { margin-top: auto; }
.psb-jno { padding: 3px 10px; border-radius: 8px; background: var(--psb-off, #2e2a68); color: var(--psb-ground, #fff) !important; font-family: var(--psb-f-mono, monospace); font-size: .8rem; font-weight: 700; text-decoration: none !important; }
.psb-st, .psb-due { padding: 3px 10px; border-radius: 999px; font-family: var(--psb-f-mono, monospace); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.psb-st { background: #4c4794; color: var(--psb-off, #fff); }
.psb-st--artwork { background: var(--psb-bl); color: var(--psb-off); }
.psb-st--production { background: var(--psb-ye); color: var(--psb-ground); }
.psb-st--ready { background: var(--psb-mi); color: var(--psb-ground); }
.psb-st--hold { background: var(--cm-red, #ff5a7d); color: #fff; }
.psb-due { border: 2px solid #5d57a3; }
.psb-due--late { border-color: var(--cm-red, #ff5a7d); background: var(--cm-red, #ff5a7d); color: #fff; }
.psb-due--soon { border-color: var(--psb-or); color: var(--psb-or); }
.psb-jv-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.psb-jv-title { flex-basis: 100%; margin: 6px 0 0; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.psb-jv-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.psb-jf-inline { display: inline; margin: 0; }
.psb-step-btn { padding: 12px 20px; border: 3px solid #5d57a3; border-radius: 999px; background: transparent; color: var(--psb-off, inherit); font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: .9rem; cursor: pointer; }
.psb-step-btn:hover { border-color: var(--psb-ye); }
.psb-step-btn.is-on { border-color: var(--psb-ye); background: var(--psb-ye); color: var(--psb-ground); cursor: default; }
.psb-step-btn--delivered:not(.is-on) { border-color: var(--psb-mi); color: var(--psb-mi); }
.psb-jv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .psb-jv-grid { grid-template-columns: minmax(0, 1fr); } }
.psb-jv-main, .psb-jv-side { display: grid; gap: 20px; min-width: 0; }
.psb-jv-card { padding: 22px 24px; border-radius: 24px; background: var(--psb-card2, #f6f6f8); }
.psb-jv-card h4 { margin: 0 0 12px; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1rem; color: var(--psb-ye); }
.psb-jv-items { margin: 0; padding-left: 22px; }
.psb-jv-items > li { margin: 0 0 16px; }
.psb-jv-items > li.psb-jv-group { list-style: none; margin: 4px 0 10px -22px; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; color: var(--psb-or); }
.psb-jv-items dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 6px 0; font-size: .92rem; }
.psb-jv-items dt { color: #c5c2e8; font-family: var(--psb-f-mono, monospace); font-size: .8rem; }
.psb-jv-items dd { margin: 0; }
.psb-jv-flag { display: inline-block; margin: 4px 0; padding: 2px 10px; border-radius: 999px; background: var(--psb-bl); color: var(--psb-off); font-size: .8rem; font-weight: 700; }
.psb-notes { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.psb-notes li { padding: 10px 14px; border-left: 4px solid var(--psb-bl); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.04); font-size: .95rem; }
.psb-notes-when { display: block; margin-bottom: 2px; color: #c5c2e8; font-family: var(--psb-f-mono, monospace); font-size: .75rem; }
.psb-jf-note { display: flex; gap: 10px; align-items: flex-end; }
.psb-jf-note textarea { flex: 1; min-width: 0; }
.psb-jf-freight { display: grid; gap: 10px; }
.psb-jf-freight label, .psb-jf-details label { display: grid; gap: 4px; font-family: var(--psb-f-mono, monospace); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.psb-jf-freight .psb-jf-check, .psb-jf-who label { display: flex; gap: 8px; align-items: center; text-transform: none; font-family: inherit; font-size: .95rem; font-weight: 400; }
.psb-jf-who { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; border: 0; }
.psb-jf-details input, .psb-jf-details textarea, .psb-jf-freight :is(input[type="text"], select), .psb-jf-note textarea, .psb-jl-search input { width: 100%; box-sizing: border-box; font: inherit; text-transform: none; }
.psb-jbtn { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--psb-off, #2e2a68); color: var(--psb-ground, #fff); font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.psb-jbtn--go { background: var(--psb-ye); color: var(--psb-ground); }
.psb-jbtn:is(:hover, :focus-visible) { filter: brightness(1.08); }
.psb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 900px) { .psb-board { grid-template-columns: minmax(0, 1fr); } }
.psb-board-col { display: grid; gap: 16px; }
.psb-board-col h3, .psb-track h3 { margin: 0; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; }
.psb-board-n { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--psb-or); color: var(--psb-ground); text-align: center; font-size: .85rem; vertical-align: middle; }
.psb-pcard { display: grid; gap: 10px; padding: 18px 20px; border-top: 5px solid var(--psb-ye); border-radius: 22px; background: var(--psb-card2, #f6f6f8); }
.psb-board-col:nth-child(1) .psb-pcard { border-top-color: var(--psb-or); }
.psb-board-col:nth-child(3) .psb-pcard { border-top-color: var(--psb-mi); }
.psb-pcard h4 { margin: 0; font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; }
.psb-pcard h4 a { color: inherit !important; text-decoration: none; }
.psb-pcard .psb-notes { margin: 0; }
.psb-pcard .psb-jf-inline .psb-jbtn { width: 100%; padding: 14px; font-size: 1rem; }
.psb-track { margin: 0 0 30px; }
.psb-track h3 { margin-bottom: 14px; }
.psb-track-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.psb-track-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 22px; background: var(--psb-card2, #f6f6f8); }
@media (max-width: 900px) { .psb-track-row { grid-template-columns: minmax(0, 1fr); } }
.psb-track-who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.psb-track-who strong { flex-basis: 100%; font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; }
.psb-track-order { padding: 3px 10px; border-radius: 8px; background: var(--psb-bl); color: var(--psb-off); font-family: var(--psb-f-mono, monospace); font-size: .8rem; font-weight: 700; }
.psb-track-form .psb-jf-freight { grid-template-columns: 1fr 1fr; align-items: end; }
.psb-track-form .psb-jf-freight :is(.psb-jf-check, .psb-jbtn) { grid-column: span 1; }
@media (max-width: 600px) { .psb-track-form .psb-jf-freight { grid-template-columns: 1fr; } .psb-jf-note { flex-direction: column; align-items: stretch; } }
.psb-order-tracking { margin: 24px 0; }

/* ------------------------------------------------ Quote flow (1.9) */
.psb-st--quote { background: var(--psb-or, #ff9f43); color: var(--psb-ground, #2e2a68); }
.psb-st--quoted { background: var(--cm-lavender, #28bfe5); color: var(--psb-ground, #2e2a68); }
.psb-st--payment { background: var(--cm-mango, #ffb35c); color: var(--psb-ground, #2e2a68); }
.psb-jcard--quote > a { border-top-color: var(--psb-or); }
.psb-jcard--quoted > a { border-top-color: var(--cm-lavender, #28bfe5); }
.psb-jcard--payment > a { border-top-color: var(--cm-mango, #ffb35c); }
.psb-jv-price { margin-left: 8px; font-family: var(--psb-f-mono, monospace); color: var(--psb-ye, inherit); }
.psb-jv-prices { border-top: 5px solid var(--psb-or, #ff9f43); }
.psb-jv-pricelist { display: grid; gap: 10px; margin: 0 0 14px; padding-left: 22px; }
.psb-jv-pricelist label { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; align-items: center; }
.psb-jv-pricelist input { width: 100%; box-sizing: border-box; font: inherit; text-align: right; }
.psb-jv-total, .psb-qview-total, .psb-qcart-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 10px 0 16px; padding-top: 12px; border-top: 2px dashed #5d57a3; font-family: var(--psb-f-mono, monospace); }
.psb-qcart-total .psb-hint { flex-basis: 100%; margin: 0; text-align: right; }
.psb-jv-total strong, .psb-qview-total strong, .psb-qcart-total strong { font-size: 1.2rem; color: var(--psb-ye, inherit); }
.psb-jv-pricebtns { display: flex; flex-wrap: wrap; gap: 10px; }
.psb-jf-prices textarea { width: 100%; box-sizing: border-box; font: inherit; }
.psb-qtable { width: 100%; border-collapse: collapse; }
.psb-qtable td, .psb-qtable th { padding: 6px 0; text-align: left; }
.psb-qtable td + td, .psb-qtable th + th { text-align: right; font-family: var(--psb-f-mono, monospace); }
.psb-qtable tfoot th { border-top: 2px dashed #5d57a3; }
/* GST (1.16.0): quotes are ex GST, the total is inc GST. */
.psb-gst { margin-left: .35em; font-family: var(--psb-f-mono, monospace); font-size: .78em; font-weight: 400; opacity: .8; white-space: nowrap; }
.psb-gst-sum { margin: 10px 0 16px; padding-top: 12px; border-top: 2px dashed #5d57a3; }
.psb-gst-line { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-family: var(--psb-f-mono, monospace); opacity: .85; }
.psb-gst-sum :is(.psb-jv-total, .psb-qview-total) { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #5d57a3; }
:is(.psb-qview-price, .psb-qcart-price) { text-align: right; }
:is(.psb-qview-price, .psb-qcart-price) .psb-gst { display: block; margin: 2px 0 0; }
.psb-qtable tfoot td { font-family: var(--psb-f-mono, monospace); opacity: .85; }
.psb-qtable tfoot tr:first-child > * { border-top: 2px dashed #5d57a3; }
.psb-qtable tfoot .psb-qtable-total th { border-top: 1px solid #5d57a3; }
.psb-qtable tfoot tr:first-child.psb-qtable-total th { border-top: 2px dashed #5d57a3; }
/* Cart = quote basket */
.psb-qcart { max-width: var(--wp--style--global--wide-size, 1340px); margin: 0 auto; }
.psb-qcart-intro { max-width: 70ch; }
.psb-qcart-group, .psb-qcart-details { margin: 0 0 22px; padding: 20px 22px; border-top: 5px solid var(--psb-or, #ff9f43); border-radius: 24px; background: var(--psb-card2, #f6f6f8); }
.psb-qcart-group--priced { border-top-color: var(--psb-mi, #4ed4b8); }
.psb-qcart-details { border-top-color: var(--psb-bl, #8a5cff); }
.psb-qcart-details :is(input[type="text"], input[type="email"], input[type="tel"], textarea) { box-sizing: border-box; width: 100%; max-width: 100%; }
.psb-qcart-group h3, .psb-qcart-details h3, .psb-qview-title { margin: 0 0 14px; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; text-transform: uppercase; }
.psb-qcart-items, .psb-qview-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.psb-qcart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: start; padding: 12px 14px; border: 2px solid #4c4794; border-radius: 16px; }
.psb-qcart-what summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; cursor: pointer; list-style: none; }
.psb-qcart-what summary::-webkit-details-marker { display: none; }
.psb-qcart-what summary::before { content: "▸"; color: var(--psb-or, #ff9f43); }
.psb-qcart-what[open] summary::before { content: "▾"; }
.psb-qcart-name { font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; }
.psb-qcart-sum { overflow: hidden; max-width: 100%; color: #c5c2e8; font-family: var(--psb-f-mono, monospace); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.psb-qcart-what[open] .psb-qcart-sum { display: none; }
.psb-qcart-opts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 10px 0 6px; font-size: .92rem; }
.psb-qcart-opts dt { color: #c5c2e8; font-family: var(--psb-f-mono, monospace); font-size: .8rem; }
.psb-qcart-opts dd { margin: 0; }
.psb-qcart-qty input { width: 70px; font: inherit; text-align: center; }
.psb-qcart-price { min-width: 7em; text-align: right; font-family: var(--psb-f-mono, monospace); font-weight: 700; }
.psb-qcart-rm { font-size: .85rem; }
.psb-qcart-update { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 22px; }
.psb-qcart .psb-hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .psb-qcart-item { grid-template-columns: minmax(0, 1fr) auto; } .psb-qcart-what { grid-column: 1 / -1; } }
/* The customer's quote */
.psb-qview { max-width: 860px; margin: 0 auto; }
.psb-qview-items > li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--psb-card2, #f6f6f8); }
.psb-qview-price { font-family: var(--psb-f-mono, monospace); font-weight: 700; white-space: nowrap; }
.psb-qview-msg { padding: 14px 18px; border-left: 4px solid var(--psb-bl, #8a5cff); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.04); }
.psb-qview-approve { margin: 20px 0 10px; }
/* Folded quote items: ready (tick) or needs more (triangle). */
.psb-item-state { display: inline-flex; flex: none; width: 22px; height: 22px; }
.psb-item-state svg { width: 100%; height: 100%; }
.psb-item-toggle[aria-expanded="true"] .psb-item-state { display: none; }
.psb-item.is-collapsed.is-incomplete { border-color: var(--psb-ye, #ffd640); }
.psb-item-state .screen-reader-text, .psb-qcart .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.psb-qcart-what summary .psb-item-state { align-self: center; }

/* ------------------------------------------------ Upload overlay (1.10.1) */
html.psb-up-open { overflow: hidden; }
.psb-up { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18, 18, 20, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: psb-up-in .2s ease; }
@keyframes psb-up-in { from { opacity: 0; } }
.psb-up-box { width: min(420px, 100%); padding: 30px 26px 24px; border: 4px solid #2e2a68; border-radius: 28px; background: #3a3580; color: #f3f1ec; box-shadow: 0 0 0 4px #8a5cff, 0 0 0 12px #2e2a68, 0 0 0 16px #ff9f43; text-align: center; font-family: var(--psb-f-body, system-ui, sans-serif); }
.psb-up-spin { position: relative; width: 64px; height: 64px; margin: 0 auto 18px; animation: psb-up-turn 1.1s steps(8) infinite; }
.psb-up-spin i { position: absolute; width: 18px; height: 18px; border: 3px solid #2e2a68; border-radius: 5px; }
.psb-up-spin i:nth-child(1) { left: 0; top: 0; background: #ff9f43; }
.psb-up-spin i:nth-child(2) { right: 0; top: 0; background: #ffd640; }
.psb-up-spin i:nth-child(3) { right: 0; bottom: 0; background: #4ed4b8; }
.psb-up-spin i:nth-child(4) { left: 0; bottom: 0; background: #8a5cff; }
@keyframes psb-up-turn { to { transform: rotate(360deg); } }
.psb-up .psb-up-title { margin: 0 0 16px; font-family: var(--psb-f-head, inherit); font-stretch: 125%; font-weight: 900; font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; color: #f3f1ec; }
.psb-up-bar { height: 18px; overflow: hidden; border: 3px solid #2e2a68; border-radius: 999px; background: #36363c; box-shadow: 0 0 0 3px #ffd640; }
.psb-up-bar span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, #ff9f43 0 10px, #ffb35c 10px 20px); background-size: 28px 28px; transition: width .2s ease; animation: psb-up-stripe .6s linear infinite; }
@keyframes psb-up-stripe { to { background-position: 28px 0; } }
.psb-up.is-saving .psb-up-bar span { background: repeating-linear-gradient(-45deg, #4ed4b8 0 10px, #8ee06f 10px 20px); background-size: 28px 28px; }
.psb-up .psb-up-num { margin: 12px 0 4px; font-family: var(--psb-f-mono, ui-monospace, monospace); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; color: #ffd640; }
.psb-up .psb-up-hint { margin: 0 0 18px; font-size: .88rem; color: #cfcdc8; }
.psb-up .psb-up-cancel { padding: 10px 20px 9px; border: 3px solid #2e2a68; border-radius: 999px; background: #f3f1ec; color: #2e2a68; box-shadow: 0 0 0 3px #ff5a7d; font: 700 .85rem var(--psb-f-mono, ui-monospace, monospace); text-transform: uppercase; cursor: pointer; }
.psb-up .psb-up-cancel:is(:hover, :focus-visible) { background: #ff5a7d; color: #f3f1ec; outline: 3px solid #f3f1ec; outline-offset: 3px; }
.psb-up .psb-up-cancel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .psb-up, .psb-up-spin, .psb-up-bar span { animation: none; } }

/* ------------------------------------------------ On hold with a reminder (1.10.1) */
.psb-due--wake { border-color: var(--cm-lavender, #28bfe5); color: var(--cm-lavender, #28bfe5); }
.psb-jv-hold > summary { cursor: pointer; font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; }
.psb-jv-hold[open] > summary { margin-bottom: 12px; }
.psb-hold-now { margin: 0 0 14px; }
.psb-hold-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.psb-hold-date { display: grid; gap: 4px; margin: 0 0 12px; }
.psb-hold-label { margin: 0 0 6px; font-family: var(--psb-f-mono, monospace); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.psb-hold-date label { font-family: var(--psb-f-mono, monospace); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.psb-hold-date input { box-sizing: border-box; width: 100%; }
.psb-hold-go { margin: 0 0 10px; }
.psb-jbtn--soft { padding: 7px 12px; background: transparent; border: 2px solid currentColor; color: inherit; font-size: .75rem; }

/* Product page options inside the block theme's add-to-cart form: WooCommerce lays that form out as a
   three-column grid, which pushed the options past the screen edge at tablet widths (1.11.1). */
.wp-block-woocommerce-add-to-cart-form form.cart:has(.psb-opts) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wp-block-woocommerce-add-to-cart-form form.cart:has(.psb-opts)::before, .wp-block-woocommerce-add-to-cart-form form.cart:has(.psb-opts)::after { content: none; }
form.cart .psb-opts { flex: 1 1 100%; box-sizing: border-box; min-width: 0; max-width: 100%; }
form.cart .psb-opts :is(fieldset, .psb-chips) { min-width: 0; max-width: 100%; }
form.cart .psb-opts :is(input:not([type="radio"]):not([type="checkbox"]), textarea, select) { box-sizing: border-box; max-width: 100%; }

/* ------------------------------------------------ Outsourced work, staff only (1.12.0) */
.psb-due--out { border-color: var(--cm-mango, #ffb35c); color: var(--cm-mango, #ffb35c); }
.psb-due--out.is-late { border-color: var(--cm-red, #ff5a7d); background: var(--cm-red, #ff5a7d); color: #fff; }
.psb-jv-out > summary { cursor: pointer; font-family: var(--psb-f-head, inherit); font-stretch: 112%; font-weight: 900; text-transform: uppercase; }
.psb-jv-out[open] > summary { margin-bottom: 12px; }
.psb-out-secret { margin-left: 6px; padding: 2px 7px; border: 1px dashed currentColor; border-radius: 999px; font-family: var(--psb-f-mono, monospace); font-size: .62rem; font-weight: 700; letter-spacing: .04em; opacity: .75; vertical-align: middle; }
.psb-out-list { margin: 0 0 14px; padding: 0; list-style: none; }
.psb-out { position: relative; margin: 0 0 10px; padding: 10px 12px; border-left: 4px solid var(--cm-mango, #ffb35c); border-radius: 0 10px 10px 0; background: rgba(127, 127, 127, .08); }
.psb-out.is-late { border-left-color: var(--cm-red, #ff5a7d); }
.psb-out.is-back { border-left-color: var(--cm-green, #4ed4b8); opacity: .7; }
.psb-out-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.psb-out-btns form { margin: 0; }
.psb-out-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.psb-jl-sup { margin: -6px 0 16px; }
.psb-jf-assign .psb-jf-who { margin: 0 0 14px; }
.psb-jf-assign .psb-jf-who label { min-height: 32px; }

/* 1.21.0: a pressed form button shows it's working. */
.psb-is-busy { position: relative; cursor: progress; opacity: .75; }
.psb-is-busy::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .5em; vertical-align: -.12em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: psb-busy-spin .7s linear infinite; }
@keyframes psb-busy-spin { to { transform: rotate(360deg); } } /* 1.23.1: own name, so it no longer replaces the chrome rim's psb-spin. */
@media (prefers-reduced-motion: reduce) { .psb-is-busy::after { animation-duration: 2s; } }
