/* Reuses the existing detail theme. No page-wide font or button overrides. */
.fkk-customizer{margin:0 0 24px;min-width:0}
.fkk-customizer [hidden]{display:none!important}
.fkk-custom-choice{border:0;margin:0;padding:0;min-width:0}
.fkk-custom-choice legend{padding:0;margin-bottom:11px}
.fkk-custom-switch,.fkk-print-mode{display:flex;gap:5px;padding:5px;border-radius:6px;background:#f4f4f4}
.fkk-custom-switch button,.fkk-print-mode button{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:43px;padding:8px 12px;border-radius:4px;color:#777;font:500 12px/1.4 Poppins,Arial,sans-serif;transition:background .16s,color .16s,box-shadow .16s}
.fkk-custom-switch button[aria-pressed=true],.fkk-print-mode button[aria-pressed=true]{background:#fff;color:#111;box-shadow:0 2px 6px #00000012}
.fkk-custom-switch svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5;fill:none}
.fkk-custom-panel{padding-top:18px}
.fkk-print-preview{border:1px solid #e5e5e5;border-radius:6px;overflow:hidden;margin-bottom:16px}
.fkk-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#fff;font-size:9px;font-weight:600;letter-spacing:.6px}
.fkk-preview-tag{font-size:9px;font-weight:400;color:#777;letter-spacing:0;white-space:nowrap}
.fkk-preview-stage{position:relative;background:#f2f2f2;aspect-ratio:1}
.fkk-preview-stage canvas{display:block;width:100%;height:100%}
.fkk-preview-loading{position:absolute;inset:0;display:grid;place-items:center;color:#777;font-size:12px}
.fkk-print-mode{margin-bottom:14px}
.fkk-player-field,.fkk-own-fields label{display:block;font-size:11px;font-weight:500;color:#333}
.fkk-field-charge{margin-left:5px;font-size:10px;color:#777;font-weight:400}
.fkk-player-field select,.fkk-own-fields input,.fkk-patch-picker select{width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid #e6e6e6;border-radius:6px;background:#f5f5f5;color:#1a1a1a;font:400 13px/1.5 Poppins,Arial,sans-serif}
.fkk-player-field select{margin-top:7px}
.fkk-own-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.fkk-own-fields input{margin-top:7px;text-transform:uppercase}
.fkk-own-fields input::placeholder{color:#aaa}
.fkk-own-fields small{display:block;margin-top:5px;font-size:9px;font-weight:400;color:#888}
.fkk-patch-label{display:flex;justify-content:space-between;gap:12px;margin:20px 0 9px;font-size:11px;font-weight:600;letter-spacing:.3px}
.fkk-patch-label span{font-size:10px;font-weight:400;color:#888;letter-spacing:0}
.fkk-patch-picker{display:flex;align-items:center;gap:10px}
.fkk-patch-picker select{flex:1;width:0}
.fkk-patch-thumb{width:46px;height:46px;object-fit:contain;border:1px solid #eee;border-radius:4px;padding:4px}
.fkk-patch-charge{margin-top:5px;font-size:10px;color:#777}
.fkk-custom-total{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;padding-top:13px;border-top:1px solid #eee;font-size:11px;color:#666}
.fkk-custom-total strong{font-weight:600;color:#111;font-size:12px}
.fkk-custom-return{margin-top:10px;font-size:10px;color:#888;line-height:1.6;font-weight:400}
.fkk-custom-return a{text-decoration:underline;text-underline-offset:2px}
.fkk-custom-error{margin-top:12px;font-size:11px;color:#b02525;line-height:1.5}
.fkk-preview-unavailable{margin-bottom:14px;font-size:11px;line-height:1.6;color:#777;font-weight:400}
@media(max-width:767px){
 .fkk-customizer{margin-bottom:22px}
 .fkk-custom-switch button,.fkk-print-mode button{font-size:11px;min-height:42px}
 .fkk-preview-heading{font-size:9px;padding:10px 12px}
 .fkk-player-field select,.fkk-own-fields input,.fkk-patch-picker select{font-size:16px;min-height:46px}
 .fkk-field-charge{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.fkk-custom-switch button,.fkk-print-mode button{transition:none}}

.fkk-preview-retry{margin-top:7px;padding:0;color:#111;font-size:11px;text-decoration:underline;text-underline-offset:3px}

/* Desktop preview stays compact inside the full-width options card. */
@media(min-width:1025px){
 .fkk-print-preview .fkk-preview-stage{width:clamp(220px,60%,320px);max-width:100%;margin:14px auto;border-radius:6px;overflow:hidden}
}

/* A single selection surface slides between the two customisation choices. */
.fkk-custom-switch{position:relative;isolation:isolate}
.fkk-custom-switch::before{content:'';position:absolute;z-index:0;left:5px;top:5px;bottom:5px;width:calc((100% - 15px)/2);border-radius:4px;background:#111;transform:translateX(0);transition:transform .28s cubic-bezier(.22,.68,0,1),background-color .28s ease;pointer-events:none}
.fkk-custom-switch[data-custom-active=true]::before{transform:translateX(calc(100% + 5px));background:#0e42de}
.fkk-custom-switch button{position:relative;z-index:1;background:transparent;box-shadow:none;transition:color .2s ease}
.fkk-custom-switch button[aria-pressed=true]{background:transparent;color:#fff;box-shadow:none}
@media(prefers-reduced-motion:reduce){.fkk-custom-switch::before,.fkk-custom-switch button{transition:none}}

.fkk-player-field>.fkk-option-select{margin-top:7px}
.fkk-patch-picker>.fkk-option-select{flex:1;min-width:0;width:0}

/* Both choice rows use the same compact height and moving selection surface. */
.fkk-custom-switch,.fkk-print-mode{padding:3px;gap:3px}
.fkk-custom-switch button,.fkk-print-mode button{min-height:26px;padding:3px 9px}
.fkk-custom-switch::before{top:3px;bottom:3px;left:3px;width:calc((100% - 9px)/2)}
.fkk-custom-switch[data-custom-active=true]::before{transform:translateX(calc(100% + 3px))}
.fkk-print-mode{position:relative;isolation:isolate}
.fkk-print-mode::before{content:'';position:absolute;z-index:0;left:3px;top:3px;bottom:3px;width:calc(100% - 6px);border-radius:4px;background:#fff;box-shadow:0 2px 6px #00000012;transform:translateX(0);transition:transform .28s cubic-bezier(.22,.68,0,1);pointer-events:none}
.fkk-print-mode.has-two-modes::before{width:calc((100% - 9px)/2)}
.fkk-print-mode.has-two-modes[data-active-mode=custom]::before{transform:translateX(calc(100% + 3px))}
.fkk-print-mode button{position:relative;z-index:1;background:transparent;box-shadow:none}
.fkk-print-mode button[aria-pressed=true]{background:transparent;box-shadow:none}
@media(prefers-reduced-motion:reduce){.fkk-print-mode::before{transition:none}}

.fkk-customizer :is(.fkk-field-charge,.fkk-patch-charge,.fkk-custom-total strong){color:var(--blue)}

/* Slightly taller compact choices, with a blue print-mode selection. */
.fkk-custom-switch button,.fkk-print-mode button{min-height:32.4px}
.fkk-print-mode::before{background:var(--blue);box-shadow:none}
.fkk-print-mode button[aria-pressed=true]{color:#fff}

.fkk-player-field>.fkk-option-control{margin-top:7px}
.fkk-patch-picker>.fkk-option-control{flex:1;min-width:0;width:0}
.fkk-input-control{display:block;position:relative;margin-top:7px}
.fkk-own-fields .fkk-input-control input{margin-top:0;padding-right:38px}
.fkk-input-clear{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:4px;color:#888;background:transparent}
.fkk-input-clear:hover{background:#e8e8e8;color:#111}
.fkk-input-clear svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;fill:none}

/* Floating font choices use only complete, genuinely distinct template pairs. */
.fkk-font-switch{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);display:flex;width:228px;max-width:calc(100% - 24px);padding:4px;gap:4px;border:1px solid #d2d2d2;border-radius:12px;background:#f5f5f5;box-shadow:0 4px 12px #0002;isolation:isolate}
.fkk-font-switch:before{content:'';position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc((100% - 12px)/2);border-radius:9px;background:white;box-shadow:0 1px 5px #0002;transition:transform .25s cubic-bezier(.22,.68,0,1)}
.fkk-font-switch[data-active=club]:before{transform:translateX(calc(100% + 4px))}
.fkk-font-switch button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;min-height:34px;padding:5px 7px;color:#777;font:600 13px/1.3 Poppins,Arial,sans-serif;transition:color .2s}
.fkk-font-switch button[aria-pressed=true]{color:#151515}
.fkk-font-switch img{width:20px;height:20px;object-fit:contain;flex:none}
.fkk-custom-disclaimer{display:grid;gap:10px;margin-top:14px;padding:13px 14px;border:1px solid #e5e5e5;border-radius:var(--product-window-radius);background:#f8f8f8;color:#666;font:400 11px/1.6 Poppins,Arial,sans-serif}
.fkk-custom-disclaimer p{display:flex;align-items:flex-start;gap:9px}
.fkk-custom-disclaimer svg{flex:none;width:17px;height:17px;margin-top:1px;fill:none;stroke:#151515;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fkk-custom-disclaimer strong{font-weight:600;color:#222}
.fkk-custom-disclaimer a{text-decoration:underline;text-underline-offset:2px}
@media(prefers-reduced-motion:reduce){.fkk-font-switch:before,.fkk-font-switch button{transition:none}}

/* Custom fields and explanatory content use their grey fill without an outline. */
.fkk-customizer .fkk-option-trigger,
.fkk-customizer .fkk-option-select[open]>.fkk-option-trigger,
.fkk-customizer .fkk-own-fields input,
.fkk-customizer .fkk-player-field select,
.fkk-customizer .fkk-patch-picker select,
.fkk-customizer .fkk-custom-disclaimer{border-color:transparent}

/* Respond to the customiser's available space, rather than the monitor width. */
.fkk-customizer{container:customizer / inline-size}
.fkk-custom-controls{min-width:0}
@container customizer (min-width:560px){
 .fkk-custom-panel:has(>.fkk-print-preview:not([hidden])){
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  column-gap:20px;
  align-items:start
 }
 .fkk-custom-panel>.fkk-print-preview{grid-column:1;grid-row:1;margin-bottom:0}
 .fkk-custom-panel>.fkk-custom-controls{grid-column:2;grid-row:1}
 .fkk-custom-panel>.fkk-print-preview .fkk-preview-stage{width:100%;max-width:320px;margin:0 auto;border-radius:0}
 .fkk-custom-total,.fkk-custom-disclaimer,.fkk-custom-error{grid-column:1 / -1}
}
