/* The campaign flow uses the store's type, color and controls. */
#fs-personalize { max-width: 600px; margin: 0 auto; }
#fs-recommendation { max-width: 960px; margin: 0 auto; padding-bottom: 24px; }
#fs-personalize h1, #fs-recommendation h1 { font-size: clamp(25px, 4vw, 38px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; margin: 16px 0; }
#fs-recommendation h2 { font-size: 23px; letter-spacing: -.03em; font-weight: 500; }
.pf-ad { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.pf-ad-image { width: 64px; height: 64px; flex: 0 0 64px; background: var(--paper, #f4f3ee); border-radius: 10px; overflow: hidden; }
.pf-ad img { width: 100%; height: 100%; object-fit: contain; }
.pf-ad strong { font-size: 15px; font-weight: 600; }
#fs-root .pf-note { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 8px 0; }
#fs-root .pf-ad .pf-note { margin: 3px 0; font-size: 12px; }
.pf-progress { display: flex; align-items: center; gap: 20px; margin-top: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.pf-progress progress { height: 4px; width: 110px; border: none; accent-color: var(--ink); }
.pf-progress progress::-webkit-progress-bar { background: var(--line); }
.pf-progress progress::-webkit-progress-value { background: var(--ink); }
.pf-choices { display: grid; gap: 8px; }
.pf-choice { display: grid; text-align: left; min-height: 62px; align-content: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: transparent; cursor: pointer; }
.pf-choice[aria-pressed="true"] { border: 2px solid var(--ink); padding: 13px 15px; background: rgba(0,0,0,.035); }
.pf-choice strong { font-size: 15px; font-weight: 500; }
.pf-choice small { color: var(--ink-2); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.pf-volume { grid-template-columns: 1fr 1fr; }
.pf-volume .pf-choice { min-height: 62px; }
.pf-weight { display: flex; gap: 10px; align-items: center; margin: 24px 0 12px; }
#fs-root .pf-number { width: 100%; padding: 16px; min-height: 56px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.pf-units { display: flex; gap: 4px; }
.pf-unit { min-width: 48px; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.pf-unit[aria-pressed="true"] { color: var(--paper, #fff); background: var(--ink); }
.pf-question-actions { display: flex; gap: 10px; margin-top: 20px; }
.pf-question-actions .fs-btn-secondary { flex: 0 1 40%; width: auto; max-width: 128px; padding-inline: 12px; }
.pf-question-actions .fs-btn-primary { flex: 1; width: auto; min-height: 56px; }
#fs-root .pf-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; }
.pf-error { color: var(--text-danger); font-size: 14px; padding: 12px 0; }
.pf-error[hidden] { display: none; }
.pf-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); }
.pf-result-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.pf-price { font-size: 27px; letter-spacing: -.04em; font-weight: 500; white-space: nowrap; }
.pf-result-grid { display: grid; gap: 24px; margin-top: 12px; }
.pf-media-frame { height: 240px; position: relative; scroll-margin-top: calc(var(--nav-h) + 12px); }
.pf-live-preview { position: absolute; inset: 0; min-height: 0; height: 100%; width: 100%; aspect-ratio: auto; border: none; border-radius: 16px; overflow: hidden; }
#fs-recommendation .pf-media-frame > .pf-live-preview { position: absolute; margin: 0; }
.pf-preview-status { display: grid; place-items: center; height: 100%; margin: 0; padding: 24px; color: var(--ink-2); font-size: 14px; text-align: center; }
.pf-live-preview canvas { height: 100%; width: 100%; object-fit: contain; }
.pf-prepared-caption { display: none; }
.pf-media:has(.pf-live-preview canvas) .pf-prepared-caption { display: block; }
.pf-fit-explanation { display: none; margin-top: 16px; }
.pf-media:has(.pf-live-preview canvas[data-recommendation]) .pf-fit-explanation { display: block; }
.pf-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.pf-secondary button { padding: 12px 8px; font-size: 13px; }
.pf-purchase { position: sticky; bottom: 0; z-index: 20; background: var(--paper, #f7f6f2); padding: 12px 0 max(8px, env(safe-area-inset-bottom)); margin-top: 24px; border-top: 1px solid var(--line); }
.pf-purchase .fs-btn-primary { width: 100%; min-height: 52px; }
#fs-root .pf-purchase .pf-note { text-align: center; margin: 6px 0 0; font-size: 11px; }
.pf-keyboard .pf-purchase { position: static; }
.pf-why { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.pf-why summary { font-size: 15px; cursor: pointer; min-height: 36px; }
.pf-tune { display: grid; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.pf-tune-field { display: grid; gap: 8px; font-size: 14px; }
.pf-tune select { min-height: 52px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.pf-replace { padding: 16px; border: 1px solid var(--ink); border-radius: 12px; display: grid; gap: 12px; }
.pf-status, .pf-change { padding: 12px; margin-top: 12px; background: rgba(0,0,0,.04); border-radius: 8px; font-size: 13px; line-height: 1.5; }
#fs-personalize > .fs-btn-primary, #fs-personalize > .fs-btn-secondary { display: block; width: 100%; margin-top: 12px; }
@media (min-width: 720px) {
  .pf-result-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .pf-media-frame { height: 320px; }
  .pf-purchase { max-width: 480px; margin-left: auto; }
  .pf-tune { grid-template-columns: 1fr 1fr; }
  .pf-tune h2, .pf-tune > p, .pf-tune > button, .pf-replace { grid-column: 1 / -1; }
}
@media (max-width: 374px) {
  #fs-personalize.active { padding: 12px 10px 24px; }
  .pf-ad { margin-bottom: 8px; padding-bottom: 8px; }
  #fs-personalize h1 { font-size: 24px; }
  #fs-recommendation .pf-purchase .fs-btn-primary { font-size: 12px; letter-spacing: .08em; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { #fs-personalize, #fs-recommendation { animation: none; } }
/* All designs stay visible; native ranges support touch, mouse and keyboard. */
.pf-catalog { margin: 20px 0; }
#fs-personalize.pf-choosing, #fs-recommendation.pf-choosing { max-width: 1120px; }
.pf-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pf-tune-field { min-width: 0; }
.pf-tune-field .pf-range { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; accent-color: var(--ink); cursor: ew-resize; touch-action: pan-y; }
.pf-result-details .pf-tune { grid-template-columns: minmax(0, 1fr); padding: 16px 0; margin-top: 16px; }
.pf-result-details .pf-tune h2 { margin: 0; }
.pf-question-actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--paper, #f7f6f2); }
.pf-question-actions button { min-height: 48px; }
.pf-tune-field:has(.pf-number) { grid-template-columns: minmax(0, 1fr) 90px; align-items: center; }
#fs-root .pf-tune-field .pf-number { min-height: 44px; padding: 8px; font-size: 16px; text-align: right; }
.pf-tune-field:has(.pf-number) .pf-range { grid-column: 1 / -1; }

#fs-personalize, #fs-recommendation { scroll-margin-top: calc(var(--nav-h) + 12px); }
