/* Filters pop-up choices and switch: structure only. Type, colours, sizes and gaps come from Elementor controls. */
.ozo-fchoices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ozo-fopt { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-transform: none; letter-spacing: normal; }
.ozo-fopt:hover, .ozo-fopt:focus { background: none; color: inherit; }
.ozo-fopt:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ozo-fchoices__hint { margin: 0; }
.ozo-fopt { min-width: 0; max-width: 100%; white-space: normal; }
.ozo-fchoices > .ozo-fopt { width: 100%; }
.ozo-fopt__label { min-width: 0; overflow-wrap: anywhere; }

/* The box: an empty square, ticked when chosen (the radio kind: round, with a dot). */
.ozo-fopt__mark { flex: 0 0 auto; box-sizing: border-box; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 3px; position: relative; background: transparent; }
:where(.ozo-fopt--radio) .ozo-fopt__mark { border-radius: 50%; }
.ozo-fopt[aria-checked="true"] .ozo-fopt__mark { background: currentColor; }
.ozo-fopt[aria-checked="true"] .ozo-fopt__mark::after { content: ""; position: absolute; left: 32%; top: 14%; width: 28%; height: 52%; border: solid var(--ozo-tick, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg); box-sizing: border-box; }
.ozo-fopt--radio[aria-checked="true"] .ozo-fopt__mark::after { left: 28%; top: 28%; width: 44%; height: 44%; border: 0; border-radius: 50%; background: var(--ozo-tick, #fff); transform: none; }

/* The switch: a track and a round knob that slides when on. */
.ozo-fopt--switch { --ozo-sw-w: 50px; --ozo-sw-h: 26px; }
.ozo-switch { position: relative; flex: 0 0 auto; box-sizing: border-box; width: var(--ozo-sw-w); height: var(--ozo-sw-h); border: 1px solid currentColor; border-radius: 999px; background: transparent; transition: background-color .2s; }
.ozo-switch__knob { position: absolute; top: 50%; left: 3px; width: calc(var(--ozo-sw-h) - 8px); height: calc(var(--ozo-sw-h) - 8px); transform: translateY(-50%); border-radius: 50%; background: currentColor; transition: transform .2s, background-color .2s; }
.ozo-fopt--switch[aria-checked="true"] .ozo-switch__knob { transform: translate(calc(var(--ozo-sw-w) - var(--ozo-sw-h)), -50%); }
