.search-select {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-select-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--publish-border, var(--line));
  border-radius: 11px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-select-control:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--publish-focus, rgba(53,129,96,.11));
}

.search-select-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  place-items: center;
  color: #6f7d76;
}

.search-select-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-select-control input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 11px 8px 11px 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 14px;
}

.search-select-control button {
  width: 44px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f7faf8;
  color: #506058;
  transition: background-color .15s ease;
}

.search-select-control button:hover {
  background: #edf4f0;
}

.search-select-control button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.search-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--publish-border, var(--line));
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16,43,34,.18);
}

.search-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color .12s ease;
}

.search-select-option:hover,
.search-select-option:focus,
.search-select-option.active {
  background: var(--green-soft);
  outline: none;
}

.search-select-option[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--green);
}

.search-select-option span,
.search-select-option strong,
.search-select-option small {
  display: block;
}

.search-select-option strong {
  color: #24362e;
  font-size: 13px;
}

.search-select-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.search-select-option em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.search-select-option em.ready {
  background: var(--green-soft);
  color: var(--green-dark);
}

.search-select-option em.pending {
  background: #fff5df;
  color: #8b621c;
}

.search-select-option em.disabled {
  background: #f1f3f2;
  color: #69746f;
}

.search-select-option.disabled {
  cursor: not-allowed;
  opacity: .5;
}

.search-select-empty {
  margin: 0;
  padding: 24px 12px;
  color: var(--muted);
  text-align: center;
}

.search-select-empty strong,
.search-select-empty span {
  display: block;
}

.search-select-empty strong {
  color: #45564e;
  font-size: 13px;
}

.search-select-empty span {
  margin-top: 5px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .search-select {
    width: 100%;
  }
}
