.ovps-search-form,
.ovps-search-wrap {
  position: relative;
  width: 100%;
}

.ovps-search-wrap {
  display: flex;
  align-items: stretch;
  z-index: 9999;
}

.ovps-search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e6e6e6;
  border-radius: 6px 0 0 6px;
  padding: 0 16px;
  font-size: 15px;
  background: #fff;
  color: #184a33;
  outline: none;
}

.ovps-search-input:focus {
  border-color: #8cbc4f;
  box-shadow: 0 0 0 3px rgba(140,188,79,0.14);
}

.ovps-search-button {
  min-height: 46px;
  border: 0;
  border-radius: 0 6px 6px 0;
  padding: 0 22px;
  background: #8cbc4f;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ovps-search-button:hover {
  background: #648935;
}

.ovps-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(24,74,51,0.16);
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 999999;
  text-align: left;
}

.ovps-results--open {
  display: block;
}

.ovps-result-list {
  display: flex;
  flex-direction: column;
}

.ovps-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: #184a33;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background 0.2s ease;
}

.ovps-result-item:hover {
  background: #f5f9ef;
  color: #184a33;
}

.ovps-result-img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #f5f7f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ovps-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ovps-result-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ovps-result-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
  color: #184a33;
}

.ovps-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.ovps-view-all {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  color: #184a33;
  background: #eef6e2;
  font-weight: 800;
  text-decoration: none;
}

.ovps-view-all:hover {
  background: #8cbc4f;
  color: #fff;
}

.ovps-empty {
  padding: 14px 16px;
  color: #555;
  font-size: 14px;
}

.ovps-auto-wrap {
  width: 100%;
}

@media (max-width: 640px) {
  .ovps-search-wrap {
    flex-direction: column;
  }
  .ovps-search-input,
  .ovps-search-button {
    border-radius: 6px;
  }
  .ovps-search-button {
    margin-top: 8px;
  }
}

/* v1.1: Hide common theme autocomplete containers when OmVeda search enhancement is active */
.ovps-search-wrap .aws-search-result,
.ovps-search-wrap .aws_result,
.ovps-search-wrap .dgwt-wcas-suggestions-wrapp,
.ovps-search-wrap .dgwt-wcas-suggestions,
.ovps-search-wrap .autocomplete-suggestions,
.ovps-search-wrap .search-results:not(.ovps-results),
.ovps-search-wrap .ajax-search-results,
.ovps-search-wrap .woodmart-search-results,
.ovps-search-wrap .wd-search-results,
.ovps-search-wrap .xts-search-results,
.ovps-search-wrap .product-search-results,
.ovps-search-wrap .search-suggestions,
.ovps-search-wrap .live-search-results,
.ovps-search-wrap .fibosearch-results {
  display: none !important;
}

.ovps-result-meta {
  align-items: center;
}

.ovps-result-cat {
  color: #6b6f6c;
}

.ovps-result-price {
  color: #184a33;
  font-weight: 700;
}

.ovps-result-price .woocommerce-Price-currencySymbol,
.ovps-result-price .amount {
  font-weight: inherit;
}


/* v1.2: stronger duplicate dropdown suppression while OmVeda search is active */
body.ovps-active .aws-search-result,
body.ovps-active .aws_result,
body.ovps-active .dgwt-wcas-suggestions-wrapp,
body.ovps-active .dgwt-wcas-suggestions,
body.ovps-active .autocomplete-suggestions,
body.ovps-active .ajax-search-results,
body.ovps-active .ajax-search-result,
body.ovps-active .woodmart-search-results,
body.ovps-active .wd-search-results,
body.ovps-active .xts-search-results,
body.ovps-active .product-search-results,
body.ovps-active .search-suggestions,
body.ovps-active .live-search-results,
body.ovps-active .fibosearch-results,
body.ovps-active .fibosearch-suggestions,
body.ovps-active .etheme-search-results,
body.ovps-active .searchform-results,
body.ovps-active .header-search-results,
body.ovps-active .site-search-results,
body.ovps-active .search-results-wrapper,
body.ovps-active [data-ovps-hidden="1"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.ovps-active .ovps-results,
body.ovps-active .ovps-results * {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
