@charset "UTF-8";

.search-by-json {
    width: 100%;
    position: relative;
}

.search-by-json .d-none {
    display: none !important;
}

.search-by-json .show-hide {
    transition: all .7s;
}

.search-by-json .fast-hide {
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
}

.search-by-json .fast-show {
    opacity: 1;
    visibility: visible;
}

.search-by-json .input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-by-json .input input {
    outline: none;
    border: none;
    background: transparent;
    color: var(--color3);
    font-size: 12px;
    font-family: var(--medium_font);
}

.search-by-json .input:has(input:focus) {
    border-color: var(--color2);
}

.search-by-json .input input::placeholder {
    color: #fff;
    opacity: 40%;
    font-size: 14px;
}

.search-by-json .input .empty {
    position: absolute;
    left: 0;
    cursor: pointer;
    color: #e40000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-by-json .input .icon {
    cursor: pointer;
    color: var(--color1);
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
}

.search-by-json .input.active .icon {
    color: var(--color3);
}

.search-by-json .input .icon img {
    width: 20px;
}

.search-by-json .body {
    position: absolute;
    z-index: 99999;
    width: 100%;
    background: #FFF;
    margin-top: 5px;
    text-align: center;
    padding: 10px;
    left: 0;
    max-height: 95vh;
    overflow: auto;
}

.search-by-json .body .is-search .list-category ul {
    overflow-x: auto;
    text-wrap: nowrap;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #C2D2E4;
    scrollbar-width: thin !important;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.list-services,
.list-posts,
.list-products {
    overflow: auto;
    max-height: 250px;
}

/* width */
.list-services::-webkit-scrollbar,
.list-posts::-webkit-scrollbar,
.list-products::-webkit-scrollbar {
    height: 4px !important;
    width: .3rem !important;
}

/* Track */
.list-services::-webkit-scrollbar-track,
.list-posts::-webkit-scrollbar-track,
.list-products::-webkit-scrollbar-track {
    background: #eae8e4 !important;
    height: 4px !important;
    border-radius: 0.5rem !important;
}

/* Handle */
.list-services::-webkit-scrollbar-thumb,
.list-posts::-webkit-scrollbar-thumb,
.list-products::-webkit-scrollbar-thumb {
    background: var(--color1) !important;
    height: 4px !important;
    border-radius: 0.5rem !important;
}

/* Handle on hover */
.list-services::-webkit-scrollbar-thumb:hover,
.list-posts::-webkit-scrollbar-thumb:hover,
.list-products::-webkit-scrollbar-thumb:hover {
    background: var(--color2);
}

.search-by-json .body .default p {
    text-align: center;
    padding-top: 10px;
    color: #8b8b8b;
}

.search-by-json .body .default .popular,
.search-by-json .body .is-search {
    text-align: right;
}

.search-by-json .body .default .popular .title-popular {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--color3);
}

.search-by-json .body .default .popular .menu-popular ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 8px;
}

