@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;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
}
.search-by-json .input.active {
    border-color: #15264F;
}
.search-by-json .input input {
    width: 100%;
    height: 100%;
    outline: none;
    background: #23316B0A;
    border: 1px solid transparent;
    padding: 11px 40px 11px 25px;
    color: #212121;
    font-size: 13px;
    border-radius: 12px;
}
.search-by-json .input input::placeholder {
    color: #17214C;
    font-size: 12px;
}
.search-by-json .input .empty {
    font-size: 19px;
    position: absolute;
    top: 5px;
    left: 11px;
    cursor: pointer;
    color: #820808;
}
.search-by-json .input > .icon {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #17214C;
    font-size: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
}
.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;
    border: 1px solid rgba(225, 225, 225, 0.36);
    border-radius: 16px;
    margin-top: 5px;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    left: 0;

}

.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: 15px;
}
.list-posts,
.list-products {
    overflow: auto;
    max-height: 250px;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #C2D2E4;
    scrollbar-width: thin !important;
    padding-left: 15px;
}
/* width */
.list-posts::-webkit-scrollbar,
.list-products::-webkit-scrollbar {
    height: 4px !important;
    width: 3px !important;
}

/* Track */
.list-posts::-webkit-scrollbar-track,
.list-products::-webkit-scrollbar-track {
    background: #eae8e4 !important;
    height: 4px !important;
}

/* Handle */
.list-posts::-webkit-scrollbar-thumb,
.list-products::-webkit-scrollbar-thumb {
    background: rgb(123, 123, 123) !important;
    height: 4px !important;
}

/* Handle on hover */
.list-posts::-webkit-scrollbar-thumb:hover,
.list-products::-webkit-scrollbar-thumb:hover {
    background: var(--color1);
}

.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: 20px;
    font-size: 15px;
}
.search-by-json .body .default .popular .menu-popular ul {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 10px ;
}

.search-by-json .body .is-search .list-category ul li {
    margin: 2px .125rem;
    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: #1442801A;

    border-radius: 9px;
    font-size: 13px;
    color: var(--color3);
    padding: 8px 15px;
    transition: 0.4s ease;
}
.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
    box-shadow: 0 2px 4px rgba(20, 66, 128, 0.76);
}
.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 .title-posts,
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-products {
    font-weight: bold;
    font-size: 15px;
    background: #ebebff;
    text-align: center;
    padding: 7px;
    border-radius: 17px;
    margin: 5px 0;
}
.search-by-json .body .is-search .item {
    border: 1px solid #CCCCF2;
    display: grid;
    grid-template-columns: 2fr 8fr 3fr;
    padding: 10px;
    align-items: center;
    gap: 15px;
    border-radius: 16px;
    margin: 10px 0;
}
.search-by-json .body .is-search .item:hover {
    color: inherit;
}
.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
}
.search-by-json .item-link {
    color: var(--color3);
    font-size: 13px;
    position: relative;
    text-align: left;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: 10px;
}
.search-by-json .item-link i {
    font-size: 10px;
}
.search-by-json .body .is-search.item .img img {
    width: 64px;
}
.search-by-json .body .is-search  .item .title {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.search-by-json .body .is-search .list-products .item .price {
    text-align: left;
    align-items: flex-end;
}
.search-by-json .body .is-search .list-products .item .price .discount {
    display: inline;
    background: #d53343;
    color: #FFF;
    padding: 5px;
    border-radius: 5px;
    margin-left: 5px;
}
.search-by-json .body .is-search .list-products .item .woocommerce-Price-amount bdi {
    font-size: 14px;
}
.search-by-json .body .is-search .list-products .item del .woocommerce-Price-amount bdi {
    font-size: 12px;
}
.search-by-json .body .is-search .list-products .item .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: normal;
}
.search-by-json .body .is-search .list-products .item del .woocommerce-Price-amount bdi  .woocommerce-Price-currencySymbol {
    font-size: 10px;
    font-weight: normal;
}
.search-banner {
    border-radius: 16px;
    overflow: hidden;
}
.search-banner img {
    width: 100%;
}
@media screen and (min-width: 768px){
    .search-by-json .body {
        width: 100%;
    }
}
@media screen and (min-width: 992px){
    .search-by-json .body {
        width: 175%;
    }
    .search-by-json .input input {
        min-width: 225px;
    }
}
@media screen and (min-width: 1400px){
    .search-by-json .body {
        width: 160%;
    }
    .search-by-json .input input {
        min-width: 300px;
    }
}
@media screen and (max-width: 992px){
    #search-by-json-form {
        position: fixed;
        top: 88px;
        right: 50%;
        left: unset;
        margin: auto;
        transform: translateX(50%);
        display: none;
        z-index: 9999999;
    }
    .search-by-json .input input {
        display: block;
    }
    .search-by-json .input {
        border: 1px solid var(--color3);
        background: #fff;
    }
    .search-by-json .input .icon {
         color: var(--color3);
    }
}
@media screen and (max-width: 768px){
    .search-by-json .body .is-search .list-products .item {
        display: grid;
        grid-template-columns: 2fr 6fr;
        grid-template-rows: repeat(2, auto);
        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 { grid-area: 1 / 2 / 2 / 3; }
    .search-by-json .body .is-search .list-products .item .price { grid-area: 2 / 2 / 3 / 3; }
}
@media screen and (max-width: 576px){
    .search-by-json .body {
        width: 160%;
        max-width: 100%;
        right: 50%;
        transform: translateX(50%);
    }
    #search-by-json-form {
        top: 35px;
    }
    .list-posts, .list-products {
        max-height: 160px;
    }
}
@media screen and (max-width: 370px){
    .search-by-json .input input {
        min-width: 258px;
    }

}