.service-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 4px;
}

.service-search {
  display: block;
  min-width: 0;
}

.service-search input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  color: #382347;
  background: #fff;
  border: 1px solid #e5ddec;
  border-radius: 12px;
  outline: none;
}

.service-search input:focus {
  border-color: #9670d2;
  box-shadow: 0 0 0 3px #9670d22b;
}

.service-filter-chip {
  padding: 10px 14px;
  color: #725d80;
  background: #fff;
  border: 1px solid #e5ddec;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.service-filter-chip.active {
  color: #fff;
  background: #7040b5;
  border-color: #7040b5;
}

.service-filter-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.service-filter-note {
  margin: 5px 2px 12px;
  color: #95869e;
  font-size: 10px;
}

.service-recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #382347;
  text-align: left;
  background: linear-gradient(105deg, #fbf7ff, #f4f8ff);
  border: 1px solid #ded1ef;
  border-radius: 12px;
  cursor: pointer;
}

.service-recommendation-card:hover {
  border-color: #a783d5;
}

.service-recommendation-card .recommendation-label {
  grid-column: 1;
  color: #7040b5;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.service-recommendation-card strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-recommendation-card small {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #74617f;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .service-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-filter-chip {
    justify-self: start;
  }

  .service-recommendation-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-recommendation-card small {
    grid-column: 1;
    grid-row: auto;
  }
}
