/* WooJet AJAX Search styles */

.woojet-search-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  width: auto;
  font: inherit; /* respect theme font */
}

.woojet-search-wrapper input[type="text"] {
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font: inherit;
}

.woojet-search-wrapper button {
  position: absolute;
  top: 50%;
  right: auto;
  left: 8px; /* RTL friendly: button on left */
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.woojet-search-wrapper button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.woojet-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  font: inherit;
}

.woojet-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woojet-search-results li {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
}

.woojet-search-results li:last-child {
  border-bottom: none;
}

.woojet-search-results img {
  width: 40px;
  height: auto;
  margin-right: 10px;
  border-radius: 3px;
}

.woojet-search-results a {
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.woojet-search-results .woojet-view-all {
  display: block;
  text-align: center;
  padding: 8px;
  background: #f6f6f6;
  border-top: 1px solid #ddd;
  font-weight: 600;
}

