.te-product-search {
  --te-search-teal: #007fab;
  --te-search-teal-dark: #006a8f;
  --te-search-blue: #007fab;
  --te-search-blue-light: hsla(214, 100%, 97%, 1);
  --te-search-border: #D1D5DB;
  --te-search-text: #111827;
  --te-search-muted: #6b7280;
  --te-search-radius: 12px;
  --te-search-dropdown-radius: 12px;
  position: relative;
  width: 100%;
  max-width: 900px;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.te-product-search__bar-wrap {
  position: relative;
  z-index: 2;
}

.te-product-search__form {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  padding: 8px 8px 8px 16px;
  background: #FFF;
  border: 1px solid var(--te-search-border);
  border-radius: var(--te-search-radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.te-product-search__form:focus-within {
  border-color: var(--te-search-blue);
  box-shadow: 0 0 0 3px rgba(0, 127, 171, 0.15);
}

.te-product-search__icon {
  flex: 0 0 auto;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.te-product-search__icon svg {
  width: 20px;
  height: 20px;
}

.te-product-search__input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  line-height: 1.4;
  color: var(--te-search-text);
  min-width: 0;
  font-family: "Plus Jakarta Sans", sans-serif;

}

.te-product-search__input::placeholder {
  color: #9ca3af;
}

/* Hide the browser's native search clear (×) — we use our own styled button */
.te-product-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.te-product-search__input::-ms-clear {
  display: none;
}

.te-product-search__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--te-search-blue);
  cursor: pointer;
  padding: 0;
}

.te-product-search__clear[hidden] {
  display: none;
}

.te-product-search__clear svg {
  width: 16px;
  height: 16px;
}

.te-product-search__clear:hover,
.te-product-search__clear:focus-visible {
  background: var(--te-search-blue-light);
}

.te-product-search__button {
  flex: 0 0 auto;
  border: 0;
  background: var(--te-search-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: "inter";
  line-height: 1;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 8px;
}

.te-product-search__button:hover,
.te-product-search__button:focus-visible {
  background: var(--te-search-teal-dark);
}

.te-product-search__try {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.te-product-search__try[hidden] {
  display: none;
}

.te-product-search__try-label {
  color: var(--te-search-teal);
  font-family: 'Inter';
  font-weight: 400;
  font-size: 13px;
}

.te-product-search__try-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.te-product-search__try-tag {
  border: 0;
 border-radius: 6px;
background: #F3F4F6;
  color: #374151;
font-family: 'Inter';
font-size: 13px;
font-weight: 500;
  padding: 4px 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.te-product-search__try-tag:hover,
.te-product-search__try-tag:focus-visible {
  background: var(--te-search-blue-light);
  color: var(--te-search-teal);
}

.te-product-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.te-product-search__dropdown[hidden] {
  display: none;
}

.te-product-search__results {
  list-style: none;
  margin: 0;
  padding: 8px 0 0 0;
  list-style: none;
    margin: 0;
    padding: 8px 0 0 0;
    max-height: 200px;
    overflow-y: auto;
}

.te-product-search__result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.12s ease;
  border-bottom: 1px solid #F3F4F6;
}

.te-product-search__result:hover,
.te-product-search__result.is-active {
  background: var(--te-search-blue-light);
}

.te-product-search__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.te-product-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.te-product-search__details {
  flex: 1 1 auto;
  min-width: 0;
}

.te-product-search__title {
  display: block;
  color: var(--te-search-blue);
font-family: 'Inter';
font-size: 14px;
font-weight: 500;
}

.te-product-search__subtitle {
  display: block;
  color: #374151;
font-family: 'Inter';
font-size: 13px;
font-weight: 400;
}

.te-product-search__pdf {
  flex: 0 0 auto;
  color: var(--te-search-blue);
font-family: 'Inter';
font-size: 11px;
font-weight: 700;
 border-radius: 4px;
background: #F1FBFF;
padding: 4px 6px;
}

.te-product-search__pdf:hover,
.te-product-search__pdf:focus-visible {
  text-decoration: underline;
}

.te-product-search__footer {
  border-top: 1px solid #f3f4f6;
  padding: 12px 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.te-product-search__empty {
  padding: 18px;
  text-align: center;
  color: var(--te-search-muted);
  font-size: 14px;
}
