/* Toloprint Shop: page layouts. Controls, cards and tokens come from the Toloprint Theme. */
.pg-shop { color: var(--pg-ink, #18181b); }
.pg-shop .pg-page-title { font-size: 40px; margin-bottom: 24px; }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--pg-muted, #52525b); margin-bottom: 20px; }
.pg-crumbs a:hover { color: var(--pg-ink, #18181b); }
.pg-crumbs a { transition: color 0.2s ease; }

/* Product cards */
.pg-pgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pg-pcard { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.pg-pcard .pg-art img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pg-pcard:hover .pg-art img { transform: scale(1.04); }
.pg-pcard-name { font-weight: 600; font-size: 17px; }
.pg-pcard-from { font-size: 14px; color: var(--pg-muted, #52525b); margin-top: -8px; }
.pg-cat-block { margin-bottom: 56px; }
.pg-cat-block .pg-block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pg-cat-block h2 { font-size: 30px; }

/* Two column layouts */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pg-aside { position: sticky; top: 24px; }
.pg-split--studio { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }

/* Product page */
.pg-pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
.pg-pdp-left { position: sticky; top: 24px; min-width: 0; }
.pg-pdp-right { min-width: 0; }
.pg-pdp-title { font-size: 40px; margin: 6px 0 10px; }
.pg-pdp-from { font-size: 16px; color: var(--pg-muted, #52525b); margin: 0 0 14px; }
.pg-pdp-from strong { color: var(--pg-ink, #18181b); font-size: 20px; font-family: var(--pg-display); }
.pg-pdp-desc { margin: 0 0 22px; max-width: 560px; }
.pg-mock { --r: var(--pg-r-inner); background: var(--pg-brand-soft); height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pg-mock-paper { position: relative; background: #ffffff; border-radius: 6px; box-shadow: var(--pg-shadow-pop); transition: width 0.45s cubic-bezier(0.22, 0.8, 0.24, 1), height 0.45s cubic-bezier(0.22, 0.8, 0.24, 1); }
.pg-mock-paper i { position: absolute; display: block; background: var(--pg-brand); }
.pg-mock-paper i:nth-child(1) { left: 10%; top: 14%; width: 34%; height: 13%; border-radius: 3px; }
.pg-mock-paper i:nth-child(2) { left: 10%; top: 42%; width: 56%; height: 6%; border-radius: 3px; background: #18181b; opacity: 0.28; }
.pg-mock-paper i:nth-child(3) { left: 10%; top: 56%; width: 42%; height: 6%; border-radius: 3px; background: #18181b; opacity: 0.16; }
.pg-mock-paper span { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 13px; color: var(--pg-muted, #52525b); }
.pg-pdp-preview { display: flex; flex-direction: column; gap: 16px; }
.pg-mock.pg-hidden { display: none; }
.pg-mock--photo { background: #ffffff; padding: 0; }
.pg-mock--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-gthumbs { display: flex; gap: 10px; }
.pg-gthumb { position: relative; width: 64px; height: 64px; padding: 0; border: 0; background: var(--pg-brand-soft); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; font: inherit; color: var(--pg-muted, #52525b); box-shadow: inset 0 0 0 2px transparent; border-radius: var(--pg-r-thumb); transition: box-shadow 0.15s; }
.pg-gthumb.is-on { box-shadow: inset 0 0 0 2px var(--pg-brand); }
.pg-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-gthumb--size { flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.pg-gthumb--size i { display: block; width: 26px; height: 18px; border-radius: 3px; background: #ffffff; box-shadow: var(--pg-shadow-pop); }
.pg-trust { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pg-line, #e4e4e7); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.pg-trust li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pg-trust svg { flex: none; color: var(--pg-brand-text, var(--pg-brand)); margin-top: 1px; }
.pg-trust strong { display: block; font-size: 14px; line-height: 1.3; }
.pg-trust span { display: block; font-size: 13px; color: var(--pg-muted, #52525b); line-height: 1.35; }
.pg-pdp-total { position: sticky; bottom: 0; z-index: 5; background: #ffffff; margin: 0 -20px -20px; padding: 16px 20px 20px; border-top: 1px solid var(--pg-line, #e4e4e7); }
.pg-pdp-sides > .pg-sw:not(:empty) { padding-bottom: 16px; border-bottom: 1px solid var(--pg-line); margin-bottom: 4px; }
.pg-pdp-sides .pg-seg { display: flex; width: 100%; }
.pg-pdp-sides .pg-seg label { flex: 1; text-align: center; }
.pg-pdp-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 16px; }
.pg-sw-col { min-width: 0; }
.pg-pdp-sides-sub { margin-top: 8px; font-size: 13px; color: var(--pg-muted, #52525b); }
.pg-pdp-recap { margin-top: 8px; font-size: 13px; color: var(--pg-muted, #52525b); }
.pg-details { margin-top: 36px; }
.pg-details .pg-seg { margin: 4px 0 20px; max-width: 100%; }
.pg-specs { margin: 0; display: grid; }
.pg-specs > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--pg-line, #e4e4e7); }
.pg-specs > div:first-child { border-top: 0; padding-top: 0; }
.pg-specs dt { font-weight: 600; }
.pg-specs dd { margin: 0; color: var(--pg-muted, #52525b); }
.pg-more { margin-top: 48px; }
.pg-pdp-badges { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 18px; }
.pg-pdp-form .pg-section:first-child { padding-top: 0; }
.pg-pdp-form #pg-steps .pg-section:last-child { padding-bottom: 20px; }
.pg-pdp-price { font: 700 36px/1.1 var(--pg-display); letter-spacing: -0.02em; }
.pg-step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pg-step-head .pg-section-title { margin: 0; }
.pg-step-num { color: var(--pg-brand-text, var(--pg-brand)); }
.pg-uploads { display: block; margin-top: 16px; }
.pg-uploads > * + * { margin-top: 14px; }
.pg-drop { --r: var(--pg-r-control); display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--pg-chip); border: 1px solid var(--pg-line-strong); cursor: pointer; }
.pg-drop.is-over { border-color: var(--pg-brand); background: var(--pg-brand-soft); }
.pg-drop > *:not(button) { pointer-events: none; }
.pg-drop--empty { gap: 14px; padding: 14px 16px; border: 0; border-radius: var(--pg-r-control); background-color: var(--pg-chip); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' fill='none' stroke='%2371717a' stroke-width='2' stroke-dasharray='7 6'/%3E%3C/svg%3E"); background-size: 100% 100%; background-repeat: no-repeat; transition: background-color 0.15s; }
.pg-drop--empty:hover, .pg-drop--empty.is-over { background-color: var(--pg-brand-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='12' fill='none' stroke='%23f26b21' stroke-width='2' stroke-dasharray='7 6'/%3E%3C/svg%3E"); }
.pg-refs { margin-top: 20px; }
.pg-refs-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pg-drop--busy { cursor: default; }
.pg-drop-thumb--file { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--pg-muted); background: var(--pg-chip); }
.pg-reflist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.pg-reflist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pg-line); }
.pg-reflist li:first-child { border-top: 0; }
.pg-reflist .pg-drop-thumb { width: 40px; height: 40px; }
.pg-reflist-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pg-drop-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #ffffff; color: var(--pg-brand-text, var(--pg-brand)); box-shadow: var(--pg-shadow-pop); transition: transform 0.15s; }
.pg-drop--empty:hover .pg-drop-icon, .pg-drop--empty.is-over .pg-drop-icon { transform: translateY(-2px); }
/* Collapsible steps of the order form */
.pg-acc { border-top: 1px solid var(--pg-line); }
.pg-acc:first-child { border-top: 0; }
.pg-acc-head { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pg-acc:first-child .pg-acc-head { padding-top: 0; min-height: 52px; }
.pg-acc-head:focus-visible { outline: 3px solid var(--pg-ink); outline-offset: -3px; border-radius: 12px; }
.pg-acc-num { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pg-chip); color: var(--pg-muted); font-size: 14px; font-weight: 700; transition: background-color 0.2s, color 0.2s; }
.pg-acc.is-done .pg-acc-num { background: var(--pg-brand-soft); color: var(--pg-brand-text); }
.pg-acc-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pg-acc-title { font: 700 17px/1.2 var(--pg-display); }
.pg-acc-label { font-size: 13px; color: var(--pg-muted); }
.pg-acc-value { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-acc-hint { margin: 14px 0 0; font-size: 14px; }
.pg-acc-value.is-todo { color: var(--pg-brand-text); }
.pg-acc-act { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 14px; font-weight: 600; color: var(--pg-brand-text); }
.pg-acc-act svg { transition: transform 0.2s; }
.pg-acc.is-open .pg-acc-act svg { transform: rotate(180deg); }
.pg-acc-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.34s; }
.pg-acc.is-open > .pg-acc-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
.pg-acc-clip { min-height: 0; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.pg-acc-inner { padding: 4px 0 22px; opacity: 0; transition: opacity 0.18s ease-out; }
.pg-acc.is-open .pg-acc-inner { opacity: 1; transition: opacity 0.26s ease-out 0.1s; }
@media (prefers-reduced-motion: reduce) { .pg-acc-body, .pg-acc.is-open > .pg-acc-body, .pg-acc-inner, .pg-acc.is-open .pg-acc-inner, .pg-acc-num, .pg-acc-act svg { transition: none; } }
.pg-drop-text { flex: 1; min-width: 0; }
.pg-drop-title { font-weight: 600; font-size: 15px; }
.pg-drop-sub { font-size: 13px; color: var(--pg-muted, #52525b); word-break: break-word; }
.pg-up-grid { display: grid; gap: 14px; align-items: start; }
.pg-up-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-up-grid--1 { grid-template-columns: minmax(0, 320px); }
.pg-up-grid > * { min-width: 0; }
.pg-up-card { display: flex; flex-direction: column; gap: 10px; }
.pg-up-thumb { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--pg-chip); overflow: hidden; border-radius: var(--pg-r-control); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.pg-up-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.pg-up-file { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--pg-muted, #52525b); }
.pg-up-thumb { position: relative; }
.pg-up-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-up-x { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: #475569; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.pg-up-x:hover { background: #ffffff; color: var(--pg-bad); transform: scale(1.06); }
.pg-up-x:focus-visible { outline: 2px solid var(--pg-focus); outline-offset: 2px; }
.pg-drop-sub--warn { color: var(--pg-bad); }
.pg-up-add { min-height: 100%; }
.pg-up-tpl { margin: 10px 0 0; font-size: 13px; }
.pg-up-tpl-link { font-weight: 600; }
.pg-up-msg { margin: 12px 0 0; font-size: 13px; color: var(--pg-bad); }
@media (max-width: 520px) { .pg-up-grid--2 { gap: 10px; } .pg-up-x { width: 36px; height: 36px; top: 6px; right: 6px; } }
.pg-drop-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #ffffff; flex: none; }
.pg-drop .pg-spin { color: var(--pg-brand-text, var(--pg-brand)); }
.pg-drop-btn { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; padding: 10px 0; }

/* Cart and checkout */
.pg-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px 90px; grid-template-areas: "thumb info qty price"; gap: 14px 18px; align-items: center; }
.pg-line-thumb { grid-area: thumb; }
.pg-line-info { grid-area: info; }
.pg-line-qty { grid-area: qty; }
.pg-line-price { grid-area: price; }
.pg-line-warn { grid-column: 2 / -1; }
.pg-line-thumb .pg-art { height: auto; aspect-ratio: 4 / 3; }
.pg-line-design { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--pg-line); }
.pg-line-title { font-weight: 600; font-size: 17px; }
.pg-line-sub { font-size: 14px; }
.pg-line-price { text-align: right; font-weight: 600; font-size: 17px; }
.pg-line-price small { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
.pg-trust--aside { grid-template-columns: 1fr; margin-top: 20px; }
.pg-line .pg-field { margin-top: 0; }
.pg-sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.pg-sum-total { border-top: 1px solid var(--pg-line); margin-top: 8px; padding-top: 16px; font: 700 20px var(--pg-display); }
.pg-addr-row { flex-wrap: nowrap; }
.pg-addr-row .pg-city { flex: 1 1 auto; }
.pg-addr-row .pg-state { flex: 0 0 220px; }
.pg-addr-row .pg-zip { flex: 0 0 130px; }
.pg-opts--wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
#pg-place.is-disabled, #pg-approve.is-disabled, #pg-use.is-disabled { opacity: 0.45; cursor: not-allowed; }

/* Orders and tracker */
.pg-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pg-track-step { display: flex; flex-direction: column; gap: 8px; }
.pg-track-bar { height: 6px; border-radius: 3px; background: var(--pg-track, #e6e6e9); }
.pg-track-step.is-done .pg-track-bar { background: var(--pg-brand); }
.pg-track-step.is-now .pg-track-bar { background: linear-gradient(90deg, var(--pg-brand) 50%, var(--pg-track, #e6e6e9) 50%); }
.pg-track-name { font-size: 13px; color: var(--pg-muted, #52525b); }
.pg-track-step.is-done .pg-track-name, .pg-track-step.is-now .pg-track-name { color: var(--pg-ink, #18181b); font-weight: 600; }

/* Proof */
.pg-proof-img { position: relative; background: #ffffff; border: 1px solid var(--pg-line); border-radius: 6px; max-width: 640px; line-height: 0; }
.pg-proof-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.pg-guide { position: absolute; pointer-events: none; }
.pg-guide--cut { border: 1.5px dashed #e5007e; }
.pg-guide--safe { border: 1.5px dotted #00a3d9; }
.pg-proof-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-top: 10px; align-items: center; }
.pg-proof-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pg-lg { display: inline-block; width: 22px; height: 0; }
.pg-lg--cut { border-top: 2px dashed #e5007e; }
.pg-lg--safe { border-top: 2px dotted #00a3d9; }

/* Studio */
.pg-st-card { border: 1px solid var(--pg-line); }
.pg-st-card .pg-card-title { margin-bottom: 4px; }
.pg-st-chat > .pg-card-title { margin-bottom: 16px; }
.pg-st-log { display: flex; flex-direction: column; gap: 14px; max-height: 340px; min-height: 120px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.pg-st-msg { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.pg-st-msg--me { justify-content: flex-end; }
.pg-st-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--pg-brand); }
.pg-st-ai { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-st-me { --r: var(--pg-r-control); max-width: 88%; padding: 10px 14px; background: var(--pg-navy-100); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--r); }
.pg-st-msg--wait { color: var(--pg-muted); align-items: center; gap: 10px; }

.pg-st-brief { list-style: none; margin: 0; padding: 0; }
.pg-st-brief li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--pg-line); font-size: 14px; }
.pg-st-brief li:first-child { border-top: 0; padding-top: 0; }
.pg-st-bk { flex: 0 0 104px; color: var(--pg-muted); }
.pg-st-bv { flex: 1 1 140px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pg-st-tag { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--pg-warn-bg); color: var(--pg-warn); font-size: 12px; font-weight: 600; cursor: help; }

.pg-st-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pg-st-style { --r: var(--pg-r-control); display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 0; background: none; border: 0; cursor: pointer; font: 600 13px/1.2 var(--pg-font); color: var(--pg-ink); text-align: center; }
.pg-st-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--pg-navy-100); transition: transform 0.2s ease; }
.pg-st-pic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 33, 61, 0.14); transition: box-shadow 0.2s ease; pointer-events: none; }
.pg-st-tint { display: flex; align-items: center; justify-content: center; }
.pg-st-tint svg { width: 34%; height: auto; color: var(--pg-orange-400); }
.pg-st-pic img, .pg-st-tint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-st-pic { outline: 0 solid transparent; outline-offset: 2px; transition: transform 0.2s ease, outline-color 0.2s ease, outline-width 0.2s ease; }
.pg-st-style.is-on .pg-st-pic { outline: 3px solid var(--pg-ink); }
.pg-st-sn { transition: color 0.2s ease; }
.pg-st-style:not(.is-on) .pg-st-sn { color: var(--pg-muted); }
@media (hover: hover) { .pg-st-style:hover .pg-st-pic { transform: translateY(-2px); } }
.pg-st-make { width: 100%; margin-top: 20px; }

.pg-st-stagewrap { margin-top: 20px; }
.pg-st-stage { position: relative; width: 100%; max-width: 640px; margin: 0 auto; background: var(--pg-navy-100); overflow: hidden; border-radius: 4px; box-shadow: 0 1px 3px rgba(20, 33, 61, 0.08); }
.pg-st-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.pg-st-stage img[hidden] { display: none; }
.pg-st-empty, .pg-st-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--pg-muted); font-size: 15px; }
.pg-st-busy { background: rgba(246, 247, 249, 0.92); }
.pg-st-bar { display: block; width: min(240px, 70%); height: 4px; border-radius: 99px; background: var(--pg-navy-200); overflow: hidden; }
.pg-st-bar i { display: block; height: 100%; width: 0; background: var(--pg-brand); border-radius: 99px; transition: width 0.5s ease; }

/* Print guides: drawn on top of the picture at its real proportions. */
.pg-st-guides { position: absolute; inset: 0; pointer-events: none; --bx: 0%; --by: 0%; --sx: 0%; --sy: 0%; }
.pg-st-guides[hidden] { display: none; }
.pg-g-b { position: absolute; background: repeating-linear-gradient(135deg, rgba(217, 45, 32, 0.34) 0 2px, rgba(217, 45, 32, 0.08) 2px 5px); }
.pg-g-t { left: 0; right: 0; top: 0; height: var(--by); }
.pg-g-bt { left: 0; right: 0; bottom: 0; height: var(--by); }
.pg-g-l { left: 0; top: var(--by); bottom: var(--by); width: var(--bx); }
.pg-g-r { right: 0; top: var(--by); bottom: var(--by); width: var(--bx); }
.pg-st-guides.no-bleed .pg-g-b { display: none; }
.pg-g-trim { position: absolute; left: var(--bx); right: var(--bx); top: var(--by); bottom: var(--by); border: 1px solid #d92d20; box-sizing: border-box; }
.pg-g-safe { position: absolute; left: var(--sx); right: var(--sx); top: var(--sy); bottom: var(--sy); border: 1.5px dashed #175cd3; box-sizing: border-box; }

.pg-st-guiderow { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 16px; }
.pg-st-sw { display: inline-flex; gap: 10px; align-items: center; padding: 0; background: none; border: 0; cursor: pointer; font: 600 14px/1.2 var(--pg-font); color: var(--pg-ink); }
.pg-st-sw-track { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--pg-navy-300); transition: background 0.25s ease; }
.pg-st-sw-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pg-st-sw[aria-pressed="true"] .pg-st-sw-track { background: var(--pg-navy-900); }
.pg-st-sw[aria-pressed="true"] .pg-st-sw-thumb { transform: translateX(16px); }
.pg-st-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--pg-muted); }
.pg-st-key li { display: inline-flex; gap: 8px; align-items: center; }
.pg-k { display: inline-block; width: 18px; height: 10px; box-sizing: border-box; }
.pg-k--bleed { background: repeating-linear-gradient(135deg, rgba(217, 45, 32, 0.45) 0 2px, rgba(217, 45, 32, 0.12) 2px 5px); }
.pg-k--trim { height: 0; border-top: 2px solid #d92d20; }
.pg-k--safe { height: 0; border-top: 2px dashed #175cd3; }

.pg-st-drafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pg-st-draft { position: relative; display: flex; align-items: flex-end; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--pg-navy-100); cursor: pointer; box-shadow: inset 0 0 0 1px var(--pg-line); font: 600 13px/1.2 var(--pg-font); color: var(--pg-ink); transition: box-shadow 0.2s ease; }
.pg-st-draft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-st-dn { position: relative; margin: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); }
.pg-st-draft.is-on { box-shadow: 0 0 0 2px var(--pg-ink); }
.pg-st-draft--new { align-items: center; justify-content: center; text-align: center; padding: 12px; min-height: 90px; background: #ffffff; border: 1px dashed var(--pg-navy-400); box-shadow: none; color: var(--pg-muted); }
.pg-st-draft--wait { align-items: center; justify-content: center; min-height: 90px; cursor: default; }

.pg-st-checks { list-style: none; margin: 0; padding: 0; }
.pg-st-ck { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--pg-line); font-size: 14px; line-height: 1.45; }
.pg-st-ck:first-child { border-top: 0; padding-top: 0; }
.pg-st-ci { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; font: 700 12px/1 var(--pg-font); background: var(--pg-ok-bg); color: var(--pg-ok); }
.pg-st-ck--warn .pg-st-ci { background: var(--pg-warn-bg); color: var(--pg-warn); }
.pg-st-ck--note .pg-st-ci { background: var(--pg-navy-100); color: var(--pg-muted); }
.pg-st-ct { min-width: 0; color: var(--pg-muted); }
.pg-st-ct b { display: block; color: var(--pg-ink); font-weight: 600; }

.pg-st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-st-chip { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--pg-navy-100); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; max-width: 100%; }
.pg-st-chip i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--pg-muted); }
.pg-st-chip.is-fixed { background: var(--pg-warn-bg); }
.pg-st-idea { padding: 9px 14px; border: 0; border-radius: 99px; background: var(--pg-navy-100); color: var(--pg-ink); font: 600 14px/1.2 var(--pg-font); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.pg-st-idea.is-on { background: var(--pg-navy-900); color: #ffffff; }
@media (hover: hover) { .pg-st-idea:not(.is-on):hover { background: var(--pg-navy-200); } }

.pg-st-confirm { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 18px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: 500 14px/1.45 var(--pg-font); color: var(--pg-ink); }
.pg-st-cbox { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--pg-navy-400); background: #ffffff; color: transparent; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.pg-st-confirm.is-on .pg-st-cbox { background: var(--pg-navy-900); border-color: var(--pg-navy-900); color: #ffffff; }

@media (max-width: 980px) {
	.pg-st-stage { max-width: none; }
}
/* On a phone the cards run edge to edge: no side borders, the top and bottom lines stay. */
@media (max-width: 720px) {
	#pg-studio .pg-st-card { margin-left: -24px; margin-right: -24px; border-width: 1px 0; border-radius: 0; clip-path: none; padding: 20px 24px; }
	.pg-st-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
	.pg-st-style { font-size: 12px; }
	.pg-st-bk { flex-basis: 100%; }
	.pg-st-stage { border-radius: 0; margin-left: -24px; margin-right: -24px; width: calc(100% + 48px); max-width: none; }
}

@media (max-width: 980px) {
	.pg-split, .pg-split--studio, .pg-pdp { grid-template-columns: 1fr; }
	.pg-aside, .pg-pdp-left { position: static; }
	.pg-mock { height: 280px; }
}
@media (max-width: 680px) {
	.pg-line { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "thumb info" "qty price"; align-items: start; }
	.pg-line-warn { grid-column: 1 / -1; }
	.pg-line-qty { max-width: 180px; }
	.pg-line-price { align-self: center; }
	.pg-line-thumb { padding-top: 2px; }
	.pg-specs > div { grid-template-columns: 1fr; gap: 4px; }
	.pg-trust { grid-template-columns: 1fr; }
	.pg-mock { height: 300px; }
	.pg-more .pg-pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.pg-addr-row { flex-wrap: wrap; }
	.pg-addr-row .pg-zip { flex: 0 0 120px; }
	.pg-addr-row .pg-city { flex: 1 1 0; }
	.pg-addr-row .pg-state { flex: 1 1 100%; }
	.pg-shop .pg-page-title, .pg-pdp-title { font-size: 32px; }
}

/* Information pages: Business Accounts, Shipping, File setup guide, Help, Contact */
.pg-info-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.pg-info-head .pg-page-title { font-size: 48px; letter-spacing: -0.03em; margin: 0; }
.pg-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--pg-muted, #52525b); max-width: 720px; }
.pg-small { font-size: 14px; }
.pg-info-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pg-info-col { flex: 1 1 420px; min-width: 0; }
.pg-info-col--wide { flex: 3 1 520px; }
.pg-info-col--wide + .pg-info-col { flex: 2 1 340px; }
.pg-info-stack { gap: 24px; }
.pg-info-narrow { max-width: 860px; }
.pg-info-card { gap: 22px; }
.pg-info-row { gap: 24px 14px; align-items: flex-start; }
.pg-info-form { gap: 22px; }
.pg-info-form textarea { min-height: 140px; resize: none; }
.pg-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.pg-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.pg-perk { display: flex; gap: 14px; align-items: flex-start; }
.pg-perk > svg { flex: none; margin-top: 2px; color: var(--pg-brand-text, var(--pg-brand)); stroke-width: 2.4; }
.pg-perk-title { font-weight: 600; font-size: 16px; }
.pg-perk-text { font-size: 15px; line-height: 1.55; color: var(--pg-muted, #52525b); margin-top: 4px; }

.pg-lines { display: flex; flex-direction: column; }
.pg-line-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--pg-line); }
.pg-line-row:first-child { border-top: 0; padding-top: 4px; }
.pg-line-row:last-child { padding-bottom: 0; }
.pg-line-name { flex: 2 1 220px; font-weight: 600; font-size: 16px; }
.pg-line-note { flex: 2 1 220px; font-size: 15px; }
.pg-line-amt { flex: 1 1 100px; text-align: right; font-size: 16px; }
.pg-steps4 { display: flex; flex-wrap: wrap; gap: 28px; }
.pg-step4 { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.pg-step4 .pg-perk-text { margin-top: 0; }
.pg-stepnum { width: 32px; height: 32px; border-radius: 50%; background: var(--pg-brand-soft); color: var(--pg-brand-text, var(--pg-brand)); font-weight: 700; display: flex; align-items: center; justify-content: center; }

.pg-guide-title { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.pg-guide-text { font-size: 16px; line-height: 1.6; color: var(--pg-muted, #52525b); }
.pg-diagram { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1.8 / 1; background: var(--pg-brand-soft); }
.pg-dg { position: absolute; box-sizing: border-box; }
.pg-dg--bleed { inset: 0; border: 1px dashed #c4c4cc; }
.pg-dg--cut { inset: 7% 4%; border: 1.5px dashed #e5007e; }
.pg-dg--safe { inset: 18% 10%; border: 1.5px dotted #00a3d9; }
.pg-dg-bar { position: absolute; top: 18%; left: 10%; width: 42%; height: 14%; background: var(--pg-ink, #18181b); border-radius: 4px; opacity: 0.85; }
.pg-legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--pg-muted, #52525b); }
.pg-legend > div { display: flex; gap: 10px; align-items: center; }
.pg-key { width: 28px; flex: none; border-top: 2px dashed #c4c4cc; }
.pg-key--cut { border-top-color: #e5007e; }
.pg-key--safe { border-top: 2px dotted #00a3d9; }

.pg-faq { padding-top: 8px; padding-bottom: 8px; }
.pg-faq-item { border-top: 1px solid var(--pg-line); }
.pg-faq-item:first-child { border-top: 0; }
.pg-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-item summary svg { flex: none; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* The answer glides open and closed where the browser supports it; elsewhere it opens at once. */
.pg-faq-item { interpolate-size: allow-keywords; }
.pg-faq-item::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, content-visibility 0.32s allow-discrete; }
.pg-faq-item[open]::details-content { block-size: auto; opacity: 1; }
.pg-faq-item[open] summary svg { transform: rotate(180deg); }
.pg-faq-a { padding: 0 36px 22px 0; font-size: 16px; line-height: 1.6; color: var(--pg-muted, #52525b); }
.pg-faq-a a { color: var(--pg-brand-text, var(--pg-brand)); font-weight: 600; }

.pg-other { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.pg-other-title { font-weight: 600; }

@media (max-width: 860px) {
  .pg-info-head .pg-page-title { font-size: 36px; }
  .pg-line-amt { text-align: left; }
}

/* Content that swaps in place (see fx.js): the old content fades out as a ghost while the new content fades in. */
.pg-swap { position: relative; display: flow-root; }
.pg-sw { display: flow-root; }
.pg-sw-out { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }

/* Pictures on option tiles and switches */
.pg-opts--ico { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pg-opt.pg-opt--ico { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
.pg-opt-ico { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--pg-chip, #f4f4f5); color: var(--pg-brand-text, #c2410c); transition: background-color 0.3s ease, color 0.3s ease; }
.pg-opt.is-on .pg-opt-ico { background: #ffffff; }
.pg-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg-pg-ico { position: relative; display: block; background: #ffffff; border: 1.5px solid var(--pg-line-strong, #d4d4d8); border-radius: 3px; box-sizing: border-box; transition: width 0.45s cubic-bezier(0.22, 0.8, 0.24, 1), height 0.45s cubic-bezier(0.22, 0.8, 0.24, 1), border-color 0.3s ease; }
.pg-pg-ico i { position: absolute; left: 18%; display: block; border-radius: 1px; }
.pg-pg-ico i:nth-child(1) { top: 20%; width: 38%; height: 16%; background: var(--pg-brand, #f26a21); }
.pg-pg-ico i:nth-child(2) { top: 48%; width: 58%; height: 9%; background: #18181b; opacity: 0.2; }
.pg-opt.is-on .pg-pg-ico { border-color: var(--pg-brand, #f26a21); }
.pg-pap { position: relative; display: block; width: 28px; height: 34px; border-radius: 3px; background: #ffffff; border: 1px solid var(--pg-line-strong, #d4d4d8); box-shadow: 0 var(--e, 2px) 0 #d4d4d8; box-sizing: border-box; overflow: hidden; margin-bottom: var(--e, 2px); }
.pg-pap--gloss::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #eef2f7, #dfe6ee); }
.pg-pap--matte { background: linear-gradient(180deg, #f6f5f1, #ebe9e3); }
.pg-pap--grain { background-color: #f7f5ef; background-image: radial-gradient(rgba(24, 24, 27, 0.18) 0.6px, transparent 0.8px), radial-gradient(rgba(24, 24, 27, 0.12) 0.6px, transparent 0.8px); background-size: 4px 4px, 5px 5px; background-position: 0 0, 2px 2px; }
.pg-pap--linen { background-color: #f5f3ec; background-image: repeating-linear-gradient(0deg, rgba(24, 24, 27, 0.09) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(24, 24, 27, 0.09) 0 1px, transparent 1px 3px); }
.pg-pap--kraft { background: linear-gradient(180deg, #cdaa7d, #bf9a6c); border-color: #a9845a; box-shadow: 0 var(--e, 2px) 0 #a9845a; }
.pg-seg label { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pg-seg-ico { display: inline-flex; align-items: center; gap: 2px; }
.pg-seg-ico i { display: block; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 2px; }
.pg-seg-ico--two i + i { margin-left: -5px; background: #ffffff; }
@media (max-width: 520px) { .pg-opts--ico { grid-template-columns: 1fr; } }

/* Button labels: only the words fade when they change, and the button eases between enabled and disabled */
.pg-btn-label { white-space: nowrap; }
.pg-btn { transition: opacity 0.3s ease; }

/* Question dialog (PGFX.dialog) */
.pg-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.38); }
.pg-modal-box { width: 100%; max-width: 500px; padding: 24px; background: #ffffff; border-radius: 20px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16); }
.pg-modal-title { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.pg-modal-text { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--pg-muted, #52525b); }
.pg-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 480px) { .pg-modal-actions { flex-direction: column; } .pg-modal-actions .pg-btn { width: 100%; } }

/* Template pop up */
.pg-modal-box--wide { max-width: 680px; max-height: calc(100vh - 40px); overflow: auto; }
.pg-modal-body { margin: 0 0 20px; }
.pg-tpl-grid { display: grid; gap: 14px; }
.pg-tpl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-tpl-grid--1 { grid-template-columns: minmax(0, 1fr); }
.pg-tpl-fig { margin: 0; min-width: 0; }
.pg-tpl-pic { width: 100%; background: #ffffff; border-radius: 0; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }
.pg-tpl-pic img { display: block; width: 100%; height: 100%; }
.pg-tpl-key { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; font-size: 13px; color: var(--pg-muted); line-height: 1.4; }
.pg-tpl-key li { display: flex; gap: 10px; align-items: flex-start; }
.pg-tpl-key b { display: block; color: var(--pg-ink); font-weight: 600; }
.pg-tpl-sw { flex: none; width: 26px; height: 12px; margin-top: 4px; display: block; }
.pg-tpl-sw--bleed { background: repeating-linear-gradient(135deg, #fda29b 0 1px, #fde8e8 1px 4px); border: 1px solid #b42318; box-sizing: border-box; }
.pg-tpl-k--bleed b { color: #b42318; }
.pg-tpl-k--cut b { color: #14213d; }
.pg-tpl-k--safe b { color: #c2410c; }
.pg-tpl-sw--cut { height: 0; border-top: 2px solid #14213d; margin-top: 9px; }
.pg-tpl-sw--safe { height: 2px; margin-top: 9px; background: repeating-linear-gradient(90deg, #f26b21 0 4px, transparent 4px 6.5px); }
@media (max-width: 600px) { .pg-tpl-key { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.pg-tpl-note { margin: 10px 0 0; font-size: 13px; color: var(--pg-muted, #52525b); }
.pg-tpl-fig figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--pg-muted, #52525b); }
a.pg-btn { text-decoration: none; }
@media (max-width: 480px) { .pg-tpl-grid--2 { grid-template-columns: minmax(0, 1fr); } }
#pg-logo-btn:focus-within { outline: 2px solid var(--pg-focus); outline-offset: 3px; }

/* A card is cut to its rounded shape by the theme script (clip-path). While one of its dropdowns is open, the list must be able to reach past the card edge and lie above the cards that follow. */
.pg-card.pg-card:has(.pg-field.is-open) { clip-path: none; border-radius: var(--r, 12px); position: relative; z-index: 20; }
