.w-search .ftw-search-results {
    line-height: 2rem;
}

.state_mobiles .w-search:not(.layout_modern) .ftw-search-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.w-search.layout_modern.active .w-search-form, .w-search.layout_modern.active, .w-search.layout_fullwidth .w-search-form:has(form.ftw-ajax-search-focused) {
    overflow: visible !important;
}

.ftw-search-results {
    font-weight: 400;
    letter-spacing: 0;
    border-radius: 0.3rem;
    background: #ffffff;
    border: var(--inputs-border-width, 0px) solid var(--color-content-primary);
    color: var(--color-content-text);
    opacity: 0;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 100%;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    -webkit-transition: height 0.2s ease-in-out;
    transition: height 0.2s ease-in-out;
    margin-top: 0.5rem;
    font-family: var(--font-family);
}

.layout_fullscreen .ftw-search-results {
    max-height: 80vh;
    position: relative;
    border: none;
}

.state_default .layout_fullscreen .ftw-search-results .ftw-search-results-container, .state_default .layout_fullwidth .ftw-search-results .ftw-search-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ftw-search-results .w-form-row-field {
    -webkit-transition: height 0.2s ease-in-out;
    transition: height 0.2s ease-in-out;
}

.ftw-search-results .ftw-search-loading {
    text-align: center;
    padding: 1rem;
}

.ftw-search-results-type > p {
    width: 50%;
    display: inline-block;
}

.ftw-search-results-type:not(.ftw-search-results-type-loading):not(.ftw-search-results-type-empty) > p:last-of-type {
    text-align: end;
    font-size: 0.6rem;
}

.ftw-search-results-type.ftw-search-results-type-loading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ftw-search-results-type.ftw-search-results-type-loading::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 100%;
    border: 1px solid var(--color-content-heading);
    border-top-color: transparent;
    -webkit-animation: ftw-loading-spin 1s linear infinite;
    animation: ftw-loading-spin 1s linear infinite;
}

.ftw-search-results .ftw-search-results-type p.ftw-search-results-type-title, .ftw-search-results .ftw-search-results-type.ftw-search-results-type-loading p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--color-content-heading);
    font-weight: 700;
}

.ftw-search-results .ftw-search-results-type-count {
    font-size: 0.8rem;
    margin: 0;
    color: var(--color-content-heading);
    font-weight: 700;
}

.layout_fullscreen .ftw-search-results .ftw-search-results-type p.ftw-search-results-type-title, .layout_fullwidth .ftw-search-results .ftw-search-results-type p.ftw-search-results-type-title {
    font-size: 1rem;
}

.ftw-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftw-search-results ul li {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ftw-search-results ul li:last-child {
    border-bottom: none;
}

.ftw-search-results ul li .ftw-search-where-type {
    font-size: 0.7rem;
    margin: 0 0 0 0.5rem;
    color: var(--color-content-heading);
    font-weight: 200;
    display: inline-block;
    opacity: 0.75;
}

.ftw-search-results .ftw-search-highlight {
    color: var(--color-content-primary);
    font-weight: 700;
}

@-webkit-keyframes ftw-loading-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes ftw-loading-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

header .ush_search_1 .w-search-form {
    background: transparent;
    border: none;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.w-search.layout_fullscreen .w-search-form {
    height: 100vh !important;
}