.sales-client-search {
  width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #f8fafc;
}

.sales-client-search [hidden] {
  display: none !important;
}

.sales-client-search > label {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: .96rem;
  font-weight: 800;
}

.sales-client-search-control {
  position: relative;
}

.sales-client-search-control input {
  width: 100%;
  min-height: 50px;
  padding: 0 48px 0 15px;
  border: 1px solid #b8c7da;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.sales-client-search-control input:focus {
  border-color: #4857d6;
  outline: 3px solid rgba(72, 87, 214, .14);
}

.sales-client-search-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #526079;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.sales-client-search-clear:hover,
.sales-client-search-clear:focus-visible {
  background: #e8edf6;
  color: #172033;
}

.sales-client-search-status {
  min-height: 20px;
  margin: 7px 2px 0;
  color: #68758c;
  font-size: .82rem;
}

.sales-client-search-status[data-state="error"] {
  color: #a72d2d;
}

.sales-client-search-results {
  max-height: min(320px, 42dvh);
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid #cdd8e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(26, 38, 63, .12);
}

.sales-client-result {
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.sales-client-result:last-child {
  border-bottom: 0;
}

.sales-client-result:hover,
.sales-client-result[aria-selected="true"] {
  background: #eef1ff;
}

.sales-client-result:focus-visible {
  position: relative;
  outline: 3px solid #4857d6;
  outline-offset: -3px;
}

.sales-client-result strong {
  overflow-wrap: anywhere;
  font-size: .98rem;
}

.sales-client-result span {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #647189;
  font-size: .78rem;
}

.sales-selected-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #9fd6bc;
  border-radius: 12px;
  background: #ecf9f3;
}

.sales-selected-client > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sales-selected-client span,
.sales-selected-client small {
  color: #447062;
  font-size: .75rem;
}

.sales-selected-client strong,
.sales-selected-client small {
  overflow-wrap: anywhere;
}

.sales-selected-client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.sales-selected-client-actions button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #83bca7;
  border-radius: 10px;
  background: #fff;
  color: #235646;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.sales-client-card.is-walk-in .sales-client-search {
  opacity: .58;
}

@media (max-width: 640px) {
  .sales-client-search {
    padding: 13px;
  }

  .sales-selected-client {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-selected-client-actions,
  .sales-selected-client-actions button {
    width: 100%;
  }
}
