/* TrustDeal Product Filters: branded AJAX loader, source 1.1.3 styles untouched. */
.td-filter-area[data-td-filter-set] {
    position: relative;
}

.td-filter-area.is-loading {
    opacity: 1;
}

/* Dim results gently; the loading symbol itself never sits inside a card. */
.td-filter-area.is-loading .td-filter-area__results {
    opacity: .58;
}

.td-filter-area .tdwc-pf-loading[hidden] {
    display: none !important;
}

.td-filter-area .tdwc-pf-loading {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: transparent;
    pointer-events: none;
}

.tdwc-pf-loading__content {
    position: sticky;
    top: clamp(72px, 30vh, 280px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    margin: clamp(24px, 12vh, 110px) auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tdwc-pf-loading__spinner {
    box-sizing: border-box;
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--td-filter-accent, #087455);
    border-right-color: var(--td-filter-accent, #087455);
    border-radius: 50%;
    animation: tdwc-pf-loader-spin .7s linear infinite;
}

@keyframes tdwc-pf-loader-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 782px) {
    .tdwc-pf-loading__content {
        top: 24vh;
        margin-top: 36px;
    }
    .tdwc-pf-loading__spinner { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .tdwc-pf-loading__spinner { animation-duration: 2.1s; }
}

/* Retain the mobile apply button's small high-contrast progress icon. */
.td-filters__mobile-apply.is-loading::before {
    content: '';
    display: inline-block;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tdwc-pf-loader-spin .7s linear infinite;
}
