@keyframes rotating {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@media screen and (min-width: 1025px) {
    body:not(.search-is-open) #nws-search-form.search-large {
        display: none;
    }

    #nws-search-form.search-large {
        position: fixed;
    }

    #nws-search-mobile-button:not(.search-large) {
        display: none;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body:not(.search-is-open) #nws-search-form.search-medium-large {
        display: none;
    }

    #nws-search-form.search-medium-large {
        position: fixed;
    }

    #nws-search-mobile-button:not(.search-medium-large) {
        display: none;
    }
}

@media screen and (min-width: 640px) and (max-width: 768px) {
    body:not(.search-is-open) #nws-search-form.search-medium {
        display: none;
    }

    #nws-search-form.search-medium {
        position: fixed;
    }

    #nws-search-mobile-button:not(.search-medium) {
        display: none;
    }

}

@media screen and (max-width: 639px) {
    body:not(.search-is-open) #nws-search-form.search-small {
        display: none;
    }

    #nws-search-form.search-small {
        position: fixed;
    }

    #nws-search-mobile-button:not(.search-small) {
        display: none;
    }

}

#nws-search-mobile-button {
    border: 0;
    background: transparent;
    font-size: 1em;
}

#nws-search-mobile-button svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    display: block;
}

#nws-search-form .nws-search-input-wrapper {
    position: relative;
}

/* ******************** */
/*        input         */
/************************/
#nws-search-input {
    border: 1px solid var(--nws-search-input-border-color, #ddd);
    font-size: var(--nws-search-input-font-size, 14px);
    background: var(--nws-search-input-bg, #fff);
    display: block;
    border-radius: var(--nws-search-input-radius, 6px);
    padding: 10px 1rem;
    padding-right: 40px;
    position: relative;
    z-index: 12;
    width: 100%;
    color: var(--nws-search-input-color, #000);
}

#nws-search-input:focus {
    outline: none
}

.nws-search-input-wrapper.is-open:after {
    content: "";
    border: 10px solid;
    position: absolute;
    bottom: -8px;
    border-color: var(--nws-search-input-bg, #fff) transparent;
    border-width: 10px 8px 0 8px;
    z-index: 100;
    left: calc(50% - 9px);
}

/*button*/
#nws-search-form svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

#nws-search-form .nws-search-input-wrapper button {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    height: 100%;
    font-size: 1.2rem;
    padding: 0;
    background: transparent;
    width: 40px;
    z-index: 14;
    text-align: center;
    cursor: pointer;
    color: var(--black);
    transition: all .3s;
    line-height: 1;
}

#nws-search-form .nws-search-input-wrapper button span {
    display: none;
}


.search-is-open #nws-search-results,
.is-open #nws-search-results {
    display: block;
}

.search-is-open #nws-search-overlay,
.is-open #nws-search-overlay {
    background: rgba(0, 0, 0, .43);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10
}

#nws-search-results {
    position: absolute;
    z-index: 12;
    width: 100%;
    top: calc(100% + 8px);
    right: 50%;
    display: none;
    border-radius: 5px;
    overflow: hidden;
    min-width: 400px;
    transform: translateX(50%);
}

#nws-search-results .nws-search-results__inner {
    max-height: 100%;
    max-height: calc(100vh - 120px);
    background: #fff;
    overflow-y: auto;
}

#nws-search-results h3 {
    font-size: .7rem;
    margin: 0;
    text-transform: uppercase;
    color: #bbb;
    padding: 12px;
}

#nws-search-results .nws-search-item a {
    border: 1px solid #e8e8e8;
    border-width: 1px 0;
    display: flex;
    margin-top: -1px;
    align-items: center;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 10px;
    color: var(--nws-search-item-color, black);
}

#nws-search-results .nws-search-item .nws-search-item__icon {
    flex: 0 0 30px;
    position: relative;
    padding-top: 30px;
    border: 1px solid #000;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 10px;
}

#nws-search-results .nws-search-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*footer ajax*/
#nws-search-results .nws-search-footer {
    padding: 10px;
    background: #f0f0f0;
    text-align: center;
    border-top: 4px solid #d2d2d2;
}

#nws-search-results .nws-search-footer .nws-search-footer__link {
    display: block;
    width: 100%;
    padding: 0;
    color: var(--nws-search-footer-link, black);
    font-size: var(--nws-search-footer-size, 14px);
    border: 0;
    font-weight: bold;
}

/**/
#nws-search-results .is-loading {
    width: 100%;
    background: #ddd;
    position: relative;
    left: 0%;
    top: 0;
    padding: 10px
}

#nws-search-results .is-loading .sn {
    display: block;
    text-align: center;
    color: var(--black);
    font-size: 14px
}

#nws-search-results .is-loading .rotator {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto
}

#nws-search-results .is-loading .rotator:after {
    content: "";
    background: url(loader.svg);
    position: static;
    display: block;
    width: 20px;
    height: 20px;
    background-size: calc(100% - 3px);
    border-radius: 100px;
    background-repeat: no-repeat;
    animation: rotating 1s linear infinite
}

/**/
#nws-search-results .nws-no-results {
    padding: 1rem;
    font-size: 1rem;
    display: block;
    color: #000;
    text-align: center
}

#nws-search-results .nws-no-results strong {
    display: block;
    font-size: 1.1rem
}

#nws-search-results .nws-no-results small {
    display: block;
    font-size: .9em;
    color: #aaa
}

/*gutemberg fixx*/
#nws-search-form .nws-search-input-wrapper br,
#nws-search-form .nws-search-input-wrapper p {
    display: none;
}