/* Find-a-store autocomplete (landing + dashboard) */
.fg-store-search {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.fg-store-search__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.fg-store-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.fg-store-search__icon {
  position: absolute;
  left: 0.9rem;
  display: inline-flex;
  color: #64748b;
  pointer-events: none;
}

.fg-store-search__input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 2.4rem 0.85rem 2.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fg-store-search__input::placeholder {
  color: #94a3b8;
}

.fg-store-search__input:focus {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.fg-store-search__clear {
  position: absolute;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.fg-store-search__clear:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.fg-store-search__results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 320px;
  overflow: auto;
}

.fg-store-search__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
}

.fg-store-search__item:hover,
.fg-store-search__item.is-active {
  background: rgba(22, 163, 74, 0.08);
}

.fg-store-search__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.fg-store-search__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.fg-store-search__user {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.fg-store-search__name,
.fg-store-search__meta {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-store-search__status {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
}

.fg-store-search__status--open {
  color: #15803d;
}

.fg-store-search__hint,
.fg-store-search__empty {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.fg-store-search__empty {
  color: #b45309;
}

/* Landing: inside dedicated Find a store section */
.fg-store-search--landing {
  margin-top: 0;
  max-width: 440px;
}

.fg-brand-lp .fg-store-search--landing .fg-store-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fg-landing-find-store {
  padding: clamp(2rem, 5vw, 3.25rem) 1.15rem;
}

.fg-landing-find-store__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: end;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(145deg, #f7faf8 0%, #eef7f1 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.fg-landing-find-store__copy .fg-brand-h2 {
  margin: 0.25rem 0 0.5rem;
}

.fg-landing-find-store__copy .fg-brand-lead {
  margin: 0;
  max-width: 34rem;
}

.fg-landing-find-store__search {
  width: 100%;
}

.fg-landing-find-store__search .fg-store-search {
  max-width: none;
}

@media (max-width: 760px) {
  .fg-landing-find-store__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* Compact: dashboard / tighter layouts */
.fg-store-search--compact {
  max-width: none;
}

.fg-store-search--compact .fg-store-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fg-store-search--compact .fg-store-search__hint {
  display: none;
}

@media (max-width: 640px) {
  .fg-store-search--landing {
    max-width: none;
  }
}
