/*================================================================================================
    Start SearchBar CSS
===================================================================================================*/
.bx-searchbar {
  z-index: 99999;
  height: 160px !important;
  border: none !important;
  transition: height 0.3s ease;
}

.bx-searchbar.has-results {
  height: 90vh !important;
  max-height: 90vh !important;
}

.bx-searchbar .offcanvas-body {
  display: grid;
  place-items: center;
  overflow-y: auto;
  max-height: 100%;
}

.bx-searchbar.has-results .offcanvas-body {
  place-items: start;
  padding: 30px 20px;
  align-content: start;
}
.bx-searchbar .bx-searchbar-from {
	position: relative;
	display: flex;
	align-items: center;
	direction: ltr;
}
.bx-searchbar .bx-searchbar-box {
  width: 600px;
  margin-inline: auto;
}

.bx-searchbar.has-results .bx-searchbar-box {
  width: 90%;
  max-width: 1200px;
}
.bx-searchbar .bx-searchbar-from input {
  width: 600px;
  height: 62px;
  border: 1px solid rgba(34, 48, 53, 0.25);
  border-right: 0;
  border-radius: 8px 0px 0px 8px;
  font-size: 18px;
  padding: 12px 24px;
}
.bx-searchbar .bx-searchbar-from input:focus {
  border: 1px solid var(--bx-primary-color);
}
.bx-searchbar .bx-searchbar-from .bx-btn {
  border-radius: 0px 8px 8px 0px;
  height: 62px;
  position: relative;
  left: -2px;
}

@media only screen and (max-width: 767px) {
  .bx-searchbar .bx-searchbar-from input {
    width: 100%;
    height: 52px;
    font-size: 16px;
    padding: 16px 24px;
  }
  .bx-searchbar .bx-searchbar-box {
    width: 100%;
  }
  .bx-searchbar {
    height: 124px !important;
  }
  .bx-searchbar.has-results {
    height: 85vh !important;
    max-height: 85vh !important;
  }
  .bx-searchbar .bx-searchbar-from .bx-btn {
    height: 52px;
  }
}

/* Loading Indicator */
.medical-search-loading {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
  justify-content: center;
}

.medical-search-loading.active {
  display: flex;
}

.medical-search-loading .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ff6b35;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/*================================================================================================
      End SearchBar CSS
===================================================================================================*/
