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

.navbar-header .live-search-wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

.navbar-header form[name="search_form"] {
  width: 100%;
}

.navbar-header form[name="search_form"] .input-group {
  width: 100%;
}

@media (max-width: 991px) {
  .navbar-header .live-search-wrapper {
    width: 100%;
    order: 10;
    margin-top: 0.5em;
  }
}

@media (min-width: 992px) {
  .navbar-header .live-search-wrapper {
    max-width: 600px;
    margin: 0 1em;
  }

  .navbar-header .live-search-wrapper form[name="search_form"] .input-group {
    background-color: var(--whitespace-color, #fff);
    border: 1px solid var(--default-border-color, #efeff9);
    border-radius: var(--input-border-radius, 1em);
    box-shadow: 0 1px 3px rgb(170, 0, 0);
  }

  .navbar-header .live-search-wrapper form[name="search_form"] .input-group input {
    padding-left: 2em;
  }
}

.live-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  margin-top: 2px;
  background-color: var(--dropdown-menu-background-color, #fff);
  border: 1px solid var(--default-border-color, #efeff9);
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 4px 12px var(--shadow-color, rgba(0, 0, 0, 0.15));
  max-height: 360px;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .live-search-results {
    min-width: 400px;
  }
}

@media (max-width: 767px) {
  .live-search-results {
    position: fixed;
    top: var(--live-search-top, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    z-index: 10000;
  }
}

.live-search-loader {
  padding: 20px;
  text-align: center;
}

.live-search-loader::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--default-border-color, #efeff9);
  border-top-color: var(--primary-button-background-color, #2e9cd4);
  border-radius: 50%;
  animation: live-search-spin 0.6s linear infinite;
}

@keyframes live-search-spin {
  to { transform: rotate(360deg); }
}

.live-search-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--default-text-color, #222);
  border-bottom: 1px solid var(--default-border-color, #efeff9);
  transition: background-color 0.1s ease;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover,
.live-search-item.selected {
  background-color: var(--navigation-background-color-hover, rgba(0, 0, 0, 0.05));
}

.live-search-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 12px;
  background-color: var(--site-background-color, #f9fafc);
}

.live-search-thumb-placeholder {
  background-color: var(--default-background-color, #edeff3);
}

.live-search-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.live-search-name {
  font-family: var(--default-text-font, 'Asap', Arial, sans-serif);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-manufacturer {
  font-size: 11px;
  color: var(--default-text-color, #222);
  opacity: 0.6;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.live-search-regular-price {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--default-text-color, #999);
}

.live-search-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--navigation-text-color, #222);
  white-space: nowrap;
}

.live-search-view-all {
  display: block;
  padding: 10px 12px;
  text-align: center;
  color: var(--primary-button-background-color, #2e9cd4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--default-border-color, #efeff9);
  transition: background-color 0.1s ease;
}

.live-search-view-all:hover {
  background-color: var(--navigation-background-color-hover, rgba(0, 0, 0, 0.05));
}