.search-by-json .body .is-search .list-category ul li {
    margin: 0.5rem;
    text-align: center;
    display: inline-block;
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a {
    background: transparent;
    font-size: 14px;
    color: var(--color3);
    padding: 7px 17px;
    width: 135px;
    transition: 0.4s ease;
    position: relative;
    border: 1px solid var(--color1);
}

.search-by-json .body .default .popular .menu-popular ul li a::after,
.search-by-json .body .is-search .list-category ul li a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 14px 14px 0px;
    position: absolute;
    top: -1px;
    right: -2px;
    z-index: 1;
    border-color: transparent #170C3D transparent transparent;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.search-by-json .body .default .popular .menu-popular ul li a::before,
.search-by-json .body .is-search .list-category ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0px 0px 14px;
    position: absolute;
    bottom: -1px;
    left: -2px;
    z-index: 3;
    border-color: transparent transparent transparent #170C3D;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover::before,
.search-by-json .body .is-search .list-category ul li a:hover::before {
    opacity: 1;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover::after,
.search-by-json .body .is-search .list-category ul li a:hover::after {
    opacity: 1;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
    background: var(--color1);
    border: 1px solid transparent;
}

.search-by-json .body .not-found {
    color: #e40000;
    font-size: 16px;
    margin: 50px 0;
}

.search-by-json .body .is-search {
    padding: 5px;
}

.search-by-json .body .is-search .category {
    margin-bottom: 10px;
}

.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-products,
.search-by-json .body .is-search .title-industry {
    font-size: 16px;
    text-align: right;
    margin: 0 0 0.75rem;
    color: var(--color3);
}

.search-by-json .body .is-search .item {
    display: grid;
    grid-template-columns: 5fr 9fr 0fr;
    padding: 2px;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.search-by-json .item-link {
    color: #fff;
    position: relative;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    background: var(--color1);
    width: 20px;
    height: 20px;
    margin-right: auto;
    transition: 0.3s;
    grid-area: 1 / 2 / 3 / 3;
}

.search-by-json .body .is-search .list-products .item:hover .item-link {
    background: transparent;
}

.search-by-json .body .is-search .list-products .item:hover .title,
.search-by-json .body .is-search .list-products .item:hover .subtitle {
    color: var(--color1);
}

.search-by-json .body .is-search .list-products .item:hover .item-link i {
    color: var(--color1)
}

.search-by-json .item-link i {
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.search-by-json .body .is-search.item .img img {
    width: 64px;
}

.search-by-json .body .is-search .item .title {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 2;
    color: var(--color3);
    transition: 0.3s;
}

.search-by-json .body .is-search .list-posts a:hover .title {
    color: var(--color1);
}

.search-by-json .body .is-search .list-products .item .subtitle {
    color: #ACACAC;
    font-size: 10px;
    transition: 0.3s;
}

.search-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.search-banner::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 24px 24px 0px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    border-color: transparent #170C3D transparent transparent;
}

.search-banner::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 24px 0px 0px 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    border-color: transparent transparent transparent #170C3D;
}

.search-banner img {
    width: 100%;
}

#search-by-json-form-mobile {
    display: none;
}

.search-by-json .body {
    width: 100%;
}

.search-by-json .body {
    max-height: 85vh
}

.popup-footer-search {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    z-index: 9999999;
    width: calc(100% + 2rem);
}

.search-by-json .input input {
    display: block;
}

.search-by-json .body .is-search .list-products .item {
    display: grid;
    gap: 0 10px;
}

.search-by-json .body .is-search .list-products .item .img {
    grid-area: 1 / 1 / 3 / 2;
}

.search-by-json .body .is-search .list-products .item .title-wrap {
    grid-area: 1 / 2 / 3 / 3;
}

.search-by-json .body {
    width: 85%;
    max-width: 85%;
    right: 0;
    left: 0;
    margin: 0 1rem;
    margin-top: 6rem;
    background-color: #170C3D;
    padding: 1.25rem 1.5rem;
}

#search-by-json-mobile .input input {
    width: 100%;
}

#search-by-json-mobile .input {
    position: absolute;
    display: flex;
    align-items: center;
    height: 5rem;
    width: 100%;
    background: linear-gradient(180deg, rgba(23, 12, 61, 0.57) 0%, rgba(23, 12, 61, 0) 100%);
    background-color: #170C3D;
    padding: 1rem 0.5rem;
}

.header-search .icon-search {
    font-size: 1.5rem;
}

.search-by-json .body::-webkit-scrollbar {
    width: .5rem;
}

.search-results .search-box h3 {
    background: var(--color1);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
}

/* Track */
.search-by-json .body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.5rem;
}

/* Handle */
.search-by-json .body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.5rem;
}

/* Handle on hover */
.search-by-json .body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media screen and (max-width: 1200px) {
    #search-by-json-mobile .input input {
        width: 75%;
    }
}

@media screen and (min-width: 992px) {

    #fast-search-body-mobile .products,
    #fast-search-body-mobile .posts {
        flex: 0 0 48%;
        max-width: 50%;
    }

    #fast-search-body-mobile .category {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .search-by-json .body .is-search {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
    }

    .search-by-json .input .icon {
        color: #FFFFFF;
        font-size: 1.125rem;
        transition: 0.3s;
    }
}

@media screen and (min-width: 1200px) {
    .search-by-json .body {
        width: 305%;
        max-width: 305%;
        transform: translateX(50%);
        margin-top: 36px;
        background-color: #170C3D;
        padding: 1.25rem 1.5rem;
    }
}