.cycf-filter {
    --cycf-border: #e4e4e4;
    --cycf-panel: #F7F7F7;
    --cycf-hover: #eeeeee;
    --cycf-text: #444;
    --cycf-muted: #777;
    position: relative;
    width: 100%;
    padding: 0 0 20px;
    font-family: inherit;
    color: var(--cycf-text);
    overflow: visible;
}

.cycf-filter-bar {
    display: grid;
    grid-template-columns: repeat(var(--cycf-columns), minmax(0, 1fr));
    width: 100%;
    border: 1px solid var(--cycf-border);
    background: var(--cycf-panel) !important;
    overflow: visible;
}

.cycf-summary-cell,
.cycf-group-front {
    position: relative;
    min-width: 0;
    min-height: 58px;
    border-right: 1px solid var(--cycf-border);
    background: #F7F7F7 !important;
}

.cycf-group-front:last-child {
    border-right: 0;
}

.cycf-summary-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
}

.cycf-count-label {
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.cycf-filter button.cycf-clear {
    appearance: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #F7F7F7 !important;
    color: #555 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none !important;
    cursor: pointer;
}

.cycf-filter button.cycf-clear:hover,
.cycf-filter button.cycf-clear:focus-visible {
    background: var(--cycf-hover) !important;
    color: #222 !important;
}

.cycf-groups {
    display: contents;
}

.cycf-filter button.cycf-group-toggle {
    appearance: none;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #F7F7F7 !important;
    color: #555 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-shadow: none !important;
    text-transform: none;
    cursor: pointer;
}

.cycf-filter button.cycf-group-toggle:hover,
.cycf-filter button.cycf-group-toggle:focus-visible,
.cycf-group-front.has-selection .cycf-group-toggle {
    background: #F7F7F7 !important;
    color: #222 !important;
}

.cycf-chevron {
    display: inline-flex;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: transform .18s ease;
}

.cycf-chevron svg {
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
}

.cycf-chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cycf-group-toggle[aria-expanded="true"] .cycf-chevron {
    transform: rotate(180deg);
}

.cycf-options {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 1px);
    left: -1px;
    width: calc(100% + 2px);
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    padding: 7px 0;
    border: 1px solid #d7d7d7;
    background: #F7F7F7 !important;
    box-shadow: 0 7px 14px rgba(0, 0, 0, .10);
}

.cycf-filter button.cycf-option {
    appearance: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 20px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #F7F7F7 !important;
    color: #444 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-shadow: none !important;
    text-transform: none;
    cursor: pointer;
}

.cycf-filter button.cycf-option:hover,
.cycf-filter button.cycf-option:focus-visible {
    background: var(--cycf-hover) !important;
    color: #111 !important;
}

.cycf-filter button.cycf-option[aria-pressed="true"] {
    background: #F7F7F7 !important;
    color: #111 !important;
    font-weight: 600;
}

.cycf-option-check {
    visibility: hidden;
    color: #333;
    font-size: 13px;
}

.cycf-option[aria-pressed="true"] .cycf-option-check {
    visibility: visible;
}

.cycf-tools-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
    min-height: 66px;
    padding-top: 14px;
}

.cycf-sort-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    border: 0;
}

.cycf-sort-group legend {
    float: left;
    width: auto;
    margin: 0 4px 0 0;
    padding: 0;
    color: #222;
    font-size: 17px;
    font-weight: 400;
}

.cycf-sort-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #555;
    font-size: 16px;
    cursor: pointer;
}

.cycf-sort-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #333;
}

.cycf-search-label {
    position: relative;
    display: block;
    width: min(330px, 32vw);
    min-width: 250px;
}

.cycf-search {
    width: 100%;
    min-height: 50px;
    padding: 11px 45px 11px 18px;
    border: 1px solid #aaa;
    border-radius: 0;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.cycf-search::placeholder {
    color: #999;
}

.cycf-search-icon {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 14px;
    height: 14px;
    border: 2px solid #c7c7c7;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.cycf-search-icon::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: #c7c7c7;
    transform: rotate(45deg);
    transform-origin: left center;
}

.cycf-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keep AJAX loading feedback available to screen readers without changing layout. */
.cycf-filter.is-loading::after {
    display: none !important;
}

.cycf-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.cycf-page-button {
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.cycf-page-button.is-active {
    border-color: #333;
    background: #333;
    color: #fff;
}

.cycf-page-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cycf-no-products {
    grid-column: 1 / -1;
    width: 100%;
    padding: 32px;
    list-style: none;
    text-align: center;
}

@media (max-width: 1024px) {
    .cycf-filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cycf-summary-cell,
    .cycf-group-front {
        border-bottom: 1px solid var(--cycf-border);
    }

    .cycf-tools-row {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .cycf-filter-bar {
        display: block;
    }

    .cycf-summary-cell,
    .cycf-group-front {
        min-height: 54px;
        border-right: 0;
        border-bottom: 1px solid var(--cycf-border);
    }

    .cycf-group-front:last-child {
        border-bottom: 0;
    }

    .cycf-filter button.cycf-group-toggle {
        min-height: 54px;
    }

    .cycf-options {
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        border-width: 1px 0 0;
        box-shadow: none;
    }

    .cycf-tools-row {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding-top: 18px;
    }

    .cycf-sort-group {
        flex-wrap: wrap;
        gap: 16px;
    }

    .cycf-search-label {
        width: 100%;
        min-width: 0;
    }
}
