/* Filter selector (Elementor widget "Filter selector"): defaults only; the widget's style controls win. */
.ozo-fsel { position: relative; display: inline-block; }
/* Button look comes from Elementor's button style controls; only the two-line layout is here. */
.ozo-fsel__button { position: relative; text-align: left; white-space: nowrap; }
.ozo-fsel__button .elementor-button-content-wrapper { flex-direction: column; align-items: flex-start; gap: 0; }
.ozo-fsel__heading { text-transform: capitalize; }
.ozo-fsel__count { font-size: .75em; font-weight: 600; }
.ozo-fsel__sub { font-size: .75em; font-weight: normal; }
.ozo-fsel__button .ozo-fsel__count:not([hidden]) { position: absolute; top: 6px; right: 6px; }
/* Sub-heading visibility */
.ozo-fsel-sub-never .ozo-fsel__sub { display: none; }
.ozo-fsel-sub-open .ozo-fsel__sub { display: none; }
.ozo-fsel-sub-open .ozo-fsel__button.is-open .ozo-fsel__sub { display: block; }

.ozo-fsel__panel {
    position: absolute; top: 100%; left: 0; z-index: 99; width: 480px; max-width: calc(100vw - 32px); margin-top: 0; padding: 20px;
    background: #fff; border-radius: 12px; box-shadow: rgba(0, 0, 0, .2) 0 5px 15px; box-sizing: border-box; white-space: normal;
}
.ozo-fsel__panel[hidden] { display: none; }
.ozo-fsel-align-right .ozo-fsel__panel { left: auto; right: 0; }
.ozo-fsel__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.ozo-fsel__option {
    display: flex; align-items: center; gap: 8px; padding: 5px 0; background: none; border: 0; cursor: pointer;
    font: inherit; color: inherit; text-align: left; min-width: 0;
}
.ozo-fsel__text { font-size: 16px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ozo-fsel__box {
    flex: 0 0 auto; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid #8a949c; border-radius: 4px; position: relative; background: #fff;
}
.ozo-fsel__option[aria-checked="true"] .ozo-fsel__box { background: #275de1; border-color: #275de1; }
.ozo-fsel__option[aria-checked="true"] .ozo-fsel__box::after {
    content: ""; position: absolute; left: 30%; top: 8%; width: 28%; height: 56%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ozo-fsel__option:focus-visible, .ozo-fsel__button:focus-visible { outline: 2px solid #275de1; outline-offset: 2px; }

/* Drop-down entrance: a short fade and settle. Uses the individual translate / scale properties so it never fights the transform the script sets to keep the panel on screen. */
@keyframes ozo-panel-in { from { opacity: 0; translate: 0 -6px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ozo-fsel__panel:not([hidden]) { transform-origin: top center; animation: ozo-panel-in 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { .ozo-fsel__panel:not([hidden]) { animation: none; } }
