/* Stage 5 Product + Customization UX. Scoped to prototype pages; frozen site chrome remains untouched. */
.fif-stage5 {
  --fif-paper: #fffefa;
  --fif-line: #deded5;
  --fif-muted: #70746c;
  --fif-coral: #d56e58;
  --fif-sage: #e9eee5;
  --fif-walnut: #73523c;
  color: var(--ink, #252923);
  background: var(--ivory, #f8f7f1);
  font: 15px/1.55 var(--sans, Arial, sans-serif);
}
.fif-stage5 *, .fif-stage5 *::before, .fif-stage5 *::after { box-sizing: border-box; }
.fif-stage5 [hidden] { display: none !important; }
.fif-stage5 button, .fif-stage5 input, .fif-stage5 select, .fif-stage5 textarea { font: inherit; color: inherit; }
.fif-stage5 button { cursor: pointer; }
.fif-stage5__demo-banner { min-height: 34px; padding: 7px 18px; background: var(--fif-sage); color: #52604d; text-align: center; font-size: 10px; letter-spacing: .12em; }
.fif-stage5__demo-banner span { margin-left: 12px; color: #777d71; }
.fif-stage5__crumb { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 23px 0 15px; color: var(--fif-muted); font-size: 12px; }
.fif-stage5__crumb a { text-decoration: none; }
.fif-stage5__crumb span { margin: 0 9px; color: #aaa99d; }
.fif-eyebrow { margin: 0 0 10px; color: #785746; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.fif-product-layout { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 0 0 110px; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(390px, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.fif-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fif-gallery__rest { display: contents; }
.fif-gallery figure { position: relative; overflow: hidden; margin: 0; background: #ebe7de; }
.fif-gallery figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fif-gallery figcaption { position: absolute; left: 13px; bottom: 12px; padding: 6px 9px; background: #fffefaed; color: #373931; font-size: 10px; letter-spacing: .035em; }
.fif-gallery figcaption span { color: var(--fif-coral); padding: 0 4px; }
.fif-gallery figcaption small { margin-left: 6px; color: #876b58; font-size: 8px; letter-spacing: .12em; }
.fif-gallery__main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.fif-gallery__tile { aspect-ratio: 4 / 3; }
.fif-gallery__size { aspect-ratio: 4 / 3; padding: 22px 18px 15px; display: flex; flex-direction: column; justify-content: space-between; color: #685343; background: linear-gradient(145deg, #f1eee6, #e6e0d4) !important; }
.fif-gallery__size > span { font-size: 9px; letter-spacing: .1em; }
.fif-size-figures { display: flex; align-items: end; justify-content: center; gap: 15px; height: 74%; border-bottom: 2px solid #81634a; }
.fif-size-figures i { display: block; width: 34px; border-radius: 22px 22px 2px 2px; background: linear-gradient(90deg, #d7c9b9, #b6a18b); }
.fif-size-figures i:nth-child(1) { height: 43%; }
.fif-size-figures i:nth-child(2) { height: 62%; }
.fif-size-figures i:nth-child(3) { height: 82%; }
.fif-size-labels { display: flex; justify-content: space-around; font-size: 10px; }
.fif-gallery__viewer { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(145deg, #e8eee4, #f2eee7) !important; }
.fif-viewer__label { position: absolute; top: 15px; left: 16px; font-size: 9px; letter-spacing: .1em; }
.fif-viewer__figure { width: 72px; height: 128px; border: 1px solid #8b7967; border-radius: 45% 45% 22% 22%; background: linear-gradient(90deg, #d1c9be, #faf7ef, #c7b9a9); box-shadow: 0 14px 25px #33291d20; }
.fif-viewer__hint { position: absolute; bottom: 14px; color: var(--fif-muted); font-size: 10px; }
.fif-gallery__note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--fif-muted); font-size: 11px; }
.fif-config { position: sticky; top: 100px; min-width: 0; }
.fif-product-intro h1, .fif-bespoke-intro h1, .fif-approval-intro h1 { margin: 0 0 12px; font: 500 clamp(34px, 3vw, 46px)/1.07 var(--serif, Georgia, serif); letter-spacing: -.035em; }
.fif-product-intro > p:not(.fif-eyebrow), .fif-bespoke-intro > p:not(.fif-eyebrow), .fif-approval-intro > p:not(.fif-eyebrow) { margin: 0; color: var(--fif-muted); }
.fif-product-line-switch { margin-top: 12px !important; font-size: 14px; }
.fif-product-line-switch a { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; color: var(--fif-coral-dark, #a94f38); text-decoration: underline; text-underline-offset: 3px; }
.fif-customer-rules { width: min(1120px, calc(100% - 136px)); margin: 72px auto 100px; padding: 32px 0; border-top: 1px solid var(--fif-line, #dfd7cc); }
.fif-customer-rules h2 { margin: 0 0 20px; font: 500 clamp(26px, 2.7vw, 36px)/1.1 var(--serif, Georgia, serif); }
.fif-customer-rules > p:not(.fif-eyebrow) { max-width: 760px; color: var(--fif-muted); line-height: 1.65; }
.fif-customer-rules > p strong { color: var(--fif-ink, #282522); font-weight: 600; }
.fif-process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: ffi-process; }
.fif-process-list li { counter-increment: ffi-process; display: flex; gap: 10px; align-items: baseline; min-height: 38px; color: var(--fif-ink, #282522); }
.fif-process-list li::before { content: counter(ffi-process, decimal-leading-zero); color: var(--fif-coral-dark, #a94f38); font: 600 12px/1 var(--sans, sans-serif); }
.fif-quote-config-summary { padding: 14px 16px; border-left: 2px solid var(--fif-coral-dark, #a94f38); background: var(--fif-paper, #f5f1e9); color: var(--fif-ink, #282522); }
.fif-quote-photo-handoff { color: var(--fif-muted); font-size: 14px; }
.fif-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0; margin-top: 19px; border-block: 1px solid var(--fif-line); font-size: 10px; }
.fif-trust span::before { content: '·'; margin-right: 6px; color: var(--fif-coral); font-size: 18px; vertical-align: -1px; }
.fif-step { border-bottom: 1px solid var(--fif-line); }
.fif-step > summary { min-height: 64px; padding: 14px 3px; display: grid; grid-template-columns: 60px 1fr 18px; align-items: center; gap: 8px; list-style: none; cursor: pointer; font: 21px/1.2 var(--serif, Georgia, serif); }
.fif-step > summary::-webkit-details-marker { display: none; }
.fif-step > summary:focus-visible { outline: 2px solid var(--fif-coral); outline-offset: 2px; }
.fif-step__number { color: #9b6651; font: 10px var(--sans, Arial, sans-serif); letter-spacing: .12em; }
.fif-step > summary i { position: relative; width: 15px; height: 15px; }
.fif-step > summary i::before, .fif-step > summary i::after { content: ''; position: absolute; background: #776d5f; }
.fif-step > summary i::before { top: 7px; width: 15px; height: 1px; }
.fif-step > summary i::after { left: 7px; width: 1px; height: 15px; }
.fif-step[open] > summary i::after { display: none; }
.fif-step__body { padding: 0 0 20px 68px; }
.fif-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fif-choice { min-height: 44px; padding: 8px 15px; border: 1px solid #d1d1c7; border-radius: 25px; background: transparent; font-size: 12px; }
.fif-choice.is-selected, .fif-size-option.is-selected { border-color: #78866f; background: var(--fif-sage); box-shadow: inset 0 0 0 1px #78866f; }
.fif-choice small { display: block; color: var(--fif-muted); font-size: 9px; }
.fif-count-group { margin-bottom: 14px; }
.fif-count-group > p { margin: 0 0 8px; font-size: 11px; color: var(--fif-muted); }
.fif-count-group .fif-choice { min-width: 86px; }
.fif-hint { margin: 10px 0 0; color: var(--fif-muted); font-size: 11px; }
.fif-size-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fif-size-option { min-height: 62px; padding: 9px 11px; border: 1px solid var(--fif-line); background: var(--fif-paper); text-align: left; }
.fif-size-option b, .fif-size-option span { display: block; }
.fif-size-option b { font-size: 12px; font-weight: 500; }
.fif-size-option span { margin-top: 3px; color: var(--fif-muted); font-size: 10px; }
.fif-dropzone { padding: 18px 15px; border: 1px dashed #a8a99e; background: #fcfbf6; text-align: center; transition: background .15s, border-color .15s; }
.fif-dropzone.is-dragging { border-color: var(--fif-coral); background: #f8ece7; }
.fif-dropzone > strong { display: block; font: 19px var(--serif, Georgia, serif); }
.fif-dropzone > p { margin: 4px 0 0; color: var(--fif-muted); font-size: 11px; }
.fif-primary-photo-label { display: inline-block; margin: 0 0 10px; color: var(--fif-coral); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.fif-dropzone > strong { max-width: 34rem; margin: 0 auto; }
.fif-dropzone .fif-photo-intro { max-width: 38rem; margin: 10px auto 0; color: var(--ink, #252923); font-size: 15px; line-height: 1.55; }
.fif-photo-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; max-width: 450px; margin: 18px auto 0; padding: 0; list-style: none; text-align: left; }
.fif-photo-checklist li { position: relative; padding-left: 22px; color: var(--ink, #252923); font-size: 14px; line-height: 1.4; }
.fif-photo-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--fif-sage, #70806b); font-weight: 700; }
.fif-dropzone .fif-photo-quality-note { margin: 15px 0 0; color: var(--ink, #252923); font-size: 14px; font-weight: 600; }
.fif-photo-confirm { max-width: 500px; min-height: 48px; margin: 14px auto 0; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--fif-line); background: #fff; text-align: left; font-size: 14px !important; line-height: 1.45; cursor: pointer; }
.fif-photo-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fif-coral); }
.fif-dropzone .fif-photo-feedback { min-height: 22px; margin: 10px auto 0; color: #8b4b37; font-size: 14px; line-height: 1.45; }
.fif-dropzone .fif-photo-feedback.is-ready { color: #48614b; }
.fif-dropzone .fif-photo-retain-note { max-width: 500px; margin: 8px auto 0; color: var(--fif-muted); font-size: 14px; line-height: 1.45; }
.fif-step.is-photo-locked { opacity: .62; }
.fif-step.is-photo-locked > summary { cursor: not-allowed; }
.fif-product-cta [disabled], .fif-mobile-cta button[disabled] { cursor: not-allowed; opacity: .52; }
.fif-photo-guidance { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 10px; margin: 12px 0 0; color: #756f65; font-size: 9px; }
.fif-photo-guidance span + span::before { content: '·'; margin-right: 10px; color: #b1a394; }
.fif-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fif-dropzone > label { min-height: 42px; margin-top: 12px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--ink, #252923); border-radius: 24px; cursor: pointer; font-size: 11px; }
.fif-upload-count { margin-top: 10px; color: #685142; font-size: 11px; }
.fif-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; text-align: left; }
.fif-thumb { min-width: 0; padding: 5px; border: 1px solid var(--fif-line); background: white; }
.fif-thumb img { display: block; width: 100%; height: 66px; object-fit: cover; background: #eee; }
.fif-thumb__name { overflow: hidden; margin: 4px 0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.fif-thumb__actions { display: flex; gap: 4px; }
.fif-thumb__actions button { flex: 1; min-height: 32px; padding: 3px 4px; border: 1px solid var(--fif-line); background: #fff; font-size: 9px; }
.fif-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fif-fields label, .fif-bespoke-idea, .fif-revision label { display: block; font-size: 11px; }
.fif-fields input, .fif-fields select, .fif-fields textarea, .fif-bespoke-idea textarea, .fif-revision textarea { display: block; width: 100%; min-height: 43px; margin-top: 5px; padding: 9px 10px; border: 1px solid #d4d4cb; border-radius: 2px; background: var(--fif-paper); font-size: 12px; }
.fif-fields textarea, .fif-bespoke-idea textarea, .fif-revision textarea { min-height: 82px; resize: vertical; }
.fif-fields__wide { grid-column: 1 / -1; }
.fif-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fif-addons label { min-height: 43px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--fif-line); background: var(--fif-paper); font-size: 11px; }
.fif-addons input { width: 17px; height: 17px; margin: 0; accent-color: var(--fif-coral); }
.fif-product-cta { padding: 18px 0 0 68px; }
.fif-primary, .fif-secondary { min-height: 48px; padding: 0 23px; border: 0; border-radius: 26px; font-size: 13px; }
.fif-primary { background: var(--fif-coral); color: #fff !important; }
.fif-secondary { border: 1px solid var(--ink, #252923); background: transparent; }
.fif-product-cta > .fif-primary { width: 100%; }
.fif-quote-link { margin: 10px 0 0; text-align: center; font-size: 12px; }
.fif-quote-link a { color: var(--fif-walnut); }
.fif-cta-note { margin: 8px 0 0; color: var(--fif-muted); text-align: center; font-size: 10px; }
.fif-mobile-cta { display: none; }

/* Bespoke commission layout */
.fif-bespoke-page { padding-bottom: 96px; }
.fif-bespoke-layout { width: min(1360px, calc(100% - 80px)); margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); gap: clamp(42px, 5.5vw, 82px); align-items: start; }
.fif-bespoke-editorial { position: sticky; top: 92px; }
.fif-bespoke-intro { margin: 0 0 28px; }
.fif-bespoke-intro h1 { max-width: 500px; font-size: clamp(40px, 4.5vw, 60px); }
.fif-bespoke-image { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #ebe7de; }
.fif-bespoke-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fif-bespoke-image figcaption { position: absolute; bottom: 14px; left: 14px; padding: 7px 10px; background: #fffefaed; color: #685343; font-size: 9px; letter-spacing: .1em; }
.fif-bespoke-form { width: auto; margin: 0; padding: 0; border: 0; background: transparent; }
.fif-bespoke-group { padding: 22px 0 24px; border-top: 1px solid var(--fif-line); }
.fif-bespoke-group h2 { margin: 0 0 17px; color: #785746; font: 10px/1.2 var(--sans, Arial, sans-serif); letter-spacing: .17em; }
.fif-bespoke-form .fif-fields { gap: 16px 22px; }
.fif-bespoke-form .fif-fields label { font-size: 12px; }
.fif-bespoke-upload { margin-top: 0; }
.fif-field-title { display: block; margin-bottom: 7px; font-size: 12px; }
.fif-bespoke-idea { margin-top: 20px; }
.fif-bespoke-form > .fif-primary { margin-top: 5px; min-width: 200px; }
.fif-bespoke-form > .fif-hint { display: block; margin: 10px 0 0; }
.fif-form-message { margin-top: 15px; padding: 13px; background: var(--fif-sage); color: #4b5945; font-size: 12px; }

/* Approval view */
.fif-approval-page { padding-bottom: 90px; }
.fif-approval-intro, .fif-approval-layout, .fif-cancellation-panel { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.fif-approval-intro { margin-top: 30px; }
.fif-cancellation-panel { margin-top: 24px; }
.fif-approval-intro h1 { font-size: clamp(40px, 5vw, 60px); }
.fif-order-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 17px; color: var(--fif-muted); font-size: 11px; }
.fif-approval-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 38px; margin-top: 30px; align-items: start; }
.fif-timeline, .fif-approval-preview { padding: 26px; border: 1px solid var(--fif-line); background: var(--fif-paper); }
.fif-timeline h2, .fif-approval-preview h2 { margin: 0 0 18px; font: 27px var(--serif, Georgia, serif); }
.fif-timeline ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.fif-timeline li { position: relative; min-height: 54px; padding: 3px 4px 15px 25px; border-left: 1px solid #d8d8cf; color: #85867d; font-size: 11px; }
.fif-timeline li::before { content: ''; position: absolute; top: 5px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: #d6d5cc; }
.fif-timeline li.is-done { color: var(--ink, #252923); }
.fif-timeline li.is-done::before { background: #78866f; }
.fif-timeline li.is-current { color: var(--ink, #252923); font-weight: 600; }
.fif-timeline li.is-current::before { background: var(--fif-coral); box-shadow: 0 0 0 4px #d56e5826; }
.fif-approval-ready { margin-top: 2px; padding: 16px 18px; background: var(--fif-sage); }
.fif-approval-ready p { margin: 0 0 4px; color: var(--ink, #252923); font: 18px/1.3 var(--serif, Georgia, serif); }
.fif-approval-ready span { display: block; color: var(--fif-muted); font-size: 12px; line-height: 1.5; }
.fif-viewer { min-height: 290px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e8eee4, #f2eee7); }
.fif-viewer__label { position: absolute; top: 14px; left: 15px; font-size: 9px; letter-spacing: .1em; }
.fif-viewer__angle { position: absolute; bottom: 12px; color: var(--fif-muted); font-size: 10px; }
.fif-view-controls, .fif-versions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fif-view-controls button, .fif-versions button { min-height: 40px; padding: 0 15px; border: 1px solid var(--fif-line); border-radius: 22px; background: transparent; font-size: 11px; }
.fif-view-controls button.is-selected, .fif-versions button.is-selected { border-color: #78866f; background: var(--fif-sage); }
.fif-version-title { margin-top: 19px; color: var(--fif-muted); font-size: 10px; }
.fif-approval-actions { display: flex; gap: 8px; margin-top: 20px; }
.fif-approval-actions > * { flex: 1; }
.fif-revision { margin-top: 18px; }
.fif-revision textarea { min-height: 100px; }
.fif-revision .fif-primary { margin-top: 10px; }
.fif-approval-preview > .fif-hint { margin-top: 16px; }
.fif-stage5 button:focus-visible, .fif-stage5 a:focus-visible, .fif-stage5 input:focus-visible, .fif-stage5 select:focus-visible, .fif-stage5 textarea:focus-visible { outline: 2px solid var(--fif-coral); outline-offset: 2px; }

@media (max-width: 1050px) {
  .fif-product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 25px; }
  .fif-config { top: 92px; }
  .fif-step > summary { grid-template-columns: 52px 1fr 18px; font-size: 19px; }
  .fif-step__body, .fif-product-cta { padding-left: 60px; }
  .fif-choice { padding-inline: 11px; }
  .fif-approval-layout { gap: 20px; grid-template-columns: 1fr .9fr; }
}
@media (max-width: 900px) {
  .fif-product-layout { grid-template-columns: 1fr; gap: 28px; }
  .fif-config { position: static; }
  .fif-product-intro { max-width: 680px; }
  .fif-approval-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .fif-dropzone { padding: 18px 14px; }
  .fif-dropzone .fif-photo-intro { font-size: 15px; }
  .fif-photo-checklist { gap: 9px 8px; margin-top: 15px; }
  .fif-photo-checklist li, .fif-dropzone .fif-photo-quality-note, .fif-photo-confirm, .fif-dropzone .fif-photo-feedback, .fif-dropzone .fif-photo-retain-note { font-size: 14px !important; }
  .fif-photo-guidance { font-size: 12px; }
  .fif-dropzone > label { min-height: 44px; font-size: 14px; }
  .fif-upload-count { font-size: 14px; }
  .fif-thumb__actions button { min-height: 44px; font-size: 12px; }
  .fif-stage5__demo-banner { font-size: 9px; letter-spacing: .08em; }
  .fif-stage5__demo-banner span { display: block; margin: 1px 0 0; }
  .fif-stage5__crumb, .fif-product-layout, .fif-approval-intro, .fif-approval-layout, .fif-cancellation-panel { width: calc(100% - 36px); }
  .fif-stage5__crumb { padding: 17px 0 12px; }
  .fif-product-layout { display: flex; flex-direction: column; padding-bottom: 128px; gap: 0; }
  .fif-gallery, .fif-config { display: contents; }
  .fif-gallery { gap: 0; }
  .fif-gallery__main { order: 1; width: 100%; margin-bottom: 19px !important; }
  .fif-product-intro { order: 2; margin-bottom: 16px; }
  .fif-gallery__rest { order: 3; width: 100vw; margin: 0 0 14px calc((100vw - 100%) / -2); padding: 0 18px 8px; display: flex; gap: 11px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fif-gallery__rest::-webkit-scrollbar { display: none; }
  .fif-gallery__rest > * { flex: 0 0 86vw; min-width: 0; scroll-snap-align: start; }
  .fif-gallery__note { order: 4; margin-bottom: 18px; }
  .fif-steps { order: 5; }
  .fif-product-cta { order: 6; }
  .fif-gallery__main { aspect-ratio: 16 / 9; }
  .fif-gallery__tile, .fif-gallery__size, .fif-gallery__viewer { aspect-ratio: 1.2; }
  .fif-gallery figcaption { left: 8px; bottom: 8px; padding: 5px 7px; font-size: 9px; }
  .fif-gallery__note { font-size: 10px; }
  .fif-product-intro h1 { font-size: clamp(34px, 8vw, 40px); }
  .fif-customer-rules { width: calc(100% - 36px); margin: 44px auto 70px; padding-top: 24px; }
  .fif-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .fif-trust { gap: 6px 13px; font-size: 9px; }
  .fif-step > summary { min-height: 58px; grid-template-columns: 54px 1fr 18px; font-size: 19px; }
  .fif-step__body { padding: 0 0 17px; }
  .fif-choice { min-height: 44px; font-size: 11px; }
  .fif-choice small { font-size: 9px; }
  .fif-count-group .fif-choice { flex: 1; min-width: 76px; }
  .fif-size-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fif-product-cta { padding: 17px 0 0; }
  .fif-mobile-cta { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: none; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fif-line); background: #fffefaf2; backdrop-filter: blur(12px); }
  .fif-mobile-cta.is-visible { display: flex; }
  .fif-mobile-cta button { width: 100%; min-height: 48px; border: 0; border-radius: 26px; background: var(--fif-coral); color: #fff; font-size: 14px; }
  .fif-mobile-cta.is-quote button { background: var(--fif-walnut); }
  .fif-bespoke-page, .fif-approval-page { padding-bottom: 55px; }
  .fif-bespoke-layout { width: calc(100% - 36px); margin-top: 22px; grid-template-columns: 1fr; gap: 27px; }
  .fif-bespoke-editorial { position: static; }
  .fif-bespoke-intro, .fif-approval-intro { margin-top: 0; }
  .fif-bespoke-intro h1 { font-size: 39px; }
  .fif-bespoke-image { aspect-ratio: 16 / 10; }
  .fif-bespoke-form { width: 100%; padding: 0; }
  .fif-bespoke-form .fif-fields { grid-template-columns: 1fr; gap: 13px; }
  .fif-bespoke-form .fif-fields__wide { grid-column: auto; }
  .fif-bespoke-form > .fif-primary { width: 100%; }
  .fif-bespoke-form > .fif-hint { display: block; margin: 9px 0 0; }
  .fif-timeline, .fif-approval-preview { padding: 19px; }
  .fif-timeline ol { gap: 0 11px; }
  .fif-timeline li { min-height: 54px; padding-left: 21px; font-size: 10px; }
  .fif-viewer { min-height: 260px; }
  .fif-approval-actions { flex-direction: column; }
  .fif-approval-actions button { min-height: 48px; }
}
@media (max-width: 390px) {
  .fif-product-layout, .fif-stage5__crumb, .fif-approval-intro, .fif-approval-layout, .fif-cancellation-panel { width: calc(100% - 28px); }
  .fif-bespoke-layout { width: calc(100% - 28px); }
  .fif-customer-rules { width: calc(100% - 28px); }
  .fif-gallery { gap: 6px; }
  .fif-choice { padding-inline: 9px; }
  .fif-count-group .fif-choice { min-width: 70px; }
  .fif-trust { font-size: 8px; gap: 5px 9px; }
  .fif-step > summary { font-size: 18px; }
}

/* Product Page V2.1 visual integration. Keeps FFI Customizer behavior and desktop structure intact. */
.fif-gallery-expand { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--fif-line); border-bottom: 1px solid var(--fif-line); }
.fif-gallery-expand > summary { min-height: 48px; padding: 8px 2px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #494940; font-size: 13px; }
.fif-gallery-expand > summary::-webkit-details-marker { display: none; }
.fif-gallery-expand > summary:focus-visible, .fif-pet-tips > summary:focus-visible { outline: 2px solid var(--fif-coral); outline-offset: 2px; }
.fif-gallery-expand[open] > summary span, .fif-pet-tips[open] > summary span { transform: rotate(45deg); }
.fif-gallery__rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 0 12px; }
.fif-product-intro-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fif-product-intro-copy { min-width: 0; }
.fif-product-line-thumb { position: relative; flex: 0 0 76px; width: 76px; height: 92px; margin: 0; overflow: hidden; background: #eae6de; }
.fif-product-line-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.fif-product-line-thumb figcaption { position: absolute; right: 3px; bottom: 3px; left: 3px; padding: 3px 2px; background: #fffef0e8; text-align: center; color: #8d4938; font-size: 7px; letter-spacing: .08em; }
.fif-product-intro-copy .fif-eyebrow { margin-bottom: 8px; }
.fif-product-intro-copy h1 { margin: 0 0 8px; font: 500 clamp(30px, 2.6vw, 40px)/1.07 var(--serif, Georgia, serif); letter-spacing: -.035em; }
.fif-product-intro-copy > p:not(.fif-eyebrow) { margin: 0; color: var(--fif-muted); }
.fif-category-support { margin: 8px 0 2px !important; color: var(--ink, #252923) !important; font-size: 14px; line-height: 1.4; }
.fif-pet-tips { max-width: 560px; margin: 12px auto 0; border-block: 1px solid var(--fif-line); text-align: left; }
.fif-pet-tips > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #58624f; font-size: 13px; font-weight: 600; }
.fif-pet-tips > summary::-webkit-details-marker { display: none; }
.fif-pet-tips > summary span { transition: transform .15s ease; }
.fif-pet-tips p { margin: 0 0 12px; color: var(--fif-muted); font-size: 14px; line-height: 1.45; }
.fif-photo-guidance { justify-content: center; margin-top: 10px; font-size: 12px; }
.fif-photo-guidance span + span::before { content: none; }
@media (max-width: 767px) {
  .fif-product-layout { display: flex; flex-direction: column; gap: 0; }
  .fif-gallery, .fif-config, .fif-steps { display: contents; }
  .fif-product-intro { order: 1; width: 100%; margin: 4px 0 16px; }
  .fif-product-intro-row { align-items: center; gap: 12px; }
  .fif-product-line-thumb { flex-basis: 62px; width: 62px; height: 76px; }
  .fif-product-line-thumb figcaption { font-size: 6px; }
  .fif-product-intro-copy { flex: 1; }
  .fif-product-intro-copy h1 { margin-bottom: 5px; font-size: clamp(31px, 8vw, 37px); line-height: 1.04; }
  .fif-product-intro-copy > p:not(.fif-eyebrow) { font-size: 14px; line-height: 1.4; }
  .fif-product-intro .fif-trust { margin-top: 12px; padding: 10px 0; }
  .fif-step[data-step="photos"] { order: 2; width: 100%; margin: 0 0 18px; }
  .fif-gallery__main { order: 3; width: 100%; margin: 0 0 10px !important; aspect-ratio: 4 / 5; }
  .fif-gallery__main img { object-position: center 32%; }
  .fif-gallery-expand { order: 4; width: 100%; margin: 0 0 10px; }
  .fif-gallery__rest { grid-template-columns: 1fr; gap: 9px; padding-top: 10px; }
  .fif-gallery__tile { aspect-ratio: 3 / 2; }
  .fif-gallery__size, .fif-gallery__viewer { aspect-ratio: 4 / 3; }
  .fif-gallery__note { order: 5; width: 100%; margin: 0 0 16px; }
  .fif-step[data-step="selection"] { order: 6; width: 100%; }
  .fif-step[data-step="size"] { order: 7; width: 100%; }
  .fif-step[data-step="price"] { order: 8; width: 100%; }
  .fif-product-cta { order: 9; width: 100%; }
  .fif-pet-tips > summary { min-height: 44px; font-size: 13px; }
  .fif-pet-tips p { font-size: 14px; }
  .fif-photo-checklist { gap: 7px 8px; margin-top: 12px; }
  .fif-photo-checklist li { font-size: 13px; }
  .fif-photo-guidance { font-size: 12px; line-height: 1.4; }
  .fif-gallery-expand > summary { min-height: 48px; }
}
@media (max-width: 390px) {
  .fif-product-line-thumb { flex-basis: 58px; width: 58px; height: 72px; }
  .fif-product-intro-copy h1 { font-size: 31px; }
  .fif-photo-checklist li { font-size: 12px; }
}
/* Match the approved V2.1 product portrait image framing; prevent cropping of the figure or base. */
.fif-gallery__main { aspect-ratio: 4 / 5; }
.fif-gallery__main img { object-position: center center; }

/* Quote uploader: show the English label instead of locale-dependent native file text. */
.fif-quote-dropzone { position: relative; }
.fif-quote-dropzone > input[type="file"][data-photo-input] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.fif-quote-dropzone > input[type="file"][data-photo-input] + label { min-height: 44px; margin-top: 12px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink, #252923); border-radius: 24px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.fif-quote-dropzone > input[type="file"][data-photo-input]:focus-visible + label { outline: 3px solid var(--fif-coral, #d7755d); outline-offset: 4px; }
.fif-quote-dropzone > input[type="file"][data-photo-input]:disabled + label, .fif-quote-dropzone[aria-busy="true"] > input[type="file"][data-photo-input] + label { opacity: .6; cursor: progress; }
