
/* Searchable Dropdown Component */
.searchable-dropdown-container {
  position: relative;
  width: 100%;
}

/* Main Input Wrapper */
.searchable-dropdown-main-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  cursor: pointer;

  span {
    background: url('./../icons/search.svg') no-repeat center;
  }
}

/* Main Input */
.searchable-dropdown-main-input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  border: none;
  border-radius: 0;
  background-color: #fff;
  color: #171c8f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  text-align: left;
  box-shadow: none;
  height: auto;
  outline: none;
  cursor: pointer;
}

.searchable-dropdown-main-input::placeholder {
  color: var(--maruti-secondary-blue);
}

.searchable-dropdown-main-input:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5);
  outline-offset: 2px;
}

/* Dropdown Arrow */
.searchable-dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--maruti-secondary-blue);
}

.searchable-dropdown-arrow svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

/* Dropdown Panel */
.searchable-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #dddddd;
  border-top: none;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dropdown Search Wrapper */
.searchable-dropdown-search-wrapper {
  position: relative;
  padding: 8px;
}

/* Dropdown Search Input */
.searchable-dropdown-search-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #8d8d8d;
  border-radius: 0;
  background-color: #fff;
  color: #171c8f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  text-align: left;
  box-shadow: none;
  height: auto;
  outline: none;
}

.searchable-dropdown-search-input:focus {
  outline: none;
}

/* Dropdown Search Icon */
.searchable-dropdown-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchable-dropdown-search-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Dropdown List */
.searchable-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  text-align: left;
}

/* Dropdown Option */
.searchable-dropdown-option {
  padding: 12px;
  cursor: pointer;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
  &.selected {
    background-color: #f8f8f8;
  }
}

.searchable-dropdown-option:hover {
  background-color: #f8f8f8;
}

.searchable-dropdown-option.is-active {
  background-color: #f8f8f8;
  outline: 2px solid rgba(23, 28, 143, 0.35);
  outline-offset: -2px;
}

.searchable-dropdown-option:last-child {
  border-bottom: none;
}
