.search {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    visibility: hidden;
}
.search__found {
    padding: 0;
    background: none;
    color: #03274f;
}
.search__item {
    font-family: "Ubuntu";
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 2.2rem;
    display: block;
    color: #68778d;
    padding: 1.2rem 2rem;
}
.search__item-history {
    color: #03274f;
}
.search__item:hover {
    background: #f8f8f8;
}
.search__item-disabled {
    color: #d3d3d3;
    margin-bottom: 2.3rem;
    padding: 1.2rem 2rem 0 2rem;
}
.search__item-disabled:hover, .search__item-disabled:active, .search__item-disabledfocus {
    color: #d3d3d3;
    cursor: not-allowed;
    background: transparent;
}
.search__icon {
    padding: 0 1.6rem;
    border: 0.1rem solid #e9e9e9;
    border-left: 0;
    border-radius: 0 0.6rem 0.6rem 0;
    cursor: pointer;
}
.search__remove {
    position: absolute;
    opacity: 0;
    right: 4rem;
    top: 100rem;
    transform: translate(-50%, -50%);
    transition: 500ms opacity;
    cursor: pointer;
}
.search__remove-active {
    top: 50%;
    opacity: 1;
}
.search__body {
    position: absolute;
    bottom: -1200rem;
    border: 0.1rem solid #e9e9e9;
    border-radius: 0 0 0.6rem 0.6rem;
    width: 100%;
    background: #fff;
    max-height: 23.3rem;
    overflow: auto;
    opacity: 0;
    transition: opacity 350ms;
}
.search__body-active {
    opacity: 1;
    top: 4.5rem;
}
.search__input {
    width: 100%;
    padding: 1rem;
    outline: none;
    border: 0.1rem solid #e9e9e9;
    border-radius: 0.6rem;
    pointer-events: none;
}
.search__input::placeholder {
    color: #68778d;
}
.search-open .search__input {
    border-radius: 0;
}
.search-open .search__icon {
    border-radius: 0;
}

.search-open .search__input,
.searchbar-open .search__input {
    pointer-events: auto;
}

.search-visible {
    visibility: visible;
}

@media (min-width: 992px) {
    .search__input {
        border: 0.1rem solid rgba(233, 233, 233, 0);
        border-right: 0;
        width: 0;
        transition: width 350ms;
    }
    .search__icon {
        border: 0.1rem solid rgba(233, 233, 233, 0);
        border-left: 0;
    }
    .search-expanded .search__input {
        border: 0.1rem solid rgba(233, 233, 233, 1);
        width: 32.8rem;
        pointer-events: auto;
    }
    .search-expanded .search__icon {
        border: 0.1rem solid rgba(233, 233, 233, 1);
        border-left: 0;
    }
    .search-expanded:after {
        content: "";
        position: absolute;
        background-image: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        height: 100%;
        width: 100rem;
        right: 0;
        z-index: -1;
    }
    .search-open .search__input {
        border-radius: 0.6rem 0 0 0;
        border-right: 0;
        width: 32.8rem;
    }
    .search-open .search__icon {
        border-radius: 0 0.6rem 0 0;
    }
}


.searchbar {
    margin-right: 0.5rem;
    position: absolute;
    right: 5rem;
    margin-top: 0.2rem;
}
.searchbar__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.searchbar__icons {
    width: 22px;
    height: 22px;
    margin-right: 45px;
}
.searchbar__icon {
    cursor: pointer;
    position: absolute;
    transition: opacity 250ms;
    opacity: 1;
    top: 50%;
    left: 50%;
    padding: 1rem;
    transform: translate(-50%, -50%);
}
.searchbar__icon--desktop {
    left: unset;
    right: -2rem;
}
.searchbar__icon-hide {
    opacity: 0;
}
.searchbar__body {
    position: fixed;
    top: 10rem;
    left: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    height: 0;
    overflow: hidden;
    padding-bottom: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: height 250ms;
    padding-bottom: 0;
}
.searchbar__bg {
    position: relative;
    opacity: 0;
    transition: opacity 250ms;
    width: 100%;
    height: 100%;
    left: 0;
    top: 10rem;
}
.searchbar-open .searchbar__body {
    height: 10rem;
    padding-bottom: 1.6rem;
}
.searchbar-open .searchbar__bg {
    position: fixed;
    opacity: 0.4;
    background-color: #1c3254;
}
.searchbar-open .search {
    visibility: visible;
}
@media (min-width: 992px) {
    .searchbar {
        position: initial;
        right: inherit;
    }
    .searchbar__icons {
        display: none;
    }
    .searchbar__container {
        position: absolute;
        right: 0;
    }
    .searchbar__icon {
        cursor: pointer;
    }
    .searchbar__body {
        position: absolute;
        display: block;
        background: transparent;
        top: 0.7rem;
        left: unset;
        right: -0.2rem;
        box-shadow: none;
        width: auto;
        padding: 1rem;
        margin-top: 0;
        overflow: inherit;
        z-index: 101;
    }
    .searchbar__bg {
        display: none;
    }
}

.result {
    padding: 3.2rem 2rem 3.2rem 2rem;
    border-top: 0.1rem solid #e9e9e9;
    display: block;
}
.result:hover, .result:focus, .result:active {
    background: #f8f8f8;
    border-top: 0.1rem solid transparent;
    border-radius: 1.2rem;
}
.result:hover + .result, .result:focus + .result, .result:active + .result {
    border-top: 0.1rem solid transparent;
}
.result__title {
    margin-bottom: 0.9rem;
}
.result__subtext {
    margin-bottom: 4rem;
}
.result__titles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #03274f;
    font-weight: bold;
    font-family: 'Ubuntu Medium';
    margin-bottom: 0.9rem;
    font-size: 1.6rem;
    line-height: 2.6rem;
    word-break: break-all;
}
.result__titles p:last-child {
    font-family: 'Fira Sans';
    color: #9ade19;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0;
    position: relative;
    margin: 0;
    padding: 0;
}
.result__button {
    width: 24rem;
    margin: 3rem auto 0;
}
.result-query-title {
    text-transform: capitalize;
}
.result-query-title:before, .result-query-title:after {
    content: '"'
}
.search-result .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.search-result .pagination-arrow {
    padding: 0 1rem;
    margin-top: -1px;
}
.search-result .pagination-arrow--left .arrow {
    transform: rotate(90deg);
}
.search-result .pagination-arrow--right .arrow {
    transform: rotate(270deg);
}

.search-result .pagination-number {
    margin: 0 .5rem;
}
.search-result .pagination-number.active {
    color: #9ade19;
}

.searchbar__icons__desktop {
    margin-top: 12px;
}

.toggle-search {
    position: absolute;
    right: 25px;
    width: 40px;
    height: 40px;
    margin-top: 6px;
    z-index: 1;
    appearance: none;
    border: 0;
    background: transparent;
}

.toggle-search:hover svg .svg-d-menu, .toggle-search:focus-visible svg .svg-d-menu {
    fill: #8ac716;
}

.navbar-search-mobile {
    display: none;
    @media (max-width: 991px) {
        display: block;
    }
}