/* ==========================================================
   iToolsEra Search Suggestions
   ========================================================== */

.navbar-search {
  position: relative;
}

.navbar-search .form-group-feedback {
  position: relative;
}

.itools-era-search-suggestions {
  position: absolute;

  top: calc(100% + 6px);
  left: 0;
  right: 0;

  width: 100%;

  background: #ffffff;

  border: 1px solid #dee2e6;
  border-radius: 8px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  z-index: 99999;

  display: none;

  max-height: 500px;

  overflow-y: auto;
}

/* Loading */

.search-suggestion-loading {
  padding: 18px;

  text-align: center;

  color: #6c757d;

  font-size: 13px;
}

/* Empty */

.search-suggestion-empty {
  padding: 18px;

  text-align: center;

  color: #6c757d;

  font-size: 13px;
}

/* Section */

.search-suggestion-section {
  padding: 8px 0;
}

.search-suggestion-section + .search-suggestion-section {
  border-top: 1px solid #edf0f2;
}

/* Section title */

.search-suggestion-section-title {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 8px 14px;

  font-size: 12px;

  font-weight: 600;

  color: #6c757d;

  text-transform: uppercase;
}

/* Item */

.search-suggestion-item {
  display: flex;

  align-items: center;

  width: 100%;

  padding: 10px 14px;

  text-decoration: none !important;

  color: #212529;

  background: #fff;
}

.search-suggestion-item:hover {
  background: #f8f9fa;
}

/* Icon */

.search-suggestion-icon {
  width: 42px;

  min-width: 42px;

  margin-right: 10px;

  text-align: center;
}

.search-suggestion-icon i {
  font-size: 18px;
}

/* Thumbnail */

.search-suggestion-thumbnail {
  width: 48px;

  min-width: 48px;

  height: 42px;

  margin-right: 10px;

  overflow: hidden;

  border-radius: 6px;

  background: #f1f3f5;
}

.search-suggestion-thumbnail img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

/* Content */

.search-suggestion-content {
  flex: 1;

  min-width: 0;
}

.search-suggestion-title {
  font-size: 14px;

  font-weight: 600;

  color: #212529;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.search-suggestion-description {
  margin-top: 2px;

  font-size: 12px;

  color: #868e96;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

/* Arrow */

.search-suggestion-arrow {
  margin-left: 8px;

  color: #adb5bd;
}

/* Footer */

.search-suggestion-footer {
  padding: 10px 14px;

  text-align: center;

  border-top: 1px solid #edf0f2;

  background: #fafbfc;
}

.search-suggestion-view-all {
  font-size: 13px;

  font-weight: 600;

  text-decoration: none !important;

  color: #2563eb;
}

/* Mobile */

@media (max-width: 575.98px) {
  .itools-era-search-suggestions {
    position: absolute;

    left: 0px;

    right: 0px;

    width: auto;

    max-height: 65vh;
  }
}

/* ==========================================================
   Search Backdrop
   ========================================================== */

.itools-era-search-backdrop {
  display: none;

  position: fixed;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 100%;

  background: transparent;

  z-index: 1040;

  touch-action: manipulation;
}

/*
|--------------------------------------------------------------------------
| Search suggestions above backdrop
|--------------------------------------------------------------------------
*/

.itools-era-search-suggestions {
  z-index: 1050;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {
  .itools-era-search-backdrop {
    display: none;
  }
}
