/* Reset and enforce consistency inside Seekr results */
.seekr-results a,
.seekr-results span,
.seekr-results div {
  position: static !important;
  background: inherit !important;
  color: inherit !important;
  text-align: left !important;
  text-decoration: none;
  box-shadow: none;
  font: inherit;
  font-size: inherit;
  line-height: 1.4;
}

/* Enforce left text on everything inside results */
.seekr-results li,
.seekr-results li * {
  text-align: left !important;
}

/* Specific product text styles */
.seekr-results .title {
  position: static !important;
  display: block;
  color: inherit !important;
  background: transparent !important;
  text-align: left !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: bold !important;
  font-size: 0.95em;
}

.seekr-results .price {
  position: static !important;
  display: block;
  background: transparent !important;
  text-align: left !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9em;
}

/* Base container */
.seekr-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg, #fff);
  border: 1px solid var(--bg, #ddd);
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  width: 100%;
  min-width: 350px;
  max-width: 50vw;
  color: var(--font, #000);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: inherit;
  font-size: 14px;
}


/* Results link */
.seekr-results a {
  display: flex;
  align-items: center;
  padding: 8px;
  color: inherit !important;
  background: transparent;
  width: 100%;
}

.seekr-results a:hover {
  background-color: inherit;
}

/* Direct search */
.seekr-results .search-direct a {
  font-weight: bold;
  padding: 10px;
  display: block;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
}

/* Suggestion button */
.seekr-results .search-suggestion button {
  all: unset;
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-style: italic;
  color: inherit !important;
  font-size: 0.9em;
  text-align: left;
  cursor: pointer;
background-color: inherit !important;
}

.seekr-results .search-suggestion button:hover {
  color: inherit !important;
}

.seekr-results .search-suggestion button strong {
  font-weight: bold;
}

/* Product line */
.seekr-results .search-result-item {
  display: flex;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.seekr-results .search-result-item:hover {
}

/* Image */
.seekr-results img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Text block */
.seekr-results .result-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* No results */
.seekr-results .no-results {
  padding: 10px;
  text-align: center;
  font-style: italic;
}
.seekr-loading-overlay {
z-index: 999999; /* Raised to override modal popups */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85); /* light overlay */
  backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-family: inherit;
  color: #555;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.seekr-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.seekr-loading-overlay span {
  font-size: 1.4em;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: inline-block;
  color: #444;
  position: relative;
}

.seekr-loading-overlay span::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid #ccc;
  border-top-color: #555;
  border-radius: 50%;
  margin-left: 12px;
  animation: seekr-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes seekr-spin {
  to {
    transform: rotate(360deg);
  }
}
