/* Independent Css */

.wcps-wrapper {
  position: relative;
  z-index: 1;
}

#wcps-bar {
  background: transparent;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s all ease-in-out;
  transform: translateY(-30px);
}

#wcps-bar.wcps-bar-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

#wcps-trigger {
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  font-size: 16px;
  padding: 6px;
  transition: 0.4s all ease-in-out;
  flex: 0 0 auto;
}

.wcps-search {
  display: flex;
  justify-content: start;
  flex-direction: row-reverse;
}

#wcps-input:focus-visible {
  outline: none;
}

#wcps-trigger:focus {
  outline: none;
}

#wcps-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
}

#wcps-results {
  margin-top: 10px;
  border: 1px solid #eee;
  background: rgb(255, 255, 255);
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  left: 0px;
  right: 0;
  z-index: 1;
  height: 400px;
  overflow-y: auto;
}

.ps-thumb {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
}

.ps-thumb img {
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-item a {
  display: flex;
  align-items: center;
  column-gap: 10px;
  transition: 0.4s all ease-in-out;
  text-decoration: none !important;
}

.ps-item:last-child {
  border-bottom: none;
}

.ps-info {
  flex: 1;
}

.ps-item + .ps-item {
  margin-top: 10px;
  border-top: 1px solid #5b5b5b;
  padding-top: 10px;
}

.ps-item a:hover .ps-title {
  color: #0a58ca;
}

.ps-title {
  font-weight: 600;
  margin-bottom: 3px;
  color: #000;
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none !important;
  transition: 0.4s all ease-in-out;
}

#wcps-results:has(.ps-no-results) {
  height: auto;
  padding: 0;
}

.ps-sku {
  font-size: 13px;
  color: #666;
}

.ps-no-results {
  padding: 12px;
  text-align: center;
  color: #777;
}

.ps-footer {
  text-align: center;
  padding: 10px 6px;
}
button.wcps-clear-input {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #000 !important;
  color: #fff;
  font-size: 16px;
  padding: 5px;
  line-height: 9px;
  border: none;
}

.wcps-results {
  position: absolute;
  width: 800px;
  background: #fff;
  top: 41px;
  padding: 15px;

  display: none;
}
/* Taxonomy Styles */
.search-wrap {
  position: relative;
  z-index: 9;
}
.wcps-products-container {
  display: block;
  width: 50%;
  height: 400px;
  overflow-y: scroll;
  overflow: hidden;
}

.wcps-products-container:empty {
  display: none;
}

.wcps-taxonomies-container {
  display: block;
  margin-top: 10px;
  padding-left: 15px;
  width: 50%;
  height: 400px;
  overflow-y: scroll;
  overflow: hidden;
}

.wcps-taxonomies-container:empty {
  display: none;
}

.ps-taxonomies-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 10px;
}

.ps-taxonomies-heading {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 0 5px;
}

.ps-taxonomy-item {
  display: block;
  padding: 8px 5px;
  border-radius: 4px;
  transition: 0.3s all ease-in-out;
}

.ps-taxonomy-item:hover {
  background: #f5f5f5;
}

.ps-taxonomy-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  gap: 8px;
}

.ps-taxonomy-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-taxonomy-item a:hover .ps-taxonomy-name {
  color: #0a58ca;
}

.ps-taxonomy-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #e8f0f7;
  color: #0a58ca;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wcps-trigger {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 8px;
  transform: rotate(-90deg);
}
.wcps-trigger img {
  width: 100%;
}
.wcps-bar {
  display: none;
}
.wcps-bar.wcps-bar-visible {
  display: block;
  width: 100%;
  flex: 1;
  position: relative;
}
.wcps-input-wrap {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: #fff;
}
.wcps-input-wrap input {
  padding: 5px;
  font-size: 16px;
  color: #000;
  outline: none;
  width: 100%;
}

/* Independent Css */

/* Responsive Css */

@media (max-width: 1399px) {
  .ps-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .ps-thumb {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 1199px) {
  .ps-thumb {
    width: 60px;
    height: 60px;
  }

  #wcps-input {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .body_search {
    overflow: hidden;
  }

  .wcps-trigger {
    z-index: 101;
    position: relative;
  }

  .wcps-trigger[aria-expanded="true"]::after {
    content: "\f060";
    position: absolute;
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    left: -11px;
    right: 0;
    top: 0px;
    bottom: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.14s all ease-in-out;
    background: #000;
    transform: rotate(90deg);
    padding: 0;
    width: 35px;
    height: 35px;
  }
  .wcps-trigger[aria-expanded="true"] .wcps-search-icon {
    display: none;
  }
  .body_search #wcps-trigger i {
    font-size: 0;
  }

  #wcps-bar {
    width: 100%;
    bottom: 0;
    height: 100vh;
    background: rgb(255, 255, 255);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    right: 0;
    max-width: 100%;
  }

  #custom-ajax-search {
    padding-top: 70px;
  }

  #wcps-input {
    margin: 0 25px;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    margin-bottom: 25px;
    width: calc(100% - 50px);
    font-size: 16px;
    height: 50px;
  }

  #wcps-results {
    border: none;
    height: calc(100% - 20px);
    padding: 0;
    padding-bottom: 180px;
    margin: 0 25px;
    padding-right: 5px;
  }
  .ps-title {
    font-size: 15px;
  }
  .body_search #custom-ajax-search {
    padding-top: 11px;
    margin: 0 0 0 15px;
    display: block;
    width: 89%;
  }

  .body_search #custom-ajax-search {
    display: block;
  }

  button.wcps-clear-input {
    position: static;

    transform: inherit;
    padding: 10px;
    font-size: 22px;
    line-height: 13px;
  }
  .wcps-bar.wcps-bar-visible {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 99;
    left: 0px;
    padding: 15px;
    top: 0;
  }
  .wcps-wrapper {
    position: unset;
    z-index: 1;
    height: 100%;
  }
  .wcps-input-wrap {
    position: static;
    transform: inherit;
    padding-left: 40px;
    display: flex;
    gap: 10px;
  }

  .wcps-results {
    width: 100%;
    top: 65px;
    height: 90%;
    overflow-y: scroll;
    left: 0;
    flex-wrap: wrap;
  }
  .wcps-taxonomies-container {
    display: block;
    margin-top: 10px;
    padding-left: 0;
    width: 100%;
    position: relative;
    height: auto;
    top: inherit;
    overflow: auto;
  }
  .wcps-products-container {
    width: 100%;
    height: auto;
    overflow: auto;
  }
  .search-wrap {
    position: unset;
  }
  .wcps-trigger[aria-expanded="true"] {
    position: fixed;
    top: 0;
    left: 12px;
  }
}

/* Responsive Css */
