/* Inside Bootstrap 6's custom layer: beats v6 components, never a v6 utility. */
@layer custom {
/* =============================================================
   Print Shop module styling: the design surface and the 3D view.

   Namespaced under .ps-* so loading it globally cannot touch anything
   outside this module. Every colour is a live --bs-* token, so light and
   dark follow the theme. v6 has no part for a drawing stage or a 3D
   view with buttons laid over it, hence these few rules.
   ============================================================= */

/* The editor's host: printShopEditor.js puts a canvas in it, sized in
   pixels to fit the host's width and keep the print's shape. Only the
   canvas takes every touch (it needs drags); round it the page scrolls. */
.ps-stage {
    display: grid;
    place-items: center;
    padding: var(--bs-spacer-5);
    background-color: var(--bs-bg-2);
    border-radius: var(--bs-radius-4);
}

.ps-editor-canvas {
    display: block;
    max-width: 100%;
    background-color: var(--bs-white);
    cursor: move;
    touch-action: none;
    box-shadow: 0 .25rem 1.125rem oklch(from var(--bs-shadow-color) l c h / .18);
}

.ps-editor-canvas:focus-visible {
    outline: var(--bs-focus-ring-width) solid var(--bs-primary-base);
    outline-offset: .25rem;
}

/* The 3D view's host: printShopViewer.js fills it with a WebGL canvas.
   Square on the product step; --wide (4:3) on the review step. */
.ps-viewer {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--bs-bg-2);
    border-radius: var(--bs-radius-4);
    touch-action: none; /* every drag turns it, two fingers zoom */
}

.ps-viewer--wide { aspect-ratio: 4 / 3; }

.ps-viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.ps-viewer-canvas:active { cursor: grabbing; }

/* "Drag to turn, two fingers to move" bottom left of the view (the arrows hold the bottom right), fading out once the customer touches it (.is-hidden on
   OnViewerTouched). A mouse gets "right-drag to move" instead. Always one line: a view too narrow for all of it
   (under 22rem, measured: 197px of pill beside 120px of arrows) shows "Drag to turn" alone, and the arrows say it moves. */
.ps-viewer:has(> .ps-viewer-hint) { container-type: inline-size; }
.ps-viewer-hint {
    position: absolute;
    inset-inline-start: var(--bs-spacer-4);
    bottom: var(--bs-spacer-4);
    max-width: calc(100% - 8.5rem);
    padding: var(--bs-spacer-1) var(--bs-spacer-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--bs-font-size-xs);
    color: var(--bs-white);
    background-color: oklch(from var(--bs-black) l c h / .55);
    border-radius: 99rem;
    pointer-events: none;
    transition: opacity .6s;
}
.ps-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
    .ps-hint-touch { display: none; }
    .ps-hint-mouse { display: inline; }
}

@container (width < 22rem) {
    .ps-hint-more { display: none; }
}

.ps-viewer-hint.is-hidden { opacity: 0; }
/* A phone's view has no room for it beside the arrows (it ran onto two lines under them): a touch screen turns the
   print with a drag anyway, and the arrows say it moves. */
@media (width < 768px) {
    .ps-viewer-hint { display: none; }
}

/* The + and - buttons stacked in the top right corner (where the Wall view puts its wall colours), then a little apart
   the reset; the move arrows sit bottom right (.ps-dpad). */
.ps-viewer-zoom {
    position: absolute;
    top: var(--bs-spacer-4);
    inset-inline-end: var(--bs-spacer-4);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--bs-spacer-2);
}
.ps-viewer-reset { margin-top: var(--bs-spacer-4); }
.ps-viewer-move { position: absolute; inset-inline-end: var(--bs-spacer-4); bottom: var(--bs-spacer-4); z-index: 2; }
/* The move arrows as a keyboard's arrow keys, the same in 3D and Edit: up alone on top, then left, down and right.
   Up takes the middle column; left, given the first column, wraps to the second row and the rest follow it. */
.ps-dpad { display: grid; grid-template-columns: repeat(3, auto); gap: var(--bs-spacer-2); }
.ps-dpad > :first-child { grid-column: 2; }
.ps-dpad > :nth-child(2) { grid-column: 1; }

@media (prefers-reduced-motion: reduce) {
    .ps-viewer-hint { transition: none; }
}
}


/* Inside Bootstrap 6's custom layer: beats v6 components, never a v6 utility. */
@layer custom {
/* =============================================================
   Customer flow: the shop on /print-shop and the buyer's orders.

   v6 has no product tile with a picture stage, no two-line choice
   chip with a colour swatch, no colour dot picker and no sticky pay
   bar, hence these rules. Colours that ARE the product (a frame, a
   mug's inside, a text colour) are a fixed set of swatch classes:
   markup never carries a style attribute, so each colour the shop
   offers has its own .ps-c-{hex} class below. Fonts likewise: a font
   chip is drawn in its own font through .ps-font-{name}.
   ============================================================= */

/* The studio every product is shown in (the grid's cards, the 3D view, Customize): a lit, warm off-white wall, like
   a product photograph, in either theme. Fixed colours, not theme tokens, on purpose: it is the backdrop of a
   picture of the product, where shadows only read as real on a light wall, a black frame or a canvas's dark side
   stands out, and the picture's colours look true. */
:root { --ps-studio: radial-gradient(ellipse 90% 80% at 50% 40%, #f8f6f2, #dedad3 85%); }

/* Choice chips: v6's .chip, taller, with an optional second line (centimetres, an extra cost). */
.chip.ps-chip {
    --bs-chip-height: auto;
    --bs-chip-bg: var(--bs-bg-1);
    --bs-chip-border-color: var(--bs-border-color);
    min-height: 2.5rem;
    padding-block: var(--bs-spacer-2);
    padding-inline: var(--bs-spacer-5);
    white-space: normal;
    text-align: start;
}

.chip.ps-chip--two { border-radius: var(--bs-radius-4); padding-inline: var(--bs-spacer-4); }

.chip.ps-chip.active,
.chip.ps-chip.active:hover {
    --bs-chip-color: var(--bs-fg-body);
    --bs-chip-bg: var(--bs-bg-1);
    --bs-chip-border-color: var(--bs-fg-body);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--bs-fg-body);
    opacity: 1;
}

.ps-chip-sub { display: block; font-size: var(--bs-font-size-xs); font-weight: 400; line-height: 1.25; color: var(--bs-fg-3); }

/* A font chip shows the font itself, a little bigger. */
.chip.ps-chip--font { --bs-chip-font-size: 1.0625rem; min-width: 3.5rem; justify-content: center; }

/* A colour swatch: a dot inside a chip or a picker row. */
.ps-swatch {
    display: inline-block;
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    border: var(--bs-border-width) solid oklch(from var(--bs-black) l c h / .15);
    border-radius: 50%;
}

/* A colour to pick (text, outline, background): a round button. */
.ps-dot {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 2px solid var(--bs-bg-1);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--bs-border-color);
}

.ps-dot.active { box-shadow: 0 0 0 3px var(--bs-primary-base); }
.ps-dot:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: 2px; }

