/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/* search container */
.kivo-search-container {
   max-width: 800px;
   margin: 0 auto;
   padding: 5px;
   background: transparent;
}

/* search form */
.kivo-search-form-wrapper {
   background-color: #fff;
   border: 1px solid #d8d6f2;
   border-radius: .75rem;
   box-shadow: 0 3px 30px rgba(0, 0, 0, .16);
}

.kivo-search-form {
   width: 100%;
   align-items: center;
   display: flex;
   flex: 1 1 auto;
   gap: 0.75rem;
   position: relative;
}


.kivo-search-form i {
   position: absolute;
   z-index: 999;
   top: 10px;
}

.kivo-search-form i svg {
   width: 30px;
   height: 30px;
}

.kivo-search-form i.kivo-search-icon {
   left: 8px;
}

.kivo-search-form i.kivo-delete-icon {
   right: 8px;
}

/* search input box */

.kivo-search-form .kivo-search-input {
   width: 100%;
   height: 55px;
   padding: 0 40px;
   position: relative;
   background: transparent;
   border: none;
   box-shadow: none;
   color: #141516;
   filter: none;
   line-height: 1;
   margin: 0;
   outline: none;
}

/* search result */

/* result layout */
/* Kivo-search-one-column-layout 1: Single column kivo-search-one-column-layout */
.kivo-search-one-column-layout {
   flex-direction: column;
}

/* Kivo-search-one-column-layout 2: Two-column kivo-search-one-column-layout (first 3 in one column, last in another) */
.kivo-search-two-column-layout {
   flex-wrap: wrap;
   flex-direction: column;
}

.kivo-search-two-column-layout .kivo-search-column-one {
   flex-basis: 30%;
   display: flex;
   flex-direction: column
}

.kivo-search-two-column-layout .kivo-search-column-two {
   flex-basis: 65%;
}

/* Kivo-search-one-column-layout 3: Three-column kivo-search-one-column-layout (first two in one column, next in different columns) */
.kivo-search-three-column-layout {
   flex-wrap: wrap;
   flex-direction: column;
}

.kivo-search-three-column-layout div:first-child,
.kivo-search-three-column-layout div:nth-child(2) {
   flex: 1 1 100%;
   /* First two in the first column */
}

.kivo-search-three-column-layout div:nth-child(3) {
   flex: 1 1 100%;
   /* Third in a new column */
   margin-left: auto;
}

.kivo-search-three-column-layout div:nth-child(4) {
   flex: 1 1 100%;
   /* Fourth in another new column */
   margin-left: auto;
}

/* Kivo-search-one-column-layout 4: Four-column kivo-search-one-column-layout (each in different columns) */
.kivo-search-four-column-layout {
   flex-direction: row;
   /* Horizontal kivo-search-one-column-layout */
   justify-content: space-between;
}

.kivo-search-four-column-layout div {
   flex: 1 1 100%;
   /* Each item in its own column */
}

/* result wrapper */
.kivo-search-result-wrapper {
   padding: 0;
   margin: 10px 0 0 0;
   position: absolute;
   z-index: 999;
   max-width: 800px;
   width: 100%;
}

.kivo-search-result-wrapper .kivo-search-results {
   background-color: #fff;
   border: 1px solid #d8d6f2;
   border-radius: 0.75rem;
   box-shadow: 0 3px 30px rgba(0, 0, 0, .16);
   max-height: 400px;
   overflow: auto;
   display: flex;
   flex-direction: row;
   gap: 0.9rem;
   overflow: auto;
   padding: 1.35rem;
}

.kivo-search-results a {
   background-color: transparent;
   border: 0;
   border-bottom: 0;
   cursor: pointer;
   line-height: inherit;
   margin: 0;
   padding: 0;
   text-decoration: none;
   transition: all .2s ease-in-out;
   color: #000;
}

.kivo-search-result-label {
   border-bottom: 1px solid #000;
   font-size: 22px;
   margin-bottom: 10px;
}

/* product result wrapper */
.kivo-search-result-products-wrapper {
   padding: 0;
   margin-bottom: 10px;
}

/* Flex container for products */
.kivo-search-result-products {
   display: flex;
   flex-wrap: wrap;
   /* Allows items to wrap if container width is smaller */
   gap: 10px;
   /* Space between product boxes */
}

/* Ensure each product box has the same width and height */
.kivo-search-result-product {
   flex: 1 1 calc(33.33% - 20px);
   /* Each box takes up 33.33% of the container width minus gap */
   box-sizing: border-box;
   /* Include padding and border in width/height */
   display: flex;
   flex-direction: column;
   /* Align inner content vertically */
   justify-content: space-between;
   /* Distribute space within the product box */
   padding: 10px;
   background-color: #f9f9f9;
   /* Optional: background color */
}

/* Image container inside the product box */
.kivo-search-result-img {
   width: 100%;
   /* Full width of the product box */
   height: 150px;
   /* Set a fixed height for all images */
   overflow: hidden;
   /* Hide any overflow from the image */
   display: flex;
   position: relative;
}

/* Image styling to ensure uniform size */
.kivo-search-result-img img {
   width: 100%;
   /* Full width of container */
   height: 100%;
   /* Full height of container */
   object-fit: cover;
   /* Ensures image covers the entire area without distortion */
}

.kivo-search-result-product-content{
   display: flex;
   flex-direction: column;
}

/* Product title */
.kivo-search-result-product-title {
   font-size: 16px;
   margin: 10px 0;
}

/* Product price section */
.kivo-search-result-product-price {
   font-size: 18px;
   font-weight: bold;
   color: #333;
}

/* Ensure each product title does not overflow */
.kivo-search-result-product-title a {
   overflow: hidden;
   text-overflow: ellipsis;
   /* Adds '...' if text is too long */
   width: 100%;
   /* Force title to fit within the width */
}

.kivo-search-result-product .kivo-search-result-product-price {
   font-size: 14px;
}

.kivo-search-d-none {
   display: none;
}

/* suggestions */
.kivo-search-result-suggestions-wrapper {
   padding: 0;
   margin-bottom: 10px;
}

.kivo-search-result-suggestions {
   display: flex;
   flex-direction: column;
}

.kivo-search-result-suggestions .kivo-search-result-suggestion {
   display: flex;
   padding: 7px 2px;
}

.kivo-search-result-suggestion .kivo-search-result-suggestion-icon {
   padding-right: 5px;
}

/* categories */
.kivo-search-result-categories-wrapper {
   padding: 0;
   margin-bottom: 10px;
}

.kivo-search-result-categories {
   display: flex;
   flex-direction: column;
}

.kivo-search-result-categories .kivo-search-result-cat {
   display: flex;
   flex-direction: column;
}

.kivo-search-result-cat .kivo-search-result-cat-title {
   font-size: 18px;
}

.kivo-search-result-cat .kivo-search-result-cat-parent {
   font-size: 14px;
}

/* pages */
.kivo-search-result-pages-wrapper {
   padding: 0;
   margin-bottom: 10px;
}

.kivo-search-result-pages {
   display: flex;
   flex-direction: column;
}

.kivo-search-result-pages .kivo-search-result-page {
   display: flex;
}

.kivo-search-result-product .kivo-search-result-ai-badge img {
   width: 100%;
}

.kivo-search-result-product-notfound {
   width: 100%;
}
/* kivo search filters */
.kivo-search-filters{
   margin: 10px 0;
}
@media only screen and (max-width: 961px) {
   .kivo-search-result-wrapper .kivo-search-results {
      display: flex;
      flex-direction: column;
   }
}