/**
 * Searchable service combobox — open panel + trigger tweaks.
 * Closed look relies on family CSS:
 * - Homepage / L3L: `.zuri-hero-select`
 * - Map-hero L1/L2/L2B: `.ai-location-home-hero__select`
 * Do not alter hero outer dimensions. Do not apply homepage styles to map-hero.
 */

.zc-sss {
  position: relative;
  width: 100%;
}

/* Map-hero form: keep flex row sizing of former native <select> */
.zc-ai-location-home .ai-location-home-hero__form > .zc-sss {
  flex: 1;
  min-width: 0;
}

/* Shared button-trigger reset; chevron comes from family select CSS (background-image) */
button.zc-sss__trigger.zuri-hero-select,
button.zc-sss__trigger.ai-location-home-hero__select {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  /* Vertical center without changing height/padding from family select CSS */
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

button.zc-sss__trigger.zuri-hero-select {
  color: #212529;
}

button.zc-sss__trigger.ai-location-home-hero__select {
  color: #222222;
}

button.zc-sss__trigger.zuri-hero-select .zc-sss__value,
button.zc-sss__trigger.ai-location-home-hero__select .zc-sss__value {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
}

button.zc-sss__trigger.zuri-hero-select.is-placeholder .zc-sss__value {
  /* Match closed hero text; never light-grey placeholder defaults */
  color: #212529;
}

button.zc-sss__trigger.ai-location-home-hero__select.is-placeholder .zc-sss__value {
  color: #222222;
}

button.zc-sss__trigger.zuri-hero-select[aria-expanded="true"] {
  box-shadow: 0 0 0 2px #1aa7ff;
}

/* Map-hero select normally has no focus ring (border:0); keep closed look when expanded */
button.zc-sss__trigger.ai-location-home-hero__select[aria-expanded="true"] {
  box-shadow: none !important;
  outline: none;
}

.zc-sss__panel {
  position: absolute;
  z-index: 12080;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.zc-sss__search-wrap {
  padding: 8px 8px 4px;
}

.zc-sss__search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfe6f7;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 15px;
  color: #111;
  font-family: "Inter", sans-serif;
  outline: none;
  background: #fff;
}

.zc-sss__search:focus {
  border-color: #1aa7ff;
  box-shadow: 0 0 0 2px rgba(26, 167, 255, 0.2);
}

.zc-sss__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.zc-sss__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15px;
  color: #1a1a1a;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  line-height: 1.35;
}

.zc-sss__option.is-active,
.zc-sss__option:hover {
  background: #eaf6ff;
  color: #1aa7ff;
}

.zc-sss__option.is-selected:not(.is-active):not(:hover) {
  background: #f5fafd;
  font-weight: 600;
}

.zc-sss__empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 10px 12px;
  text-align: left;
}

.zc-sss__empty-msg {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #334155;
  font-weight: 500;
}

.zc-sss__empty-icon {
  color: #e6a100;
  margin-right: 2px;
}

.zc-sss__custom-action {
  appearance: none;
  border: 1px solid #1aa7ff;
  background: #eaf6ff;
  color: #0b6fb8;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.zc-sss__custom-action:hover,
.zc-sss__custom-action:focus-visible {
  background: #1aa7ff;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 167, 255, 0.35);
}

.zc-sss__empty-plain {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: #64748b;
}
