/* Royal Bloomaa Search UI CSS
   Purpose: Styles for header search and results dropdowns. */
/* search bar */

.rb-search-wrapper {
  position: relative;
}

.rb-search-results-container {
  display: none;
  position: absolute;
  top: 110%; /* Show directly below input */
  right: 2%;
  width: 320px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.rb-search-result-container {
  display: none;
  position: absolute;
  top: 110%; /* Show directly below input */
  right: 0%;
  width: 320px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

/* Shared styling */
.rb-result-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  transition: background 0.2s;
}
.rb-result-item:hover {
  background: #f0f0f0;
}

.rb-result-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.rb-result-item .info {
  font-size: 15px;
  font-weight: 500;
  flex-direction: column;
}

/* Responsive styles for mobile */
@media screen and (max-width: 600px) {
  .rb-search-results-container {
    width: 90vw;
    right: 5%;
    top: 110%;
    padding: 8px;
    max-height: 250px;
  }

  .rb-result-item img {
    width: 60px;
    height: 60px;
  }

  .rb-result-item .info {
    font-size: 14px;
  }
}
