@charset "UTF-8";

.search-by-json {
  width: 80%;
  /* margin-right: 10%; */
  margin-inline: auto;
  margin-top: 3%;
  position: relative;
}

.search-by-json .d-none {
  display: none !important;
}

.search-by-json .show-hide {
  transition: all 0.7s;
}

.search-pup-up.fast-show {
  display: block;
}

.search-pup-up.fast-hide,
.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;
}

.search-by-json .input input {
  width: 100%;
  height: 3rem;
  outline: none;
  /* border: none; */
  background-color: #fff;
  /* box-shadow: rgba(149, 157, 165, 0.07) 0px 8px 24px; */
  border: 1px solid #e9ecef;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 16px;
  color: #495057;
  transition: 500ms;
  margin: 0;
}

.search-by-json .input input::placeholder {
  color: #49505780;
}

.search-by-json .input .empty:hover {
  background-color: #f1aeb5;
}

.search-by-json .input .empty {
  font-size: 1.625rem;
  position: absolute;
  top: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  background-color: #f8d7da;
  left: 3rem;
  border: 1px solid #f1aeb5;
  transition: 500ms;
  color: #58151c;
  line-height: 1;
}

.search-by-json .input .icon:hover {
  background-color: #c4c8cb;
}

.search-by-json .input .icon {
  position: absolute;
  transition: 500ms;
  /* background: #FFF;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; */
  /* border: 1px solid #c4c8cb; */
  background-color: #e2e3e5;
  border: 1px solid #c4c8cb;
  top: 8px;
  left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.search-by-json .input .icon img {
  width: 1.125rem;
  object-fit: scale-down;
}

.search-by-json .body {
  position: absolute;
  z-index: 99999;
  width: 100%;
  background-color: #fff;
  border: 1px solid #e9ecef;
  /* box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; */
  border-radius: 0.25rem;
  margin-block: 0.25rem;
  text-align: center;
  padding: 0.5rem;
  overflow-y: auto;
  height: 400px;
}

.search-by-json .body .default p {
  text-align: center;
  padding-top: 0.5rem;
  color: #495057;
  font-size: 1.125rem;
}

.search-by-json .body .default img {
  width: 200px;
  margin-top: 25px;
  opacity: 0.7;
  margin-inline: auto;
}

.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-weight: bold;
  font-size: 15px;
}

.search-by-json .body .default .popular .menu-popular ul,
.search-by-json .body .is-search .list-category ul {
  margin: 0.5rem 0;
}

.search-by-json .body .default .popular .menu-popular ul li,
.search-by-json .body .is-search .list-category ul li {
  text-align: center;
  display: inline-block;
  margin: 0.125rem;
}

.search-by-json .body .default .popular .menu-popular ul li:first-child,
.search-by-json .body .is-search .list-category ul li:first-child {
  margin-right: 0;
}

.search-by-json .body .default .popular .menu-popular ul li:last-child,
.search-by-json .body .is-search .list-category ul li:last-child {
  margin-left: 0;
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a {
  display: block;
  font-size: 0.8125rem;
  border: 1px solid #e2e3e5;
  background-color: #e9ecef;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
  color: #495057;
  transition: 500ms;
  line-height: 1.5;
}

.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-color: #495057;
  color: #fff;
}

.search-by-json .body .not-found {
  font-size: 1rem;
  margin: 2rem 0;
  color: #d53343;
}

.search-by-json .body .is-search {
  padding: 0.25rem;
}

.search-by-json .body .is-search .category {
  margin-bottom: 1.5rem;
}

.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-products {
  font-weight: bold;
  font-size: 1rem;
  color: #495057;
}

.search-by-json .body .is-search .list-products .item:hover {
  background-color: #e2e3e5;
}

.search-by-json .body .is-search .list-products .item {
  transition: 500ms;
  border: 1px solid #e2e3e5;
  background-color: #e9ecef;
  display: grid;
  grid-template-columns: 4rem 8fr 3fr;
  padding: 10px;
  align-items: center;
  gap: 15px;
  border-radius: 0.25rem;
  /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
  /* margin: .5rem 0; */
  margin: 0;
  text-decoration: none;
}

.search-by-json .body .is-search .list-products .item:hover {
  color: inherit;
}

.search-by-json .body .is-search .list-products .item .img {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 0.5rem;
  border-radius: 0.25rem;
  width: 4rem;
  height: 4rem;
}

.search-by-json .body .is-search .list-products .item .img img {
  width: 100%;
}

.search-by-json .body .is-search .list-products .item .title {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  padding-left: 2rem;
}

.search-by-json .body .is-search .list-products .item .price {
  line-height: 1.5;
  text-align: left;
  position: relative;
  width: max-content;
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.search-by-json .body .is-search .list-products .item .price .discount {
  display: inline;
  background: #d53343;
  color: #fff;
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  position: absolute;
  bottom: 0;
  left: 106%;
}

.search-by-json .body .is-search .list-products .item .price del {
  font-size: 0.875rem;
  font-weight: bold;
  text-decoration-color: #999;
}

.search-by-json .body .is-search .list-products .item .price ins {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.search-by-json .body::-webkit-scrollbar {
  width: 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;
}

.search-by-json .list-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-block: 0.5rem;
}

#search-by-json-form img {
  user-select: none;
  /* Prevents selection in modern browsers */
  -webkit-user-select: none;
  /* Prevents selection in Safari */
  -moz-user-select: none;
  /* Prevents selection in Firefox */
  -ms-user-select: none;
  /* Prevents selection in Internet Explorer/Edge */
}

#search-by-json-form a {
  text-decoration: none !important;
}

#search-by-json-form .amount bdi {
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
}

#search-by-json-form del .amount bdi {
  font-size: 0.8125rem;
}

@media (max-width: 1199.98px) {
  .search-by-json .list-products {
    grid-template-columns: 1fr;
  }

  #search-by-json-form .amount bdi {
    color: #495057;
    font-size: 0.875rem;
  }

  #search-by-json-form del .amount bdi {
    font-size: 0.75rem;
  }

  .search-by-json .body .is-search .list-products .item .price .discount {
    font-size: 10px;
  }

  .search-by-json .body .is-search .list-products .item .price span.woocommerce-Price-currencySymbol {
    font-size: 0.75rem;
  }
}

@media (max-width: 991.98px) {}

@media (max-width: 767.98px) {}

@media (max-width: 575.98px) {
  .search-by-json {
    width: calc(100% - 20px);
  }

  .search-by-json .body .default p {
    text-align: center;
    padding-top: 0.5rem;
    color: #495057;
    font-size: 0.9125rem;
  }

  .search-by-json .body .default img {
    width: 10rem;
    margin-top: 1.5rem;
  }

  .search-by-json .body .is-search .list-products .item .img {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
  }

  .search-by-json .body .is-search .list-products .item .img {
    padding: 0.25rem;
  }

  .search-by-json .body .is-search .list-products .item {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .search-by-json .body .is-search .list-products .item .title {
    flex: 0 0 75%;
    padding-left: 0;
  }
}