.nc-search-page[aria-busy="true"] {
    cursor: progress;
}

.nc-search-page.is-loading .search-result-list {
    opacity: 0.58;
    pointer-events: none;
}

.nc-search-page .search-result-list {
    transition: opacity 160ms ease;
}

.nc-search-page [hidden],
.nc-search-facets [hidden] {
    display: none !important;
}

.nc-search-error {
    padding: 22px;
    margin-bottom: 16px;
    color: #7f1d1d;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.nc-search-error p {
    margin: 0 0 12px;
}

.nc-search-retry,
.nc-search-clear,
.nc-search-pagination__button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.nc-search-retry {
    padding: 9px 16px;
    color: #fff;
    font-weight: 600;
    background: #0972ce;
    border-radius: 999px;
}

.nc-search-retry:focus-visible,
.nc-search-clear:focus-visible,
.nc-search-pagination__button:focus-visible,
.nc-search-facets input:focus-visible {
    outline: 3px solid rgba(9, 114, 206, 0.32);
    outline-offset: 3px;
}

.nc-search-limit-note {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.nc-search-noscript {
    margin-top: 16px;
}

.nc-search-facets__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nc-search-facets__heading h2 {
    margin: 0;
    color: #053660;
    font-size: 20px;
    line-height: 1.35;
}

.nc-search-clear {
    flex: 0 0 auto;
    padding: 4px 0;
    color: #0972ce;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}

.nc-search-clear:hover {
    text-decoration: underline;
}

.nc-search-facets__status {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.nc-search-facets [data-search-facet-groups] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-search-facets .search-page-facet {
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(9, 114, 206, 0.1);
    border-radius: 16px;
}

.nc-search-facets .search-page-facet__fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.nc-search-facets .search-page-facet__legend {
    float: none;
    width: 100%;
    margin: 0;
    border: 0;
}

.nc-search-facets .search-page-facet__body {
    max-height: 310px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.nc-search-facets .filter-check {
    position: relative;
}

.nc-search-facets .filter-check input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #3a464f;
    border-radius: 50%;
}

.nc-search-facets .filter-check input[type="radio"]:checked {
    border: 5px solid #0972ce;
}

.nc-search-facet-empty {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.nc-search-type,
.nc-search-locale {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: #075b9f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    background: rgba(9, 114, 206, 0.08);
    border-radius: 999px;
}

.nc-search-locale {
    color: #4b5563;
    background: #f3f4f6;
}

.nc-search-result-icon__text {
    color: #0972ce;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.search-result-item--invalid {
    cursor: default;
}

.nc-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.nc-search-pagination__button,
.nc-search-pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 10px;
}

.nc-search-pagination__button {
    color: #053660;
    font-weight: 600;
    background: #fff;
    border: 1px solid #cfe5f7;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.nc-search-pagination__button:hover {
    color: #fff;
    background: #0972ce;
    border-color: #0972ce;
}

.nc-search-pagination__current {
    color: #4b5563;
    font-size: 14px;
    background: #f8fafc;
}

.nc-search-skeleton {
    overflow: hidden;
    pointer-events: none;
}

.nc-search-skeleton__content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nc-search-skeleton__icon,
.nc-search-skeleton__line {
    position: relative;
    overflow: hidden;
    background: #e9f0f6 !important;
}

.nc-search-skeleton__line {
    display: block;
    width: 88%;
    height: 12px;
    border-radius: 999px;
}

.nc-search-skeleton__line.is-title {
    width: 56%;
    height: 16px;
}

.nc-search-skeleton__line.is-short {
    width: 35%;
}

.nc-search-skeleton__icon::after,
.nc-search-skeleton__line::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.78),
        transparent
    );
    transform: translateX(-100%);
    animation: nc-search-shimmer 1.2s infinite;
}

@keyframes nc-search-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nc-search-page .search-result-list,
    .nc-search-pagination__button {
        transition: none;
    }

    .nc-search-skeleton__icon::after,
    .nc-search-skeleton__line::after {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .nc-search-facets {
        margin-top: 20px;
    }

    .nc-search-facets .search-page-facet__body {
        max-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .nc-search-facets__heading h2 {
        font-size: 18px;
    }

    .nc-search-pagination {
        gap: 6px;
    }

    .nc-search-pagination__button,
    .nc-search-pagination__current {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .nc-search-type,
    .nc-search-locale {
        max-width: 100%;
    }
}