/* A long option list: one row with the current choice, opening the list. */
.ps-picker,
.ps-sheet-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--bs-spacer-4);
    padding: var(--bs-spacer-4) var(--bs-spacer-5);
    color: inherit;
    text-align: start;
    background-color: var(--bs-bg-1);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-4);
}

.ps-picker:hover { border-color: var(--bs-fg-3); }
.ps-sheet-row.active {
    border-color: var(--bs-primary-base);
    box-shadow: inset 0 0 0 1px var(--bs-primary-base);
    background-color: color-mix(in oklch, var(--bs-primary-base) 16%, var(--bs-bg-1));
}

/* The price on the product step. */
.ps-price { font-size: 1.625rem; font-weight: 800; line-height: 1.1; }

/* "Order by 12 Dec for Christmas": a small accent dot before the words. */
.ps-season { display: flex; align-items: center; gap: var(--bs-spacer-3); }
.ps-season::before { content: ""; flex: none; width: .5rem; height: .5rem; background-color: var(--bs-primary-base); border-radius: 50%; }

/* Look thumbnails on the Picture tab. */
.ps-looks { display: flex; gap: var(--bs-spacer-3); overflow-x: auto; padding: 2px 2px var(--bs-spacer-1); }

.ps-look {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: var(--bs-spacer-1);
    width: 4rem;
    padding: 0;
    font-size: var(--bs-font-size-xs);
    line-height: 1.2;
    color: var(--bs-fg-2);
    text-align: center;
    background: none;
    border: 0;
}

.ps-look-pic {
    display: block;
    width: 3.375rem;
    height: 3.375rem;
    object-fit: cover;
    background-color: var(--bs-bg-2);
    border-radius: var(--bs-radius-3);
    box-shadow: 0 0 0 1px var(--bs-border-color);
}

.ps-look.active { font-weight: 600; color: var(--bs-fg-body); }
.ps-look.active .ps-look-pic { box-shadow: 0 0 0 2px var(--bs-fg-body); }

/* More fonts: a short scrolling list, two across. */
.ps-font-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bs-spacer-2); max-height: 15rem; overflow-y: auto; }

.ps-font-item {
    overflow: hidden;
    padding: var(--bs-spacer-3) var(--bs-spacer-4);
    font-size: 1.125rem;
    color: inherit;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: var(--bs-bg-1);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-3);
}

.ps-font-item.active { border-color: var(--bs-fg-body); box-shadow: inset 0 0 0 1px var(--bs-fg-body); }

/* The text being edited, when the print has more than one. */
.form-control.ps-words-selected { border-color: var(--bs-fg-body); box-shadow: inset 0 0 0 1px var(--bs-fg-body); }

/* A thumbnail of an item on the review and the order page. */
.ps-thumb {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    background-color: var(--bs-bg-3);
    border-radius: var(--bs-radius-3);
}

/* "What we'll print": the flat print file inside a dashed edge. */
.ps-flat { display: block; width: 100%; border: var(--bs-border-width) dashed var(--bs-border-color); border-radius: var(--bs-radius-2); }

/* A delivery choice: the whole row is the target, the chosen one outlined. */
.ps-radio-card {
    padding: var(--bs-spacer-4) var(--bs-spacer-5);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-4);
}

.ps-radio-card:has(.radio:checked) { border-color: var(--bs-fg-body); box-shadow: inset 0 0 0 1px var(--bs-fg-body); }

/* The label takes the row, so the price sits at its right edge. */
.ps-radio-card > label { justify-self: stretch; }

/* The one step forward (Done, Pay) stays in reach at the bottom of a long step. */
.ps-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: var(--bs-spacer-5) 0 var(--bs-spacer-6);
    background: linear-gradient(transparent, var(--bs-bg-body) 22%);
}

.ps-foot > * { flex: 1 1 auto; }

@media (width >= 768px) {
    .ps-foot > * { flex: 0 0 auto; min-width: 14rem; }
}

