/* FreakyNuts Fork Finder v1.4.2 - clean neutral look, privacy-minimal feedback. */
.fnff{--fn-ink:#191919;--fn-accent:#d0a64b;--fn-line:#dfddd8;color:var(--fn-ink);font-family:inherit;max-width:1260px;width:100%;margin:20px auto;padding:24px;border:1px solid var(--fn-line);border-radius:14px;background:#fff;box-shadow:0 12px 32px #0000000b}
.fnff,.fnff *{box-sizing:border-box}
.fnff-head{margin-bottom:24px}
.fnff-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:#996e23;text-transform:uppercase}
.fnff h2{font-size:clamp(26px,4vw,41px);line-height:1.1;margin:10px 0}
.fnff h3{font-size:clamp(19px,2vw,25px);line-height:1.25;margin:9px 0}
.fnff p{color:#535353;line-height:1.5}
.fnff-grid{display:grid;grid-template-columns:minmax(300px,.7fr) minmax(0,1.3fr);gap:22px;align-items:start}
.fnff-form,.fnff-result{min-width:0;width:100%;padding:23px;background:#fff;border:1px solid var(--fn-line);border-radius:15px}
.fnff-field{display:block;margin-bottom:19px}
.fnff-field strong{display:block;font-size:14px;margin-bottom:8px}
.fnff-field select,.fnff-field input,.fnff-feedback select{display:block;width:100%;max-width:100%;min-width:0;min-height:50px;border:1px solid #ccd6ca;background:#fff;color:#17221e;border-radius:9px;padding:10px 12px;font-size:16px;line-height:1.4}
.fnff-field input:not([hidden]){margin-top:9px}
.fnff .fnff-other[hidden]{display:none!important}
.fnff-hint{margin:-12px 0 20px}
.fnff-hint a{font-size:13px;color:#346b42;text-decoration:underline}
.fnff-hint span{font-size:12px;color:#647167}
.fnff .fnff-hint [hidden]{display:none!important}
.fnff-consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;color:#58685b;margin:15px 0}
.fnff-consent input{margin-top:4px;flex:0 0 auto}
.fnff-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 18px;border:0;border-radius:9px;background:#1b1b1b;color:#fff!important;font-weight:750;cursor:pointer;text-align:center;text-decoration:none!important;font-size:16px}
.fnff-btn:hover,.fnff-btn:focus-visible{background:#3c3020}
.fnff-form>.fnff-btn{width:100%}
.fnff-error{color:#ac3030!important;font-weight:600;font-size:13px}
.fnff-result{scroll-margin-top:95px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.fnff-result.fnff-result-highlight{animation:fnff-reveal 1.1s ease-out}
@keyframes fnff-reveal{0%{border-color:#5b9a53;box-shadow:0 0 0 5px #83bd6b55}100%{border-color:var(--fn-line);box-shadow:0 0 0 0 transparent}}
.fnff-empty{text-align:center;padding:45px 16px}
.fnff-empty span{font-size:40px;color:#86b65c}
.fnff-empty p{max-width:450px;margin:8px auto 20px}
.fnff-result-head{margin-bottom:18px}
.fnff-result-head h3{margin:5px 0 4px;overflow-wrap:anywhere}
.fnff-result-head p{font-size:12px;margin:0}
.fnff-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fnff-product{min-width:0;display:flex;flex-direction:column;padding:12px;border:1px solid #dfe7dc;border-radius:12px;background:#fff}
.fnff-product img{width:100%;height:125px;object-fit:contain;background:#f6f8f5;border-radius:9px}
.fnff-product-info{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.fnff-product h4{font-size:15px;line-height:1.3;overflow-wrap:anywhere;margin:12px 0 8px;color:#17221e}
.fnff-tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px}
.fnff-tag{display:inline-block;font-size:11px;font-weight:700;padding:4px 8px;color:#2a5034;background:#e8f3e2;border-radius:7px}
.fnff-contents{font-size:12px;margin:3px 0 8px}
.fnff-price{font-weight:800;font-size:20px;line-height:1.3;margin-top:auto;color:#17221e}
.fnff-price .woocommerce-Price-amount{font-weight:800}
.fnff-price del{font-size:13px;font-weight:400;color:#7d8880}
.fnff-price ins{text-decoration:none}
.fnff-stock{font-size:12px;font-weight:700;margin:7px 0 10px}
.fnff-stock.instock{color:#237745}.fnff-stock.backorder{color:#905d0a}.fnff-stock.outofstock{color:#a43838}
.fnff-product .fnff-btn,.fnff-product-link{width:100%;text-align:center;min-height:46px;margin-top:auto}
.fnff-product-link{display:flex;align-items:center;justify-content:center;border:1px solid #879d8d;border-radius:9px;color:#244834!important;font-weight:700;text-decoration:none!important;padding:10px}
.fnff-product-link:hover{background:#f1f6ef}
.fnff-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;font-size:13px}
.fnff-pagination button{border:1px solid #b3c4b5;background:#f8faf7;border-radius:8px;min-height:43px;padding:9px 12px;cursor:pointer;color:#23472c;font-size:13px;font-weight:700}
.fnff-pagination button:disabled{opacity:.38;cursor:not-allowed}
.fnff-warning{background:#fff8e8;border:1px solid #e2c988;border-radius:8px;padding:12px;font-size:13px;line-height:1.45;margin-bottom:15px;color:#684c1d}
.fnff-feedback{margin-top:20px;padding:20px;background:#f5f4f1;border:1px solid #e7e3db;border-radius:10px}
.fnff-feedback[hidden]{display:none!important}
.fnff-feedback select{max-width:460px;margin:12px 0}
.fnff-feedback button{background:#1b1b1b;color:#fff;border:1px solid #1b1b1b;padding:10px 16px;min-height:45px;border-radius:5px;cursor:pointer}
.fnff-feedback button:disabled{opacity:.65;cursor:wait}
.fnff-feedback-note{font-size:12px;line-height:1.4;margin:10px 0 0}.fnff-feedback-note a{color:#725118;text-decoration:underline;text-underline-offset:2px}
.fnff-feedback [data-feedback-message]{font-size:13px;margin:8px 0 0}
.fnff-upsells{padding:15px;border:1px solid #dce4db;margin:20px 0;border-radius:12px}
@media(max-width:880px){
 .fnff{margin:12px auto;padding:14px;border-radius:15px}
 .fnff-head{margin-bottom:18px}
 .fnff-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .fnff-form,.fnff-result{padding:18px}
 .fnff-result:not(.fnff-result-ready){display:none}
 .fnff-result{scroll-margin-top:85px}
 .fnff-products{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fnff-empty{padding:20px 12px}
}
@media(max-width:580px){
 .fnff{padding:10px}
 .fnff-form,.fnff-result{padding:15px}
 .fnff h2{font-size:clamp(26px,7vw,34px)}
 .fnff-products{grid-template-columns:minmax(0,1fr)}
 .fnff-product{display:grid;grid-template-columns:106px minmax(0,1fr);gap:10px;padding:11px}
 .fnff-product img{width:106px;height:106px;grid-column:1}
 .fnff-product-info{grid-column:2}
 .fnff-product h4{font-size:14px;margin:0 0 7px}
 .fnff-price{font-size:18px;margin-top:4px}
 .fnff-product .fnff-btn,.fnff-product-link{grid-column:1/-1;min-height:47px}
 .fnff-pagination button{padding:9px 8px;font-size:12px}
 .fnff-tag{font-size:10px}
 .fnff-feedback{padding:16px}
}
@media(max-width:365px){.fnff-product{grid-template-columns:84px minmax(0,1fr)}.fnff-product img{width:84px;height:84px}.fnff-product h4{font-size:13px}}
@media(prefers-reduced-motion:reduce){.fnff-result.fnff-result-highlight{animation:none}.fnff-result{transition:none}}

/* Clear success confirmation, replacing the form only after the server confirms storage. */
.fnff-feedback [data-feedback-form][hidden],.fnff-feedback [data-feedback-success][hidden]{display:none!important}
.fnff-feedback-success{display:flex;align-items:flex-start;gap:15px;padding:10px 0}
.fnff-feedback-success-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#1e673d;color:#fff;font-size:26px;font-weight:800}
.fnff-feedback-success h3{margin:0 0 10px;font-size:clamp(22px,3vw,29px);line-height:1.2}
.fnff-feedback-success p{color:#2f4a38;font-size:15px;line-height:1.55;margin:0 0 9px}
.fnff-feedback-success a{color:#174a2c;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.fnff-feedback-success a:hover,.fnff-feedback-success a:focus-visible{color:#0b2e18;text-decoration-thickness:2px}
.fnff-feedback [data-feedback-message]:not(:empty){font-size:13px;font-weight:600;color:#7c3434}
@media(max-width:580px){.fnff-feedback-success{gap:10px}.fnff-feedback-success-icon{flex-basis:36px;width:36px;height:36px;font-size:21px}.fnff-feedback-success p{font-size:14px}}

/* v1.3: put the brand/model/year selector above ALL matching products. */
.fnff-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.fnff-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;margin-bottom:17px}
.fnff-choice{min-width:0}
.fnff-choice .fnff-field{margin:0}
.fnff-choices .fnff-hint{margin:10px 0 0;line-height:1.5}
.fnff-form>.fnff-btn{width:auto;min-width:280px}
.fnff-result:not(.fnff-result-ready){display:none}
.fnff-result{margin-top:0}
.fnff-products{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:16px}
.fnff-product{padding:16px}
.fnff-product img{height:175px}
.fnff-product h4{font-size:16px}
.fnff-admin-notice{margin-top:17px;border:1px dashed #b7c5b6;background:#f7faf5;border-radius:10px;padding:14px;font-size:13px;color:#334838}
.fnff-admin-notice summary{font-weight:800;cursor:pointer}
.fnff-admin-notice ul{padding-left:20px;line-height:1.7;overflow-wrap:anywhere}
.fnff-admin-notice a{color:#235a32;font-weight:700;text-decoration:underline}
@media(max-width:880px){
 .fnff-choices{grid-template-columns:minmax(0,1fr);gap:15px}
 .fnff-form>.fnff-btn{width:100%;min-width:0}
 .fnff-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
 .fnff-choices{gap:13px}
 .fnff-products{grid-template-columns:minmax(0,1fr)}
 .fnff-product img{height:106px}
}

/* v1.4.1: optional model year, visible feedback and custom requests. */
.fnff-custom-request-info{background:#fff8e7;border:1px solid #e6ca8c;border-radius:9px;padding:13px;font-size:13px;color:#684e23!important;margin:4px 0 14px}
.fnff-custom-request-info[hidden]{display:none!important}
.fnff-custom-request-status{font-size:13px;color:#2c6b41!important;font-weight:700;margin:10px 0 0;min-height:0}
.fnff-custom-request-status:empty{display:none}
.fnff-years{font-size:13px;font-weight:800;color:#295b3a!important;margin:7px 0 8px}
.fnff-feedback{display:block;max-width:100%}
@media(max-width:580px){.fnff-custom-request-info{font-size:12px}}

/* v1.4.3: keep the Finder within its actual Gutenberg parent container.
   No forced 100vw positioning or transforms: prevents desktop overflow
   in both narrow and full-width sections. */
.fnff{width:100%;max-width:1120px;margin:20px auto;transform:none}
@media(max-width:880px){.fnff{max-width:100%;margin:12px auto}}
