.cgf{--cgf-red:#d5202e;--cgf-ink:#253041;position:relative;color:var(--cgf-ink);font-family:'Poppins','Kanit',sans-serif;isolation:isolate;z-index:20}.cgf *{box-sizing:border-box}.cgf input,.cgf button,.cgf select{font-family:inherit}.cgf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:18px 22px;background:#f7f8fa;border-radius:7px}.cgf-heading{font-size:16px;margin-right:4px;white-space:nowrap}.cgf-dropdown{position:relative;margin:0;padding:0;border:0}.cgf-dropdown summary{display:flex;align-items:center;gap:8px;padding:9px 0;list-style:none;font-size:13px;cursor:pointer;user-select:none;color:var(--cgf-ink);font-weight:400}.cgf-dropdown summary::-webkit-details-marker{display:none}.cgf-chevron{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px;transition:transform .15s}.cgf-dropdown[open] .cgf-chevron{transform:rotate(225deg);margin-bottom:0}.cgf-count:empty{display:none}.cgf-count{background:#fff0f1;color:#b61523;border-radius:10px;font-size:11px;padding:0 5px}.cgf-panel{position:absolute;top:100%;left:0;z-index:50;min-width:230px;width:max-content;max-width:min(340px,90vw);max-height:420px;overflow:auto;background:white;border:1px solid #e5e7eb;border-radius:7px;box-shadow:0 12px 28px #1824361c;padding:14px}.cgf-option{display:flex;align-items:flex-start;gap:9px;padding:7px 2px;cursor:pointer;font-size:12px;line-height:1.6;font-weight:400;color:var(--cgf-ink);white-space:normal;margin:0;max-width:300px}.cgf-option input[type=checkbox]{appearance:auto!important;accent-color:var(--cgf-red);width:15px!important;height:15px!important;min-width:15px;flex:0 0 15px;margin:3px 0 0!important;padding:0;border:1px solid #ccd3df;border-radius:3px}.cgf-sort{margin-left:auto;margin-bottom:0}.cgf-sort select{font-size:12px;background:#fff;border:1px solid #d6dbe3;border-radius:7px;padding:9px 28px 9px 12px;width:auto;min-width:110px;max-width:200px;color:var(--cgf-ink)}.cgf-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:13px 0}.cgf .cgf-actions button{background:var(--cgf-red);color:white;border:0;border-radius:5px;font-size:13px;padding:9px 18px;cursor:pointer}.cgf-reset{color:var(--cgf-ink);font-size:12px;text-decoration:underline}.cgf-muted{font-size:12px;color:#687384}.cgf-colors{display:grid;grid-template-columns:repeat(4,42px);gap:13px 12px;min-width:0;padding:24px 18px;max-height:none;overflow:visible}.cgf-swatch{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0}.cgf .cgf-swatch input[type=checkbox]{position:absolute;opacity:0;inset:0;width:100%!important;height:100%!important;margin:0!important;cursor:pointer;z-index:2}.cgf-dot{display:grid;place-items:center;width:32px;height:32px;background:var(--swatch);border:1px solid #00000018;border-radius:50%;position:relative}.cgf-swatch input:checked+.cgf-dot{outline:2px solid #253041;outline-offset:3px}.cgf-swatch input:checked+.cgf-dot::after{content:'✓';color:var(--tick);font-size:21px;font-weight:700;line-height:1}.cgf-tip{display:none;position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);background:#303030;color:white;padding:6px 9px;border-radius:4px;font-size:11px;white-space:nowrap;z-index:100;pointer-events:none;box-shadow:0 2px 6px #0003}.cgf-tip::after{content:'';position:absolute;left:50%;top:100%;margin-left:-4px;border:4px solid transparent;border-top-color:#303030}.cgf-swatch:hover .cgf-tip,.cgf-swatch:focus-within .cgf-tip{display:block}.cgf :focus-visible{outline:2px solid #2458a9;outline-offset:4px}.cgf-swatch input:focus-visible+.cgf-dot{outline:3px solid #2458a9;outline-offset:4px}.cgf-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:767px){.cgf-bar{padding:14px;gap:4px 16px}.cgf-heading{flex:0 0 100%}.cgf-dropdown{position:static}.cgf-panel{left:0;right:0;top:auto;width:100%;max-width:100%;max-height:50vh}.cgf-colors{grid-template-columns:repeat(auto-fit,42px);justify-content:start;overflow:visible;max-height:none}.cgf-sort{margin-left:0}.cgf-actions{gap:12px}.cgf-actions>.cgf-muted{flex-basis:100%}}@media(prefers-reduced-motion:reduce){.cgf-chevron{transition:none}}
/* v1.1: auto-apply AJAX toolbar */
.cgf-bar>.cgf-reset{margin-left:auto;white-space:nowrap;font-size:12px;text-decoration:none;color:#687384}.cgf-bar>.cgf-reset:hover{color:var(--cgf-red)}.cgf-bar>.cgf-reset:not([hidden])+.cgf-sort{margin-left:0}.cgf-reset[hidden],.cgf-error[hidden]{display:none!important}.cgf-loading{font-size:11px;color:#687384;white-space:nowrap}.cgf-loading:empty{display:none}.cgf-busy{pointer-events:none}.cgf-error{font-size:12px;color:#a52828;margin:8px 0 0;line-height:1.7}.cgf-error button{border:0;border-radius:4px;background:#fce8ea;color:#a52828;padding:4px 9px;cursor:pointer;font-size:12px}.cgf-error a{margin-left:12px;color:inherit;text-decoration:underline}@media(prefers-reduced-motion:reduce){.cgf-busy{transition:none}}@media(max-width:767px){.cgf-bar>.cgf-reset{margin-left:0}}
/* 1.1.1: two-line option labels matching the supplied copy */
.cgf-panel:not(.cgf-colors) .cgf-option>span{white-space:pre-line}.cgf-panel:not(.cgf-colors){min-width:200px;max-width:min(300px,90vw)}

/* 1.2.1: scoped result styling, resilient to Elementor/theme button rules. */
.cgf-results.cgf-results{font-family:'Poppins','Kanit',sans-serif;color:#6b7280;font-size:16px;font-weight:400;line-height:1.5;text-align:left}
.cgf-results.cgf-results .cgf-count{display:block;background:transparent;border:0;border-radius:0;padding:0;margin:0;color:#6b7280;font:inherit;letter-spacing:normal}
.cgf-results.cgf-results .cgf-chips{display:flex;flex-flow:row wrap;align-items:center;gap:8px;margin:20px 0 0;padding:0}
.cgf-results.cgf-results .cgf-chips:empty{display:none}
.cgf-results.cgf-results .cgf-chips>button{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;position:static;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;box-sizing:border-box!important;min-width:0!important;min-height:32px!important;max-width:100%;height:auto!important;margin:0!important;padding:5px 12px!important;border:0!important;border-radius:999px!important;background:#eceff3!important;background-image:none!important;color:#374151!important;font-family:'Poppins','Kanit',sans-serif!important;font-size:14px!important;font-weight:500!important;font-style:normal!important;line-height:22px!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;box-shadow:none!important;text-shadow:none!important;white-space:normal;text-align:left;cursor:pointer;vertical-align:middle}
.cgf-results.cgf-results .cgf-chips>button.cgf-clear{flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;border:1px solid #6b7280!important;background:#fff!important;color:#6b7280!important;margin-right:0!important}
.cgf-results.cgf-results .cgf-chips>button svg{display:block!important;flex:0 0 14px!important;width:14px!important;height:14px!important;max-width:none!important;color:#6b7280;pointer-events:none}
.cgf-results.cgf-results .cgf-chips>button::before,.cgf-results.cgf-results .cgf-chips>button::after{content:none!important}
.cgf-results.cgf-results .cgf-chips>button:hover{background:#e1e5eb!important;color:#253041!important}
.cgf-results.cgf-results .cgf-chips>button:focus-visible{outline:2px solid #2458a9!important;outline-offset:3px}
.cgf-sort select{max-width:250px}.cgf-panel:not(.cgf-colors){max-width:min(430px,90vw)}.cgf-option{max-width:390px}
@media(max-width:767px){.cgf-results.cgf-results{font-size:14px}.cgf-results.cgf-results .cgf-chips{margin-top:14px}.cgf-results.cgf-results .cgf-chips>button{font-size:13px!important}}

/* 1.2.2: custom sort menu; the select remains for form state and no-JS fallback. */
.cgf .cgf-sort-menu{display:none}
.cgf[data-cgf-ready] .cgf-sort>select{display:none!important}
.cgf[data-cgf-ready] .cgf-sort-menu{display:block;position:relative;margin:0;border:0;padding:0}
.cgf .cgf-sort-menu>summary{display:flex!important;align-items:center;justify-content:space-between;gap:16px;list-style:none!important;cursor:pointer;user-select:none;min-height:40px;padding:9px 16px;border:1px solid #cfd4dc;border-radius:8px;background:#fff;color:#253041;font-family:'Poppins','Kanit',sans-serif;font-size:14px;font-weight:400;line-height:20px;white-space:nowrap}
.cgf .cgf-sort-menu>summary::-webkit-details-marker{display:none}
.cgf .cgf-sort-menu[open]>summary .cgf-chevron{transform:rotate(225deg);margin-bottom:0}
.cgf .cgf-sort-options{position:absolute;right:0;top:calc(100% + 6px);z-index:60;width:max-content;min-width:100%;padding:10px;background:#fff;border:1px solid #cfd4dc;border-radius:8px;box-shadow:0 4px 14px #2530410d}
.cgf .cgf-sort-options>button{appearance:none!important;display:block!important;width:100%!important;margin:0!important;padding:10px 8px!important;border:0!important;border-radius:8px!important;background:transparent!important;background-image:none!important;color:#374151!important;font-family:'Poppins','Kanit',sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:20px!important;text-align:left!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important;white-space:nowrap;cursor:pointer}
.cgf .cgf-sort-options>button[aria-pressed=true],.cgf .cgf-sort-options>button:hover{background:#f3f4f6!important}
.cgf .cgf-sort-options>button::before,.cgf .cgf-sort-options>button::after{content:none!important}
.cgf .cgf-sort-options>button:focus-visible{outline:2px solid #2458a9;outline-offset:-2px}

/* 1.2.3: loading indicator belongs to the product grid. */
.cgf-loading{display:none!important}
.elementor-widget-loop-grid.cgf-busy{position:relative!important;min-height:140px;opacity:1!important}
.elementor-widget-loop-grid.cgf-busy>:not(.cgf-grid-loader){opacity:.4;transition:opacity .15s}
.elementor-widget-loop-grid>.cgf-grid-loader{position:absolute!important;inset:0!important;z-index:100;display:flex!important;align-items:center;justify-content:center;pointer-events:auto;cursor:progress;background:transparent}
.cgf-grid-loader>.cgf-spinner{display:block!important;flex:0 0 42px;width:42px!important;height:42px!important;box-sizing:border-box;border:3px solid #dce1e7;border-top-color:#253041;border-radius:50%!important;animation:cgf-spin .75s linear infinite}
@keyframes cgf-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cgf-grid-loader>.cgf-spinner{animation-duration:2s}.elementor-widget-loop-grid.cgf-busy>:not(.cgf-grid-loader){transition:none}}
