.searchable-select {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.searchable-select__label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.searchable-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.searchable-input-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667085' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: transform 160ms ease;
}

.searchable-select.open .searchable-input-wrapper::after {
  transform: translateY(-50%) rotate(180deg);
}

.searchable-input {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.searchable-input:focus {
  border-color: #24459b;
  box-shadow: 0 0 0 4px rgba(36, 69, 155, 0.12);
}

.searchable-select.is-disabled {
  opacity: 0.72;
}

.searchable-select.is-disabled .searchable-input {
  cursor: not-allowed;
}

.searchable-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.searchable-clear-btn:hover {
  background: #f2f4f7;
  color: #b42318;
}

.searchable-clear-btn i,
.searchable-clear-btn svg {
  width: 16px;
  height: 16px;
}

.searchable-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  display: none;
}

.searchable-select.open .searchable-dropdown {
  display: block;
}

.searchable-option {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.searchable-option:hover {
  background: #f8fafc;
}

.searchable-option.active {
  background: #eef4ff;
  color: #24459b;
  font-weight: 700;
}

.searchable-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  flex: 0 0 16px;
  position: relative;
}

.searchable-option.active .searchable-checkbox {
  border-color: #24459b;
  background: #24459b;
}

.searchable-option.active .searchable-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.searchable-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.searchable-dropdown::-webkit-scrollbar {
  width: 7px;
}

.searchable-dropdown::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 999px;
}
