/* CatalogFlow Search 0.1.5 — compact magnifier + native product archives. */
.cfs-widget,.cfs-widget *,.cfs-overlay,.cfs-overlay *{box-sizing:border-box}
.cfs-widget{max-width:920px;width:100%;margin:0 0 20px;color:inherit;font-family:inherit}
.cfs-form{margin:0}
.cfs-label{display:block;font-size:14px;font-weight:600;margin:0 0 7px}
.cfs-input-wrap{display:flex;align-items:center;gap:0;border:1px solid #cbd5e1;border-radius:12px;background:#fff;min-height:50px;color:#192539;box-shadow:0 1px 3px #1622390d}
.cfs-input-wrap:focus-within{border-color:#475569;box-shadow:0 0 0 3px #64748b22}
.cfs-magnifier{flex-shrink:0;margin-left:13px;color:#718198}
.cfs-widget input.cfs-input{flex:1;width:100%;min-width:0;min-height:48px;padding:10px 12px!important;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;margin:0!important;color:#192539!important;font:inherit!important;font-size:15px!important}
.cfs-widget .cfs-input::placeholder{color:#8490a3}
.cfs-widget button.cfs-submit{flex:none;margin:5px!important;padding:10px 16px!important;border:0!important;border-radius:9px!important;background:#1e293b!important;color:#fff!important;min-height:38px;font:inherit!important;font-weight:600!important;font-size:14px!important;cursor:pointer}
.cfs-widget button.cfs-submit:hover{background:#334155!important}
.cfs-header-position[hidden]{display:none!important}
.cfs-header-position{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;margin:0 4px;z-index:45;list-style:none!important}
.cfs-header-list-item{list-style:none!important;display:flex;align-items:center;flex:none;margin:0!important;padding:0!important}
.cfs-header-toggle{display:flex!important;align-items:center;justify-content:center;min-width:42px;min-height:42px;width:42px;height:42px;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;padding:8px!important;color:inherit!important;cursor:pointer}
.cfs-header-toggle:hover,.cfs-header-position.cfs-header-open .cfs-header-toggle{background:#f1f5f9!important;color:#1e293b!important}
.cfs-header-toggle:focus-visible{outline:2px solid #64748b!important;outline-offset:2px}
.cfs-header-position>.cfs-widget{display:none;position:absolute;z-index:9999;top:calc(100% + 12px);right:-4px;left:auto;width:min(450px,calc(100vw - 24px));max-width:450px;margin:0;padding:12px;border:1px solid #dce4ef;border-radius:14px;background:#fff;color:#192539;box-shadow:0 20px 55px #101e2d30}
.cfs-header-position.cfs-header-open>.cfs-widget{display:block}
.cfs-header-position .cfs-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cfs-header-position .cfs-input-wrap{min-height:46px}
.cfs-header-position input.cfs-input{min-height:44px}
.cfs-header-fallback{margin:12px auto!important}
@media(max-width:700px){
 .cfs-header-position{flex:0 0 40px;width:40px;min-width:40px;margin:0 2px}
 .cfs-header-position>.cfs-widget{position:fixed!important;top:var(--cfs-header-top,76px);right:12px!important;left:12px!important;width:auto!important;max-width:none!important;padding:12px}
 .cfs-widget button.cfs-submit{padding:9px 11px!important;font-size:13px!important}
}
/* Native WooCommerce results are displayed in the store's ordinary product grid. */
.cfs-archive-search{margin:0 0 25px;width:100%;max-width:900px}
.cfs-archive-search .cfs-widget{margin-bottom:8px}
.cfs-archive-caption{color:#64748b;font-size:14px;margin:0 0 15px}
@media(prefers-reduced-motion:reduce){.cfs-header-toggle{transition:none}}

/* Do not duplicate the expanded header search in the results body.
   No-results templates may render a native WooCommerce or WordPress form. */
body.cfs-results-page main .wp-block-search,
body.cfs-results-page main form.search-form,
body.cfs-results-page main form.woocommerce-product-search {
  display: none !important;
}
.cfs-empty-help{margin:16px 0 25px;padding:14px 18px;background:#f8fafc;border:1px solid #dae3ee;border-radius:12px}
.cfs-empty-help p{margin:0 0 7px;font-size:15px}
.cfs-empty-help .cfs-relaxed-search{font-weight:600;text-decoration:underline}

/* Local intent interpretation is a compact detail of the search box, not a results dropdown. */
.cfs-query-insight[hidden],.cfs-search-tip[hidden]{display:none!important}
.cfs-query-insight{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;margin:9px 3px 0;font-size:12px;line-height:1.5;color:#475569}
.cfs-insight-title{white-space:nowrap;font-weight:600;padding-top:5px}
.cfs-insight-title span{font-size:17px;vertical-align:-2px;color:#475569}
.cfs-insight-tags{display:flex;flex-wrap:wrap;gap:6px;flex:1}
.cfs-insight-chip{border:1px solid #d9e2eb;border-radius:999px;background:#f8fafc;padding:4px 9px;color:#253345;font-weight:500}
.cfs-search-tip{margin:7px 4px 0;font-size:12px;line-height:1.45;color:#64748b}
.cfs-smart-summary{margin:12px 0 24px;padding:15px 17px;border:1px solid #d9e3eb;border-radius:12px;background:#fff;color:#263348;max-width:100%}
.cfs-smart-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:15px}
.cfs-smart-symbol{font-size:22px;font-weight:600;color:#475569;line-height:1}
.cfs-smart-count{margin-left:auto;font-size:13px;font-weight:500;color:#64748b}
.cfs-smart-chips{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}
.cfs-smart-chip{border:1px solid #d9e3eb;border-radius:7px;padding:6px 10px;font-size:13px;color:#334155;background:#f8fafc}
.cfs-smart-chip span{color:#64748b}
.cfs-smart-chip strong{font-weight:650}
.cfs-smart-footnote{margin:5px 0 0!important;font-size:12px;color:#64748b;line-height:1.5}
.cfs-header-position>.cfs-widget{max-width:475px;width:min(475px,calc(100vw - 24px))}
@media(max-width:700px){.cfs-smart-heading{align-items:flex-start}.cfs-smart-count{width:100%;margin-left:29px}.cfs-smart-summary{padding:13px}}


/* Verified catalog feedback below the field, without a product suggestion dropdown. */
.cfs-live-preview[hidden],.cfs-preview-suggestion[hidden]{display:none!important}
.cfs-live-preview{display:flex;align-items:flex-start;flex-direction:column;gap:5px;margin:9px 4px 0;font-size:12px;line-height:1.5;color:#41516a}
.cfs-preview-message{font-weight:600}
.cfs-preview-suggestion{color:inherit!important;text-underline-offset:3px;font-weight:600;overflow-wrap:anywhere}
.cfs-preview-suggestion:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* 0.1.19: animated smart-search cue ONLY on the header icon beside Account/Cart.
   Native form, shop icon, toggle size and header positioning remain unchanged. */
.cfs-header-toggle{position:relative!important;isolation:isolate}
.cfs-header-toggle>.cfs-smart-icon{position:relative;z-index:1;display:block;flex:none;overflow:visible}
.cfs-header-toggle .cfs-smart-spark{color:#0d9f70;transform-box:view-box;transform-origin:24.2px 9.3px;animation:cfs-spark-glow 5.6s ease-in-out infinite}
.cfs-header-toggle::before{content:"";position:absolute;z-index:0;inset:1px;border:1.5px solid #0d9f70;border-radius:50%;opacity:0;pointer-events:none;animation:cfs-smart-pulse 5.6s ease-out infinite}
@keyframes cfs-smart-pulse{0%,9%{opacity:0;transform:scale(.84)}12%{opacity:.46;transform:scale(.84)}31%{opacity:0;transform:scale(1.13)}100%{opacity:0;transform:scale(1.13)}}
@keyframes cfs-spark-glow{0%,10%,39%,100%{opacity:.8;transform:scale(1)}17%{opacity:1;transform:scale(1.16)}25%{opacity:.86;transform:scale(1.01)}}
.cfs-header-position.cfs-header-open .cfs-header-toggle::before{animation:none;opacity:0}
@media(prefers-reduced-motion:reduce){
 .cfs-header-toggle::before,.cfs-header-toggle .cfs-smart-spark{animation:none!important;transition:none!important;transform:none!important}
 .cfs-header-toggle::before{opacity:0!important}
}


/* 0.1.20 — larger header symbol and optional mobile floating search. */
.cfs-header-toggle{padding:6px!important}
.cfs-header-toggle>.cfs-smart-icon{width:30px;height:30px}
.cfs-floating-host[hidden]{display:none!important}
.cfs-header-position.cfs-header-disabled{display:none!important}
@media(max-width:700px){
 .cfs-header-position.cfs-mobile-header-hidden,.cfs-mobile-header-wrapper{display:none!important}
 .cfs-floating-host{position:fixed!important;z-index:999990!important;inset:auto!important;pointer-events:none!important;font-family:inherit!important}
 .cfs-floating-host .cfs-float-toggle{position:fixed!important;z-index:2!important;bottom:calc(20px + env(safe-area-inset-bottom, 0px))!important;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;border:0!important;border-radius:50%!important;background:#165b45!important;color:#fff!important;box-shadow:0 6px 22px #0b302e55!important;padding:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;pointer-events:auto!important}
 .cfs-floating-host.cfs-float-right .cfs-float-toggle{right:calc(18px + env(safe-area-inset-right, 0px))!important;left:auto!important}
 .cfs-floating-host.cfs-float-left .cfs-float-toggle{left:calc(18px + env(safe-area-inset-left, 0px))!important;right:auto!important}
 .cfs-floating-host .cfs-float-toggle>.cfs-smart-icon{width:36px;height:36px;display:block;overflow:visible}
 .cfs-floating-host .cfs-smart-spark{color:#a8f0cb;transform-box:view-box;transform-origin:24.2px 9.3px;animation:cfs-spark-glow 5.6s ease-in-out infinite}
 .cfs-floating-host .cfs-float-toggle::before{content:'';position:absolute;inset:-3px;border:1.5px solid #27ac83;border-radius:50%;opacity:0;pointer-events:none;animation:cfs-smart-pulse 5.6s ease-out infinite}
 .cfs-floating-host.cfs-float-no-pulse .cfs-float-toggle::before,.cfs-floating-host.cfs-float-no-pulse .cfs-smart-spark{animation:none!important}
 .cfs-floating-host .cfs-float-toggle:focus-visible,.cfs-floating-host .cfs-float-close:focus-visible{outline:3px solid #65d7a6!important;outline-offset:3px!important}
 .cfs-floating-host .cfs-float-backdrop{display:none!important;position:fixed!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:#0f172a80!important;pointer-events:auto!important;z-index:3!important;padding:0!important;cursor:default!important}
 .cfs-floating-host .cfs-float-panel{display:none!important;position:fixed!important;z-index:4!important;top:max(12px,env(safe-area-inset-top,0px))!important;left:12px!important;right:12px!important;bottom:auto!important;width:auto!important;max-width:none!important;max-height:min(80dvh,670px)!important;overflow-y:auto!important;background:#fff!important;color:#192539!important;border:1px solid #dce4ef!important;border-radius:16px!important;box-shadow:0 20px 55px #101e2d50!important;padding:46px 14px 14px!important;pointer-events:auto!important}
 .cfs-floating-host .cfs-float-panel>.cfs-widget{display:block!important;position:static!important;top:auto!important;right:auto!important;left:auto!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
 .cfs-floating-host .cfs-float-panel .cfs-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .cfs-floating-host .cfs-float-close{position:absolute!important;top:8px!important;right:9px!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:8px!important;font-size:27px!important;line-height:1!important;background:#eff4f4!important;color:#243b39!important;cursor:pointer!important}
 .cfs-floating-host.cfs-float-open .cfs-float-backdrop{display:block!important}
 .cfs-floating-host.cfs-float-open .cfs-float-panel{display:block!important}
 .cfs-floating-host.cfs-float-open .cfs-float-toggle{visibility:hidden!important}
 body.woocommerce-cart .cfs-floating-host.cfs-float-hide-checkout,
 body.woocommerce-checkout .cfs-floating-host.cfs-float-hide-checkout{display:none!important}
}
@media(min-width:701px){.cfs-floating-host{display:none!important}}
@media(prefers-reduced-motion:reduce){
 .cfs-floating-host .cfs-float-toggle::before,.cfs-floating-host .cfs-smart-spark{animation:none!important;transition:none!important}
 .cfs-floating-host .cfs-float-toggle::before{opacity:0!important}
}
