.wd-wfl {
    --wd-wfl-accent: #7a1717;
    color: inherit;
    margin: 0;
}

.wd-wfl__group {
    border: 0;
    border-bottom: 1px solid #ececec;
    margin: 0;
    min-width: 0;
    padding: 14px 0;
}

.wd-wfl__group:first-child {
    padding-top: 0;
}

.wd-wfl__title {
    color: inherit;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 9px;
    padding: 0;
    width: 100%;
}

.wd-wfl__options {
    display: grid;
    gap: 5px;
}

.wd-wfl__option {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 400;
    gap: 9px;
    line-height: 1.45;
    margin: 0;
    padding: 3px 0;
}

.wd-wfl__option input[type="checkbox"] {
    accent-color: var(--wd-wfl-accent);
    flex: 0 0 auto;
    height: 18px;
    margin: 1px 0 0;
    width: 18px;
}

.wd-wfl__option.is-disabled {
    cursor: not-allowed;
    opacity: .42;
}

.wd-wfl__option.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.wd-wfl__name {
    min-width: 0;
}

.wd-wfl__count {
    color: #707070;
    flex: 0 0 auto;
    margin-left: -5px;
}

.wd-wfl__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 12px;
}

.wd-wfl__reset,
.wd-wfl__retry {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--wd-wfl-accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    min-height: 0;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wd-wfl__reset:hover,
.wd-wfl__reset:focus-visible,
.wd-wfl__retry:hover,
.wd-wfl__retry:focus-visible {
    background: transparent;
    box-shadow: none;
    color: #4f0e0e;
}

.wd-wfl--loading {
    opacity: .82;
}

.wd-wfl__status {
    color: #606060;
    flex: 1 0 100%;
    font-size: 13px;
    line-height: 1.4;
}

.wd-wfl__status[data-state="error"] {
    color: #b42318;
    font-weight: 600;
}

.wd-wfl__status[data-state="success"] {
    color: #287a3f;
}

.shop-container.wd-wfl-results--loading,
.woocommerce.wd-wfl-results--loading {
    min-height: 160px;
    position: relative;
}

.shop-container.wd-wfl-results--loading::after,
.woocommerce.wd-wfl-results--loading::after {
    animation: wd-wfl-spin .7s linear infinite;
    border: 3px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    border-top-color: var(--wd-wfl-accent, #7a1717);
    content: "";
    height: 34px;
    left: 50%;
    position: absolute;
    top: 120px;
    transform: translate(-50%, -50%);
    width: 34px;
    z-index: 20;
}

.shop-container.wd-wfl-results--loading > .products,
.shop-container.wd-wfl-results--loading > .wd-wfl-no-results,
.woocommerce.wd-wfl-results--loading .products,
.woocommerce.wd-wfl-results--loading .wd-wfl-no-results {
    opacity: .45;
}

.wd-wfl-no-results {
    background: #f7f7f7;
    border-radius: 4px;
    padding: 24px;
    text-align: center;
}

.wd-wfl-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 24px 0 0;
}

.wd-wfl-pagination__button {
    align-items: center;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    box-shadow: none;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    height: 36px;
    justify-content: center;
    margin: 0;
    min-height: 36px;
    min-width: 36px;
    padding: 0 9px;
}

.wd-wfl-pagination__button:hover,
.wd-wfl-pagination__button:focus-visible,
.wd-wfl-pagination__button.is-current {
    background: var(--wd-wfl-accent, #7a1717);
    border-color: var(--wd-wfl-accent, #7a1717);
    color: #fff;
}

.wd-wfl-pagination__button:disabled {
    cursor: default;
    opacity: .4;
}

.wd-wfl-pagination__dots {
    padding: 0 3px;
}

@keyframes wd-wfl-spin {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 849px) {
    .wd-wfl__title {
        font-size: 15px;
    }

    .wd-wfl__option {
        font-size: 15px;
        padding: 5px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-container.wd-wfl-results--loading::after,
    .woocommerce.wd-wfl-results--loading::after {
        animation: none;
    }
}
