.trgs-search-wrap {
  width: 100%;
  font-family: "Public Sans", Arial, sans-serif;
  position: relative;
  z-index: 5;
}

.trgs-search-box {
  width: min(100%, 560px);
  margin: 0 auto;
  position: relative;
}

.trgs-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #1f2933;
  z-index: 2;
  display: flex;
}

.trgs-search-input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0 28px 0 62px !important;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400;
  color: #111;
  background: rgba(225, 225, 225, 0.9);
  box-shadow: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.trgs-search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

.trgs-search-input::placeholder {
  color: rgba(0, 0, 0, 0.65);
}

.trgs-search-wrap.trgs-style-dark input.trgs-search-input, .trgs-search-wrap.trgs-style-dark .trgs-search-input[type="search"]{
    width: 100% !important;
    height: 50px !important;
    min-height: 28px !important;
    border-radius: 100px !important;
    background: rgba(217, 217, 217, 0.4);
    border: 1px solid #dedede !important;
    padding: 0 18px 0 64px !important;
    color: #fff !important;
    font-family: "Public Sans", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 28px !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.trgs-style-dark .trgs-search-input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.trgs-style-dark .trgs-search-icon {
  color: #ffffff;
}

.trgs-category-list {
  margin: 38px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 20px;
}

.trgs-category-pill {
  min-width: 112px;
  height: 48px;
  border: 1px solid #0C733B !important;
  border-radius: 999px !important;
  padding: 0 28px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.trgs-search-wrap.trgs-style-light .trgs-search-box {
  width: min(100%, 560px) !important;
  margin: 0 auto !important;
}

.trgs-search-wrap.trgs-style-light .trgs-search-icon {
  left: 28px !important;
  color: #111827 !important;
}

.trgs-search-wrap.trgs-style-light input.trgs-search-input,
.trgs-search-wrap.trgs-style-light .trgs-search-input[type="search"] {
  width: 100% !important;
  height: 50px !important;
  min-height: 28px !important;
  border-radius: 50px !important;
  border: 1px solid #dedede !important;
  background: #E7E7E7 !important;
  padding: 0 18px 0 64px !important;
  color: #4B4A54 !important;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.trgs-search-wrap.trgs-style-light input.trgs-search-input:focus,
.trgs-search-wrap.trgs-style-light .trgs-search-input[type="search"]:focus {
  border-color: #cfcfcf !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.trgs-search-wrap.trgs-style-light input.trgs-search-input::placeholder {
  color: #5f5f5f !important;
  opacity: 1 !important;
}

.trgs-style-light .trgs-category-pill {
  min-width: auto;
  height: 48px;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: 0 !important;
  background: #e9e9e9 !important;
}

.trgs-category-pill:hover,
.trgs-category-pill.is-active {
  color: #ffffff !important;
  background: linear-gradient(90deg, #0C733B 0%, #86B85C 100%) !important;
  transform: translateY(-1px);
}

.trgs-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  background: #ffffff;
  border: 1px solid rgba(12, 115, 59, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  max-height: 430px;
  overflow-y: auto;
}

.trgs-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trgs-result-count {
  margin: 0 0 8px !important;
  padding: 10px 12px 12px !important;
  border-bottom: 1px solid rgba(12, 115, 59, 0.12);
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #0C733B !important;
}

.trgs-result-count span {
  color: #111111 !important;
  font-weight: 700 !important;
}

.trgs-result-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none !important;
  transition: background 0.22s ease;
}

.trgs-result-item:hover {
  background: #E9F9F3;
}

.trgs-result-image {
  width: 76px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #e9e9e9;
}

.trgs-result-title {
  margin: 0 0 5px !important;
  font-family: "Instrument Sans", Sans-serif !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  color: #000000;
}

.trgs-result-category {
  margin: 0 !important;
  font-family: "Public Sans", Arial, sans-serif !important;
  font-size: 12px;
  line-height: 1.2;
  color: #0C733B;
  font-weight: 600;
}

.trgs-empty,
.trgs-loading {
  padding: 18px 16px;
  font-family: "Public Sans", Arial, sans-serif;
  font-size: 14px;
  color: #111;
  text-align: center;
}

@media (max-width: 767px) {
  .trgs-search-box,
  .trgs-search-wrap.trgs-style-light .trgs-search-box {
    width: calc(100% - 32px) !important;
  }

  .trgs-search-input {
    height: 48px;
    font-size: 14px !important;
  }

  .trgs-category-list {
    margin-top: 28px;
    gap: 14px;
  }

  .trgs-category-pill,
  .trgs-style-light .trgs-category-pill {
    min-width: auto;
    height: 38px;
    padding: 0 20px !important;
    font-size: 14px !important;
  }
}
