/** General **/
body.overlayed {
  position: fixed;
  overflow: hidden;
}

.fws.icon-searching {
  display: none;
  position: absolute;
  right: 15px;
  top: 7px;
}

.fws .icon-searching {
  display: block;
}

.fws .icon-search {
  display: none;
}

.fws .icon-search {
  display: block;
}
/** End General **/

/** Type Normal Bar **/
.fws.type-normal .fws-bar {
  position: relative;
}

.fws.type-normal .icon-searching {
  display: none;
  position: absolute;
  right: 15px;
  top: 7px;
}

.fws.type-normal.searching .icon-search {
  display: none;
}

.fws.type-normal .icon-search {
  display: block;
  position: absolute;
  right: 15px;
  top: 11px;
}

.fws.type-normal input {
  width: 100%;
  outline: none !important;
}

.fws.type-normal .fws-results {
  display: none;
  position: absolute;
  width: 400px;
  max-width: 100%;
  background-color: white;
  z-index: 15;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  border-radius: 10px;
  padding: 10px;
}

.fws.type-normal .fws-products {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fws.type-normal .fws-product {
  padding: 5px 0px;
  border-bottom: 1px solid #eeebeb;
  width: 100%;
}

.fws.type-normal .fws-product a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: black;
}

.fws.type-normal .fws-product img {
  width: 80px;
  height: 80px !important;
  object-fit: cover;
}

.fws.type-normal .fws-product .fws-product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  font-size: 16px;
  line-height: 16px;
  gap: 5px;
}

.fws.type-normal .fws-product .fws-product-info .title {
  font-weight: bold;
}

.fws.type-normal .fws-product .fws-product-info .category {
  width: 100%;
}

.fws.type-normal .fws-product .fws-product-info .price {
  width: 100%;
}

.fws.type-normal .fws-results .fws-category {
  display: flex;
  width: 100%;
  align-items: center;
  margin-top: 10px;
}

.fws.type-normal .fws-results .fws-category p {
  margin-bottom: 0px;
}

.fws.type-normal .fws-results .more {
  margin-top: 10px;
}

/** Type Fullwidth **/
.fws.type-fullwidth .fws-bar {
  position: relative;
}

.fws.type-fullwidth .fws-results {
  padding: 20px 40px;
  position: absolute;
  left: 0;
  width: 100vw;
  max-width: 100%;
  background: white;
  box-shadow: 0 0 6px 3px #0000001a;
  z-index: 2;
}

.fws.type-fullwidth .icon-searching {
  display: none;
  position: absolute;
  right: 15px;
  top: 10px;
}

.fws.type-fullwidth.searching .icon-searching {
  display: block;
}

.fws.type-fullwidth.searching .icon-search {
  display: none;
}

.fws.type-fullwidth .icon-search {
  display: block;
  position: absolute;
  right: 15px;
  top: 10px;
}

.fws.type-fullwidth .fws-results {
  display: none;
  flex-wrap: wrap;
}

.fws.type-fullwidth .fws-results .fws-products {
  display: inline-block;
  width: 66%;
  vertical-align: top;
}

.fws.type-fullwidth .fws-results .fws-categories {
  width: 33%;
  vertical-align: top;
}

.fws.type-fullwidth .fws-results .more {
  margin-top: 20px;
}

.fws.type-fullwidth .fws-results .fws-product {
  display: inline-block;
  width: 49%;
  margin-bottom: 20px;
}

.fws.type-fullwidth .fws-results .fws-product a {
  display: flex;
}

.fws.type-fullwidth .fws-results .fws-product-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
}

.fws.type-fullwidth .fws-product img {
  width: 80px;
  height: 80px !important;
  object-fit: cover;
  background-color: #F2F2F4;
  margin-right: 10px;
}

.fws.type-fullwidth .fws-results .fws-categories {
  display: inline-block;
  text-align: right;
}

.fws.type-fullwidth .fws-results .fws-category {
  font-size: 14px;
}

.fws.type-fullwidth .fws-results .fws-category a {
  text-decoration: underline;
}
/** End Type Fullwidth **/

/** Type Overlay **/
.fws.type-overlay .fws-button {
  display: flex;
  align-items: center;
}

.fws.type-overlay .fws-overlay {
  display: none;
}

.fws.type-overlay .fws-overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  overflow-y: scroll;
  background-color: white;
  z-index: 10;
  padding: 15px 15px 15px 15px;
}

.fws.type-overlay .icon-searching {
  display: none;
  position: absolute;
  right: 30px;
  top: 55px
}

.fws.type-overlay.searching .icon-searching {
  display: block;
}

.fws.type-overlay.searching .icon-search {
  display: none;
}

.fws.type-overlay .icon-search {
  display: block;
}

.fws.type-overlay .fws-overlay .fws-results {
  box-shadow: none;
  width: 100%;
}

.fws.type-overlay .fws-overlay .fresh-woo-overlay-close-btn {
  text-align: right;
}

.fws.type-overlay .fws-results .fws-products {
  display: inline-block;
  width: 66%;
  vertical-align: top;
}

.fws.type-overlay .fws-results .fws-categories {
  display: inline-block;
  width: 33%;
  vertical-align: top;
}

.fws.type-overlay .fws-results .fws-product {
  display: inline-block;
  width: 49%;
  margin-bottom: 20px;
}

.fws.type-overlay .fws-results .fws-product a {
  display: flex;
}

.fws.type-overlay .fws-results .fws-product-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
}

.fws.type-overlay .fws-results .fws-product-img {
  margin-right: 20px;
}

/** End Overlay **/

@media only screen and (max-width: 1024px) {

  /** Type Fullwidth **/
  .fws.type-fullwidth .fws-results .fws-products {
    width: 100%;
  }
  .fws.type-fullwidth .fws-results .fws-categories {
    width: 100%;
    text-align: left;
  }
  /** End Type Fullwidth **/

  /** Type Overlay **/
  .fws.type-overlay .fws-results .fws-products {
    width: 100%;
  }
  .fws.type-overlay .fws-results .fws-categories {
    width: 100%;
    text-align: left;
  }
  /** End Type Overlay **/
}

@media only screen and (max-width: 768px) {
  /** Type Normal **/
  .fws.type-normal .fws-results {
    width: calc(100vw - 20px);
    left: 00px;
    position: absolute;
    z-index: 10;
  }
  /** End Type Normal **/

  /** Type Fullwidth **/
  .fws.type-fullwidth .fws-results .fws-product {
    width: 100%;
  }
  
  .fws.type-fullwidth .fws-results {
    padding: 20px 20px;
    max-height: 400px;
    overflow-y: scroll;
  }
  /** End Type Fullwidth **/
  
  /** Type Overlay **/
  .fws.type-overlay .fws-results .fws-products {
    width: 100%;
  }
  .fws.type-overlay .fws-results .fws-product {
    width: 100%;
  }
  /** End Type Overlay **/
