@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: 50px;
    outline: none;
    background: #F1F5F9;
    border: 1px solid transparent;
    padding: 11px 40px 11px 25px;
    color: #212121;
    font-size: 13px;
    border-radius: 58px;
    box-shadow: 0px 2px 4px 0px #0000000D inset;
    transition: 0.4s ease;
}
.search-by-json .input input:focus {
    border-color: var(--color1);
}
.search-by-json .input input::placeholder {
    color: #17214C;
    font-size: 12px;
}
.search-by-json .input .empty {
    font-size: 12px;
    position: absolute;
    top: 19px;
    left: 16px;
    cursor: pointer;
    color: #820808;
    line-height: 1;
}
.search-by-json .input > .icon {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #0F172A;
    font-size: 18px;
    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-videos,
.list-products {
    overflow: auto;
    max-height: 250px;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #C2D2E4;
    scrollbar-width: thin !important;
    padding-left: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
/* width */
.list-videos::-webkit-scrollbar,
.list-products::-webkit-scrollbar {
    height: 4px !important;
    width: 3px !important;
}

/* Track */
.list-videos::-webkit-scrollbar-track,
.list-products::-webkit-scrollbar-track {
    background: #eae8e4 !important;
    height: 4px !important;
}

/* Handle */
.list-videos::-webkit-scrollbar-thumb,
.list-products::-webkit-scrollbar-thumb {
    background: rgb(123, 123, 123) !important;
    height: 4px !important;
}

/* Handle on hover */
.list-videos::-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-videos,
.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;
}
.search-by-json .body .is-search .list-videos .item {
    grid-template-columns: 2fr 11fr;
}
.search-by-json .body .is-search .item:hover {
    color: var(--color1);
    border-color: var(--color1);
}
.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    width: 50px;
}
.duration {
    display: flex;
    align-items: center;
    line-height: 1;
    background: var(--color1);
    color: #fff;
    border-radius: 20px;
    width: 46px;
    height: 22px;
    justify-content: center;
    padding-top: 4px;
    font-size: 13px;
}
.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: 13px;
    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%;
}
#mask {
    position: fixed;
    z-index: 3;
    background: rgba(0, 0, 0, 0.72);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}
.close-search {
    position: absolute;
    color: red;
    left: 10px;
    top: -50px;
    pointer-events: none;
}
@media screen and (min-width: 768px){
    .search-by-json .body {
        width: 100%;
    }
}
@media screen and (min-width: 992px){

    .search-by-json .input input {
        min-width: 225px;
    }
    .close-search {
        display: none;
    }
}
@media screen and (min-width: 1400px){

    .search-by-json .input input {
        min-width: 300px;
    }
}
@media screen and (max-width: 991.99px){
    #header,
    .header-row {
        position: unset;
    }
    .search-by-json .body {
        width: 160%;
        max-width: 100%;
        right: 50%;
        transform: translateX(50%);
        max-height: calc(100vh - 200px);
        padding: 10px 20px 20px 20px;
        overflow: auto;
    }
    .list-videos, .list-products {
        max-height: 200px;
        grid-template-columns: 1fr;
    }

     #search-by-json-form {
        position: fixed;
        top: 140px;
        right: 50%;
        left: unset;
        margin: auto;
        transform: translateX(50%);
        display: none;
        z-index: 4;
        width: 400px;
        max-width: 90%;
    }
     #search-by-json-form.active {
        display: block;
    }
}
@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 {

        max-width: 100%;
        right: 50%;
        transform: translateX(50%);
    }
    #search-by-json-form {
        top: 70px;
    }
    .list-videos, .list-products {
        max-height: 160px;
    }
}
@media screen and (max-width: 370px){
    .search-by-json .input input {
        min-width: 258px;
    }

}