/* Below xl the phone tab bar (.ez-app-tabs, about 3.4rem) is stuck to the bottom too: sit just above it. */
@media (width < 1280px) {
    body:has(.ez-app-tabs) .ps-foot { bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
}

/* Heavier weights v6 has no utility for (fw-light to fw-bold cover 300 to 700). */
.ps-fw-800 { font-weight: 800; }
.ps-fw-900 { font-weight: 900; }

/* The colours the shop offers (product swatches and the editor palettes). */
.ps-c-151515 { background-color: #151515; }
.ps-c-1c1c1c { background-color: #1c1c1c; }
.ps-c-1d4e9e { background-color: #1d4e9e; }
.ps-c-4a4a4c { background-color: #4a4a4c; }
.ps-c-5b3a26 { background-color: #5b3a26; }
.ps-c-a7a7a2 { background-color: #a7a7a2; }
.ps-c-b08d4c { background-color: #b08d4c; }
.ps-c-b3261e { background-color: #b3261e; }
.ps-c-b9b9b6 { background-color: #b9b9b6; }
.ps-c-d6bf9f { background-color: #d6bf9f; }
.ps-c-e98cae { background-color: #e98cae; }
.ps-c-f1ebdd { background-color: #f1ebdd; }
.ps-c-f1f1ef { background-color: #f1f1ef; }
.ps-c-f3f3f1 { background-color: #f3f3f1; }
.ps-c-f6f6f4 { background-color: #f6f6f4; }
.ps-c-fbfbf8 { background-color: #fbfbf8; }
.ps-c-ffffff { background-color: #ffffff; }
.ps-c-0a1528 { background-color: #0a1528; }
.ps-c-1f6f43 { background-color: #1f6f43; }
.ps-c-c9a227 { background-color: #c9a227; }
.ps-c-f56405 { background-color: #f56405; }
.ps-c-7a4bb3 { background-color: #7a4bb3; }
.ps-c-e26a9a { background-color: #e26a9a; }
.ps-c-f4ede4 { background-color: #f4ede4; }
.ps-c-e6ecf5 { background-color: #e6ecf5; }

/* The print fonts (registered from the module's own files by printShopDesign.js). */
.ps-font-onest { font-family: "Onest", system-ui, sans-serif; }
.ps-font-playfair-display { font-family: "Playfair Display", system-ui, sans-serif; }
.ps-font-dancing-script { font-family: "Dancing Script", system-ui, sans-serif; }
.ps-font-fredoka { font-family: "Fredoka", system-ui, sans-serif; }
.ps-font-pacifico { font-family: "Pacifico", system-ui, sans-serif; }
.ps-font-bebas-neue { font-family: "Bebas Neue", system-ui, sans-serif; }
.ps-font-montserrat { font-family: "Montserrat", system-ui, sans-serif; }
.ps-font-poppins { font-family: "Poppins", system-ui, sans-serif; }
.ps-font-nunito { font-family: "Nunito", system-ui, sans-serif; }
.ps-font-lora { font-family: "Lora", system-ui, sans-serif; }
.ps-font-cormorant-garamond { font-family: "Cormorant Garamond", system-ui, sans-serif; }
.ps-font-dm-serif-display { font-family: "DM Serif Display", system-ui, sans-serif; }
.ps-font-great-vibes { font-family: "Great Vibes", system-ui, sans-serif; }
.ps-font-satisfy { font-family: "Satisfy", system-ui, sans-serif; }
.ps-font-parisienne { font-family: "Parisienne", system-ui, sans-serif; }
.ps-font-allura { font-family: "Allura", system-ui, sans-serif; }
.ps-font-baloo-2 { font-family: "Baloo 2", system-ui, sans-serif; }
.ps-font-chewy { font-family: "Chewy", system-ui, sans-serif; }
.ps-font-luckiest-guy { font-family: "Luckiest Guy", system-ui, sans-serif; }
.ps-font-anton { font-family: "Anton", system-ui, sans-serif; }
.ps-font-oswald { font-family: "Oswald", system-ui, sans-serif; }
.ps-font-alfa-slab-one { font-family: "Alfa Slab One", system-ui, sans-serif; }
.ps-font-caveat { font-family: "Caveat", system-ui, sans-serif; }
.ps-font-patrick-hand { font-family: "Patrick Hand", system-ui, sans-serif; }
.ps-font-kalam { font-family: "Kalam", system-ui, sans-serif; }
.ps-font-amatic-sc { font-family: "Amatic SC", system-ui, sans-serif; }

}


/* Inside Bootstrap 6's custom layer: beats v6 components, never a v6 utility. */
@layer custom {
/* =============================================================
   The shop as redesigned (owner, 2026-11-20, docs/mockups/vcr-print-shop/prototype.html):
   the best-fit hero on the grid, the product step with its preview
   pinned above the choices, On a wall, Customize inside the
   step, and the review read as a receipt. v6 has no pinned
   preview-and-sheet layout, no picture tile with a badge on it, no
   frame-corner swatch, no quantity stepper, no step line and no
   delivery timeline, hence these rules.
   ============================================================= */

/* The grid: one slim line (the season's order-by day, the delivery country), then the products as posters. */
.ps-shop-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bs-spacer-3) var(--bs-spacer-5); }
.ps-shop-country { max-width: 30rem; }
/* The narrowest phones: Save drops its icon so a long country name ("New Zealand") still shows whole. Font Awesome's
   own (unlayered) rule sets the icon's display from --fa-display. */
@media (width < 360px) {
    .ps-shop-country { gap: var(--bs-spacer-2) !important; }
    .ps-shop-country .btn > i { --fa-display: none; }
}
.ps-season-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--bs-spacer-3);
    padding: var(--bs-spacer-2) var(--bs-spacer-5);
    font-size: var(--bs-font-size-sm);
    font-weight: 600;
    background-color: color-mix(in oklch, var(--bs-danger-base) 14%, var(--bs-bg-1));
    border: var(--bs-border-width) solid color-mix(in oklch, var(--bs-danger-base) 32%, transparent);
    border-radius: 99rem;
}
.ps-season-chip > i { color: var(--bs-danger-base); }
/* A phone: the order-by line spans the screen, centred, and the country moves to the top bar's AU button. !important:
   the line's d-flex utility would win. */
@media (width < 768px) {
    .ps-season-chip { flex: 1 1 100%; justify-content: center; text-align: center; }
    .ps-ship-line { display: none !important; }
}

/* Every product the same poster, the shape and look of the app's own choice cards (VCR's studio posters): a 3:4
   frame as tall as the window allows under the page's top, its own foot and the page's bottom margin (--ps-room),
   as wide as its share of the row and never narrower than --ps-min. Three to a row, more wrap; two across on a
   phone. The picture on the product sits on a soft studio light; the name and the size and price read on the
   darkened foot; what it comes with and when it arrives sit under the frame. Hover: a violet border, a lift, the
   product leaning in. */
.ps-posters {
    --ps-room: 19rem;
    --ps-min: 13rem;
    --ps-n: 3;
    --ps-gap: var(--bs-spacer-7);
    --ps-fit: max(var(--ps-min), calc((100svh - var(--ps-room)) * .75));
    --ps-share: calc((100% - (var(--ps-n) - 1) * var(--ps-gap)) / var(--ps-n));
    display: grid;
    grid-template-columns: repeat(var(--ps-n), min(var(--ps-fit), max(var(--ps-min), var(--ps-share))));
    justify-content: center;
    gap: var(--ps-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.ps-posters--n1 { --ps-n: 1; }
.ps-posters--n2 { --ps-n: 2; }
@media (width < 768px) {
    .ps-posters { --ps-gap: var(--bs-spacer-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-posters--n1 { grid-template-columns: minmax(0, 1fr); }
}
.ps-posters > li { min-width: 0; }
/* The card is a grid: the frame, the badge and the name share one cell (the badge at the top, the name on the
   darkened foot), what it comes with sits under it. On a phone the same parts become a row (below). */
.ps-poster {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "card" "foot";
    row-gap: var(--bs-spacer-4);
    min-width: 0;
    container-type: inline-size;
    color: var(--bs-fg-body);
    text-decoration: none;
    border-radius: 1.25rem;
}
.ps-poster:hover { color: var(--bs-fg-body); }
.ps-poster:focus-visible { outline: 3px solid var(--bs-primary-base); outline-offset: 4px; }
.ps-poster-frame {
    grid-area: card;
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ps-studio);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 1.125rem;
    box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, .5);
    transition: border-color .2s ease, transform .2s ease;
}
.ps-poster-badge,
.ps-poster-name { transition: transform .2s ease; }
.ps-poster:hover .ps-poster-frame { border-color: var(--bs-primary-base); }
.ps-poster:hover .ps-poster-frame,
.ps-poster:hover .ps-poster-badge,
.ps-poster:hover .ps-poster-name { transform: translateY(-3px); }
/* The foot darkens so the name reads over any product, in either theme. */
.ps-poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 4, 16, .92) 0%, rgba(8, 4, 16, .55) 24%, transparent 46%);
}
/* The product sits above the name: the still (square, with room round the product) fills that space. */
.ps-poster-pic { position: absolute; inset: 4% 4% 20% 4%; }
.ps-poster-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.ps-poster:hover .ps-poster-pic > img { transform: scale(1.04); }
/* The card's 3D view: turning by itself on the card's own light, every tap passing through to the card. */
.ps-viewer--showcase { background: none; border-radius: 0; pointer-events: none; transition: transform .2s ease; }
.ps-poster:hover .ps-viewer--showcase { transform: scale(1.04); }
/* The customer's picture alone, while the 3D still is drawn (or where the browser cannot draw 3D). */
.ps-poster-pic > img.ps-poster-flat { inset: 12% 18%; width: 64%; height: 76%; object-fit: cover; box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .45); }
.ps-poster-badge { grid-area: card; align-self: start; justify-self: start; z-index: 2; max-width: calc(100% - 1.8rem); margin: .9rem; }
.ps-poster-badge > .badge { max-width: 100%; white-space: normal; text-align: start; }
.ps-poster-name { grid-area: card; align-self: end; z-index: 2; display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.4rem; color: #fff; }
/* The name and its flag always on one line (owner, 2026-11-22): a little smaller than before, and a name too long
   for its card is cut with "..." rather than wrapped, the flag kept whole beside it. */
.ps-poster-title { display: flex; align-items: center; min-width: 0; font-size: clamp(1.125rem, 9cqi, 1.875rem); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.ps-poster-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The flag of where it is printed, after the name (owner, 2026-11-22): the whole flag at a little over half the name's
   height, its own proportions, a hairline edge so white parts show on any background. v6 has no flag part. */
.ps-flag { display: block; flex: none; height: .62em; width: auto; margin-inline-start: .4em; border-radius: 2px; box-shadow: 0 0 0 1px oklch(from var(--bs-black) l c h / .18); }
/* On the darkened foot the line is always the light brand tint, whatever the theme's text colour. */
.ps-poster-tagline { font-size: clamp(.875rem, 5.5cqi, 1.05rem); font-weight: 600; line-height: 1.3; color: oklch(1 0 0 / .82); }
.ps-poster-foot { grid-area: foot; display: block; padding-inline: .25rem; font-size: .875rem; line-height: 1.4; color: var(--bs-fg-2); }
/* A phone (owner, 2026-11-22, mock-up "List 7"): one product at a time, picked from the row of pills above; it is one
   card, the product as big as the screen allows with nothing over it, then its badge, name, size and price, and what
   it comes with, all inside the card. Its Choose button sits at the bottom (.ps-grid-foot). */
@media (width < 576px) {
    .ps-posters,
    .ps-posters--n1 { grid-template-columns: minmax(0, 1fr); }
    .ps-posters > li:not(.ps-picked) { display: none; }
    .ps-poster {
        grid-template-areas: "card" "badge" "name" "foot";
        row-gap: var(--bs-spacer-3);
        padding-bottom: var(--bs-spacer-5);
        background-color: var(--bs-bg-1);
        border: var(--bs-border-width) solid var(--bs-border-color);
        border-radius: 1.375rem;
        overflow: hidden;
    }
    .ps-poster:hover .ps-poster-frame,
    .ps-poster:hover .ps-poster-badge,
    .ps-poster:hover .ps-poster-name { transform: none; }
    .ps-poster-frame { aspect-ratio: auto; height: min(52svh, 30rem); margin-bottom: var(--bs-spacer-2); border: 0; border-radius: 0; box-shadow: none; }
    /* The 3D view frames the product closer (printShopViewer.js reads it), so a print nearly fills the card's width
       (owner, 2026-11-22). */
    .ps-poster .ps-viewer--showcase { --ps-view-near: 1.15; }
    .ps-poster-frame::after { content: none; }
    .ps-poster-pic { inset: 4%; }
    .ps-poster-badge { grid-area: badge; max-width: 100%; margin: 0 var(--bs-spacer-5); }
    .ps-poster-name { grid-area: name; align-self: start; padding: 0 var(--bs-spacer-5); gap: var(--bs-spacer-1); color: var(--bs-fg-body); }
    .ps-poster-title { font-size: var(--bs-font-size-xl); }
    .ps-poster-tagline { font-size: var(--bs-font-size-md); color: var(--bs-fg-1); }
    .ps-poster-foot { padding-inline: var(--bs-spacer-5); }
}
/* The pills that pick the product, one line that scrolls sideways; and the Choose button: both phone only. */
.ps-pills { display: none; }
.ps-grid-foot { display: none; }
@media (width < 576px) {
    .ps-pills { display: flex; gap: var(--bs-spacer-3); margin-inline: calc(var(--bs-spacer-5) * -1); padding-inline: var(--bs-spacer-5); overflow-x: auto; scrollbar-width: none; }
    .ps-pills::-webkit-scrollbar { display: none; }
    /* The chosen product lit as the studios' switch lights the open studio (owner, 2026-11-22: "the same colors as
       the Full outfit button"): a brand tint and ring, light words, the glyph in the brand colour. */
    .ps-pills > .ps-pill.btn[aria-selected="true"] {
        color: var(--bs-fg-body);
        background-color: color-mix(in oklch, var(--bs-primary-base) 22%, transparent);
        border-color: var(--bs-primary-base);
    }
    .ps-pills > .ps-pill.btn[aria-selected="true"] > i { color: var(--bs-primary-fg); }
    .ps-grid-foot { display: flex; }
}

/* ---- The full-screen shop on a phone (owner, 2026-11-22: "not enough room") ----------------------------------------
   While the shop is open the app's header and tab bar step aside, and the shop draws its own top bar (PrintTopBar):
   a round Back or Close each side, the title or the step dots between. From md up nothing changes. */
.ps-topbar { display: none; }
@media (width < 768px) {
    .ez-app:has(.ps-app) :is(.ez-app-header, .ez-app-tabs) { display: none !important; }
    body:has(.ps-app) .ps-app .ps-foot { bottom: 0; }
    .ps-topbar {
        display: flex;
        align-items: center;
        gap: var(--bs-spacer-3);
        min-height: 3.75rem;
        margin-bottom: var(--bs-spacer-3);
    }
    .ps-topbar-mid { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
    .ps-topbar-title { font-size: var(--bs-font-size-lg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ps-topbar-gap { flex: 0 0 2.75rem; }
    .ps-topbar-end { flex: 0 0 auto; min-width: 2.75rem; display: flex; justify-content: flex-end; }
    .ps-round.btn { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; }
    .ps-desk-only { display: none !important; }
}
@media (width >= 768px) {
    .ps-phone-only { display: none !important; }
}
/* The step dots in the top bar: one per question, lit up to the one on show. */
.ps-dots { display: flex; gap: var(--bs-spacer-2); }
/* "Step 1 of 4" over the dots. */
.ps-step-count { display: flex; flex-direction: column; align-items: center; gap: var(--bs-spacer-2); white-space: nowrap; }
.ps-dot-step { width: 2rem; height: .3125rem; border-radius: 99rem; background-color: var(--bs-border-color); }
.ps-dot-step.active { background-color: var(--bs-primary-base); }
/* The question over a step's choices: phone only (from md up the tabs name the step). */
.ps-q { display: none; }
@media (width < 768px) {
    .ps-q { display: block; padding-block: var(--bs-spacer-3) var(--bs-spacer-5); }
    .ps-app .ps-sheet > .ps-tabs-bar { position: static; padding-top: 0; }
    /* !important: the tab strip's own display comes from v6's nav (and is restated by the platform's tab rules). */
    .ps-sheet > .ps-tabs-bar .ps-tabs { display: none !important; }
    /* The preview the size and framing of the products' card (owner, 2026-11-22: "the same as the last screen"): as
       tall, and the 3D view as close (printShopViewer.js reads --ps-view-near), so the biggest size nearly fills it and
       a smaller one looks smaller (owner, 2026-11-22: "the big ones look bigger"). At that size it scrolls with the page
       rather than staying pinned, so the choices get the screen. Over it only the 3D / Wall switch (top left) and
       the editor's own few tools and 3D's reset: the zoom buttons and the move arrows go (a drag turns or moves it, a pinch sizes it). */
    .ps-app :is(.ps-product, .ps-review) { --ps-pv-h: min(52svh, 30rem); }
    .ps-app .ps-review-pv { height: var(--ps-pv-h); }
    .ps-app .ps-review { gap: var(--bs-spacer-5); }
    .ps-product > .ps-pv { position: relative; top: auto; }
    .ps-pv .ps-viewer { --ps-view-near: 1.15; }
    /* Tucked up under the preview (into the step's gap), with room under it before the question. */
    .ps-pv-disclaimer { margin-top: calc(var(--bs-spacer-5) * -1 + var(--bs-spacer-2)); padding-bottom: var(--bs-spacer-6); }
    .ps-viewer-zoom > .btn:not(.ps-viewer-reset),
    .ps-viewer-move,
    .ps-pv-br > .ps-dpad { display: none !important; }
    /* The 3D view keeps its reset (owner, 2026-11-22), alone in the top right corner. */
    .ps-viewer-zoom > .ps-viewer-reset { margin-top: 0; }
    /* The review's picture without its caption: the order right under it says the name and price. */
    .ps-review-pv .ps-pv-caption { display: none; }
}

/* ---- A phone's price bar (owner, 2026-11-22) -------------------------------------------------------------------------
   One card along the bottom edge of the screen, side to side and down to the edge (the page's side and bottom padding
   given back): the price at the left, the one step on at the right. Both sizes follow the screen's width (vw, held
   between a floor and a ceiling), so the words fit on the smallest phone and grow on a bigger one. */
@media (width < 768px) {
    .ez-app-main:has(.ps-pbar) { padding-bottom: 0; }
    .ps-app .ps-foot.ps-pbar {
        display: block;
        margin: var(--bs-spacer-8) calc(var(--ez-page-px) * -1) 0;
        padding: clamp(.625rem, 3vw, 1rem) var(--ez-page-px) calc(clamp(.625rem, 3vw, 1rem) + env(safe-area-inset-bottom, 0px));
        background: var(--bs-bg-2);
        border-top: var(--bs-border-width) solid var(--bs-border-color);
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -.5rem 1.5rem oklch(from var(--bs-shadow-color) l c h / calc(.12 * var(--bs-shadow-strength)));
    }
    .ps-pbar-pill { display: flex; align-items: center; gap: clamp(.5rem, 3vw, 1rem); }
    .ps-pbar-pill > .ps-price { flex: 1 1 auto; min-width: 0; font-size: clamp(1.125rem, 6vw, 1.625rem); white-space: nowrap; }
    .ps-pbar-pill > .btn {
        flex: 0 0 auto;
        min-height: clamp(2.75rem, 12vw, 3.25rem);
        padding-inline: clamp(.875rem, 5vw, 1.5rem);
        font-size: clamp(.875rem, 4.3vw, 1.125rem);
        white-space: nowrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ps-poster-frame, .ps-poster-badge, .ps-poster-name, .ps-poster-pic > img, .ps-viewer--showcase { transition: none; }
    .ps-poster:hover .ps-poster-frame, .ps-poster:hover .ps-poster-badge, .ps-poster:hover .ps-poster-name, .ps-poster:hover .ps-poster-pic > img, .ps-poster:hover .ps-viewer--showcase { transform: none; }
}

/* The product step: the preview pinned while the choices scroll under it (phones), or beside them (md up). */
/* On a phone the preview takes about two fifths of the screen, so the choices under it get room of their own, and
   the tabs stay pinned just under it while the choices scroll (--ps-pv-h). */
.ps-product { --ps-pv-h: min(40svh, 22rem); display: flex; flex-direction: column; gap: var(--bs-spacer-5); }
.ps-pv {
    position: sticky;
    top: 0;
    z-index: 3;
    height: var(--ps-pv-h);
    background-color: var(--bs-bg-body);
}
/* From md up the step fits the window: the page top, this, the price bar and the page's bottom margin (--ps-step-room)
   make one screen; the preview fills its column and only the choices scroll. */
@media (width >= 768px) {
    .ps-product {
        --ps-step-room: 16rem;
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: var(--bs-spacer-7);
        align-items: stretch;
        height: max(26rem, calc(100svh - var(--ps-step-room)));
    }
    .ps-pv { position: relative; top: auto; height: 100%; }
    .ps-sheet { display: flex; flex-direction: column; min-height: 0; }
    .ps-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-inline-end: var(--bs-spacer-3); }
    .ps-sheet-foot { flex: none; padding-top: var(--bs-spacer-3); }
}
/* The preview framed like a poster: the same border, corners, shadow and studio light. */
.ps-pv > .ps-viewer,
.ps-pv > .ps-room,
.ps-pv > .ps-stage {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 1.125rem;
    box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, .5);
}
.ps-pv > .ps-viewer,
.ps-pv > .ps-stage { background: var(--ps-studio); }
.ps-viewer--fill { aspect-ratio: auto; height: 100%; }
.ps-stage--fill { height: 100%; }
.ps-room { position: relative; height: 100%; overflow: hidden; border-radius: var(--bs-radius-4); }
.ps-room-canvas { display: block; }

/* What sits over the preview, the same corners in every view: top left the 3D / Wall / Edit switch, top right the
   view's own column (3D: zoom; Wall: the wall colours; Edit: Undo, Redo and Reset), bottom left Edit's Sharp badge,
   and bottom right the move arrows (3D; Edit puts Before over them). */
.ps-pv-tl,
.ps-pv-tr { position: absolute; top: var(--bs-spacer-4); z-index: 2; display: flex; gap: var(--bs-spacer-2); }
.ps-pv-tl { inset-inline-start: var(--bs-spacer-4); }
.ps-pv-tr { inset-inline-end: var(--bs-spacer-4); }
.ps-pv-bl,
.ps-pv-br { position: absolute; bottom: var(--bs-spacer-4); z-index: 2; display: flex; gap: var(--bs-spacer-2); }
.ps-pv-bl { inset-inline-start: var(--bs-spacer-4); }
.ps-pv-br { inset-inline-end: var(--bs-spacer-4); }
/* A phone's preview is narrow: the view switch keeps its words and drops its icons, so it fits beside
   the Sharp badge and Before. Font Awesome's own (unlayered) rule sets the icon's display from --fa-display. */
@media (width < 576px) {
    .ps-views .btn > i { --fa-display: none; }
}
/* The wall colours, and Edit's Undo, Redo and Reset, stand in a column down the right edge (where 3D keeps its zoom),
   clear of the view buttons on any width. */
.ps-pv-tr--stack { flex-direction: column; }
/* Edit's bottom right: Before over the move arrows, both flush with the right edge. */
.ps-pv-br--stack { flex-direction: column; align-items: flex-end; }
/* Centred under the sofa, as the sofa is centred on the wall. */
.ps-pv-note {
    position: absolute;
    left: 50%;
    bottom: var(--bs-spacer-4);
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
    padding: var(--bs-spacer-1) var(--bs-spacer-4);
    font-size: var(--bs-font-size-xs);
    color: var(--bs-white);
    background-color: oklch(from var(--bs-black) l c h / .5);
    border-radius: 99rem;
}
.ps-wall-white { background-color: #f8f6f2; }
.ps-wall-beige { background-color: #ebe1d1; }
.ps-wall-grey { background-color: #dfe1e2; }
.ps-wall-charcoal { background-color: #43464b; }

/* The sheet under (or beside) the preview: the tabs, then one panel. */
.ps-sheet { min-width: 0; container-type: inline-size; }
.ps-sheet-body { padding-block: var(--bs-spacer-4); }
/* The tabs always stay on one line (they scroll sideways before they wrap); in a narrow sheet (a phone, or the
   choices column on a tablet) they drop their icons so every tab shows in full. */
.nav-tabs.ps-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ps-tabs .nav-link { white-space: nowrap; }
/* Font Awesome's own (unlayered) rule sets the icon's display from --fa-display, so the icon is hidden through it. */
@container (width < 30rem) {
    .ps-tabs .nav-link > i { --fa-display: none; }
    .ps-tabs .nav-link { padding-inline: var(--bs-spacer-4); }
}
/* The bar holds the strip and its spacing (flow-root keeps the strip's bottom margin inside its ground). */
.ps-tabs-bar { display: flow-root; }
@media (width < 768px) {
    .ps-sheet > .ps-tabs-bar {
        position: sticky;
        top: var(--ps-pv-h);
        z-index: 2;
        padding-top: var(--bs-spacer-3);
        background-color: var(--bs-bg-body);
    }
}

/* A choice drawn as a card: a size with its price, a paper, an edge. The brand colour means "chosen" (with the one
   main button); every other card stays plain, so the choice reads at a glance. */
.ps-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--bs-spacer-1);
    width: 100%;
    height: 100%;
    padding: var(--bs-spacer-4);
    color: inherit;
    text-align: start;
    background-color: var(--bs-bg-1);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-4);
}
.ps-opt--row { flex-direction: row; align-items: center; gap: var(--bs-spacer-3); }
.ps-opt:hover { border-color: var(--bs-fg-3); }
.ps-opt.active {
    border-color: var(--bs-primary-base);
    box-shadow: inset 0 0 0 1px var(--bs-primary-base);
    background-color: color-mix(in oklch, var(--bs-primary-base) 16%, var(--bs-bg-1));
}
/* The tick on the chosen card (and on the chosen frame corner). */
.ps-opt-check {
    position: absolute;
    top: var(--bs-spacer-3);
    inset-inline-end: var(--bs-spacer-3);
    font-size: 1.125rem;
    line-height: 1;
    color: var(--bs-primary-base);
}
.ps-opt--row:has(.ps-opt-check) { padding-inline-end: calc(var(--bs-spacer-3) * 2 + 1.125rem); }
/* A size card: the size drawn to scale beside its words, against a dashed outline of the biggest size. */
.ps-opt--size { flex-direction: row; align-items: flex-start; gap: var(--bs-spacer-4); padding-inline-end: calc(var(--bs-spacer-3) * 2 + 1.125rem); }
.ps-size-shape { flex: none; width: 2.75rem; height: 2.75rem; }
.ps-size-shape-max { fill: none; stroke: var(--bs-fg-3); stroke-width: 1; stroke-dasharray: 2 2; }
.ps-size-shape-this { fill: color-mix(in oklch, var(--bs-fg-body) 18%, transparent); stroke: var(--bs-fg-2); stroke-width: 1.5; }
.ps-opt.active .ps-size-shape-this { fill: color-mix(in oklch, var(--bs-primary-base) 45%, transparent); stroke: var(--bs-primary-base); }
/* Two cards a row on a phone leave no room beside the drawing: it stands above the words, clear of the tick. */
@media (width < 576px) {
    .ps-opt--size { flex-direction: column; gap: var(--bs-spacer-2); padding-inline-end: var(--bs-spacer-4); }
    .ps-size-shape { width: 2.25rem; height: 2.25rem; }
}

/* A frame colour drawn as the corner of that frame round the customer's own picture. */
/* As many swatches a row as fit at about 5 rem each, stretched to fill the width (owner, 2026-11-22). */
.ps-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: var(--bs-spacer-4); }
.ps-swatch-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bs-spacer-2);
    width: 100%;
    padding: 0;
    font-size: var(--bs-font-size-xs);
    line-height: 1.2;
    color: var(--bs-fg-2);
    text-align: center;
    background: none;
    border: 0;
}
.ps-swatch-tile.active { font-weight: 600; color: var(--bs-fg-body); }
.ps-corner {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--bs-bg-2);
    border-radius: var(--bs-radius-3);
    box-shadow: 0 0 0 1px var(--bs-border-color);
}
.ps-swatch-tile.active .ps-corner { box-shadow: 0 0 0 3px var(--bs-primary-base); }
.ps-corner > .ps-opt-check { z-index: 1; top: var(--bs-spacer-2); inset-inline-end: var(--bs-spacer-2); border-radius: 50%; background-color: var(--bs-bg-1); }
.ps-corner-pic { position: absolute; top: 38%; inset-inline-start: 38%; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ps-corner-frame {
    position: absolute;
    top: 20%;
    inset-inline-end: 0;
    bottom: 0;
    inset-inline-start: 20%;
    clip-path: polygon(0 0, 100% 0, 100% 22%, 22% 22%, 22% 100%, 0 100%);
}
.ps-dot--static {
    display: inline-block;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--bs-bg-1);
    box-shadow: 0 0 0 1px var(--bs-border-color);
}
.ps-dot--small { width: .875rem; height: .875rem; border-width: 1px; }

/* Customize: the tools in one row, wider layout pictures, small suggestion chips, the one-tap styles. */
.ps-tools { display: flex; gap: var(--bs-spacer-2); margin-bottom: var(--bs-spacer-5); padding: 2px 2px var(--bs-spacer-1); overflow-x: auto; }
.ps-tools > .chip { flex: none; }
.ps-look--wide { width: 5rem; }
.ps-look--wide .ps-look-pic { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.chip.ps-chip--small { min-height: 2rem; padding-inline: var(--bs-spacer-4); font-size: var(--bs-font-size-sm); }
.ps-style {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bs-spacer-2);
    width: 100%;
    min-height: 2.75rem;
    padding: var(--bs-spacer-2) var(--bs-spacer-3);
    font-size: 1.0625rem;
    line-height: 1.1;
    color: inherit;
    background-color: var(--bs-bg-1);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-radius-3);
}
.ps-style.active { border-color: var(--bs-primary-base); box-shadow: inset 0 0 0 1px var(--bs-primary-base); }

/* The price bar: the price and arrival date, then the one step on, together at the right from md up (text-end). */
.ps-foot--bar {
    align-items: center;
    justify-content: space-between;
    gap: var(--bs-spacer-5);
    margin-top: var(--bs-spacer-5);
    padding: var(--bs-spacer-4) 0 var(--bs-spacer-5);
    background: var(--bs-bg-body);
    border-top: var(--bs-border-width) solid var(--bs-border-color);
}
.ps-foot--bar > .ps-foot-price { flex: 1 1 auto; min-width: 0; }
.ps-foot--bar > .btn { flex: 0 0 auto; }
/* On a phone the bar is a drawer, like the sign-in sheet: one step lighter than the page, rounded at the top, its
   edge drawn and a soft shadow cast upward, so it reads as standing over the choices scrolling under it. */
@media (width < 768px) {
    .ps-foot--bar {
        padding-inline: var(--bs-spacer-5);
        background: color-mix(in srgb, var(--bs-fg-body) 6%, var(--bs-bg-body));
        border: var(--bs-border-width) solid var(--bs-border-color);
        border-bottom: 0;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -.5rem 1.5rem oklch(from var(--bs-shadow-color) l c h / calc(.12 * var(--bs-shadow-strength)));
        /* The price and the button, then the arrival (or "1 item, tax and delivery included") centred on its own
           full-width line under them (owner, 2026-11-21: over them it crowded the drawer). */
        display: grid;
        /* The price is never squeezed (a 1fr price column let the button cover "US$159"): it takes what it needs,
           and the button sits at the right of what is left. */
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "price button" "line line";
        align-items: center;
        row-gap: var(--bs-spacer-3);
        column-gap: var(--bs-spacer-4);
    }
    .ps-foot--bar > .ps-foot-price { display: contents; }
    .ps-foot--bar .ps-price { grid-area: price; white-space: nowrap; font-size: var(--bs-font-size-xl); }
    .ps-foot--bar > .ps-foot-price > :not(.ps-price) { grid-area: line; text-align: center; }
    .ps-foot--bar > .btn { grid-area: button; justify-self: end; }
    /* While customising, the drawer slims to the price and the button, so the tools sit under the picture. */
    .ps-foot--slim { grid-template-areas: "price button"; padding-block: var(--bs-spacer-3); }
    .ps-foot--slim > .ps-foot-price > :not(.ps-price) { display: none; }
    .ps-foot--slim .ps-price { font-size: var(--bs-font-size-xl); }
}
/* A narrow phone (360px and under 420px): the price at lg and the button's words at the default size (it keeps the
   large button's 44px height), so "US$1,234" and "Review & pay" share one line down to 320px. */
@media (width < 420px) {
    .ps-foot--bar .ps-price { font-size: var(--bs-font-size-lg); }
    .ps-foot--bar > .btn-lg {
        --bs-btn-padding-x: var(--bs-btn-input-padding-x);
        --bs-btn-font-size: var(--bs-btn-input-font-size);
    }
}
/* The narrowest phones (320px): the button drops its arrow and the gap closes up, or the button ran 12px over the
   price. Font Awesome's own (unlayered) rule sets the icon's display from --fa-display. */
@media (width < 360px) {
    .ps-foot--bar { column-gap: var(--bs-spacer-3); }
    .ps-foot--bar > .btn > i { --fa-display: none; }
}

/* The review: the step line, an item row, the quantity, the timeline, the gift card, the promises. */
/* The review: the item in 3D above the receipt on a phone; from lg beside it, filling one screen with the Pay bar
   (--ps-review-room: the page top, the bar and the bottom margin), only the receipt scrolling when long; from xl the
   receipt in two columns. */
.ps-review { display: flex; flex-direction: column; gap: var(--bs-spacer-7); }
.ps-review-pv { position: relative; z-index: auto; }
/* The item's name and size over the 3D view, top left, kept clear of the zoom buttons in the top right. */
.ps-pv-caption {
    position: absolute;
    top: var(--bs-spacer-5);
    inset-inline-start: var(--bs-spacer-6);
    inset-inline-end: calc(var(--bs-spacer-4) * 2 + 2.5rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    color: #1d1b19; /* dark on the always-light studio */
    pointer-events: none;
}
.ps-pv-caption-title { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.ps-pv-caption-line { font-weight: 600; color: #4d4943; }
/* The item on show in 3D, when the order has more than one. */
.ps-thumb-btn.active { outline: 2px solid var(--bs-primary-base); outline-offset: 2px; }
.ps-review-receipt,
.ps-review-col { display: flex; flex-direction: column; gap: var(--bs-spacer-5); min-width: 0; }
@media (width >= 1024px) {
    .ps-review {
        --ps-review-room: 15rem;
        --ps-review-h: max(26rem, calc(100svh - var(--ps-review-room)));
        display: grid;
        grid-template-columns: calc(var(--ps-review-h) * .75) minmax(0, 1fr);
        align-items: stretch;
        height: var(--ps-review-h);
    }
    .ps-review-pv { height: 100%; min-height: 0; }
    .ps-review-receipt { min-height: 0; overflow-y: auto; padding-inline-end: var(--bs-spacer-3); }
}
@media (width >= 1280px) {
    .ps-review-receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.ps-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bs-spacer-3); }
.ps-tiers > .ps-radio-card { margin: 0; }
/* On a phone Standard and Express stack, each on one line, rather than squeezing to four lines side by side. */
@media (width < 576px) {
    .ps-tiers { grid-template-columns: minmax(0, 1fr); }
}
.ps-rline { display: flex; align-items: flex-start; gap: var(--bs-spacer-4); }
.ps-rline--add { align-items: center; padding-top: var(--bs-spacer-5); border-top: var(--bs-border-width) dashed var(--bs-border-color); }
.ps-thumb-btn { flex: none; padding: 0; background: none; border: 0; border-radius: var(--bs-radius-3); }
.ps-stepper { display: inline-flex; align-items: center; border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-radius-3); }
.ps-stepper-count { min-width: 1.5rem; font-weight: 600; text-align: center; }
.ps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    font-size: var(--bs-font-size-xs);
    text-align: center;
    list-style: none;
}
.ps-timeline::before {
    content: "";
    position: absolute;
    top: .625rem;
    inset-inline-end: 16%;
    inset-inline-start: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary-base), var(--bs-success-base));
}
.ps-timeline > li { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--bs-spacer-1); }
.ps-timeline > li > i {
    --fa-display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: .625rem;
    color: var(--bs-primary-contrast);
    background-color: var(--bs-primary-base);
    border-radius: 50%;
}
.ps-timeline > li:last-child > i { color: var(--bs-success-contrast); background-color: var(--bs-success-base); }
.ps-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bs-spacer-3);
    margin: 0;
    padding: 0;
    font-size: var(--bs-font-size-xs);
    color: var(--bs-fg-2);
    text-align: center;
    list-style: none;
}
.ps-trust > li { display: flex; flex-direction: column; align-items: center; gap: var(--bs-spacer-2); line-height: 1.25; }
.ps-trust > li > i { font-size: 1rem; color: var(--bs-fg-2); }

/* The buyer's Print Orders: the four order steps joined by a line, a parcel's four-part bar, a stack of item
   pictures, the arrival-date pill and the list's picture rows. v6 has no stepper or segmented progress bar. */
.ps-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ps-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bs-spacer-1);
    text-align: center;
    color: var(--bs-fg-3);
}
.ps-step + .ps-step::before {
    content: "";
    position: absolute;
    top: 1rem;
    inset-inline-start: calc(-50% + 1.25rem);
    inset-inline-end: calc(50% + 1.25rem);
    height: 2px;
    background-color: var(--bs-border-color);
}
.ps-step.is-done::before,
.ps-step.is-now::before { background-color: var(--bs-success-base); }
.ps-step-dot {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: var(--bs-spacer-1);
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background-color: var(--bs-bg-2);
    font-size: 0.875rem;
}
.ps-step.is-done,
.ps-step.is-now { color: var(--bs-fg-body); }
.ps-step.is-done .ps-step-dot {
    border-color: var(--bs-success-base);
    background-color: var(--bs-success-base);
    color: var(--bs-success-contrast);
}
.ps-step.is-now .ps-step-dot {
    border-color: var(--bs-primary-base);
    color: var(--bs-primary-base);
    box-shadow: 0 0 0 4px var(--bs-primary-bg-subtle);
}
.ps-seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bs-spacer-1);
}
.ps-seg > span {
    height: 0.375rem;
    border-radius: var(--bs-radius-pill);
    background-color: var(--bs-bg-4);
}
.ps-seg > .is-on { background-color: var(--bs-primary-base); }
.ps-seg.is-done > .is-on { background-color: var(--bs-success-base); }
.ps-thumb-stack { display: flex; flex: none; }
.ps-thumb-stack > .ps-thumb + .ps-thumb {
    margin-inline-start: -1.5rem;
    box-shadow: 0 0 0 2px var(--bs-bg-1);
}
.ps-date-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--bs-spacer-2) var(--bs-spacer-5);
    border-radius: var(--bs-radius-pill);
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-fg);
    font-weight: 600;
}
.ps-order-row {
    display: flex;
    align-items: center;
    gap: var(--bs-spacer-5);
    padding: var(--bs-spacer-5);
    color: inherit;
    text-decoration: none;
}
.ps-order-row + .ps-order-row { border-top: 1px solid var(--bs-border-color); }
.ps-order-row:hover { background-color: var(--bs-bg-2); }
.ps-order-row.is-past .ps-thumb { opacity: 0.5; }
}
