/* PF Product Studio 0.1.0 – intentionally presentation-only.
   Native WooCommerce and supplier plugin forms remain fully interactive. */
body.pfps-enabled {--pfps-ink:#17202b;--pfps-muted:#4d5965;--pfps-line:#e2e5e8;--pfps-paper:#f7f8f8;--pfps-bronze:#a47750;}
body.pfps-enabled .pfps-studio{margin:20px 0 18px;padding:0;color:var(--pfps-ink);font-size:15px;line-height:1.6}
body.pfps-enabled .pfps-kicker{font-size:11px;line-height:1.5;letter-spacing:.07em;color:#7b654f;font-weight:650}
body.pfps-enabled .pfps-heading{font-size:21px;line-height:1.25;letter-spacing:-.018em;margin:5px 0 7px;font-weight:650;color:var(--pfps-ink)}
body.pfps-enabled .pfps-guidance{font-size:14px;line-height:1.55;margin:0 0 18px;color:var(--pfps-muted)}
body.pfps-enabled .pfps-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;margin:0 0 13px}
body.pfps-enabled .pfps-step{display:flex;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:9px 6px;background:#fff;border:1px solid var(--pfps-line);border-radius:3px;font-size:13px;font-weight:600;font-family:inherit;line-height:1.3;color:var(--pfps-ink);cursor:pointer;box-shadow:none;letter-spacing:0}
body.pfps-enabled .pfps-step .pfps-number{display:grid;place-items:center;flex:0 0 22px;height:22px;border:1px solid #b9c1c9;border-radius:50%;font-weight:600;font-size:11px}
body.pfps-enabled .pfps-step:hover,body.pfps-enabled .pfps-step.is-selected{background:#f8f6f4;border-color:var(--pfps-bronze);color:#252525}
body.pfps-enabled .pfps-step[hidden]{display:none!important}
body.pfps-enabled .pfps-step:disabled{display:none}
body.pfps-enabled .pfps-status{color:var(--pfps-muted);font-size:12px;line-height:1.5;padding:0 0 12px;border-bottom:1px solid var(--pfps-line)}
body.pfps-enabled .pfps-diagnostics{padding:12px 15px;background:#fffdf5;border:1px solid #e6cf9e;border-radius:3px;margin:10px 0;font-size:13px;color:var(--pfps-ink)}
body.pfps-enabled .pfps-diagnostics summary{cursor:pointer;font-weight:650}
body.pfps-enabled .pfps-diagnostics dl{display:grid;grid-template-columns:1fr 1fr;gap:8px 15px;margin:12px 0}
body.pfps-enabled .pfps-diagnostics dl>div{border-bottom:1px solid #e6cf9e;padding-bottom:5px}
body.pfps-enabled .pfps-diagnostics dt{color:#685840;font-size:12px}body.pfps-enabled .pfps-diagnostics dd{margin:0;font-weight:600}
/* Readable controls, including inherited supplier styles. No forced widths on hidden fields. */
body.pfps-enabled .summary .pfps-native-form{font-size:15px;line-height:1.55;color:var(--pfps-ink)}
body.pfps-enabled .summary .pfps-native-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.pfps-enabled .summary .pfps-native-form select,
body.pfps-enabled .summary .pfps-native-form textarea{font-size:15px;line-height:1.45;color:var(--pfps-ink);background:#fff;border-color:#ccd2d9}
body.pfps-enabled .summary .pfps-native-form label,
body.pfps-enabled .summary .pfps-native-form legend,
body.pfps-enabled .summary .pfps-native-form h3,
body.pfps-enabled .summary .pfps-native-form h4{color:var(--pfps-ink);letter-spacing:0}
body.pfps-enabled .summary .pfps-native-form p,
body.pfps-enabled .summary .pfps-native-form small{line-height:1.55}
/* Remove redundant framing from the vendor areas while retaining their controls and prices. */
body.pfps-enabled .summary .pfm-print,
body.pfps-enabled .summary .pfp-print,
body.pfps-enabled .summary .pfx-digital-config,
body.pfps-enabled .summary .pfcom-config{background:#fff;border:1px solid var(--pfps-line);box-shadow:none;border-radius:3px;margin:17px 0;padding:19px 20px}
body.pfps-enabled .summary .pfm-print legend,
body.pfps-enabled .summary .pfp-print legend{font-weight:650;font-size:17px}
body.pfps-enabled .summary .pfm-print-positions,
body.pfps-enabled .summary .pfp-print-positions{gap:9px}
body.pfps-enabled .summary .pfm-print-position,
body.pfps-enabled .summary .pfp-print-position{background:#fff;border:1px solid var(--pfps-line);border-radius:3px;box-shadow:none}
body.pfps-enabled .summary .pfm-print-total,
body.pfps-enabled .summary .pfp-print-total,
body.pfps-enabled .summary .pfp-matrix-summary,
body.pfps-enabled .summary .pfcom-quote{background:var(--pfps-paper);border-color:var(--pfps-line);border-radius:3px;box-shadow:none}
/* Primex: matrix remains the same native form, including all size/colour stock constraints. */
body.pfps-enabled .summary .pfp-matrix-wrap{width:100%;margin:0;min-width:0;max-width:100%;background:transparent;border:0;box-shadow:none}
body.pfps-enabled .summary .pfp-matrix-scroll{max-width:100%;overflow:auto;border:1px solid var(--pfps-line);border-radius:3px;background:#fff}
body.pfps-enabled .summary .pfp-matrix-table{font-size:13px;line-height:1.4}
body.pfps-enabled .summary .pfp-matrix-table th{font-weight:650;background:#f6f7f8}
body.pfps-enabled .summary .pfp-matrix-table input[type="number"]{min-height:40px;max-width:78px}
body.pfps-enabled .summary .pfp-matrix-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body.pfps-enabled .summary .pfp-matrix-tools [type="search"]{min-width:120px;max-width:280px}
/* Artwork stays with the original supplier-owned protected upload fields. */
body.pfps-enabled .summary .pfcom-upload,
body.pfps-enabled .summary .pfm-print-artwork,
body.pfps-enabled .summary .pfx-digital-note{border-radius:3px}
body.pfps-enabled .summary .pfps-native-form input[type="file"]{max-width:100%;font-size:14px}
/* Theme 1.7.8.30 has its own visual heading; replace that heading only. */
body.pfps-enabled .pf26-product-config>.pf25-config-title{display:none!important}
/* Studio active with other themes too: don't assume a specific theme structure. */
body.pfps-enabled .summary .pfps-native-form [hidden]{display:none!important}
@media(max-width:900px){body.pfps-enabled .pfps-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){
 body.pfps-enabled .pfps-studio{margin:12px 0 14px}
 body.pfps-enabled .pfps-heading{font-size:20px}
 body.pfps-enabled .pfps-steps{gap:6px}
 body.pfps-enabled .pfps-step{font-size:12px;min-height:43px;padding:7px 4px}
 body.pfps-enabled .summary .pfm-print,body.pfps-enabled .summary .pfp-print,
 body.pfps-enabled .summary .pfx-digital-config,body.pfps-enabled .summary .pfcom-config{padding:14px 12px}
 body.pfps-enabled .pfps-diagnostics dl{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){body.pfps-enabled .pfps-step{transition:none}}

body.pfps-enabled .pfps-art-preview{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:12px 0;border:1px solid var(--pfps-line);background:#fff;max-width:100%;min-width:0}
body.pfps-enabled .pfps-art-preview img{height:70px;width:70px;object-fit:contain;background:#fff;border:1px solid var(--pfps-line);flex:0 0 70px}
body.pfps-enabled .pfps-art-caption{min-width:0;display:flex;flex-direction:column;gap:3px}
body.pfps-enabled .pfps-art-caption strong{font-size:13px;overflow-wrap:anywhere;color:var(--pfps-ink)}
body.pfps-enabled .pfps-art-caption small{font-size:12px;color:var(--pfps-muted);line-height:1.5}

.pfps-xd-editor[hidden]{display:none!important}
.pfps-xd-editor:not([hidden]),.pfps-xd-editor .bkp-upload-section{display:contents}
.pfps-xd-editor .bkp-upload-section>:not(.bkp-designer){display:none!important}
.pfps-xd-editor .bkp-designer[hidden]{display:none!important}
.pfps-design-open{margin-block:0.5rem}

/* WooCommerce initially hides its gallery until its script runs. A single supplier photo can paint immediately. */
.pfps-single-external-hero .woocommerce-product-gallery{opacity:1!important}

/* The supplier form already displays the quoted total for this print run. */
.pfps-vendor-printcom form.cart .bk-plain-total,
.pfps-vendor-printshop form.cart .bk-plain-total{display:none!important}

body.pfps-enabled .pfps-studio{--pfps-bronze:#8a6242}
body.pfps-enabled .pfps-studio .pfps-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body.pfps-enabled .pfps-steps[hidden],body.pfps-enabled .pfps-status:empty,
body.pfps-enabled .pfps-is-blank .pfps-art-preview{display:none!important}
body.pfps-enabled .pfps-step{justify-content:flex-start;text-align:left;padding:10px 11px;min-width:0;min-height:54px}
body.pfps-enabled .pfps-step .pfps-step-copy{display:grid;min-width:0;gap:3px}
body.pfps-enabled .pfps-step-copy b{font-size:13px;font-weight:650;line-height:1.25}
body.pfps-enabled .pfps-step-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#535a5d;font-size:12px;font-weight:400;line-height:1.3}
body.pfps-enabled .pfps-step[aria-current="step"]{border-color:#8a6242;background:#faf7f3}
body.pfps-enabled .pfps-step[aria-current="step"] .pfps-number{background:#775438;border-color:#775438;color:white}
body.pfps-enabled .pfps-step:focus-visible,body.pfps-enabled .pfps-order-review summary:focus-visible{outline:2px solid #775438;outline-offset:2px}
.pfps-order-review{flex:1 0 100%;width:100%;min-width:0;margin:12px 0;padding:0;border-block:1px solid #dcd6d0;color:#232624;text-align:left}
.pfps-order-review summary{cursor:pointer;min-height:44px;padding:11px 4px;font-size:15px;font-weight:650}
.pfps-order-review dl{display:grid;grid-template-columns:minmax(78px,auto) 1fr;gap:8px 16px;margin:0;padding:4px 4px 16px;font-size:14px;line-height:1.5}
.pfps-order-review dt{color:#525854;font-weight:500}.pfps-order-review dd{margin:0;overflow-wrap:anywhere}
.pfps-xd-quantity{display:flex;align-items:center;gap:12px;margin:12px 0;font-weight:600}
.pfps-product-reference{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #ddd7ce}
.pfps-product-reference[hidden]{display:none}.pfps-product-reference img{display:block;width:100%;max-height:150px;object-fit:contain}
.pfps-product-reference p{margin:7px 0 0;line-height:1.4;font-size:13px}
@media(max-width:390px){body.pfps-enabled .pfps-step{padding:8px 6px;gap:5px}body.pfps-enabled .pfps-step-copy b{font-size:12px}}

.pfps-product-reference [hidden]{display:none!important}
.pfps-product-reference label{display:grid;gap:3px;margin:6px 0;font:inherit}
.pfps-product-reference select{max-width:100%;min-height:36px;background:#fff;color:inherit}

/* Keep the supplier-owned controls inside their original form and reveal them in sequence. */
body.pfps-enabled .pfps-studio .pfps-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
.pfps-navigation {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:14px 0 0}
.pfps-next {margin-left:auto}.pfps-prev {background:transparent;color:#513e31;border:0;padding:10px 3px;text-decoration:underline;cursor:pointer}
.pfps-step-copy small {max-width:100%}.pfps-order-review h3{margin:10px 0 8px}
body.pfps-enabled [data-pfps-stage] .pf29-matrix-trigger,
body.pfps-enabled [data-pfps-stage] .pfp-matrix-lead,
body.pfps-enabled [data-pfps-stage] .pfps-one-color .pfp-matrix-tools,
body.pfps-enabled [data-pfps-stage] .pfp-matrix-summary h4,
body.pfps-enabled [data-pfps-stage] .pfps-navigation [hidden]{display:none!important}
body.pfps-enabled [data-pfps-stage]:not([data-pfps-stage=options]) :is(.pfp-matrix-wrap>h3,.pfp-matrix-tools,.pfp-matrix-scroll,.pfp-matrix-stock-note,table.variations,.pfps-xd-quantity,.cart .quantity,.pfps-quantity-label,.pfcom-field:not(.pfcom-upload),.pfcom-custom-size,.pfcom-config>h3,.pfcom-intro,.pfps-fields,.pfps-shop>.pfps-head:not(.pfps-head-second)){display:none!important}
body.pfps-enabled [data-pfps-stage]:not([data-pfps-stage=artwork]) :is(.pf-flow-primex,.pfx-digital-config,.pfm-print-choice-mode,.pfm-print-content,.pfcom-upload,.pfps-head-second,.pfps-filebox,.pfps-file-input),
body.pfps-enabled [data-pfps-stage]:not([data-pfps-stage=cart]) :is(.pfp-matrix-summary,.pfps-order-review,.single_add_to_cart_button,.pfp-matrix-submit,.pfps-price-box,.pfcom-quote,.bk-plain-total,.pfps-shop .pfps-information,.pfm-price-summary,.pfm-price-calculator,.pfm-staffel){display:none!important}
body.pfps-enabled [data-pfps-stage=options] .pfm-print,
body.pfps-enabled [data-pfps-stage=cart] .pfm-print>legend{display:none!important}
body.pfps-enabled [data-pfps-stage=options] .pfp-matrix-scroll{display:block!important}
@media(max-width:520px){body.pfps-enabled .pfps-step{flex-direction:column;align-items:flex-start;gap:4px}body.pfps-enabled .pfps-step-copy small{display:none}.pfps-navigation button{min-height:44px}}
